commit cf212119dcfa25bc7baab2913e600d07d10c9dfa Author: overweight <5324761+overweight@user.noreply.gitee.com> Date: Mon Sep 30 11:03:09 2019 -0400 Package init diff --git a/lz4-1.9.2.tar.gz b/lz4-1.9.2.tar.gz new file mode 100644 index 0000000..12e817d Binary files /dev/null and b/lz4-1.9.2.tar.gz differ diff --git a/lz4.spec b/lz4.spec new file mode 100644 index 0000000..bca1996 --- /dev/null +++ b/lz4.spec @@ -0,0 +1,69 @@ +Name: lz4 +Version: 1.9.2 +Release: 1 +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 + +%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 + +%build +export MOREFLAGS="-g" +%make_build + +%install +%make_install LIBDIR=%{_libdir} PREFIX=%{_prefix} + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%license programs/COPYING +%doc NEWS +%doc lib/LICENSE +%{_bindir}/lz4* +%{_bindir}/unlz4 +%{_libdir}/liblz4.so.* + +%files devel +%doc lib/LICENSE +%{_includedir}/lz4*.h +%{_libdir}/liblz4.so +%{_libdir}/liblz4.a +%{_libdir}/pkgconfig/liblz4.pc + +%files help +%{_mandir}/man1/lz4* +%{_mandir}/man1/unlz4.1* + +%changelog +* Tue Aug 27 2019 openEuler Buildteam - 1.9.2-1 +- Package init