1 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
2 %{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
8 Summary: An alternate POSIX capabilities library
10 %define rname libcap-ng
11 Url: http://people.redhat.com/sgrubb/libcap-ng
12 Group: System/Libraries
13 # http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-%{version}.tar.gz
14 Source: %{name}-%{version}.tar.bz2
15 Source2: baselibs.conf
16 Source99: libcap-ng.rpmlintrc
17 BuildRequires: kernel-headers >= 2.6.11
18 BuildRequires: libattr-devel
19 BuildRequires: pkg-config
23 Libcap-ng is a library that makes using posix capabilities easier
28 Summary: Header files for libcap-ng library
29 Group: Development/Libraries
30 Requires: %{name} = %{version}
31 Requires: kernel-headers >= 2.6.11
35 The libcap-ng-devel package contains the files needed for developing
36 applications that need to use the libcap-ng library.
41 Summary: Utilities for analysing and setting file capabilities
45 The libcap-ng-utils package contains applications to analyse the
46 posix capabilities of all the program running on a system. It also
47 lets you set the file system based capabilities.
50 %setup -q -n %{rname}-%{version}
53 %configure --disable-static --with-pic --with-python=no
59 %post -p /sbin/ldconfig
61 %postun -p /sbin/ldconfig
64 %defattr(-,root,root,-)
66 %attr(0755,root,root) %{_libdir}/%{rname}.so.%{soname}
67 %attr(0755,root,root) %{_libdir}/%{rname}.so.%{soname}.*
70 %defattr(-,root,root,-)
71 %attr(0644,root,root) %{_mandir}/man3/*.3%{ext_man}
72 %attr(0644,root,root) %{_includedir}/cap-ng.h
73 %attr(0755,root,root) %{_libdir}/%{rname}.so
74 %attr(0644,root,root) %{_datadir}/aclocal/cap-ng.m4
75 %{_libdir}/pkgconfig/%{rname}.pc
78 %defattr(-,root,root,-)
80 %attr(0755,root,root) %{_bindir}/captest
81 %attr(0755,root,root) %{_bindir}/filecap
82 %attr(0755,root,root) %{_bindir}/netcap
83 %attr(0755,root,root) %{_bindir}/pscap
84 %attr(0644,root,root) %{_mandir}/man8/*.8%{ext_man}