Add static library subpackage
Some zstd APIs are only available via the static package. Make it available so they can be used. These APIs are experimental, so they should be used with care, but Fedora should still make them available. See https://facebook.github.io/zstd/zstd_manual.html#Chapter14 for more details.
This commit is contained in:
parent
37c28eeccb
commit
453ed8eead
16
zstd.spec
16
zstd.spec
|
@ -9,7 +9,7 @@
|
|||
|
||||
Name: zstd
|
||||
Version: 1.4.4
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Zstd compression library
|
||||
|
||||
License: BSD and GPLv2
|
||||
|
@ -34,9 +34,15 @@ Zstandard compression shared library.
|
|||
Summary: Header files for Zstd library
|
||||
Requires: lib%{name}%{?_isa} = %{version}-%{release}
|
||||
|
||||
%package -n lib%{name}-static
|
||||
Summary: Static variant of the Zstd library
|
||||
Requires: lib%{name}-devel = %{version}-%{release}
|
||||
|
||||
%description -n lib%{name}-devel
|
||||
Header files for Zstd library.
|
||||
|
||||
%description -n lib%{name}-static
|
||||
Static variant of the Zstd library.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
@ -65,8 +71,6 @@ CFLAGS="%{optflags}" CXXFLAGS="%{optflags} -std=c++11" make -C contrib/pzstd tes
|
|||
|
||||
%install
|
||||
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir}
|
||||
# Don't install the static lib
|
||||
rm %{buildroot}/%{_libdir}/libzstd.a
|
||||
%if 0%{?with_pzstd}
|
||||
install -D -m755 contrib/pzstd/pzstd %{buildroot}/usr/bin/pzstd
|
||||
install -D -m644 programs/%{name}.1 %{buildroot}/%{_mandir}/man1/p%{name}.1
|
||||
|
@ -106,7 +110,13 @@ install -D -m644 programs/%{name}.1 %{buildroot}/%{_mandir}/man1/p%{name}.1
|
|||
%post -n lib%{name} -p /sbin/ldconfig
|
||||
%postun -n lib%{name} -p /sbin/ldconfig
|
||||
|
||||
%files -n lib%{name}-static
|
||||
%{_libdir}/libzstd.a
|
||||
|
||||
%changelog
|
||||
* Fri May 22 2020 Avi Kivity <avi@scylladb.com> - 1.4.4-3
|
||||
- Added static library subpackage
|
||||
|
||||
* Wed Jan 15 2020 Pádraig Brady <P@draigBrady.com> - 1.4.4-1
|
||||
- Latest upstream
|
||||
|
||||
|
|
Loading…
Reference in New Issue