add -static subpackage (rhbz#1380251)
This commit is contained in:
parent
b4907a9c77
commit
9f890cf8cf
25
libcap.spec
25
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 <karsten@redhat.com> - 2.25-4
|
||||
- add -static subpackage (rhbz#1380251)
|
||||
|
||||
* Sun Nov 27 2016 Lubomir Rintel <lkundrak@v3.sk> - 2.25-3
|
||||
- Add perl BR to fix FTBFS
|
||||
|
||||
|
|
Loading…
Reference in New Issue