2020-06-01 16:11:06 -04:00
|
|
|
#TARBALL: https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/libcap-2.31.tar.xz
|
2020-06-01 18:12:03 -04:00
|
|
|
#MD5SUM: 52120c05dc797b01f5a7ae70f4335e96;SOURCES/libcap-2.31.tar.xz
|
2019-05-24 08:27:40 -04:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
Summary: The Libcap package implements the user-space interfaces to the POSIX 1003.1e
|
|
|
|
Name: libcap
|
2020-06-01 16:11:06 -04:00
|
|
|
Version: 2.31
|
2019-05-24 08:27:40 -04:00
|
|
|
Release: 1
|
|
|
|
License: GPLv2
|
|
|
|
URL: Any
|
|
|
|
Group: LFS/Base
|
|
|
|
Source0: %{name}-%{version}.tar.xz
|
|
|
|
Requires: filesystem
|
|
|
|
%description
|
|
|
|
The Libcap package implements the user-space interfaces to the POSIX 1003.1e
|
|
|
|
capabilities available in Linux kernels. These capabilities are a partitioning
|
|
|
|
of the all powerful root privilege into a set of distinct privileges.
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{NAME}-%{VERSION}
|
|
|
|
sed -i '/install.*STALIBNAME/d' libcap/Makefile
|
|
|
|
%build
|
2020-06-01 16:11:06 -04:00
|
|
|
make lib=lib %{?_smp_mflags}
|
2019-05-24 08:27:40 -04:00
|
|
|
%install
|
2020-06-01 16:11:06 -04:00
|
|
|
make DESTDIR=%{buildroot} lib=lib prefix=%{_prefix} install
|
|
|
|
chmod -v 755 %{buildroot}%{_libdir}/libcap.so.%{version}
|
2019-05-24 08:27:40 -04:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Copy license/copying file
|
|
|
|
install -D -m644 License %{buildroot}/usr/share/licenses/%{name}/LICENSE
|
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
# Create file list
|
|
|
|
find %{buildroot} -name '*.la' -delete
|
2020-06-01 16:11:06 -04:00
|
|
|
find "${RPM_BUILD_ROOT}" -not -type d -print > filelist.list
|
|
|
|
sed -i "s|^${RPM_BUILD_ROOT}||" filelist.list
|
|
|
|
sed -i '/man\/man/d' filelist.list
|
|
|
|
sed -i '/\/usr\/share\/info/d' filelist.list
|
2019-05-24 08:27:40 -04:00
|
|
|
#-----------------------------------------------------------------------------
|
2020-06-01 16:11:06 -04:00
|
|
|
%files -f filelist.list
|
2019-05-24 08:27:40 -04:00
|
|
|
%defattr(-,root,root)
|
2019-05-25 21:36:26 -04:00
|
|
|
%{_mandir}/man1/*
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
%{_mandir}/man8/*
|
2019-05-24 08:27:40 -04:00
|
|
|
#-----------------------------------------------------------------------------
|
|
|
|
%changelog
|
2020-06-01 16:11:06 -04:00
|
|
|
* Sun May 31 2020 Chris Cromer <chris@cromer.cl> 2.31-1
|
2019-05-24 08:27:40 -04:00
|
|
|
* Wed Apr 03 2019 baho-utot <baho-utot@columbus.rr.com> 2.26-1
|
|
|
|
- Update
|
|
|
|
* Tue Jan 09 2018 baho-utot <baho-utot@columbus.rr.com> 2.25-1
|
|
|
|
- Initial build. First version
|