0b7dab7c |
Summary: Libcap
Name: libcap
Version: 2.25 |
f36af574 |
Release: 8%{?dist} |
0b7dab7c |
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. |
f4d17450 |
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. |
d77dd20b |
%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.
|
f4d17450 |
%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 |
f36af574 |
%ifarch aarch64
mv %{buildroot}%{_libdir} %{buildroot}%{_lib64dir}
%endif |
f4d17450 |
chmod -v 755 %{buildroot}/usr/lib64/libcap.so
%check |
18ff7a90 |
cd progs |
5dae5608 |
sed -i "s|pass_capsh --chroot=\$(/bin/pwd) ==||g" quicktest.sh |
18ff7a90 |
./quicktest.sh |
f4d17450 |
%files
%defattr(-,root,root) |
d77dd20b |
%{_lib64dir}/libcap.so.* |
f4d17450 |
%{_mandir}/man1/*
%{_mandir}/man8/* |
0bc3a918 |
%{_sbindir}/* |
d77dd20b |
%files devel
%defattr(-,root,root)
%{_includedir}/* |
7fbd3a1e |
%exclude %{_lib64dir}/libcap.a |
d77dd20b |
%{_lib64dir}/pkgconfig/*
%{_lib64dir}/libcap.so |
0b7dab7c |
%{_mandir}/man3/* |
d77dd20b |
|
f4d17450 |
%changelog |
f36af574 |
* Tue Nov 14 2017 Alexey Makhalov <amakhalov@vmware.com> 2.25-8
- Aarch64 support |
5dae5608 |
* Wed Aug 09 2017 Danut Moraru <dmoraru@vmware.com> 2.25-7 |
f36af574 |
- Remove capsh test that runs chroot already in chroot, failing due to
expected environment/dependencies not available |
7fbd3a1e |
* Fri Apr 14 2017 Alexey Makhalov <amakhalov@vmware.com> 2.25-6
- Remove attr deps. |
0b7dab7c |
* Wed Dec 07 2016 Xiaolin Li <xiaolinl@vmware.com> 2.25-5
- Moved man3 to devel subpackage. |
9b8c6e17 |
* Thu Nov 24 2016 Alexey Makhalov <amakhalov@vmware.com> 2.25-4
- BuildRequired attr-devel.
* Thu Oct 06 2016 ChangLee <changlee@vmware.com> 2.25-3
- Modified %check
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 2.25-2
- GA - Bump release of all rpms
* Wed Feb 24 2016 Kumar Kaushik <kaushikk@vmware.com> 2.25-1
- Updating Version.
* Mon Oct 12 2015 Xiaolin Li <xiaolinl@vmware.com> 2.24-2
- Moving static lib files to devel package.
* Thu Oct 23 2014 Divya Thaluru <dthaluru@vmware.com> 2.24-1
- Initial version |