Ask Your Question
0

autoreconf in spec file

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

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

skytux gravatar image

Hi,

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

autoreconf -vi
./configure
make

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
0

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.

HTH,

Germán.

edit flag offensive delete link more
0

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

Comments

thanks for the information guys, very useful

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

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:

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

Is this correct?

edit flag offensive delete link more

Question Tools

Stats

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

Seen: 1,026 times

Last updated: Nov 26 '13