lz4/lz4.spec

96 lines
2.5 KiB
RPMSpec
Raw Normal View History

2019-09-30 11:03:09 -04:00
Name: lz4
2023-01-19 14:52:22 +08:00
Version: 1.9.4
Release: 2
2019-09-30 11:03:09 -04:00
Summary: Extremely fast compression algorithm
License: GPLv2+ and BSD
URL: https://lz4.github.io/lz4/
Source0: https://github.com/lz4/lz4/archive/v%{version}/%{name}-%{version}.tar.gz
Provides: %{name}-libs = %{version}-%{release}
Obsoletes: %{name} < 1.7.5-3
Obsoletes: %{name}-libs
BuildRequires: gcc
2019-09-30 11:03:09 -04:00
%description
LZ4 is lossless compression algorithm, providing compression speed > 500 MB/s per
core (>0.15 Bytes/cycle). It features an extremely fast decoder, with speed in
multiple GB/s per core (~1 Byte/cycle). A high compression derivative, called
LZ4_HC, is available, trading customizable CPU time for compression ratio.
%package devel
Summary: Development files for lz4
Requires: %{name}%{?_isa} = %{version}-%{release}
Provides: %{name}-static = %{version}-%{release}
Obsoletes: %{name}-static
%description devel
This package contains the header(.h) and library(.so/.a) files required to build
applications using liblz4 library.
%package_help
%prep
%autosetup -n %{name}-%{version} -p1
2019-11-06 19:42:31 +08:00
cp %{_builddir}/%{name}-%{version}/lib/LICENSE %{_builddir}/%{name}-%{version}/LICENSE-lib
2019-09-30 11:03:09 -04:00
%build
2022-06-20 17:09:48 +08:00
export MOREFLAGS="-g -D_FORTIFY_SOURCE=2 -O2"
2019-09-30 11:03:09 -04:00
%make_build
%install
%make_install LIBDIR=%{_libdir} PREFIX=%{_prefix}
%check
make check
2019-09-30 11:03:09 -04:00
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%license programs/COPYING
%doc NEWS
2019-11-06 19:42:31 +08:00
%license LICENSE
%license LICENSE-lib
2019-09-30 11:03:09 -04:00
%{_bindir}/lz4*
%{_bindir}/unlz4
%{_libdir}/liblz4.so.*
%files devel
2019-11-06 19:42:31 +08:00
%license lib/LICENSE
2019-09-30 11:03:09 -04:00
%{_includedir}/lz4*.h
%{_libdir}/liblz4.so
%{_libdir}/liblz4.a
%{_libdir}/pkgconfig/liblz4.pc
%files help
%{_mandir}/man1/lz4*
%{_mandir}/man1/unlz4.1*
%changelog
* Thu Feb 16 2023 zhangnan <zhangnan134@huawei.com> - 1.9.4-2
- add make check in spec
2023-01-19 14:52:22 +08:00
* Thu Jan 19 2023 Lv Ying <lvying6@huawei.com> - 1.9.4-1
- upgrade to 1.9.4-1
2022-06-20 17:09:48 +08:00
* Mon Jun 20 2022 renhongxun <renhongxun@h-partners.com> - 1.9.3-4
- add _FORTIFY_SOURCE add enable check
* Fri Jul 30 2021 chenyanpanHW <chenyanpan@huawei.com> - 1.9.3-3
- DESC: delete -Sgit from %autosetup, and delete BuildRequires git
2021-06-19 09:16:08 +08:00
* Sat Jun 19 2021 shixuantong <shixuantong@huawei.com> - 1.9.3-2
- fix CVE-2021-3520
2021-01-28 16:02:41 +08:00
* Thu Jan 28 2021 liudabo <liudabo1@huawei.com> - 1.9.3-1
- upgrade version to 1.9.3
2019-12-25 15:57:50 +08:00
* Mon Dec 23 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.9.2-2
- fix abort in oss-fuzz round_trip_stream_fuzzer.c
2019-09-30 11:03:09 -04:00
* Tue Aug 27 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.9.2-1
- Package init