From fcd0e59be6b4ce9392e58c7b3f14086e17193a20 Mon Sep 17 00:00:00 2001 From: Todd Zullinger Date: Sat, 5 Jun 2021 15:57:39 -0400 Subject: limit *.py[co] %exclude to el7 The exclusion was added in 9febbf3 (disable automatic compilation of *.py files outside of python sitelib, 2018-06-15). Since that time, no supported Fedora releases need it and the only EL release which does is EL7. Update the comment to reflect this and only use %exclude on EL7. --- cgit.spec | 5 +++-- 1 file 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 - 1.2.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild -- cgit