- Download https://github.com/pcharlesleddy/misc/blob/master/monit.spec
- change "_topdir" to match your local system.
- cd into what you set _topdir to
- mkdir -p {BUILD,RPMS,SOURCES,SPECS,SRPMS,tmp}
- Download monit-5.5.tar.gz file and put it in the SOURCES directory
- Put monit.spec in the SPECS directory
- rpmbuild -v -bb --clean SPECS/monit.spec
- yum -y install rpmdevtools
- Output should mention where the rpm ended up
- rpm -qlp on the rpm file to see what's in it
Gory details: http://fedoraproject.org/wiki/How_to_create_an_RPM_package
Notes
Notes
- "%spec -q" means be "quiet" when untarring, not that interesting, but people use it a lot
No comments:
Post a Comment
Note: only a member of this blog may post a comment.