Hi there, On Wed, 12 Sep 2007, 11:37:44 +0200, Morten Bjørnsvik wrote:
Hi
Is there a rpm spec macro which tells us which distro we run? like %ifos and %ifarch. I need to separate between various distros, because setup and config differ slightly.
Currently I use in spec file:
%define distro sles
and if [ %{distro} -eq 'sles' ]; then #do sles stuff else if [ %{distro} -eq 'rhel' ]; then #do rhel stuff fi
The problem is that this needs manual changing of *.spec file Which means a build script to build the *.spec file before running rpmbuild :-(
You find such macros near the end of /usr/lib/rpm/suse_macros; this is what my SLES 10 SP1 system shows: %suse_version 1010 %sles_version 10 %ul_version 0
Thanks
HTH, cheers. l8er manfred --------------------------------------------------------------------- To unsubscribe, e-mail: opensuse-programming+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-programming+help@opensuse.org