Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Which man page describes the usage of the top-level RPM spec file macros that are defined in RPM source files directly? I mean, %setup, %buildroot and the like, which are not in /usr/lib/rpm. Looking up the %setup options in a tutorial at rpm.org or searching through the source code isn't best of convenience.

share|improve this question

3 Answers 3

There is no man page for that, but you can create a minimal spec file using rpmdev-newspec from rpmdevtools package.

share|improve this answer

The Fedora Project hosts the best documentation on RPM out there in html format:

http://docs.fedoraproject.org/en-US/Fedora_Draft_Documentation/0.1/html-single/RPM_Guide/index.html

See also:

http://fedoraproject.org/wiki/How_to_create_an_RPM_package

Prior to these resources, my go to guide was Maximum RPM (which you also found):

http://www.rpm.org/

share|improve this answer
    
Yep, Fedora guide seems to be very well written! Should pay more attention to these 'drafts', as they seem better written than some 'normal' documentation. –  badbishop Feb 2 '13 at 7:39

As far as I am aware no such documentation exists within the man pages. Even if you review all the items available in the rpmbuild and rpm man pages it does not detail those directives.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.