rpms/redir/EL-6 import.log,1.2,1.3 redir.spec,1.3,1.4

Alexander Boström abo at root.snowtree.se
Sat May 29 05:42:26 UTC 2010

tor 2010-05-27 klockan 20:10 +0400 skrev Peter Lemenkov:

> %if 0%{?el4}%{?el5}
> echo "This is either RHEL 4 or RHEL 5"
> %else
> echo "EL-6 or Fedora"
> %endif

Absolutely. New EL releases are much more likely to be similar to recent
Fedora releases than to the previous EL release. This is also the most
readable example. It also avoids the use of %{fedora} so it will work in
hypothetical branches that are not F-x or EL-x or when building in a
build system that does not set %{fedora}. (Say, calling rpmbuild
manually on an OpenSuse box.)


More information about the devel mailing list