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 Name: libcap-ng
Version: 0.7.9 Version: 0.7.9
Release: 1mamba Release: 2mamba
Summary: An alternate posix capabilities library Summary: An alternate posix capabilities library
Group: System/Libraries Group: System/Libraries
Vendor: openmamba Vendor: openmamba
Distribution: 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/ URL: http://people.redhat.com/sgrubb/libcap-ng/
Source: http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-%{version}.tar.gz Source: http://people.redhat.com/sgrubb/libcap-ng/libcap-ng-%{version}.tar.gz
License: GPL 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. 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 Group: Development/Libraries
Summary: Python 3 bindings for libcap-ng library Summary: Python 3 bindings for libcap-ng library
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} 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 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. 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 %build
%configure \ %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 %make
@ -82,10 +89,10 @@ It also lets you set the file system based capabilities.
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall pkgconfigdir=%{_libdir}/pkgconfig %makeinstall pkgconfigdir=%{_libdir}/pkgconfig
# Remove static libraries ## Remove static libraries
rm -f %{buildroot}/%{_lib}/libcap-ng.a #rm -f %{buildroot}/%{_lib}/libcap-ng.a
rm -f %{buildroot}/%{python_sitearch}/_capng.a #rm -f %{buildroot}/%{python_sitearch}/_capng.a
rm -f %{buildroot}/%{python_sitearch}/_capng.la #rm -f %{buildroot}/%{python_sitearch}/_capng.la
%clean %clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" [ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -95,41 +102,45 @@ rm -f %{buildroot}/%{python_sitearch}/_capng.la
%files %files
%defattr(-,root,root) %defattr(-,root,root)
%attr(755,root,root) /%{_lib}/libcap-ng.so.* %{_libdir}/libcap-ng.so.*
%doc AUTHORS COPYING.LIB %doc AUTHORS COPYING.LIB
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
%attr(644,root,root) %{_datadir}/aclocal/cap-ng.m4 %{_datadir}/aclocal/cap-ng.m4
%attr(644,root,root) %{_includedir}/cap-ng.h %{_includedir}/cap-ng.h
%attr(755,root,root) /%{_lib}/libcap-ng.la %{_libdir}/libcap-ng.la
%attr(755,root,root) /%{_lib}/libcap-ng.so %{_libdir}/libcap-ng.so
%{_libdir}/pkgconfig/libcap-ng.pc %{_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 %doc ChangeLog README
%files -n python-libcap-ng %files -n python-libcap-ng
%defattr(-,root,root) %defattr(-,root,root)
%attr(755,root,root) %{python_sitearch}/_capng.so %{python_sitearch}/_capng.la
%attr(644,root,root) %{python_sitearch}/capng.py* %{python_sitearch}/_capng.so
%{python3_sitearch}/__pycache__/capng.cpython-33.py* %{python_sitearch}/capng.py*
%files -n python3-libcap-ng %files -n python-libcap-ng-py36
%defattr(-,root,root) %defattr(-,root,root)
%{python3_sitearch}/_capng.la %{python36_sitearch}/_capng.la
%{python3_sitearch}/_capng.so %{python36_sitearch}/_capng.so
%{python3_sitearch}/capng.py %{python36_sitearch}/capng.py
%{python36_sitearch}/__pycache__/capng.cpython-*.pyc
%files utils %files utils
%defattr(-,root,root) %defattr(-,root,root)
%attr(755,root,root) %{_bindir}/captest %{_bindir}/captest
%attr(755,root,root) %{_bindir}/filecap %{_bindir}/filecap
%attr(755,root,root) %{_bindir}/netcap %{_bindir}/netcap
%attr(755,root,root) %{_bindir}/pscap %{_bindir}/pscap
%attr(644,root,root) %{_mandir}/man8/*.8* %{_mandir}/man8/*.8*
%doc COPYING %doc COPYING
%changelog %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 * Thu Mar 22 2018 Automatic Build System <autodist@mambasoft.it> 0.7.9-1mamba
- automatic version update by autodist - automatic version update by autodist