Hi,
I have one spec with which I try to build openSUSE and Fedora.
In the Fedora-Build I get an Error:
29s] + exec rpmbuild -ba --define '_srcdefattr (-,root,root)' --nosignature --define 'disturl obs://build.opensuse.org/home:DocB/Fedora_17/c91491ff75dca97ee2591c96068ea0af-hylafax+' /home/abuild/rpmbuild/SOURCES/hylafax+.spec
29s] error: line 246: Second %post
Which is quite strange, as line 246 is in the branch for openSUSE:
%if 0%{?suse_version} < 1200
#pre section will be skipped - we assume no migrations from prior 4.1 release
%post
%{fillup_and_insserv %{name}}
/sbin/ldconfig
if 0$1 -eq 1 ]; then
/sbin/chkconfig --add hylafax+
fi
The Fedora section is processed earlier in
%if 0%{?fedora} >= 16
%post
… which obviously works. So why is the suse_version triggering work in the Fedora section?
Any hints appreciated!
TIA/Axel