File bzip3.spec of Package bzip3
#
# spec file for package bzip3
#
# Copyright (c) 2022 SUSE LLC
#
# 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 _uver 1_0_1
Name: bzip3
Version: 1.0.1
Release: 0
Summary: A better and stronger spiritual successor to BZip2
# should change to lgpl3 in the next release
License: GPL-3.0-or-later
URL: https://github.com/kspalaiologos
Source0: https://github.com/kspalaiologos/bzip3/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE bzip3-suse_paths.patch
Patch0: bzip3-suse_paths.patch
# PATCH-FIX-OPENSUSE bzip3-versioned_library.patch
Patch1: bzip3-versioned_library.patch
BuildRequires: time
%description
A better, faster and stronger spiritual successor to BZip2. Features higher
compression ratios and better performance thanks to a order-0 context mixing
entropy coder, a fast Burrows-Wheeler transform code making use of suffix
arrays and a RLE with Lempel Ziv+Prediction pass based on LZ77-style string
matching and PPM-style context modeling.
Like its ancestor, BZip3 excels at compressing text or code.
%package devel
Summary: Development files for %{name}
Requires: lib%{name}-%{_uver} = %{version}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%package -n lib%{name}-%{_uver}
Summary: A better and stronger spiritual successor to BZip2
%description -n lib%{name}-%{_uver}
A better, faster and stronger spiritual successor to BZip2. Features higher
compression ratios and better performance thanks to a order-0 context mixing
entropy coder, a fast Burrows-Wheeler transform code making use of suffix
arrays and a RLE with Lempel Ziv+Prediction pass based on LZ77-style string
matching and PPM-style context modeling.
Like its ancestor, BZip3 excels at compressing text or code.
%prep
%autosetup -p1
%build
%make_build CFLAGS="%{optflags} -I%{_builddir}/%{name}-%{version}/include" VERSION="%{version}"
%install
%make_install BINDIR=%{_bindir} LIBDIR=%{_libdir} INCLUDEDIR=%{_includedir} VERSION="%{version}"
%check
make check %{?_smp_mflags}
%post -n lib%{name}-%{_uver} -p /sbin/ldconfig
%postun -n lib%{name}-%{_uver} -p /sbin/ldconfig
%files
%license LICENSE
%doc README.md
%{_bindir}/bzip3
%files devel
%{_includedir}/libbz3.h
%{_libdir}/libbzip3.so
%files -n lib%{name}-%{_uver}
%{_libdir}/libbzip3-%{version}.so
%changelog