Summary: Libcap Name: libcap Version: 2.25 Release: 8%{?dist} License: GPLv2+ URL: https://www.gnu.org/software/hurd/community/gsoc/project_ideas/libcap.html Source0: https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/%{name}-%{version}.tar.xz %define sha1 libcap=f0b102e4a68e1bbdcb6b143b63c34a250e473088 Group: System Environment/Security Vendor: VMware, Inc. Distribution: Photon %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. %package devel Summary: Development files for libcap Group: Development/Libraries Requires: %{name} = %{version}-%{release} %description devel The libcap-devel package contains libraries, header files and documentation for developing applications that use libcap. %prep %setup -q %build sed -i 's:LIBDIR:PAM_&:g' pam_cap/Makefile make %{?_smp_mflags} %install make prefix=%{_prefix} SBINDIR=%{_sbindir} PAM_LIBDIR=%{_libdir} RAISE_SETFCAP=no DESTDIR=%{buildroot} install %ifarch aarch64 mv %{buildroot}%{_libdir} %{buildroot}%{_lib64dir} %endif chmod -v 755 %{buildroot}/usr/lib64/libcap.so %check cd progs sed -i "s|pass_capsh --chroot=\$(/bin/pwd) ==||g" quicktest.sh ./quicktest.sh %files %defattr(-,root,root) %{_lib64dir}/libcap.so.* %{_mandir}/man1/* %{_mandir}/man8/* %{_sbindir}/* %files devel %defattr(-,root,root) %{_includedir}/* %exclude %{_lib64dir}/libcap.a %{_lib64dir}/pkgconfig/* %{_lib64dir}/libcap.so %{_mandir}/man3/* %changelog * Tue Nov 14 2017 Alexey Makhalov 2.25-8 - Aarch64 support * Wed Aug 09 2017 Danut Moraru 2.25-7 - Remove capsh test that runs chroot already in chroot, failing due to expected environment/dependencies not available * Fri Apr 14 2017 Alexey Makhalov 2.25-6 - Remove attr deps. * Wed Dec 07 2016 Xiaolin Li 2.25-5 - Moved man3 to devel subpackage. * Thu Nov 24 2016 Alexey Makhalov 2.25-4 - BuildRequired attr-devel. * Thu Oct 06 2016 ChangLee 2.25-3 - Modified %check * Tue May 24 2016 Priyesh Padmavilasom 2.25-2 - GA - Bump release of all rpms * Wed Feb 24 2016 Kumar Kaushik 2.25-1 - Updating Version. * Mon Oct 12 2015 Xiaolin Li 2.24-2 - Moving static lib files to devel package. * Thu Oct 23 2014 Divya Thaluru 2.24-1 - Initial version