summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--cgit.spec5
1 files changed, 3 insertions, 2 deletions
diff --git a/cgit.spec b/cgit.spec
index c6113da..1e2ec95 100644
--- a/cgit.spec
+++ b/cgit.spec
@@ -205,8 +205,8 @@ make test
%dir %attr(-,apache,root) %{cachedir}
%{cgitdata}
%{filterdir}
-# exclude byte-compiled python files (relevant on Fedora < 29 and RHEL < 8)
-%exclude %{filterdir}/*.py[co]
+# exclude byte-compiled python files on EL7
+%{?el7:%exclude %{filterdir}/*.py[co]}
%{scriptdir}/*
%{_mandir}/man*/*
@@ -220,6 +220,7 @@ make test
- preserve timestamps when running install
- clean up & improve dist conditionals
- remove %%_python_bytecompile_extra
+- limit *.py[co] %%exclude to el7
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.3-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild