Update to 1.9.3 and switch to Meson

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1743821
This commit is contained in:
Timothée Ravier 2021-01-05 15:50:40 +01:00
parent d986cfe960
commit f013b5c4e7
No known key found for this signature in database
GPG Key ID: 241FDC14DC3654CB
2 changed files with 16 additions and 12 deletions

View File

@ -1,6 +1,6 @@
Name: lz4
Version: 1.9.1
Release: 3%{?dist}
Version: 1.9.3
Release: 1%{?dist}
Summary: Extremely fast compression algorithm
License: GPLv2+ and BSD
@ -10,6 +10,7 @@ Source0: https://github.com/lz4/lz4/archive/v%{version}/%{name}-%{version
Obsoletes: %{name} < 1.7.5-3
BuildRequires: gcc
BuildRequires: meson >= 0.43
%description
LZ4 is an extremely fast loss-less compression algorithm, providing compression
@ -41,19 +42,19 @@ contains static libraries for static linking of applications.
%prep
%autosetup
echo '#!/bin/sh' > ./configure
chmod +x ./configure
%build
%configure
%make_build
cd contrib/meson
CONFIGURE_OPTS=(
-Dbin_programs=true
-Ddefault_library=both
)
%meson "${CONFIGURE_OPTS[@]}"
%meson_build
%install
%configure
# Someone thinks that plain Makefiles are good for bigger projects than hello world..
%make_install LIBDIR=%{_libdir} PREFIX=%{_prefix}
%ldconfig_scriptlets libs
cd contrib/meson
%meson_install
%files
%license programs/COPYING
@ -81,6 +82,9 @@ chmod +x ./configure
%{_libdir}/liblz4.a
%changelog
* Wed Jan 06 2021 Timothée Ravier <travier@redhat.com> - 1.9.3-1
- Update to 1.9.3 and switch to Meson
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (lz4-1.9.1.tar.gz) = 536cdeb6dd73b4769cf9501ad312b004ab01699758534b47ca2eddbc815fd374a3caba40cde36f73a7a70e134065836b733e2b0c023c31740b877ef9317ccf3e
SHA512 (lz4-1.9.3.tar.gz) = c246b0bda881ee9399fa1be490fa39f43b291bb1d9db72dba8a85db1a50aad416a97e9b300eee3d2a4203c2bd88bda2762e81bc229c3aa409ad217eb306a454c