From ea51d58adb55f3006d1c38b8cd7cad5f753df73c Mon Sep 17 00:00:00 2001 From: Daniel J Walsh Date: Thu, 22 Jan 2009 20:24:07 +0000 Subject: [PATCH] * Thu Jan 22 2009 Dan Walsh 2.0.61-5 - Move sepolgen-ifgen to post python --- policycoreutils.spec | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/policycoreutils.spec b/policycoreutils.spec index 6bea36d..a30702b 100644 --- a/policycoreutils.spec +++ b/policycoreutils.spec @@ -82,14 +82,14 @@ tar -jxf %{SOURCE8} -C %{buildroot}/ ln -sf consolehelper %{buildroot}%{_bindir}/system-config-selinux ln -sf consolehelper %{buildroot}%{_bindir}/selinux-polgengui -desktop-file-install --vendor fedora \ - --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \ - --add-category Settings \ - %{SOURCE3} +desktop-file-install --vendor fedora \ + --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \ + --add-category Settings \ + %{SOURCE3} -desktop-file-install --vendor fedora \ - --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \ - %{SOURCE6} +desktop-file-install --vendor fedora \ + --dir ${RPM_BUILD_ROOT}%{_datadir}/applications \ + %{SOURCE6} %find_lang %{name} %package python @@ -119,7 +119,11 @@ The policycoreutils-python package contains the management tools use to manage a /var/lib/sepolgen/perm_map %post python -[ -f /usr/share/selinux/devel/include/build.conf ] && /usr/bin/sepolgen-ifgen > /dev/null +[ -f /usr/share/selinux/devel/include/build.conf ] && /usr/bin/sepolgen-ifgen +exit 0 + +%triggerin python -- selinux-policy +[ -f /usr/share/selinux/devel/include/build.conf ] && /usr/bin/sepolgen-ifgen exit 0 %package newrole @@ -132,6 +136,7 @@ RBAC/MLS policy machines require newrole as a way of changing the role or level of a logged in user. %files newrole +%defattr(-,root,root) %attr(4755,root,root) %{_bindir}/newrole %{_mandir}/man1/newrole.1.gz @@ -150,6 +155,7 @@ BuildRequires: desktop-file-utils system-config-selinux is a utility for managing the SELinux environment %files gui +%defattr(-,root,root) %{_bindir}/system-config-selinux %{_bindir}/selinux-polgengui %{_datadir}/applications/fedora-system-config-selinux.desktop @@ -357,7 +363,7 @@ fi * Ensure that setfiles -p output is newline terminated from Russell Coker. * Fri Aug 1 2008 Dan Walsh 2.0.53-3 -- Allow semanage user to add group lists %groupname +- Allow semanage user to add group lists % groupname * Tue Jul 29 2008 Dan Walsh 2.0.53-2 - Fix help