|
@@ -1,12 +1,13 @@
|
|
|
-%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
+%define build_compat32 %{?_with_compat32:1}%{!?_with_compat32:0}
|
|
|
+%define _unpackaged_files_terminate_build 1
|
|
|
|
|
|
Summary: An alternate posix capabilities library
|
|
|
Name: libcap-ng
|
|
|
-Version: 0.7.3
|
|
|
-Release: 2%{?_dist_release}
|
|
|
+Version: 0.7.9
|
|
|
+Release: 1%{?_dist_release}
|
|
|
License: LGPLv2+
|
|
|
Group: System Environment/Libraries
|
|
|
-URL: http://people.redhat.com/sgrubb/libcap-ng
|
|
|
+URL: http://people.redhat.com/sgrubb/libcap-ng/
|
|
|
Source0: http://people.redhat.com/sgrubb/libcap-ng/%{name}-%{version}.tar.gz
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
BuildRequires: kernel-headers >= 2.6.11
|
|
@@ -14,7 +15,6 @@ BuildRequires: libattr-devel
|
|
|
|
|
|
Vendor: Project Vine
|
|
|
Distribution: Vine Linux
|
|
|
-Packager: Takemikaduchi
|
|
|
|
|
|
%description
|
|
|
Libcap-ng is a library that makes using posix capabilities easier
|
|
@@ -36,12 +36,25 @@ Summary: Python bindings for libcap-ng library
|
|
|
License: LGPLv2+
|
|
|
Group: Development/Libraries
|
|
|
BuildRequires: python-devel swig
|
|
|
+BuildRequires: python-rpm-macros
|
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
%description python
|
|
|
The libcap-ng-python package contains the bindings so that libcap-ng
|
|
|
and can be used by python applications.
|
|
|
|
|
|
+%package python3
|
|
|
+Summary: Python3 bindings for libcap-ng library
|
|
|
+License: LGPLv2+
|
|
|
+Group: Development/Libraries
|
|
|
+BuildRequires: python3-devel swig
|
|
|
+BuildRequires: python3-rpm-macros
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
|
+
|
|
|
+%description python3
|
|
|
+The libcap-ng-python3 package contains the bindings so that libcap-ng
|
|
|
+and can be used by python3 applications.
|
|
|
+
|
|
|
%package utils
|
|
|
Summary: Utilities for analysing and setting file capabilities
|
|
|
License: GPLv2+
|
|
@@ -53,11 +66,29 @@ The libcap-ng-utils package contains applications to analyse the
|
|
|
posix capabilities of all the program running on a system. It also
|
|
|
lets you set the file system based capabilities.
|
|
|
|
|
|
+%package -n compat32-%{name}
|
|
|
+Summary: An alternate posix capabilities library
|
|
|
+Requires: %{name} = %{version}-%{release}
|
|
|
+
|
|
|
+%description -n compat32-%{name}
|
|
|
+Libcap-ng is a library that makes using posix capabilities easier
|
|
|
+
|
|
|
+%package -n compat32-%{name}-devel
|
|
|
+Summary: Header files for libcap-ng library
|
|
|
+License: LGPLv2+
|
|
|
+Group: Development/Libraries
|
|
|
+Requires: %{name}-devel = %{version}-%{release}
|
|
|
+
|
|
|
+%description -n compat32-%{name}-devel
|
|
|
+The libcap-ng-devel package contains the files needed for developing
|
|
|
+applications that need to use the libcap-ng library.
|
|
|
+
|
|
|
+
|
|
|
%prep
|
|
|
%setup -q
|
|
|
|
|
|
%build
|
|
|
-%configure --libdir=/%{_lib}
|
|
|
+%configure --libdir=/%{_lib} --with-python --with-python3
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
%install
|
|
@@ -87,9 +118,10 @@ make check
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
-
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
+%post -n compat32-%{name} -p /sbin/ldconfig
|
|
|
+%postun -n compat32-%{name} -p /sbin/ldconfig
|
|
|
|
|
|
%files
|
|
|
%defattr(-,root,root,-)
|
|
@@ -109,13 +141,34 @@ rm -rf $RPM_BUILD_ROOT
|
|
|
%attr(755,root,root) /%{_libdir}/python?.?/site-packages/_capng.so
|
|
|
%{python_sitearch}/capng.py*
|
|
|
|
|
|
+%files python3
|
|
|
+%defattr(-,root,root,-)
|
|
|
+%attr(755,root,root) %{python3_sitearch}/*
|
|
|
+%{python3_sitearch}/capng.py*
|
|
|
+
|
|
|
%files utils
|
|
|
%defattr(-,root,root,-)
|
|
|
%doc COPYING
|
|
|
%attr(0755,root,root) %{_bindir}/*
|
|
|
%attr(0644,root,root) %{_mandir}/man8/*
|
|
|
|
|
|
+%if %{build_compat32}
|
|
|
+%files -n compat32-%{name}
|
|
|
+%defattr(-,root,root,-)
|
|
|
+%attr(0755,root,root) /%{_lib}/libcap-ng.so.*
|
|
|
+
|
|
|
+%files -n compat32-%{name}-devel
|
|
|
+%defattr(-,root,root,-)
|
|
|
+%attr(0755,root,root) %{_libdir}/libcap-ng.so
|
|
|
+%{_libdir}/pkgconfig/libcap-ng.pc
|
|
|
+%endif
|
|
|
+
|
|
|
%changelog
|
|
|
+* Tue Feb 27 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.7.9-1
|
|
|
+- new upstream release.
|
|
|
+- added compat32-* packages.
|
|
|
+- enabled python3 modules.
|
|
|
+
|
|
|
* Sat Jan 04 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.7.3-2
|
|
|
- rebuild with VineSeed environment
|
|
|
|