2023-04-17 07:34:13 +08:00
|
|
|
Name: libcap
|
2023-04-07 00:47:04 +08:00
|
|
|
# NOTE - 2.68 is out, 03/28/2023
|
2023-04-17 07:34:13 +08:00
|
|
|
Version: 2.67
|
|
|
|
Release: %{?repo}0.rc5%{?dist}
|
|
|
|
Summary: POSIX.1e implenentation library
|
2023-04-07 00:47:04 +08:00
|
|
|
|
2023-04-17 07:34:13 +08:00
|
|
|
Group: System Environment/Libraries
|
|
|
|
License: BSD 3-clause and GPLv2
|
|
|
|
URL: https://sites.google.com/site/fullycapable/
|
|
|
|
Source0: https://www.kernel.org/pub/linux/libs/security/linux-privs/libcap2/%{name}-%{version}.tar.xz
|
2023-04-07 00:47:04 +08:00
|
|
|
|
2023-04-17 07:34:13 +08:00
|
|
|
BuildRequires: libattr-devel
|
2023-04-07 00:47:04 +08:00
|
|
|
|
|
|
|
%description
|
|
|
|
Libcap is a library for getting and setting POSIX.1e (formerly POSIX 6)
|
|
|
|
draft 15 capabilities.
|
|
|
|
|
2023-04-17 13:31:59 +08:00
|
|
|
%package utils
|
2023-04-17 07:34:13 +08:00
|
|
|
Group: System Administration/Utilities
|
|
|
|
Summary: libcap utilities
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2023-04-07 00:47:04 +08:00
|
|
|
|
2023-04-17 07:34:13 +08:00
|
|
|
%description utils
|
2023-04-07 00:47:04 +08:00
|
|
|
This package includes the libcap system administration utilities.
|
|
|
|
|
|
|
|
%package devel
|
2023-04-17 07:34:13 +08:00
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Development files for libcap
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2023-04-07 00:47:04 +08:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package includes the developer files needed to compile software
|
|
|
|
that links against the libcap libraries.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
sed -i '/install -m.*STA/d' libcap/Makefile
|
|
|
|
make %{?_smp_mflags} prefix=%{_prefix} lib=%{_lib}
|
|
|
|
|
|
|
|
%check
|
|
|
|
make test > %{name}-make.test.log 2>&1
|
|
|
|
|
|
|
|
%install
|
|
|
|
make prefix=%{_prefix} lib=%{_lib} DESTDIR=%{buildroot} install
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%attr(0755,root,root) %{_libdir}/libcap.so.2.67
|
|
|
|
%attr(0755,root,root) %{_libdir}/libpsx.so.2.67
|
|
|
|
%{_libdir}/libcap.so.2
|
|
|
|
%{_libdir}/libpsx.so.2
|
|
|
|
%license License
|
|
|
|
%doc README License %{name}-make.test.log
|
|
|
|
|
2023-04-17 07:34:13 +08:00
|
|
|
%files utils
|
2023-04-07 00:47:04 +08:00
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%attr(0755,root,root) %{_sbindir}/capsh
|
|
|
|
%attr(0755,root,root) %{_sbindir}/getcap
|
|
|
|
%attr(0755,root,root) %{_sbindir}/getpcaps
|
|
|
|
%attr(0755,root,root) %{_sbindir}/setcap
|
|
|
|
%attr(0644,root,root) %{_mandir}/man1/capsh.1*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man8/captree.8*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man8/getcap.8*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man8/getpcaps.8*
|
|
|
|
%attr(0644,root,root) %{_mandir}/man8/setcap.8*
|
|
|
|
%license License
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%attr(0644,root,root) %{_includedir}/sys/capability.h
|
|
|
|
%attr(0644,root,root) %{_includedir}/sys/psx_syscall.h
|
|
|
|
%{_libdir}/libcap.so
|
|
|
|
%{_libdir}/libpsx.so
|
|
|
|
%attr(0644,root,root) %{_libdir}/pkgconfig/libcap.pc
|
|
|
|
%attr(0644,root,root) %{_libdir}/pkgconfig/libpsx.pc
|
|
|
|
%attr(0644,root,root) %{_mandir}/man3/*.3*
|
2023-04-17 07:34:13 +08:00
|
|
|
%license License
|
2023-04-07 00:47:04 +08:00
|
|
|
|
|
|
|
%changelog
|
2023-04-17 07:34:13 +08:00
|
|
|
* Sun Apr 16 2023 Michael A. Peters <anymouseprophet@gmail.com> - 2.67-0.rc5
|
|
|
|
- Fix utils package name, tabs to spaces
|
|
|
|
|
2023-04-07 00:47:04 +08:00
|
|
|
* Thu Apr 06 2023 Michael A. Peters <anymouseprophet@gmail.com> - 2.67-0.rc1
|
|
|
|
- Initial spec file for YJL (RPM bootstrapping LFS/BLFS 11.3)
|