From 50f07b8abf0edbedc1ae2eece58059063d866a02 Mon Sep 17 00:00:00 2001 From: Miroslav Grepl Date: Jul 12 2011 12:59:13 +0000 Subject: Fix spec file --- diff --git a/selinux-policy.spec b/selinux-policy.spec index b41e2be..5861f29 100644 --- a/selinux-policy.spec +++ b/selinux-policy.spec @@ -209,6 +209,9 @@ else \ %relabel %2 \ fi; +%define modulesList() \ +awk '$1 !~ "/^#/" && $2 == "=" && $3 == "module" { printf "%%s.pp ", $1 }' ./policy/modules.conf > %{buildroot}/%{_usr}/share/selinux/%1/modules.lst \ + %description SELinux Reference Policy - modular. Based off of reference policy: Checked out revision 2.20091117 @@ -251,7 +254,7 @@ make clean # Commented out because only minimum ref policy currently builds %makeCmds minimum mcs n y allow %installCmds minimum mcs n y allow -awk '$1 !~ "/^#/" && $2 == "=" && $3 == "module" { printf "%%s.pp ", $1 }' ./policy/modules.conf > %{buildroot}/%{_usr}/share/selinux/%1/modules.lst +%modulesList minimum %endif %if %{BUILD_MLS} @@ -416,7 +419,7 @@ exit 0 %defattr(-,root,root,-) %config(noreplace) %{_sysconfdir}/selinux/minimum/contexts/users/unconfined_u %fileList minimum -%{_usr}/share/selinux/%1/modules.lst +%{_usr}/share/selinux/minimum/modules.lst %endif %if %{BUILD_MLS}