diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | lz4.spec | 97 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 99 insertions, 0 deletions
@@ -0,0 +1 @@ +/lz4-1.10.0.tar.gz diff --git a/lz4.spec b/lz4.spec new file mode 100644 index 0000000..9deb028 --- /dev/null +++ b/lz4.spec @@ -0,0 +1,97 @@ +%global _vpath_srcdir build/meson + +Name: lz4 +Version: 1.10.0 +Release: 1 +Summary: Extremely fast compression algorithm + +License: GPL-2.0-or-later AND BSD-2-Clause +URL: https://lz4.org +Source0: https://github.com/lz4/lz4/releases/download/v%{version}/%{name}-%{version}.tar.gz + +Provides: %{name}-libs = %{version}-%{release} +Obsoletes: %{name}-libs < %{version} + +BuildRequires: gcc +BuildRequires: meson + +%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 < %{version} + +%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 +cp lib/LICENSE LICENSE-lib + +%build +%meson \ + -Dprograms=true \ + -Ddefault_library=both \ + %{nil} +%meson_build + +%install +%meson_install + +%check +%meson_test + +%files +%license programs/COPYING +%doc NEWS +%license LICENSE +%license LICENSE-lib +%{_bindir}/* +%{_libdir}/liblz4.so.* + +%files devel +%license lib/LICENSE +%{_includedir}/lz4*.h +%{_libdir}/liblz4.so +%{_libdir}/liblz4.a +%{_libdir}/pkgconfig/liblz4.pc + +%files help +%{_mandir}/man?/* + +%changelog +* Wed Jul 24 2024 Funda Wang <fundawang@yeah.net> - 1.10.0-1 +- update to 1.10.0 + +* Thu Feb 16 2023 zhangnan <zhangnan134@huawei.com> - 1.9.4-2 +- add make check in spec + +* Thu Jan 19 2023 Lv Ying <lvying6@huawei.com> - 1.9.4-1 +- upgrade to 1.9.4-1 + +* 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 + +* Sat Jun 19 2021 shixuantong <shixuantong@huawei.com> - 1.9.3-2 +- fix CVE-2021-3520 + +* Thu Jan 28 2021 liudabo <liudabo1@huawei.com> - 1.9.3-1 +- upgrade version to 1.9.3 + +* Mon Dec 23 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.9.2-2 +- fix abort in oss-fuzz round_trip_stream_fuzzer.c + +* Tue Aug 27 2019 openEuler Buildteam <buildteam@openeuler.org> - 1.9.2-1 +- Package init @@ -0,0 +1 @@ +dead9f5f1966d9ae56e1e32761e4e675 lz4-1.10.0.tar.gz |