29abf5
%global _vpath_srcdir contrib/meson
29abf5
29abf5
Name:           lz4
29abf5
Version:        1.9.3
29abf5
Release:        5%{?dist}
29abf5
Summary:        Extremely fast compression algorithm
29abf5
29abf5
License:        GPLv2+ and BSD
29abf5
URL:            https://lz4.github.io/lz4/
29abf5
Source0:        https://github.com/lz4/lz4/archive/v%{version}/%{name}-%{version}.tar.gz
29abf5
29abf5
Obsoletes:      %{name} < 1.7.5-3
29abf5
29abf5
BuildRequires: make
29abf5
BuildRequires:  gcc
29abf5
BuildRequires:  meson >= 0.43
29abf5
29abf5
Patch1: lz4-cve-2021-3520.patch
29abf5
%description
29abf5
LZ4 is an extremely fast loss-less compression algorithm, providing compression
29abf5
speed at 400 MB/s per core, scalable with multi-core CPU. It also features
29abf5
an extremely fast decoder, with speed in multiple GB/s per core, typically
29abf5
reaching RAM speed limits on multi-core systems.
29abf5
29abf5
%package        libs
29abf5
Summary:        Libaries for lz4
29abf5
Obsoletes:      %{name} < 1.7.5-3
29abf5
29abf5
%description    libs
29abf5
This package contains the libaries for lz4.
29abf5
29abf5
%package        devel
29abf5
Summary:        Development files for lz4
29abf5
Requires:       %{name}-libs%{?_isa} = %{version}-%{release}
29abf5
29abf5
%description    devel
29abf5
This package contains the header(.h) and library(.so) files required to build
29abf5
applications using liblz4 library.
29abf5
29abf5
%package        static
29abf5
Summary:        Static library for lz4
29abf5
29abf5
%description    static
29abf5
LZ4 is an extremely fast loss-less compression algorithm. This package
29abf5
contains static libraries for static linking of applications.
29abf5
29abf5
%prep
29abf5
%autosetup -p1
29abf5
29abf5
%build
29abf5
%meson \
29abf5
  -Dbin_programs=true \
29abf5
  -Ddefault_library=both \
29abf5
  %{nil}
29abf5
%meson_build
29abf5
29abf5
%install
29abf5
%meson_install
29abf5
29abf5
%files
29abf5
%license programs/COPYING
29abf5
%doc NEWS
29abf5
%{_bindir}/lz4
29abf5
%{_bindir}/lz4c
29abf5
%{_bindir}/lz4cat
29abf5
%{_bindir}/unlz4
29abf5
%{_mandir}/man1/lz4.1*
29abf5
%{_mandir}/man1/lz4c.1*
29abf5
%{_mandir}/man1/lz4cat.1*
29abf5
%{_mandir}/man1/unlz4.1*
29abf5
29abf5
%files libs
29abf5
%doc lib/LICENSE
29abf5
%{_libdir}/liblz4.so.*
29abf5
29abf5
%files devel
29abf5
%{_includedir}/lz4*.h
29abf5
%{_libdir}/liblz4.so
29abf5
%{_libdir}/pkgconfig/liblz4.pc
29abf5
29abf5
%files static
29abf5
%doc lib/LICENSE
29abf5
%{_libdir}/liblz4.a
29abf5
29abf5
%changelog
29abf5
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 1.9.3-5
29abf5
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
29abf5
  Related: rhbz#1991688
29abf5
29abf5
* Thu May 27 2021 Jakub Martisko <jamartis@redhat.com> - 1.9.3-4
29abf5
- Fix cve-2021-3520
29abf5
resolves: cve-2021-3520
29abf5
29abf5
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.9.3-3
29abf5
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
29abf5
29abf5
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.3-2
29abf5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
29abf5
29abf5
* Wed Jan 06 2021 Timothée Ravier <travier@redhat.com> - 1.9.3-1
29abf5
- Update to 1.9.3 and switch to Meson
29abf5
29abf5
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.1-3
29abf5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
29abf5
29abf5
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.1-2
29abf5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
29abf5
29abf5
* Wed Aug 14 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.9.1-1
29abf5
- Update to 1.9.1
29abf5
29abf5
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.3-3
29abf5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
29abf5
29abf5
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.3-2
29abf5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
29abf5
29abf5
* Mon Oct 29 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.8.3-1
29abf5
- Update to latest version
29abf5
29abf5
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.2-2
29abf5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
29abf5
29abf5
* Sat May 12 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.8.2-1
29abf5
- Update to 1.8.2
29abf5
29abf5
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.8.1.2-4
29abf5
- Escape macros in %%changelog
29abf5
29abf5
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.1.2-3
29abf5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
29abf5
29abf5
* Wed Jan 31 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.8.1.2-2
29abf5
- Switch to %%ldconfig_scriptlets
29abf5
29abf5
* Mon Jan 15 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.8.1.2-1
29abf5
- Update to 1.8.1.2
29abf5
29abf5
* Sat Aug 19 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.8.0-1
29abf5
- Update to 1.8.0
29abf5
29abf5
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.5-6
29abf5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
29abf5
29abf5
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.5-5
29abf5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
29abf5
29abf5
* Sat Jul 08 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1.7.5-4
29abf5
- Split libs properly for multilib
29abf5
29abf5
* Sat Mar  4 2017 Peter Robinson <pbrobinson@fedoraproject.org> 1.7.5-3
29abf5
- Split libs out to a sub package
29abf5
29abf5
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.7.5-2
29abf5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
29abf5
29abf5
* Thu Jan 05 2017 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1.7.5-1
29abf5
- Update to 1.7.5
29abf5
29abf5
* Fri Nov 25 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1.7.4.2-1
29abf5
- Update to 1.7.4.2 (RHBZ #1397373)
29abf5
29abf5
* Sat Nov 19 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 1.7.3-1
29abf5
- Update to 1.7.3 (RHBZ #1395458)
29abf5
29abf5
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - r131-2
29abf5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
29abf5
29abf5
* Mon Jul 06 2015 pjp <pjp@fedoraproject.org> - r131-1
29abf5
- New: Dos/DJGPP target #114.
29abf5
- Added: Example using lz4frame library #118.
29abf5
- Changed: liblz4.a no longer compiled with -fPIC by default.
29abf5
29abf5
* Thu Jun 18 2015 pjp <pjp@fedoraproject.org> - r130-1
29abf5
- Fixed: incompatibility sparse mode vs console.
29abf5
- Fixed: LZ4IO exits too early when frame crc not present.
29abf5
- Fixed: incompatibility sparse mode vs append mode.
29abf5
- Performance fix: big compression speed boost for clang(+30%%).
29abf5
29abf5
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - r129-2
29abf5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
29abf5
29abf5
* Wed May 27 2015 pjp <pjp@fedoraproject.org> - r129-1
29abf5
- New LZ4_compress_fast() API.
29abf5
- New LZ4 CLI improved performance with multiple files.
29abf5
- Other bug fix and documentation updates.
29abf5
29abf5
* Mon Apr 06 2015 pjp <pjp@fedoraproject.org> - r128-2
29abf5
- Update files section to install unlz4 & its manual
29abf5
29abf5
* Wed Apr 01 2015 pjp <pjp@fedoraproject.org> - r128-1
29abf5
- lz4cli sparse file support
29abf5
- Restored lz4hc compression ratio
29abf5
- lz4 cli supports long commands
29abf5
- Introduced lz4-static sub package BZ#1208203
29abf5
29abf5
* Thu Jan 08 2015 pjp <pjp@fedoraproject.org> - r127-2
29abf5
- Bump dist to override an earlier build.
29abf5
29abf5
* Wed Jan 07 2015 pjp <pjp@fedoraproject.org> - r127-1
29abf5
- Fixed a bug in LZ4 HC streaming mode
29abf5
- New lz4frame API integrated into liblz4
29abf5
- Fixed a GCC 4.9 bug on highest performance settings
29abf5
29abf5
* Thu Nov 13 2014 pjp <pjp@fedoraproject.org> - r124-1
29abf5
- New LZ4 HC Streaming mode
29abf5
29abf5
* Tue Sep 30 2014 pjp <pjp@fedoraproject.org> - r123-1
29abf5
- Added experimental lz4frame API.
29abf5
- Fix s390x support.
29abf5
29abf5
* Sat Aug 30 2014 pjp <pjp@fedoraproject.org> - r122-1
29abf5
- new release
29abf5
- Fixed AIX & AIX64 support (SamG)
29abf5
- Fixed mips 64-bits support (lew van)
29abf5
29abf5
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - r121-3
29abf5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
29abf5
29abf5
* Fri Aug 08 2014 Igor Gnatenko <i.gnatenko.brain@gmail.com> - r121-2
29abf5
- fix destdir
29abf5
29abf5
* Fri Aug 08 2014 pjp <pjp@fedoraproject.org> - r121-1
29abf5
- new release
29abf5
- Added a pkg-config file.
29abf5
- Fixed a LZ4 streaming crash bug.
29abf5
29abf5
* Thu Jul 03 2014 pjp <pjp@fedoraproject.org> - r119-1
29abf5
- new release
29abf5
- Fixed a high Address allocation issue in 32-bits mode.
29abf5
29abf5
* Sat Jun 28 2014 pjp <pjp@fedoraproject.org> - r118-1
29abf5
- new release
29abf5
- install libraries under appropriate _libdir directories.
29abf5
29abf5
* Sat Jun 14 2014 pjp <pjp@fedoraproject.org> - r117-3
29abf5
- Move shared library object to -devel package.
29abf5
29abf5
* Sat Jun 07 2014 pjp <pjp@fedoraproject.org> - r117-2
29abf5
- Skip static library from installation.
29abf5
29abf5
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - r117-2
29abf5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
29abf5
29abf5
* Fri Jun 06 2014 pjp <pjp@fedoraproject.org> - r117-1
29abf5
- new release
29abf5
- added lz4c & lz4cat manual pages.
29abf5
29abf5
* Sun Apr 13 2014 pjp <pjp@fedoraproject.org> - r116-1
29abf5
- new release 116
29abf5
- added lz4cat utility for posix systems
29abf5
29abf5
* Sat Mar 15 2014 pjp <pjp@fedoraproject.org> - r114-1
29abf5
- new release r114
29abf5
- added RPM_OPT_FLAGS to CFLAGS
29abf5
- introduced a devel package to build liblz4
29abf5
29abf5
* Thu Jan 02 2014 pjp <pjp@fedoraproject.org> - r110-1
29abf5
- new release r110
29abf5
29abf5
* Sun Nov 10 2013 pjp <pjp@fedoraproject.org> - r108-1
29abf5
- new release r108
29abf5
29abf5
* Wed Oct 23 2013 pjp <pjp@fedoraproject.org> - r107-1
29abf5
- new release r107
29abf5
29abf5
* Mon Oct 07 2013 pjp <pjp@fedoraproject.org> - r106-3
29abf5
- fixed install section to replace /usr/ with a macro.
29abf5
  -> https://bugzilla.redhat.com/show_bug.cgi?id=1015263#c5
29abf5
29abf5
* Sat Oct 05 2013 pjp <pjp@fedoraproject.org> - r106-2
29abf5
- fixed install section above as suggested in the review.
29abf5
  -> https://bugzilla.redhat.com/show_bug.cgi?id=1015263#c1
29abf5
29abf5
* Sun Sep 22 2013 pjp <pjp@fedoraproject.org> - r106-1
29abf5
- Initial RPM release of lz4-r106