Petr Lautrbach 2018-07-16 14:47:02 +02:00
parent 7505971712
commit 748028495e

View File

@ -6,6 +6,9 @@
%global generatorsdir %{_prefix}/lib/systemd/system-generators %global generatorsdir %{_prefix}/lib/systemd/system-generators
# Disable automatic compilation of Python files in extra directories
%global _python_bytecompile_extra 0
Summary: SELinux policy core utilities Summary: SELinux policy core utilities
Name: policycoreutils Name: policycoreutils
Version: 2.8 Version: 2.8
@ -195,6 +198,10 @@ find %{buildroot}%{python2_sitelib} %{buildroot}%{python2_sitearch} \
%{buildroot}%{_sbindir} %{buildroot}%{_bindir} %{buildroot}%{_datadir} \ %{buildroot}%{_sbindir} %{buildroot}%{_bindir} %{buildroot}%{_datadir} \
-type f -name '*~' | xargs rm -f -type f -name '*~' | xargs rm -f
# Manually invoke the python byte compile macro for each path that needs byte
# compilation.
%py_byte_compile %{__python3} %{buildroot}%{_datadir}/system-config-selinux
%find_lang %{name} %find_lang %{name}
%package python-utils %package python-utils
@ -240,7 +247,9 @@ an SELinux environment.
%{_datadir}/dbus-1/system-services/org.selinux.service %{_datadir}/dbus-1/system-services/org.selinux.service
%{_datadir}/polkit-1/actions/org.selinux.policy %{_datadir}/polkit-1/actions/org.selinux.policy
%{_datadir}/polkit-1/actions/org.selinux.config.policy %{_datadir}/polkit-1/actions/org.selinux.config.policy
%{_datadir}/system-config-selinux/selinux_server.py* %{_datadir}/system-config-selinux/selinux_server.py
%dir %{_datadir}/system-config-selinux/__pycache__
%{_datadir}/system-config-selinux/__pycache__/selinux_server.*
%package -n python3-policycoreutils %package -n python3-policycoreutils
%{?python_provide:%python_provide python3-policycoreutils} %{?python_provide:%python_provide python3-policycoreutils}
@ -399,11 +408,16 @@ system-config-selinux is a utility for managing the SELinux environment
%{_datadir}/icons/hicolor/24x24/apps/system-config-selinux.png %{_datadir}/icons/hicolor/24x24/apps/system-config-selinux.png
%{_datadir}/pixmaps/system-config-selinux.png %{_datadir}/pixmaps/system-config-selinux.png
%dir %{_datadir}/system-config-selinux %dir %{_datadir}/system-config-selinux
%dir %{_datadir}/system-config-selinux/__pycache__
%{_datadir}/system-config-selinux/system-config-selinux.png %{_datadir}/system-config-selinux/system-config-selinux.png
%{_datadir}/system-config-selinux/*Page.py* %{_datadir}/system-config-selinux/*Page.py
%{_datadir}/system-config-selinux/html_util.py* %{_datadir}/system-config-selinux/__pycache__/*Page.*
%{_datadir}/system-config-selinux/polgengui.py* %{_datadir}/system-config-selinux/html_util.py
%{_datadir}/system-config-selinux/system-config-selinux.py* %{_datadir}/system-config-selinux/__pycache__/html_util.*
%{_datadir}/system-config-selinux/polgengui.py
%{_datadir}/system-config-selinux/__pycache__/polgengui.*
%{_datadir}/system-config-selinux/system-config-selinux.py
%{_datadir}/system-config-selinux/__pycache__/system-config-selinux.*
%{_datadir}/system-config-selinux/*.ui %{_datadir}/system-config-selinux/*.ui
%{python3_sitelib}/sepolicy/gui.py* %{python3_sitelib}/sepolicy/gui.py*
%{python3_sitelib}/sepolicy/sepolicy.glade %{python3_sitelib}/sepolicy/sepolicy.glade