From da13d5b795dc8459154cbc2f33c6255b688636e04058324406c936deac19a037 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Tue, 6 Feb 2018 08:14:29 +0000 Subject: [PATCH 1/2] Accepting request 573181 from home:dsterba:branches:Archiving - build the static library (depency for btrfsprogs-static) The static libraries should not be used, the btrfsprogs have a static build enabled so the tools can be used in rescue environments out of the box. there are also static builds for lzo, zlib. The missing static zstd would fail btrfsprogs-static that's been disabled temporarily. OBS-URL: https://build.opensuse.org/request/show/573181 OBS-URL: https://build.opensuse.org/package/show/Archiving/zstd?expand=0&rev=13 --- zstd.changes | 5 +++++ zstd.spec | 19 +++++++++++++++++-- 2 files changed, 22 insertions(+), 2 deletions(-) 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 From b7f0df333ad0b408e6786f62bb13ea36afde1c6605a859e07812d389a3ea7a9d Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Thu, 8 Feb 2018 10:23:17 +0000 Subject: [PATCH 2/2] OBS-URL: https://build.opensuse.org/package/show/Archiving/zstd?expand=0&rev=14 --- zstd.spec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zstd.spec b/zstd.spec index 89bf02e..9f27fdb 100644 --- a/zstd.spec +++ b/zstd.spec @@ -66,7 +66,7 @@ Needed for compiling programs that link with the library. Summary: Development files for the Zstd compression library Group: Development/Libraries/C and C++ BuildRequires: glibc-devel-static -Requires: libz%{name}-devel = %{version} +Requires: lib%{name}-devel = %{version} %description -n lib%{name}-devel-static Zstd, short for Zstandard, is a lossless compression algorithm,