Set %distro macro correctly when building against fedora core on

opensuse's buildservice (http:://build.opensuse.org)
This commit is contained in:
Steve Beattie 2007-01-18 07:33:09 +00:00
parent c72cf57b65
commit 51d047ba35
2 changed files with 18 additions and 2 deletions

View file

@ -17,7 +17,15 @@
# norootforbuild
# Check first to see if distro is already defined.
# I hate rpm macros
%if ! %{?distro:1}0
%if %{?suse_version:1}0
%define distro suse
%endif
%if %{?fedora_version:1}0
%define distro redhat
%endif
%endif
%if ! %{?distro:1}0
%define distro suse
%endif

View file

@ -18,6 +18,15 @@
# norootforbuild
# Check first to see if distro is already defined.
# I hate rpm macros
%if ! %{?distro:1}0
%if %{?suse_version:1}0
%define distro suse
%endif
%if %{?fedora_version:1}0
%define distro redhat
%endif
%endif
%if ! %{?distro:1}0
%define distro suse
%endif
@ -49,7 +58,6 @@ profiles to the AppArmor Security kernel module.
This package is part of a suite of tools that used to be named SubDomain.
%prep
%setup -q
%build