[packages/git-core-slug] obtain git core dir at build time

glen glen at pld-linux.org
Tue Feb 23 20:14:54 CET 2016


commit 5f877233f63f4d1a037fc8ed90180e74dd7f7eaf
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Tue Feb 23 21:14:48 2016 +0200

    obtain git core dir at build time

 git-core-slug.spec | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/git-core-slug.spec b/git-core-slug.spec
index 2a9af91..d89934c 100644
--- a/git-core-slug.spec
+++ b/git-core-slug.spec
@@ -16,6 +16,7 @@ Patch0:		%{name}-git.patch
 URL:		https://github.com/draenog/slug
 BuildRequires:	asciidoc
 BuildRequires:	docbook-dtd45-xml
+BuildRequires:	git-core >= 2.7.1-3
 BuildRequires:	python3-modules >= 1:3.3.0
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.714
@@ -26,7 +27,7 @@ Suggests:	openssh-clients
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define		gitcoredir	%{_prefix}/lib/git-core
+%define		gitcoredir	%(git --exec-path)
 
 %description
 Python tools to interact with PLD Linux git repositories.
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/git-core-slug.git/commitdiff/5f877233f63f4d1a037fc8ed90180e74dd7f7eaf



More information about the pld-cvs-commit mailing list