Page 1 of 1

creating nrep version 3 rpm

Posted: Mon Dec 05, 2016 7:35 pm
by vuduops
I am trying to create an rpm for 3.0.1 version for nrpe using the tar.gz file. I am getting the below error. Is there a way to fix this issue ?

[XXXX SOURCES ]$ rpmbuild -ta 3.0.1.tar.gz
error: Failed to read spec file from 3.0.1.tar.gz

-Krishna

Re: creating nrep version 3 rpm

Posted: Tue Dec 06, 2016 11:13 am
by dwhitfield
Creating RPMs is out of the scope of support. Fedora has very thorough documentation on the topic: https://fedoraproject.org/wiki/How_to_c ... PM_package

If you'd like, you can file a feature request on the NRPE github: https://github.com/NagiosEnterprises/nrpe/issues/new

Re: creating nrep version 3 rpm

Posted: Tue Dec 06, 2016 11:19 am
by jfrickson
nrpe.spec is created from nrpe.spec.in during the ./configure process. So you need to run ./configure first, then re-tar and include the newly generated nrpe.spec file.

Re: creating nrep version 3 rpm

Posted: Tue Dec 06, 2016 12:44 pm
by vuduops
Thank you. I tried creating as root after the confgure and it worked.

-Krishna

Re: creating nrep version 3 rpm

Posted: Tue Dec 06, 2016 12:48 pm
by dwhitfield
It sounds like this issue has been resolved. Is it okay if we lock this thread? Thanks for choosing the Nagios forums!

Re: creating nrep version 3 rpm

Posted: Tue Dec 06, 2016 3:06 pm
by vuduops
Yes please thank you