SHA256
3
0
forked from pool/zstd

Accepting request 574132 from Archiving

- build the static library (depency for btrfsprogs-static)

OBS-URL: https://build.opensuse.org/request/show/574132
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/zstd?expand=0&rev=4
This commit is contained in:
Dominique Leuenberger 2018-02-12 09:09:41 +00:00 committed by Git OBS Bridge
commit bdb8b9d354
2 changed files with 22 additions and 2 deletions

View File

@ -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

View File

@ -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: lib%{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