[packages/libgit2-glib] - use macro for gi overrides dir
qboosh
qboosh at pld-linux.org
Sat Jun 25 09:39:09 CEST 2022
commit 9e38c9f0889b8f2e65f98970f89569fb824d8dc4
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sat Jun 25 09:40:41 2022 +0200
- use macro for gi overrides dir
libgit2-glib.spec | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/libgit2-glib.spec b/libgit2-glib.spec
index c9b9242..90f1bc9 100644
--- a/libgit2-glib.spec
+++ b/libgit2-glib.spec
@@ -31,6 +31,8 @@ Requires: glib2 >= 1:2.44.0
Requires: libgit2 >= 0.26.0
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define py3_gi_overridesdir %{py3_sitescriptdir}/gi/overrides
+
%description
libgit2-glib is a glib wrapper library around the libgit2 git access
library.
@@ -150,8 +152,8 @@ rm -rf $RPM_BUILD_ROOT
%if %{with python}
%files -n python3-libgit2-glib
%defattr(644,root,root,755)
-%{py3_sitescriptdir}/gi/overrides/Ggit.py
-%{py3_sitescriptdir}/gi/overrides/__pycache__/Ggit.cpython-3*.py[co]
+%{py3_gi_overridesdir}/Ggit.py
+%{py3_gi_overridesdir}/__pycache__/Ggit.cpython-3*.py[co]
%endif
%files -n vala-libgit2-glib
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/libgit2-glib.git/commitdiff/9e38c9f0889b8f2e65f98970f89569fb824d8dc4
More information about the pld-cvs-commit
mailing list