From 53bcca20240220e8c9710a3ab048deebc308fc9a Mon Sep 17 00:00:00 2001 From: John Morris Date: Wed, 7 Aug 2013 11:14:56 -0500 Subject: 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 --- misc/bcfg2.spec | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'misc/bcfg2.spec') 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} -- cgit v1.2.3-1-g7c22