Ask Your Question

autoreconf in spec file

asked 2013-11-25 15:38:26 -0500

updated 2013-11-25 17:41:47 -0500

skytux gravatar image


My upstream have released a new version and have started to autoconf. To build the source you need to run:

autoreconf -vi

Simple enough from the command line but how is this supposed to be done in a spec file? I can't find any docs on this so and want to make sure I'm doing it correctly.

Thanks, Jon

edit retag flag offensive close merge delete

3 Answers

Sort by » oldest newest most voted

answered 2013-11-25 18:01:25 -0500

skytux gravatar image

I think it is OK to run autoreconf in %build.

You also should use %configure instead of ./configure.



edit flag offensive delete link more

answered 2013-11-26 02:07:58 -0500

remi gravatar image

updated 2013-11-26 02:09:52 -0500

As said by skytux, you should use %configure macro which is the better way to honor default RPM build flags.

Notice: usually upstream include generated autconf stuff in the official tarball, so runnning running autoreconf shouldn't be required..

edit flag offensive delete link more


thanks for the information guys, very useful

jondkent gravatar imagejondkent ( 2013-11-26 16:27:45 -0500 )edit

answered 2013-11-25 16:06:35 -0500

updated 2013-11-25 17:40:45 -0500

skytux gravatar image

I've put this into my spec file:

autoreconf -vi
./configure --enable-statistics --enable-ntpdc
CFLAGS="%{optflags}" make

Is this correct?

edit flag offensive delete link more

Question Tools


Asked: 2013-11-25 15:38:26 -0500

Seen: 1,026 times

Last updated: Nov 26 '13