|
@@ -3,27 +3,28 @@
|
|
|
|
|
|
Summary: An alternate posix capabilities library
|
|
Summary: An alternate posix capabilities library
|
|
Name: libcap-ng
|
|
Name: libcap-ng
|
|
-Version: 0.7.10
|
|
+Version: 0.8.2
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
-Group: System Environment/Libraries
|
|
+Group: system
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
Distribution: Vine Linux
|
|
Distribution: Vine Linux
|
|
|
|
|
|
License: LGPLv2+
|
|
License: LGPLv2+
|
|
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
|
|
Source0: http://people.redhat.com/sgrubb/libcap-ng/%{name}-%{version}.tar.gz
|
|
|
|
+
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
BuildRequires: kernel-headers >= 2.6.11
|
|
BuildRequires: kernel-headers >= 2.6.11
|
|
BuildRequires: libattr-devel
|
|
BuildRequires: libattr-devel
|
|
|
|
|
|
-
|
|
|
|
%description
|
|
%description
|
|
Libcap-ng is a library that makes using posix capabilities easier
|
|
Libcap-ng is a library that makes using posix capabilities easier
|
|
|
|
|
|
|
|
+
|
|
%package devel
|
|
%package devel
|
|
Summary: Header files for libcap-ng library
|
|
Summary: Header files for libcap-ng library
|
|
License: LGPLv2+
|
|
License: LGPLv2+
|
|
-Group: Development/Libraries
|
|
+Group: programming
|
|
Requires: kernel-headers >= 2.6.11
|
|
Requires: kernel-headers >= 2.6.11
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: pkgconfig
|
|
Requires: pkgconfig
|
|
@@ -32,10 +33,11 @@ Requires: pkgconfig
|
|
The libcap-ng-devel package contains the files needed for developing
|
|
The libcap-ng-devel package contains the files needed for developing
|
|
applications that need to use the libcap-ng library.
|
|
applications that need to use the libcap-ng library.
|
|
|
|
|
|
|
|
+
|
|
%package python
|
|
%package python
|
|
Summary: Python bindings for libcap-ng library
|
|
Summary: Python bindings for libcap-ng library
|
|
License: LGPLv2+
|
|
License: LGPLv2+
|
|
-Group: Development/Libraries
|
|
+Group: programming
|
|
BuildRequires: python-devel swig
|
|
BuildRequires: python-devel swig
|
|
BuildRequires: python-rpm-macros
|
|
BuildRequires: python-rpm-macros
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
@@ -44,10 +46,11 @@ Requires: %{name} = %{version}-%{release}
|
|
The libcap-ng-python package contains the bindings so that libcap-ng
|
|
The libcap-ng-python package contains the bindings so that libcap-ng
|
|
and can be used by python applications.
|
|
and can be used by python applications.
|
|
|
|
|
|
|
|
+
|
|
%package python3
|
|
%package python3
|
|
Summary: Python3 bindings for libcap-ng library
|
|
Summary: Python3 bindings for libcap-ng library
|
|
License: LGPLv2+
|
|
License: LGPLv2+
|
|
-Group: Development/Libraries
|
|
+Group: programming
|
|
BuildRequires: python3-devel swig
|
|
BuildRequires: python3-devel swig
|
|
BuildRequires: python3-rpm-macros
|
|
BuildRequires: python3-rpm-macros
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
@@ -56,10 +59,11 @@ Requires: %{name} = %{version}-%{release}
|
|
The libcap-ng-python3 package contains the bindings so that libcap-ng
|
|
The libcap-ng-python3 package contains the bindings so that libcap-ng
|
|
and can be used by python3 applications.
|
|
and can be used by python3 applications.
|
|
|
|
|
|
|
|
+
|
|
%package utils
|
|
%package utils
|
|
Summary: Utilities for analysing and setting file capabilities
|
|
Summary: Utilities for analysing and setting file capabilities
|
|
License: GPLv2+
|
|
License: GPLv2+
|
|
-Group: Development/Libraries
|
|
+Group: admin-tools
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
%description utils
|
|
%description utils
|
|
@@ -67,17 +71,20 @@ The libcap-ng-utils package contains applications to analyse the
|
|
posix capabilities of all the program running on a system. It also
|
|
posix capabilities of all the program running on a system. It also
|
|
lets you set the file system based capabilities.
|
|
lets you set the file system based capabilities.
|
|
|
|
|
|
|
|
+
|
|
%package -n compat32-%{name}
|
|
%package -n compat32-%{name}
|
|
Summary: An alternate posix capabilities library
|
|
Summary: An alternate posix capabilities library
|
|
|
|
+Group: system
|
|
Requires: %{name} = %{version}-%{release}
|
|
Requires: %{name} = %{version}-%{release}
|
|
|
|
|
|
%description -n compat32-%{name}
|
|
%description -n compat32-%{name}
|
|
Libcap-ng is a library that makes using posix capabilities easier
|
|
Libcap-ng is a library that makes using posix capabilities easier
|
|
|
|
|
|
|
|
+
|
|
%package -n compat32-%{name}-devel
|
|
%package -n compat32-%{name}-devel
|
|
Summary: Header files for libcap-ng library
|
|
Summary: Header files for libcap-ng library
|
|
|
|
+Group: programming
|
|
License: LGPLv2+
|
|
License: LGPLv2+
|
|
-Group: Development/Libraries
|
|
|
|
Requires: %{name}-devel = %{version}-%{release}
|
|
Requires: %{name}-devel = %{version}-%{release}
|
|
|
|
|
|
%description -n compat32-%{name}-devel
|
|
%description -n compat32-%{name}-devel
|
|
@@ -85,13 +92,18 @@ The libcap-ng-devel package contains the files needed for developing
|
|
applications that need to use the libcap-ng library.
|
|
applications that need to use the libcap-ng library.
|
|
|
|
|
|
|
|
|
|
|
|
+%debug_package
|
|
|
|
+
|
|
|
|
+
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
|
|
|
|
|
|
+
|
|
%build
|
|
%build
|
|
%configure --libdir=/%{_lib} --with-python --with-python3
|
|
%configure --libdir=/%{_lib} --with-python --with-python3
|
|
make %{?_smp_mflags}
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
+
|
|
%install
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
make DESTDIR="${RPM_BUILD_ROOT}" install
|
|
make DESTDIR="${RPM_BUILD_ROOT}" install
|
|
@@ -109,31 +121,40 @@ mv $RPM_BUILD_ROOT/%{_lib}/pkgconfig $RPM_BUILD_ROOT%{_libdir}
|
|
# Remove a couple things so they don't get picked up
|
|
# Remove a couple things so they don't get picked up
|
|
rm -f $RPM_BUILD_ROOT/%{_lib}/libcap-ng.la
|
|
rm -f $RPM_BUILD_ROOT/%{_lib}/libcap-ng.la
|
|
rm -f $RPM_BUILD_ROOT/%{_lib}/libcap-ng.a
|
|
rm -f $RPM_BUILD_ROOT/%{_lib}/libcap-ng.a
|
|
|
|
+rm -f $RPM_BUILD_ROOT/%{_lib}/libdrop_ambient.la
|
|
|
|
+rm -f $RPM_BUILD_ROOT/%{_lib}/libdrop_ambient.a
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/python?.?/site-packages/_capng.a
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/python?.?/site-packages/_capng.a
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/python?.?/site-packages/_capng.la
|
|
rm -f $RPM_BUILD_ROOT/%{_libdir}/python?.?/site-packages/_capng.la
|
|
|
|
|
|
|
|
+
|
|
%check
|
|
%check
|
|
make check
|
|
make check
|
|
|
|
|
|
|
|
+
|
|
%clean
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
+
|
|
%post -p /sbin/ldconfig
|
|
%post -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
%post -n compat32-%{name} -p /sbin/ldconfig
|
|
%post -n compat32-%{name} -p /sbin/ldconfig
|
|
%postun -n compat32-%{name} -p /sbin/ldconfig
|
|
%postun -n compat32-%{name} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
+
|
|
%files
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
%license COPYING.LIB
|
|
%license COPYING.LIB
|
|
%attr(0755,root,root) /%{_lib}/libcap-ng.so.*
|
|
%attr(0755,root,root) /%{_lib}/libcap-ng.so.*
|
|
|
|
+%attr(0755,root,root) /%{_lib}/libdrop_ambient.so.*
|
|
|
|
|
|
%files devel
|
|
%files devel
|
|
%defattr(-,root,root,-)
|
|
%defattr(-,root,root,-)
|
|
%attr(0644,root,root) %{_mandir}/man3/*
|
|
%attr(0644,root,root) %{_mandir}/man3/*
|
|
|
|
+%attr(0644,root,root) %{_mandir}/man7/*
|
|
%attr(0644,root,root) %{_includedir}/cap-ng.h
|
|
%attr(0644,root,root) %{_includedir}/cap-ng.h
|
|
%attr(0755,root,root) %{_libdir}/libcap-ng.so
|
|
%attr(0755,root,root) %{_libdir}/libcap-ng.so
|
|
|
|
+%attr(0755,root,root) /%{_lib}/libdrop_ambient.so
|
|
%attr(0644,root,root) %{_datadir}/aclocal/cap-ng.m4
|
|
%attr(0644,root,root) %{_datadir}/aclocal/cap-ng.m4
|
|
%{_libdir}/pkgconfig/libcap-ng.pc
|
|
%{_libdir}/pkgconfig/libcap-ng.pc
|
|
|
|
|
|
@@ -164,7 +185,11 @@ rm -rf $RPM_BUILD_ROOT
|
|
%{_libdir}/pkgconfig/libcap-ng.pc
|
|
%{_libdir}/pkgconfig/libcap-ng.pc
|
|
%endif
|
|
%endif
|
|
|
|
|
|
|
|
+
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Wed Feb 17 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.8.2-1
|
|
|
|
+- new upstream release.
|
|
|
|
+
|
|
* Sun Apr 12 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.7.10-1
|
|
* Sun Apr 12 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.7.10-1
|
|
- new upstream release.
|
|
- new upstream release.
|
|
|
|
|