rebuilt in %_libdir [release 0.7.9-2mamba;Sun Aug 04 2019]

This commit is contained in:
Silvan Calarco 2024-01-06 03:57:23 +01:00
parent 6f491d99c3
commit e99cbdc125

View File

@ -1,11 +1,11 @@
Name: libcap-ng
Version: 0.7.9
Release: 1mamba
Release: 2mamba
Summary: An alternate posix capabilities library
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Automatic Build System <autodist@mambasoft.it>
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://people.redhat.com/sgrubb/libcap-ng/
Source: http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-%{version}.tar.gz
License: GPL
@ -45,12 +45,14 @@ The library has some utilities to help you analyse a system for apps that may ha
This package contains the bindings so that libcap-ng and can be used by python applications.
%package -n python3-libcap-ng
%package -n python-libcap-ng-py36
Group: Development/Libraries
Summary: Python 3 bindings for libcap-ng library
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Provides: python3-libgap-ng
Obsoletes: python3-libgap-ng
%description -n python3-libcap-ng
%description -n python-libcap-ng-py36
The libcap-ng library should make programming with posix capabilities easier.
The library has some utilities to help you analyse a system for apps that may have too much privileges.
@ -74,7 +76,12 @@ It also lets you set the file system based capabilities.
%build
%configure \
--libdir=/%{_lib}
--disable-static \
PYTHON3=%{__python36} \
PYTHON3_INCLUDES=%{python36_inc} \
PYTHON3_CFLAGS=`pkg-config python-3.6 --cflags` \
PYTHON3_LIBS=`pkg-config python-3.6 --libs`
%make
@ -82,54 +89,58 @@ It also lets you set the file system based capabilities.
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall pkgconfigdir=%{_libdir}/pkgconfig
# Remove static libraries
rm -f %{buildroot}/%{_lib}/libcap-ng.a
rm -f %{buildroot}/%{python_sitearch}/_capng.a
rm -f %{buildroot}/%{python_sitearch}/_capng.la
## Remove static libraries
#rm -f %{buildroot}/%{_lib}/libcap-ng.a
#rm -f %{buildroot}/%{python_sitearch}/_capng.a
#rm -f %{buildroot}/%{python_sitearch}/_capng.la
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%attr(755,root,root) /%{_lib}/libcap-ng.so.*
%{_libdir}/libcap-ng.so.*
%doc AUTHORS COPYING.LIB
%files devel
%defattr(-,root,root)
%attr(644,root,root) %{_datadir}/aclocal/cap-ng.m4
%attr(644,root,root) %{_includedir}/cap-ng.h
%attr(755,root,root) /%{_lib}/libcap-ng.la
%attr(755,root,root) /%{_lib}/libcap-ng.so
%{_datadir}/aclocal/cap-ng.m4
%{_includedir}/cap-ng.h
%{_libdir}/libcap-ng.la
%{_libdir}/libcap-ng.so
%{_libdir}/pkgconfig/libcap-ng.pc
%attr(644,root,root) %{_mandir}/man3/capng_*.3.gz
%attr(644,root,root) %{_mandir}/man3/capng_*.3*
%doc ChangeLog README
%files -n python-libcap-ng
%defattr(-,root,root)
%attr(755,root,root) %{python_sitearch}/_capng.so
%attr(644,root,root) %{python_sitearch}/capng.py*
%{python3_sitearch}/__pycache__/capng.cpython-33.py*
%{python_sitearch}/_capng.la
%{python_sitearch}/_capng.so
%{python_sitearch}/capng.py*
%files -n python3-libcap-ng
%files -n python-libcap-ng-py36
%defattr(-,root,root)
%{python3_sitearch}/_capng.la
%{python3_sitearch}/_capng.so
%{python3_sitearch}/capng.py
%{python36_sitearch}/_capng.la
%{python36_sitearch}/_capng.so
%{python36_sitearch}/capng.py
%{python36_sitearch}/__pycache__/capng.cpython-*.pyc
%files utils
%defattr(-,root,root)
%attr(755,root,root) %{_bindir}/captest
%attr(755,root,root) %{_bindir}/filecap
%attr(755,root,root) %{_bindir}/netcap
%attr(755,root,root) %{_bindir}/pscap
%attr(644,root,root) %{_mandir}/man8/*.8*
%{_bindir}/captest
%{_bindir}/filecap
%{_bindir}/netcap
%{_bindir}/pscap
%{_mandir}/man8/*.8*
%doc COPYING
%changelog
* Sun Aug 04 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 0.7.9-2mamba
- rebuilt in %_libdir
* Thu Mar 22 2018 Automatic Build System <autodist@mambasoft.it> 0.7.9-1mamba
- automatic version update by autodist