Files
bzip3/bzip3.spec
Dirk Mueller 6c75417284 - update to 1.5.2:
* batch mode: fall back to stdin input with no auxiliary arguments.
  * bz3_compress (API): better bound estimation
  * yarg: oom handling; stop relying on (GNU) asprintf, use the baked in variant.
  * pkg-config: Add License variable
  * bz3_decompress (API): fix a memory leak

OBS-URL: https://build.opensuse.org/package/show/Archiving/bzip3?expand=0&rev=15
2025-05-15 15:29:10 +00:00

111 lines
3.2 KiB
RPMSpec
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#
# spec file for package bzip3
#
# Copyright (c) 2025 SUSE LLC
# Copyright (c) 2025 Andreas Stieger <Andreas.Stieger@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define libname libbzip3-1
Name: bzip3
Version: 1.5.2
Release: 0
Summary: Compressor with BurrowsWheeler transform and PPM context modeling
License: BSD-2-Clause AND LGPL-3.0-or-later
URL: https://github.com/kspalaiologos/bzip3
Source0: https://github.com/kspalaiologos/bzip3/releases/download/%{version}/bzip3-%{version}.tar.gz
Source1: baselibs.conf
Patch1: no-env.patch
BuildRequires: gcc
%{?suse_build_hwcaps_libs}
%description
A compressor featuring improved compression ratios and performance
over bzip2 thanks to a order-0 context mixing entropy coder, a
Burrows-Wheeler transform code making use of suffix arrays, a RLE
with Lempel Ziv+Prediction pass based on LZ77-style string matching
and PPM-style context modeling.
bzip3 1.4.0 can outperform zstd 1.5.5 on specific data sets, e.g.
15%% better ratio for same compress time on source code, but has
time trouble with e.g. object files.
%package -n %{libname}
Summary: Compressor with BurrowsWheeler transform and PPM context modeling
%description -n %{libname}
A compressor featuring improved compression ratios and performance
over bzip2 thanks to a order-0 context mixing entropy coder, a
Burrows-Wheeler transform code making use of suffix arrays, a RLE
with Lempel Ziv+Prediction pass based on LZ77-style string matching
and PPM-style context modeling.
%package devel
Summary: Development files for libbzip3
Requires: %{libname} = %{version}
%description devel
Development headers and library files for BZip3.
%prep
%autosetup -p1
%build
%configure \
--with-pthread \
--disable-arch-native \
--disable-static \
--disable-static-exe
%make_build
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%check
%make_build check
%ldconfig_scriptlets -n %{libname}
%files
%license LICENSE
%doc NEWS README.md
%{_bindir}/bunzip3
%{_bindir}/bz3cat
%{_bindir}/bz3grep
%{_bindir}/bz3less
%{_bindir}/bz3more
%{_bindir}/bz3most
%{_bindir}/bzip3
%files -n %{libname}
%license LICENSE
%{_libdir}/libbzip3.so.1
%{_libdir}/libbzip3.so.1.0.0
%files devel
%license LICENSE
%{_includedir}/libbz3.h
%{_libdir}/libbzip3.so
%{_libdir}/pkgconfig/bzip3.pc
%{_mandir}/man1/bunzip3.1%{?ext_man}
%{_mandir}/man1/bz3cat.1%{?ext_man}
%{_mandir}/man1/bz3grep.1%{?ext_man}
%{_mandir}/man1/bz3less.1%{?ext_man}
%{_mandir}/man1/bz3more.1%{?ext_man}
%{_mandir}/man1/bz3most.1%{?ext_man}
%{_mandir}/man1/bzip3.1%{?ext_man}
%changelog