spec: Ignore byte-compiled python files
authorQuanah Gibson-Mount <quanah@symas.com>
Sun, 30 May 2021 10:13:43 +0000 (12:13 +0200)
committerGuido Günther <agx@sigxcpu.org>
Sun, 30 May 2021 10:16:16 +0000 (12:16 +0200)
packaging/git-buildpackage.spec

index 4ada8c5d624aac31d4e798b51d2198f8f313c278..a20aff5f93ffee25f93b8c506054fcefb6c3bac5 100644 (file)
@@ -234,6 +234,11 @@ done
 %{python_sitelib}/gbp/scripts/common/*.py*
 %{python_sitelib}/gbp/git/*.py*
 %{python_sitelib}/gbp/pkg/*.py*
+%exclude %{python_sitelib}/gbp/__pycache__/*.pyc
+%exclude %{python_sitelib}/gbp/git/__pycache__/*.pyc
+%exclude %{python_sitelib}/gbp/pkg/__pycache__/*.pyc
+%exclude %{python_sitelib}/gbp/scripts/__pycache__/*.pyc
+%exclude %{python_sitelib}/gbp/scripts/common/__pycache__/*.pyc
 %config %{_sysconfdir}/git-buildpackage
 %if %{with docs}
 %{_mandir}/man1/gbp.1*