From e6ad318f5b15a5abd2a39fc04ecb6dee9a825612 Mon Sep 17 00:00:00 2001 From: Petr Lautrbach Date: Mon, 16 Jul 2018 13:10:41 +0200 Subject: [PATCH] Disable automatic compilation of Python files in extra directories https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/IDDR65FMKZYZYLL6DGFEKFACC55PELW3/ https://fedoraproject.org/wiki/Packaging:Python_Appendix#Manual_byte_compilation --- setroubleshoot.spec | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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}