4 License: BSD-3-Clause and GPL-2.0
5 Summary: Library for Capabilities (linux-privs) Support
6 Url: https://sites.google.com/site/fullycapable/
8 Source: %{name}-%{version}.tar.xz
10 Source1001: libcap.manifest
12 BuildRequires: libattr-devel
13 %define debug_package_requires libcap2 = %{version}-%{release}
16 Capabilities are a measure to limit the omnipotence of the superuser.
17 Currently a program started by root or setuid root has the power to do
18 anything. Capabilities (Linux-Privs) provide a more fine-grained access
19 control. Without kernel patches, you can use this library to drop
20 capabilities within setuid binaries. If you use patches, this can be
21 done automatically by the kernel.
24 Summary: Development files for libcap
26 Requires: libcap = %{version}
29 Development files (Headers, libraries for static linking, etc) for
32 libcap is a library for getting and setting POSIX.1e (formerly POSIX 6)
33 draft 15 capabilities.
35 Install libcap-devel if you want to develop or compile applications
39 Summary: Libcap utility programs
40 Provides: %{name}-progs
43 This package contains utility programs handling capabilities via
51 lib=%{_lib} make %{?_smp_mflags} DEBUG="-g %{optflags}"
54 make install prefix=%{_prefix} DESTDIR=%{buildroot} LIBDIR=%{buildroot}/%{_lib} MANDIR=%{buildroot}%{_mandir} PKGCONFIGDIR=%{buildroot}%{_libdir}/pkgconfig RAISE_SETFCAP=no
55 # remove unneeded files
56 rm -f %{buildroot}/%{_lib}/*.*a
57 # move *.so file to libdir and relink
58 rm -f %{buildroot}/%{_lib}/*.so
59 mkdir -p %{buildroot}%{_libdir}
60 ln -s /%{_lib}/libcap.so.2 %{buildroot}%{_libdir}/libcap.so
61 %fdupes -s %{buildroot}
63 %post -p /sbin/ldconfig
65 %postun -p /sbin/ldconfig
68 %manifest %{name}.manifest
71 %attr(755,root,root) /%{_lib}/libcap.so.*
74 %manifest %{name}.manifest
81 %manifest %{name}.manifest
83 %{_includedir}/sys/capability.h
85 %{_libdir}/pkgconfig/*.pc