Name: bzip3 Version: 1.2.1 Release: 1%{?dist} Summary: Tools for compressing and decompressing bzip3 files # bz3grep: BSD-2-Clause # include/common.h: LGPL-3.0-or-later # include/libsais.h: Apache-2.0 # include/libbz3.h: LGPL-3.0-or-later # libsais-LICENSE: Apache-2.0 text # LICENSE: LGPL-3.0 text # src/libbz3.c: LGPL-3.0-or-later # src/main.c: LGPL-3.0-or-later ## Unbundled and not in any binary package # aclocal.m4: FSFULLR AND GPL-2.0-or-later WITH Autoconf-exception-2.0 # build-aux/ax_build_date_epoch.m4: GPL-3.0-or-later WITH Autoconf macro exception (?) # build-aux/ax_pthread.m4: GPL-3.0-or-later WITH Autoconf macro exception (?) # build-aux/ax_check_compile_flag.m4: FSFAP # build-aux/compile: GPL-2.0-or-later WITH Autoconf-exception-2.0 # build-aux/config.guess: GPL-3.0-or-later WITH Autoconf-exception-3.0 # build-aux/config.sub: GPL-3.0-or-later WITH Autoconf-exception-3.0 # build-aux/depcomp: GPL-2.0-or-later WITH Autoconf-exception-2.0 # build-aux/git-version-gen: GPL-3.0-or-later # build-aux/install-sh: X11 AND "FSF changes to this file are in the public domain" # build-aux/libtool.m4: FSFULLR AND GPL-2.0-or-later WITH Libtool-exception # AND FSFUL # build-aux/ltmain.sh: GPL-2.0-or-later WITH Libtool-exception AND # GPL-3.0-or-later # build-aux/lt~obsolete.m4 FSFULLR # build-aux/ltoptions.m4: FSFULLR # build-aux/ltsugar.m4: FSFULLR # build-aux/missing: GPL-2.0-or-later WITH Autoconf-exception-2.0 # configure: FSFUL AND GPL-2.0-or-later WITH Libtool-exception # Makefile.in: FSFULLR ## Not used # include/getopt-shim.h: MIT License: LGPL-3.0-or-later AND BSD-2-Clause URL: https://github.com/kspalaiologos/%{name} Source0: %{url}/releases/download/%{version}/%{name}-%{version}.tar.xz BuildRequires: autoconf BuildRequires: autoconf-archive BuildRequires: automake BuildRequires: bash # coreutils for cat, tr in build-aux/git-version-gen BuildRequires: coreutils BuildRequires: findutils # awk in configure.ac, configure, Makefile.in BuildRequires: gawk BuildRequires: gcc # For git-version-gen script executed from autoconf.ac BuildRequires: gnulib-devel BuildRequires: libtool BuildRequires: make # PKG_PROG_PKG_CONFIG in configure.ac BuildRequires: pkgconf-pkg-config # sed in build-aux/git-version-gen BuildRequires: sed Requires: %{name}-libs%{?_isa} = %{version}-%{release} # Executed by bz3grep Requires: grep # Executed by bz3less Requires: less # Executed by bz3more Requires: util-linux-core # Executed by bz3most Requires: most %description These are tools for compressing, decompressing, printing, and searching bzip3 files. bzip3 features higher compression ratios and better performance than bzip2 thanks to an order-0 context mixing entropy coder, a fast Burrows-Wheeler transform code making use of suffix arrays and a run-length encoding with Lempel-Ziv prediction pass based on LZ77-style string matching and PPM-style context modeling. %package libs Summary: Shared libraries for bzip3 compression and decompresion License: LGPL-3.0-or-later AND Apache-2.0 # Forked, fixed, and pruned libasais # because of rejected fix . Provides: bundled(libsais) = 2.7.0 %description libs This is a library for compressing and decompressing bzip3 compression format. bzip3 features higher compression ratios and better performance than bzip2 thanks to an order-0 context mixing entropy coder, a fast Burrows-Wheeler transform code making use of suffix arrays and a run-length encoding with Lempel-Ziv prediction pass based on LZ77-style string matching and PPM-style context modeling. %package devel Summary: Files for developing with bzip3 library License: LGPL-3.0-or-later Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description devel Header files, a pkg-config module and link objects for building applications which use a bzip3 library. %prep %autosetup -p1 # Remove generated autoconf files rm aclocal.m4 configure Makefile.in # Remove generated manual pages for F in *.1.in; do rm "${F%%.in}" done # Unbundle autoconf macros and scripts, except those not yet packaged in # autoconf-archive find build-aux -type f \! \( \ -name ax_progvar.m4 -o \ -name ax_subst_man_date.m4 -o \ -name ax_subst_transformed_package_name.m4 \ \) -delete # Execute git-version-gen from a system location ln -s %{_datadir}/gnulib/build-aux/git-version-gen build-aux/git-version-gen # Remove unused code echo > include/getopt-shim.h %build autoreconf -vfi %configure \ --disable-arch-native \ --with-pic \ --with-pthread \ --enable-shared \ --disable-static \ --disable-static-exe %{make_build} %check make check roundtrip %{?_smp_mflags} %install %{make_install} find %{buildroot} -name '*.la' -delete # Deduplicate identical files if cmp %{buildroot}%{_mandir}/man1/{bz3cat,bunzip3}.1; then rm %{buildroot}%{_mandir}/man1/bunzip3.1 ln -s bz3cat.1 %{buildroot}%{_mandir}/man1/bunzip3.1 fi %files %define programs \{bunzip3,bz3cat,bz3grep,bz3less,bz3more,bz3most,bzip3\} %{_bindir}/%{programs} %{_mandir}/man1/%{programs}.1* %files libs %license libsais-LICENSE LICENSE %doc NEWS README.md %{_libdir}/libbzip3.so.0{,.*} %files devel %{_includedir}/libbz3.h %{_libdir}/libbzip3.so %{_libdir}/pkgconfig/bzip3.pc %changelog * Fri Nov 11 2022 Petr Pisar - 1.2.1-1 - 1.2.1 bump * Wed Nov 02 2022 Petr Pisar - 1.2.0-3 - Do not own pkg-config directory * Wed Nov 02 2022 Petr Pisar - 1.2.0-2 - Less globs and and more verbose output in a spec file * Tue Nov 01 2022 Petr Pisar - 1.2.0-1 - 1.2.0 bump * Wed Oct 26 2022 Petr Pisar - 1.1.8-1 - 1.1.8 packaged