Remove unwanted subpackage captree

Resolves: RHEL-52861

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
This commit is contained in:
Anderson Toshiyuki Sasaki 2024-08-13 15:10:05 +02:00
parent 7a76a0995c
commit 9a42304219

View File

@ -1,6 +1,6 @@
Name: libcap
Version: 2.69
Release: 5%{?dist}
Release: 6%{?dist}
Summary: Library for getting and setting POSIX.1e capabilities
URL: https://sites.google.com/site/fullycapable/
License: BSD-3-Clause OR GPL-2.0-only
@ -55,16 +55,6 @@ draft 15 capabilities.
Install libcap-devel if you want to develop or compile applications using
libcap.
%ifarch %{golang_arches}
%package -n captree
Summary: Capability inspection utility
%description -n captree
The captree program was inspired by the utility pstree, but it uses the
libcap/cap (Go package) API to explore process runtime state and display
the capability status of processes and threads.
%endif
%prep
gzip -cd %{SOURCE0} | %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data=-
%autosetup -p1
@ -96,6 +86,9 @@ chmod +x %{buildroot}/%{_libdir}/*.so.*
%{_mandir}/man8/{getcap,getpcaps,setcap,pam_cap}.8*
%{_libdir}/security/pam_cap.so
%exclude %{_mandir}/man8/captree.8*
# Exclude unwanted captree
%exclude %{_libdir}/captree*
%exclude %{_sbindir}/captree*
%files static
%{_libdir}/libcap.a
@ -113,14 +106,10 @@ chmod +x %{buildroot}/%{_libdir}/*.so.*
%{_mandir}/man3/__psx_syscall.3*
%{_libdir}/pkgconfig/{libcap,libpsx}.pc
%ifarch %{golang_arches}
%files -n captree
%license License
%{_sbindir}/captree
%{_mandir}/man8/captree.8*
%endif
%changelog
* Tue Aug 13 2024 Anderson Toshiyuki Sasaki <ansasaki@redhat.com> - 2.69-6
- Remove unwanted subpackage captree
* Mon Jun 24 2024 Troy Dawson <tdawson@redhat.com> - 2.69-5
- Bump release for June 2024 mass rebuild