summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTodd Zullinger <tmz@pobox.com>2018-06-15 20:47:55 -0400
committerTodd Zullinger <tmz@pobox.com>2018-06-16 22:36:05 -0400
commit9febbf3744cfe862cfc0d8cfbfc8d559d11aa1a2 (patch)
treee63bcf457923a7beb6e03f4b8742e26e14032867
parentff9deaf6feb7e2bba7452b3cc1679b80137351b6 (diff)
downloadcgit_EL6-9febbf3744cfe862cfc0d8cfbfc8d559d11aa1a2.tar.gz
disable automatic compilation of *.py files outside of python sitelib
The *.py files in cgit are not importable python modules. Add %excludes to avoid packaging these files on Fedora < 29 and RHEL < 8. https://fedoraproject.org/wiki/Changes/No_more_automagic_Python_bytecompilation
-rw-r--r--cgit.spec11
1 files changed, 10 insertions, 1 deletions
diff --git a/cgit.spec b/cgit.spec
index 6aa6796..b294487 100644
--- a/cgit.spec
+++ b/cgit.spec
@@ -6,6 +6,10 @@
%global scriptdir %{_localstatedir}/www/cgi-bin
%global cgitdata %{_datadir}/%{name}
+# Disable automatic compilation of *.py files outside of python sitelib,
+# the *.py files in cgit are not importable python modules
+%global _python_bytecompile_extra 0
+
%global syntax_highlight 1
# Temporarily -- in epel-7-ppc64 is not highlight package currently, #1117261
@@ -17,7 +21,7 @@
Name: cgit
Version: 1.1
-Release: 10%{?dist}
+Release: 11%{?dist}
Summary: A fast web interface for git
Group: Development/Tools
@@ -150,11 +154,16 @@ install -d -m0755 %{buildroot}%{cachedir}
%dir %attr(-,apache,root) %{cachedir}
%{cgitdata}
%{filterdir}
+# exclude byte-compiled python files (relevant on Fedora < 29 and RHEL < 8)
+%exclude %{filterdir}/*.py[co]
%{scriptdir}/*
%{_mandir}/man*/*
%changelog
+* Fri Jun 15 2018 Todd Zullinger <tmz@pobox.com> - 1.1-11
+- disable automatic compilation of *.py files outside of python sitelib
+
* Mon Jun 04 2018 Todd Zullinger <tmz@pobox.com>
- make config: drop redundant DESTDIR/INSTALL, add COPYTREE
- remove env shebang's from filter scripts