diff options
author | John Morris <john@zultron.com> | 2013-08-07 11:14:56 -0500 |
---|---|---|
committer | Chris St. Pierre <chris.a.st.pierre@gmail.com> | 2013-10-28 08:05:24 -0400 |
commit | 53bcca20240220e8c9710a3ab048deebc308fc9a (patch) | |
tree | b17c6529a49a3714843fb365e93d1a4f53cc49d9 | |
parent | dd9bab35c85bd8ffc6178457fa8db8844b58ba89 (diff) | |
download | bcfg2-53bcca20240220e8c9710a3ab048deebc308fc9a.tar.gz bcfg2-53bcca20240220e8c9710a3ab048deebc308fc9a.tar.bz2 bcfg2-53bcca20240220e8c9710a3ab048deebc308fc9a.zip |
misc/bcfg2.spec: BuildRequires: buildsys-macros for el5
By default, el5 doesn't have the %%rhel macro, provided by the
buildsys-macros package.
EPEL build servers install buildsys-macros by default, but explicitly
requiring it may help builds in other environments
-rw-r--r-- | misc/bcfg2.spec | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/misc/bcfg2.spec b/misc/bcfg2.spec index 76624e142..091cc52b2 100644 --- a/misc/bcfg2.spec +++ b/misc/bcfg2.spec @@ -58,6 +58,12 @@ BuildRequires: python-CherryPy >= 3 %else # ! suse_version BuildRequires: python-daemon BuildRequires: python-inotify +%if "%{_vendor}" == "redhat" && 0%{!?rhel:1} && 0%{!?fedora:1} +# by default, el5 doesn't have the %%rhel macro, provided by this +# package; EPEL build servers install buildsys-macros by default, but +# explicitly requiring this may help builds in other environments +BuildRequires: buildsys-macros +%else # vendor != redhat || rhel defined %if 0%{?rhel} && 0%{?rhel} < 6 BuildRequires: python-ssl %else # rhel > 5 @@ -77,6 +83,7 @@ BuildRequires: python-cherrypy >= 3 BuildRequires: python-mock BuildRequires: pylint %endif # rhel > 5 +%endif # vendor != redhat || rhel defined %endif # ! suse_version %if 0%{?mandriva_version} |