diff --git a/libcap.spec b/libcap.spec index 1229a92..2da2e56 100644 --- a/libcap.spec +++ b/libcap.spec @@ -1,6 +1,6 @@ Name: libcap Version: 2.25 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Library for getting and setting POSIX.1e capabilities URL: https://sites.google.com/site/fullycapable/ License: GPLv2 @@ -18,13 +18,25 @@ BuildRequires: libattr-devel pam-devel perl libcap is a library for getting and setting POSIX.1e (formerly POSIX 6) draft 15 capabilities. +%package static +Summary: Static libraries for libcap development +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} + +%description static +The libcap-static package contains static libraries needed to develop programs +that use libcap and need to be statically linked. + +libcap is a library for getting and setting POSIX.1e (formerly POSIX 6) +draft 15 capabilities. + %package devel Summary: Development files for libcap Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel -Development files (Headers, libraries for static linking, etc) for libcap. +Development files (Headers, etc) for libcap. libcap is a library for getting and setting POSIX.1e (formerly POSIX 6) draft 15 capabilities. @@ -52,9 +64,6 @@ mkdir -p %{buildroot}/%{_mandir}/man{2,3,8} mv -f doc/*.3 %{buildroot}/%{_mandir}/man3/ cp -f %{SOURCE1} %{buildroot}/%{_mandir}/man8/ -# remove static lib -rm -f %{buildroot}/%{_libdir}/libcap.a - chmod +x %{buildroot}/%{_libdir}/*.so.* %post -p /sbin/ldconfig @@ -70,6 +79,9 @@ chmod +x %{buildroot}/%{_libdir}/*.so.* %{_mandir}/man8/* %{_libdir}/security/pam_cap.so +%files static +%{_libdir}/libcap.a + %files devel %{_includedir}/* %{_libdir}/*.so @@ -77,6 +89,9 @@ chmod +x %{buildroot}/%{_libdir}/*.so.* %{_libdir}/pkgconfig/libcap.pc %changelog +* Thu Dec 15 2016 Karsten Hopp - 2.25-4 +- add -static subpackage (rhbz#1380251) + * Sun Nov 27 2016 Lubomir Rintel - 2.25-3 - Add perl BR to fix FTBFS