autoconf and epel-5

Simon Wesp cassmodiah at
Tue Feb 24 20:01:10 UTC 2009

Hi all,

i have a little issue with autoconf and epel-5

the statement of the problem:

in stands: 
CXXFLAGS="-Wall -O2"

to honor the rpmoptflags i removed this line and create a patch of my

now i have to run autoconf to implement my changes. no problem in
fedora. in epel-5 it will abort:

my idea to handle this problem is:

1) run autoconf in fedora and create a diff of the changes (as patch1)

2) handle it in the specfile: 

%if 0%{?fedora}
BuildRequires:   autoconf

%setup -q -n %{name}-%{srcversion}

# Patch to remove CXXFLAGS from
%patch0 -p1 

%if 0%{?rhel}
# Patch for autoconf 2.60
%patch1 -p1

%if 0%{?fedora}

is this the right way to solve this problem? i didn't found a helpful
text passage in the packaging-guidelines

Mit freundlichen Grüßen aus dem schönen Hainzell
Simon Wesp

More information about the epel-devel-list mailing list