Limit captree to %golang_arches
RHEL has dropped i686 from golang, without which the build of captree (but not its manpage) is disabled.
This commit is contained in:
parent
a0bcf8dd16
commit
a3e0bbb8fc
@ -14,7 +14,7 @@ BuildRequires: make
|
|||||||
BuildRequires: glibc-static
|
BuildRequires: glibc-static
|
||||||
BuildRequires: gnupg2
|
BuildRequires: gnupg2
|
||||||
|
|
||||||
%ifarch aarch64 armv7hl i686 ppc64le s390x x86_64
|
%ifarch %{golang_arches}
|
||||||
BuildRequires: golang >= 1.11
|
BuildRequires: golang >= 1.11
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -46,6 +46,7 @@ draft 15 capabilities.
|
|||||||
Install libcap-devel if you want to develop or compile applications using
|
Install libcap-devel if you want to develop or compile applications using
|
||||||
libcap.
|
libcap.
|
||||||
|
|
||||||
|
%ifarch %{golang_arches}
|
||||||
%package -n captree
|
%package -n captree
|
||||||
Summary: Capability inspection utility
|
Summary: Capability inspection utility
|
||||||
|
|
||||||
@ -53,6 +54,7 @@ Summary: Capability inspection utility
|
|||||||
The captree program was inspired by the utility pstree, but it uses the
|
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
|
libcap/cap (Go package) API to explore process runtime state and display
|
||||||
the capability status of processes and threads.
|
the capability status of processes and threads.
|
||||||
|
%endif
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
gzip -cd %{SOURCE0} | %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data=-
|
gzip -cd %{SOURCE0} | %{gpgverify} --keyring='%{SOURCE2}' --signature='%{SOURCE1}' --data=-
|
||||||
@ -84,6 +86,7 @@ chmod +x %{buildroot}/%{_libdir}/*.so.*
|
|||||||
%{_mandir}/man1/capsh.1*
|
%{_mandir}/man1/capsh.1*
|
||||||
%{_mandir}/man8/{getcap,getpcaps,setcap}.8*
|
%{_mandir}/man8/{getcap,getpcaps,setcap}.8*
|
||||||
%{_libdir}/security/pam_cap.so
|
%{_libdir}/security/pam_cap.so
|
||||||
|
%exclude %{_mandir}/man8/captree.8*
|
||||||
|
|
||||||
%files static
|
%files static
|
||||||
%{_libdir}/libcap.a
|
%{_libdir}/libcap.a
|
||||||
@ -101,10 +104,12 @@ chmod +x %{buildroot}/%{_libdir}/*.so.*
|
|||||||
%{_mandir}/man3/__psx_syscall.3*
|
%{_mandir}/man3/__psx_syscall.3*
|
||||||
%{_libdir}/pkgconfig/{libcap,libpsx}.pc
|
%{_libdir}/pkgconfig/{libcap,libpsx}.pc
|
||||||
|
|
||||||
|
%ifarch %{golang_arches}
|
||||||
%files -n captree
|
%files -n captree
|
||||||
%license License
|
%license License
|
||||||
%{_sbindir}/captree
|
%{_sbindir}/captree
|
||||||
%{_mandir}/man8/captree.8*
|
%{_mandir}/man8/captree.8*
|
||||||
|
%endif
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Mon Nov 06 2023 Carlos Rodriguez-Fernandez <carlosrodrifernandez@gmail.com> - 2.69-1
|
* Mon Nov 06 2023 Carlos Rodriguez-Fernandez <carlosrodrifernandez@gmail.com> - 2.69-1
|
||||||
|
@ -8,8 +8,6 @@ expected_manpages=(
|
|||||||
'getcap(8)'
|
'getcap(8)'
|
||||||
'getpcaps(8)'
|
'getpcaps(8)'
|
||||||
'setcap(8)'
|
'setcap(8)'
|
||||||
'captree(8)'
|
|
||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
rlJournalStart
|
rlJournalStart
|
||||||
@ -18,4 +16,9 @@ rlJournalStart
|
|||||||
rlRun "man --pager=cat '${page}'"
|
rlRun "man --pager=cat '${page}'"
|
||||||
rlPhaseEnd
|
rlPhaseEnd
|
||||||
done
|
done
|
||||||
|
if rpm --eval '%{golang_arches}' | tr ' ' '\n' | grep -q -e "$(rpm --eval '%{_arch}')"; then
|
||||||
|
rlPhaseStartTest 'test captree(8)'
|
||||||
|
rlRun "man --pager=cat 'captree(8)'"
|
||||||
|
rlPhaseEnd
|
||||||
|
fi
|
||||||
rlJournalEnd
|
rlJournalEnd
|
||||||
|
Loading…
Reference in New Issue
Block a user