public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/ocsinventory-agent] epel10: Fix manpages not tagged as %doc
@ 2026-06-05 19:02 Pat Riehecky
0 siblings, 0 replies; only message in thread
From: Pat Riehecky @ 2026-06-05 19:02 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/ocsinventory-agent
Branch : epel10
Commit : c4b6a757d92992d710b2d77b4b7ee599d688cdac
Author : Pat Riehecky <riehecky@fnal.gov>
Date : 2026-06-05T14:01:25-05:00
Stats : +22/-11 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/ocsinventory-agent/c/c4b6a757d92992d710b2d77b4b7ee599d688cdac?branch=epel10
Log:
Fix manpages not tagged as %doc
---
diff --git a/ocsinventory-agent.spec b/ocsinventory-agent.spec
index 281f011..a6f5430 100644
--- a/ocsinventory-agent.spec
+++ b/ocsinventory-agent.spec
@@ -216,6 +216,7 @@ cp %{SOURCE11} README.RPM
%{make_build}
rm run-postinst
+
%install
%{make_install}
@@ -266,12 +267,20 @@ rm %{buildroot}%{perl_vendorlib}/Ocsinventory/Unix/postinst.pl
# Provided by ocsinventtory-ipdiscover
rm %{buildroot}%{_sbindir}/ipdiscover
-# set the correct permissions
-chmod 755 %{buildroot}%{_libexecdir}/%{name}/ocsinventory-agent.cron
-chmod 755 %{buildroot}%{perl_vendorlib}/Ocsinventory/Agent.pm
+# Agent.pm has an explicit attribute set so we need to tweak file list
+# this is ugly, but has maximum compat across versions/environments
+find %{buildroot}%{perl_vendorlib}/Ocsinventory -type d \
+ | sed -e "s;^%{buildroot};;" \
+ | xargs -i echo "%%dir {}" \
+ >> %{name}-perl.files
+
+find %{buildroot}%{perl_vendorlib}/Ocsinventory -type f \
+ | sed -e "s;^%{buildroot};;" \
+ | grep -v '%{perl_vendorlib}/Ocsinventory/Agent.pm' \
+ >> %{name}-perl.files
-%post
+%post
# See if sysadmin requested ocs agent run on boot
%systemd_post ocsinventory-agent-onboot.timer
@@ -281,36 +290,38 @@ chmod 755 %{buildroot}%{perl_vendorlib}/Ocsinventory/Agent.pm
# See if sysadmin requested ocs agent daily run
%systemd_post ocsinventory-agent-daily.timer
+
%files
%defattr(644,root,root,755)
+%doc %{_mandir}/man1/%{name}*
%attr(0755, root, root) %{_sbindir}/%{name}
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%dir %{_libexecdir}/%{name}/
%attr(0755, root, root) %{_libexecdir}/%{name}/ocsinventory-agent.cron
%dir %{_localstatedir}/log/%{name}
-%{_mandir}/man1/%{name}*
%{_unitdir}/*
-%files -n perl-Ocsinventory-Agent
+%files -n perl-Ocsinventory-Agent -f %{name}-perl.files
%defattr(644,root,root,755)
%doc AUTHORS Changes README.md THANKS README.RPM
%doc etc/ocsinventory-agent/softwares/example.sh
+%doc %{_mandir}/man3/Ocs*
%license LICENSE
+%dir %{_sysconfdir}/ocsinventory
+%dir %{_sysconfdir}/ocsinventory/softwares
%config(noreplace) %{_sysconfdir}/ocsinventory/%{name}.cfg
%config(noreplace) %{_sysconfdir}/ocsinventory/modules.conf
-%{perl_vendorlib}/Ocsinventory
-%{_mandir}/man3/Ocs*
+%attr(0755, root, root) %{perl_vendorlib}/Ocsinventory/Agent.pm
%dir %{_localstatedir}/lib/%{name}
-%{_localstatedir}/lib/%{name}/download
+%dir %{_localstatedir}/lib/%{name}/download
%{_localstatedir}/lib/%{name}/snmp
-%dir %{_sysconfdir}/ocsinventory
-%dir %{_sysconfdir}/ocsinventory/softwares
%changelog
* Fri Jun 5 2026 Pat Riehecky <riehecky@fnal.gov> - 2.10.5-2
- Fix incorrect permissions on %{_libexecdir}/%{name}/ocsinventory-agent.cron
+- Correct manpages not tagged as doc
* Thu Apr 23 2026 Pat Riehecky <riehecky@fnal.gov> - 2.10.5-1
- Update to 2.10.5
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-06-05 19:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-05 19:02 [rpms/ocsinventory-agent] epel10: Fix manpages not tagged as %doc Pat Riehecky
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox