diff --git a/setroubleshoot.spec b/setroubleshoot.spec index cac5ba2..c042cfc 100644 --- a/setroubleshoot.spec +++ b/setroubleshoot.spec @@ -1,3 +1,6 @@ +# Disable automatic compilation of Python files in extra directories +%global _python_bytecompile_extra 0 + Summary: Helps troubleshoot SELinux problems Name: setroubleshoot Version: 3.3.17 @@ -127,7 +130,8 @@ chown -R setroubleshoot:setroubleshoot %{pkgvardatadir} %{_sbindir}/setroubleshootd %{python3_sitelib}/setroubleshoot*.egg-info %dir %attr(0755,root,root) %{pkgconfigdir} -%dir %attr(0755,root,root) %{pkgpythondir} +%dir %{pkgpythondir} +%dir %{pkgpythondir}/__pycache__ %{pkgpythondir}/Plugin.py %{pkgpythondir}/__init__.py %{pkgpythondir}/access_control.py @@ -146,8 +150,6 @@ chown -R setroubleshoot:setroubleshoot %{pkgvardatadir} %{pkgpythondir}/util.py %{pkgpythondir}/uuid.py %{pkgpythondir}/xml_serialize.py -%dir %{pkgpythondir} -%dir %{pkgpythondir}/__pycache__ %{pkgpythondir}/__pycache__/Plugin.cpython* %{pkgpythondir}/__pycache__/__init__.cpython* %{pkgpythondir}/__pycache__/access_control.cpython* @@ -167,8 +169,8 @@ chown -R setroubleshoot:setroubleshoot %{pkgvardatadir} %{pkgpythondir}/__pycache__/uuid.cpython* %{pkgpythondir}/__pycache__/xml_serialize.cpython* %dir %{pkgdatadir} -%{pkgdatadir}/SetroubleshootFixit.py* -%{pkgdatadir}/updater.py* +%{pkgdatadir}/SetroubleshootFixit.py +%{pkgdatadir}/updater.py %config(noreplace) %{pkgconfigdir}/%{name}.conf %config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.fedoraproject.Setroubleshootd.conf %attr(0700,setroubleshoot,setroubleshoot) %dir %{pkgvardatadir}