From efa3a5ccda85548cd065dcf90a2aa690c2a6332e Mon Sep 17 00:00:00 2001 From: "Chris St. Pierre" Date: Thu, 8 Dec 2011 17:34:56 -0500 Subject: added paranoid cache dir to spec file; fixed detection of old RHEL (cherry picked from commit bab5c0865f582f7a3ddc72210816bbd77f14d035) --- misc/bcfg2.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'misc/bcfg2.spec') diff --git a/misc/bcfg2.spec b/misc/bcfg2.spec index d19fc0b2d..54cb11ca8 100644 --- a/misc/bcfg2.spec +++ b/misc/bcfg2.spec @@ -30,7 +30,7 @@ BuildRequires: %{lxmldep} # %{rhel} wasn't set before rhel 6. so this checks for old RHEL # %systems (and potentially very old Fedora systems, too) -%if "%{_vendor}" == "redhat" && 0%{?rhel} <= 6 +%if "%{_vendor}" == "redhat" && 0%{?rhel} <= 6 && 0%{?fedora} == 0 BuildRequires: python-sphinx10 # the python-sphinx10 package doesn't set sys.path correctly, so we # have to do it for them @@ -189,6 +189,8 @@ mv build/dtd %{buildroot}%{_defaultdocdir}/bcfg2-doc-%{version}/ %{__install} -d %{buildroot}%{apache_conf}/conf.d %{__install} -m 644 misc/apache/bcfg2.conf %{buildroot}%{apache_conf}/conf.d/wsgi_bcfg2.conf +%{__mkdir_p} %{buildroot}%{_localstatedir}/cache/bcfg2 + %clean [ "%{buildroot}" != "/" ] && %{__rm} -rf %{buildroot} || exit 2 @@ -204,6 +206,7 @@ mv build/dtd %{buildroot}%{_defaultdocdir}/bcfg2-doc-%{version}/ %{_sysconfdir}/cron.hourly/bcfg2 %{_sysconfdir}/cron.daily/bcfg2 %{_prefix}/lib/bcfg2/bcfg2-cron +%{_localstatedir}/cache/bcfg2 %post -n bcfg2-server /sbin/chkconfig --add bcfg2-server -- cgit v1.2.3-1-g7c22