diff --git a/zstd.changes b/zstd.changes index 2a791e6..d0e4504 100644 --- a/zstd.changes +++ b/zstd.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Feb 6 00:00:00 CET 2018 - dsterba@suse.cz + +- build the static library (depency for btrfsprogs-static) + ------------------------------------------------------------------- Thu Dec 21 11:02:54 UTC 2017 - idonmez@suse.com diff --git a/zstd.spec b/zstd.spec index 766abd0..89bf02e 100644 --- a/zstd.spec +++ b/zstd.spec @@ -1,7 +1,7 @@ # # spec file for package zstd # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -62,6 +62,18 @@ targeting real-time compression scenarios at zlib-level compression ratio. Needed for compiling programs that link with the library. +%package -n lib%{name}-devel-static +Summary: Development files for the Zstd compression library +Group: Development/Libraries/C and C++ +BuildRequires: glibc-devel-static +Requires: libz%{name}-devel = %{version} + +%description -n lib%{name}-devel-static +Zstd, short for Zstandard, is a lossless compression algorithm, +targeting real-time compression scenarios at zlib-level compression ratio. + +Needed for compiling programs that link with the library. + %prep %setup -q find -name .gitignore -delete @@ -76,7 +88,6 @@ CFLAGS="%{optflags}" make %{?_smp_mflags} -C tests test-zstd %install %make_install PREFIX=%{_prefix} LIBDIR=%{_libdir} -rm %{buildroot}/%{_libdir}/libzstd.a %files %defattr(-,root,root,-) @@ -107,6 +118,10 @@ rm %{buildroot}/%{_libdir}/libzstd.a %{_libdir}/pkgconfig/libzstd.pc %{_libdir}/libzstd.so +%files -n lib%{name}-devel-static +%defattr(-,root,root,-) +%{_libdir}/libzstd.a + %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig