diff --git a/policycoreutils.spec b/policycoreutils.spec index 2d93ee6..bf3ec63 100644 --- a/policycoreutils.spec +++ b/policycoreutils.spec @@ -25,8 +25,8 @@ Patch3: policycoreutils-gui.patch Patch4: policycoreutils-sepolgen.patch BuildRequires: pam-devel libsepol-static >= %{libsepolver} libsemanage-devel >= %{libsemanagever} libselinux-devel >= %{libselinuxver} libcap-devel audit-libs-devel >= %{libauditver} gettext -Requires: /bin/mount /bin/egrep /bin/awk /usr/bin/diff rpm /bin/sed /usr/bin/make -Requires: libsepol >= %{libsepolver} libsemanage-python >= %{libsemanagever} coreutils audit-libs-python >= %{libauditver} checkpolicy libselinux-python libselinux-utils >= %{libselinuxver} +Requires: /bin/mount /bin/egrep /bin/awk /usr/bin/diff rpm /bin/sed +Requires: libsepol >= %{libsepolver} coreutils checkpolicy libselinux-utils >= %{libselinuxver} Requires(post): /sbin/service /sbin/chkconfig BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) @@ -92,6 +92,31 @@ desktop-file-install --vendor fedora \ %{SOURCE6} %find_lang %{name} +%package python +Summary: SELinux policy core python utilities +Group: System Environment/Base +Requires: policycoreutils = %{version}-%{release} +Requires: libsemanage-python >= %{libsemanagever} libselinux-python +Requires: audit-libs-python >= %{libauditver} +Requires: python >= 2.6 /usr/bin/make + +%description python +The policycoreutils-python package contains the management tools use to manage an SELinux environment. + +%files python +%defattr(-,root,root,-) +%{_sbindir}/semanage +%{_bindir}/audit2allow +%{_bindir}/audit2why +%{_bindir}/chcat +%{_bindir}/sepolgen-ifgen +%{_libdir}/python?.?/site-packages/seobject.py* +%{_libdir}/python?.?/site-packages/sepolgen/* +%dir %{_libdir}/python?.?/site-packages/sepolgen +%dir /var/lib/sepolgen +%dir /var/lib/selinux +/var/lib/sepolgen/perm_map + %package newrole Summary: The newrole application for RBAC/MLS Group: System Environment/Base @@ -108,12 +133,12 @@ or level of a logged in user. %package gui Summary: SELinux configuration GUI Group: System Environment/Base -Requires: policycoreutils = %{version}-%{release} +Requires: policycoreutils-python = %{version}-%{release} Requires: gnome-python2-gnome, pygtk2, pygtk2-libglade, gnome-python2-canvas Requires: usermode-gtk Requires: setools-console -Requires: selinux-policy-devel -Requires: python >= 2.4 +Requires: selinux-policy +Requires: python >= 2.6 BuildRequires: desktop-file-utils %description gui @@ -148,15 +173,10 @@ rm -rf %{buildroot} %{_sbindir}/restorecond %{_sbindir}/setsebool %{_sbindir}/semodule -%{_sbindir}/semanage %{_sbindir}/load_policy %{_sbindir}/sestatus %{_sbindir}/run_init %{_sbindir}/open_init_pty -%{_bindir}/sepolgen-ifgen -%{_bindir}/audit2allow -%{_bindir}/audit2why -%{_bindir}/chcat %{_bindir}/secon %{_bindir}/semodule_deps %{_bindir}/semodule_expand @@ -166,14 +186,8 @@ rm -rf %{buildroot} %config(noreplace) %{_sysconfdir}/pam.d/newrole %config(noreplace) %{_sysconfdir}/pam.d/run_init %config(noreplace) %{_sysconfdir}/sestatus.conf -%{_libdir}/python?.?/site-packages/seobject.py* %attr(755,root,root) /etc/rc.d/init.d/restorecond %config(noreplace) /etc/selinux/restorecond.conf -%dir %{_libdir}/python?.?/site-packages/sepolgen -%{_libdir}/python?.?/site-packages/sepolgen/* -%dir /var/lib/sepolgen -%dir /var/lib/selinux -/var/lib/sepolgen/perm_map %preun if [ $1 -eq 0 ]; then @@ -192,6 +206,9 @@ if [ "$1" -ge "1" ]; then fi %changelog +* Wed Jan 14 2009 Dan Walsh 2.0.61-2 +- Split python into a separate package + * Tue Jan 13 2009 Dan Walsh 2.0.61-1 - Update to upstream * chcat: cut categories at arbitrary point (25) from Dan Walsh