From 9906fbf7c2c41f7bfc62526e442d964f4dcece20 Mon Sep 17 00:00:00 2001 From: Paul Howarth Date: Thu, 24 Jul 2008 16:04:55 +0000 Subject: [PATCH] - Tweak selinux-policy version detection macro to work with current Rawhide --- mod_fcgid.spec | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mod_fcgid.spec b/mod_fcgid.spec index 3152a73..f9b56e0 100644 --- a/mod_fcgid.spec +++ b/mod_fcgid.spec @@ -11,7 +11,7 @@ Name: mod_fcgid Version: 2.2 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Apache2 module for high-performance server-side scripting Group: System Environment/Daemons License: GPL+ @@ -37,7 +37,7 @@ the number of fastcgi servers, and kicking out corrupt fastcgi servers as soon as possible. %if %{selinux_module} -%define selinux_policyver %(%{__sed} -e 's,.*selinux-policy-\\([^/]*\\)/.*,\\1,' /usr/share/selinux/devel/policyhelp) +%global selinux_policyver %(%{__sed} -e 's,.*selinux-policy-\\([^/]*\\)/.*,\\1,' /usr/share/selinux/devel/policyhelp || echo 0.0.0) %define selinux_policynum %(echo %{selinux_policyver} | %{__awk} -F. '{ printf "%d%02d%02d", $1, $2, $3 }') %package selinux Summary: SELinux policy module supporting FastCGI applications with mod_fcgid @@ -49,9 +49,7 @@ BuildRequires: %{selinux_buildreqs} # http://www.redhat.com/archives/fedora-selinux-list/2006-May/msg00102.html # Hence the versioned dependency. The versioning will hopefully be replaced by # an ABI version requirement or something similar in the future -%if "%{selinux_policyver}" != "" Requires: selinux-policy >= %{selinux_policyver} -%endif Requires: %{name} = %{version}-%{release} Requires(post): /usr/sbin/semodule, /sbin/restorecon Requires(postun): /usr/sbin/semodule, /sbin/restorecon @@ -157,6 +155,9 @@ exit 0 %endif %changelog +* Thu Jul 24 2008 Paul Howarth 2.2-5 +- Tweak selinux-policy version detection macro to work with current Rawhide + * Thu Feb 14 2008 Paul Howarth 2.2-4 - Rebuild with gcc 4.3.0 for Fedora 9