summaryrefslogtreecommitdiffstats
path: root/cgit.spec
diff options
context:
space:
mode:
Diffstat (limited to 'cgit.spec')
-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