Hello,
I am trying to build a RPM from source code after making some modifications to add a new command-line flag and associated functionality. I plan to make a pull request at some point, but for now I am trying to build my own RPM so that we can use it in the meantime. I used the link provided to the suricata-rpms GitHub repo that was posted in this topic and have been able to make it to the very end of the rpmbuild process before it errors out due to the manpages directory.
This is the error message I receive:
File not found: /root/rpmbuild/BUILDROOT/suricata-7.0.5_dyn-2.el8.x86_64/usr/share/man/man1/*
That error message is triggered by the following line in the suricata.spec file in the %files section:
%attr(644,root,root) %{_mandir}/man1/*
I have been using the suricata.spec file in the 7.0/ folder in the suricata-rpms repo and I didn’t see anything that was copying or moving the manpages files to that directory. I am using sphinx-build to create the manpages files in the doc/userguide/manpages/ directory in the source code folder, but I’m unsure if I need to place them in a specific directory or something for them to be copied to the %{_mandir}/man1/ directory in the suricata.spec file once I run rpmbuild. Does anyone know if this is something I need to add to the suricata.spec file myself or if there is something I’m overlooking?