[Rpm-maint] [draft] spec file unification: autotools based projects

Mark Hatle mark.hatle at windriver.com
Thu Jul 17 15:37:31 UTC 2008

Stanislav Brabec wrote:
> The standard %setup macro should unpack these packages in convenient
> way:
> %prep
> %setup -q
> Configuration and compilation
> %build
> Packagers are encouraged to call autoreconf whenever possible. It
> guarantees correct build of packages on platforms, that was not
> supported by autotools in the time of the source release.
> autoreconf -f -i

I think there is some argument that running the autotools at the end of 
the %prep may be appropriate.  It all depends on what you expect out of 
the %prep.

If the purpose of %prep is simply to unpack and patch the source, then 
autoreconf is not appropriate there.

If the purpose of %prep is to prepare the software to be 
configured/built then autoreconf may be appropriate.  I think once a 
statement is made, then the appropriate solution can be chosen and 


More information about the Rpm-maint mailing list