aboutsummaryrefslogtreecommitdiffhomepage
path: root/packaging
diff options
context:
space:
mode:
authorQuanah Gibson-Mount <quanah@symas.com>2021-05-30 12:13:43 +0200
committerGuido Günther <agx@sigxcpu.org>2021-05-30 12:16:16 +0200
commitd32fdb46a9e49967ffedad27ba0d522735306d9f (patch)
tree3e90de2672c691825ee8f0996f8d1a7809d7625a /packaging
parentc97aeda80f9f6c5645ae204cb01f6141dba75659 (diff)
spec: Ignore byte-compiled python files
Diffstat (limited to 'packaging')
-rw-r--r--packaging/git-buildpackage.spec5
1 files changed, 5 insertions, 0 deletions
diff --git a/packaging/git-buildpackage.spec b/packaging/git-buildpackage.spec
index 4ada8c5d..a20aff5f 100644
--- a/packaging/git-buildpackage.spec
+++ b/packaging/git-buildpackage.spec
@@ -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*