1Summary: An alternate POSIX capabilities library 2Name: libcap-ng 3Version: 0.8.5 4Release: 1%{?dist} 5License: LGPLv2+ 6Group: System Environment/Libraries 7URL: http://people.redhat.com/sgrubb/libcap-ng 8Source0: http://people.redhat.com/sgrubb/libcap-ng/%{name}-%{version}.tar.gz 9BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) 10BuildRequires: kernel-headers >= 2.6.11 11BuildRequires: libattr-devel 12 13%description 14Libcap-ng is a library that makes using POSIX capabilities easier 15 16%package devel 17Summary: Header files for libcap-ng library 18License: LGPLv2+ 19Group: Development/Libraries 20Requires: kernel-headers >= 2.6.11 21Requires: %{name} = %{version}-%{release} 22Requires: pkgconfig 23 24%description devel 25The libcap-ng-devel package contains the files needed for developing 26applications that need to use the libcap-ng library. 27 28%package python3 29Summary: Python3 bindings for libcap-ng library 30License: LGPLv2+ 31Group: Development/Libraries 32BuildRequires: python3-devel swig 33Requires: %{name} = %{version}-%{release} 34 35%description python3 36The libcap-ng-python3 package contains the bindings so that libcap-ng 37and can be used by python3 applications. 38 39%package utils 40Summary: Utilities for analyzing and setting file capabilities 41License: GPLv2+ 42Group: Development/Libraries 43 44%description utils 45The libcap-ng-utils package contains applications to analyze the 46POSIX capabilities of all the program running on a system. It also 47lets you set the file system based capabilities. 48 49%prep 50%setup -q 51 52%build 53%configure --libdir=%{_libdir} --with-python3 54make CFLAGS="%{optflags}" %{?_smp_mflags} 55 56%install 57make DESTDIR="${RPM_BUILD_ROOT}" INSTALL='install -p' install 58 59# Remove a couple things so they don't get picked up 60rm -f $RPM_BUILD_ROOT/%{_libdir}/libcap-ng.la 61rm -f $RPM_BUILD_ROOT/%{_libdir}/libcap-ng.a 62rm -f $RPM_BUILD_ROOT/%{_libdir}/libdrop_ambient.la 63rm -f $RPM_BUILD_ROOT/%{_libdir}/libdrop_ambient.a 64rm -f $RPM_BUILD_ROOT/%{_libdir}/python?.?/site-packages/_capng.a 65rm -f $RPM_BUILD_ROOT/%{_libdir}/python?.?/site-packages/_capng.la 66 67%check 68make check 69 70%ldconfig_scriptlets 71 72%files 73%defattr(-,root,root,-) 74%doc COPYING.LIB 75/%{_libdir}/libcap-ng.so.* 76/%{_libdir}/libdrop_ambient.so.* 77%attr(0644,root,root) %{_mandir}/man7/* 78 79%files devel 80%defattr(-,root,root,-) 81%attr(0644,root,root) %{_mandir}/man3/* 82%attr(0644,root,root) %{_includedir}/cap-ng.h 83%{_libdir}/libcap-ng.so 84%{_libdir}/libdrop_ambient.so 85%attr(0644,root,root) %{_datadir}/aclocal/cap-ng.m4 86%{_libdir}/pkgconfig/libcap-ng.pc 87 88%files python3 89%defattr(-,root,root,-) 90%attr(755,root,root) %{python3_sitearch}/* 91 92%files utils 93%defattr(-,root,root,-) 94%doc COPYING 95%attr(0755,root,root) %{_bindir}/* 96%attr(0644,root,root) %{_mandir}/man8/* 97 98%changelog 99* Tue Apr 09 2024 Steve Grubb <sgrubb@redhat.com> 0.8.5-1 100- New upstream release 101 102