Accepting request 214092 from devel:tools:scm
Include git subtree command (forwarded request 213896 from iartarisi) OBS-URL: https://build.opensuse.org/request/show/214092 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/git?expand=0&rev=128
This commit is contained in:
parent
6b15e77a43
commit
14a27b1f8d
44
0001-git-subtree-Use-gitexecdir-instead-of-libexecdir.patch
Normal file
44
0001-git-subtree-Use-gitexecdir-instead-of-libexecdir.patch
Normal file
@ -0,0 +1,44 @@
|
|||||||
|
From a906459c2a89938e911f1650e6ce22315a1ec84d Mon Sep 17 00:00:00 2001
|
||||||
|
From: Todd Zullinger <tmz@pobox.com>
|
||||||
|
Date: Fri, 4 Jan 2013 11:54:21 -0500
|
||||||
|
Subject: [PATCH] git-subtree: Use gitexecdir instead of libexecdir
|
||||||
|
|
||||||
|
When the git subtree Makefile includes config.mak from the toplevel,
|
||||||
|
it's useful to have the same variables set globally applied. Using
|
||||||
|
gitexecdir instead of libexecdir respects the global settings more
|
||||||
|
consistently.
|
||||||
|
|
||||||
|
Remove the unused gitdir variable as well.
|
||||||
|
---
|
||||||
|
contrib/subtree/Makefile | 7 +++----
|
||||||
|
1 file changed, 3 insertions(+), 4 deletions(-)
|
||||||
|
|
||||||
|
diff --git a/contrib/subtree/Makefile b/contrib/subtree/Makefile
|
||||||
|
index 435b2de..dc8da19 100644
|
||||||
|
--- a/contrib/subtree/Makefile
|
||||||
|
+++ b/contrib/subtree/Makefile
|
||||||
|
@@ -2,9 +2,8 @@
|
||||||
|
-include ../../config.mak
|
||||||
|
|
||||||
|
prefix ?= /usr/local
|
||||||
|
+gitexecdir ?= $(prefix)/libexec/git-core
|
||||||
|
mandir ?= $(prefix)/share/man
|
||||||
|
-libexecdir ?= $(prefix)/libexec/git-core
|
||||||
|
-gitdir ?= $(shell git --exec-path)
|
||||||
|
man1dir ?= $(mandir)/man1
|
||||||
|
|
||||||
|
gitver ?= $(word 3,$(shell git --version))
|
||||||
|
@@ -30,8 +29,8 @@ $(GIT_SUBTREE): $(GIT_SUBTREE_SH)
|
||||||
|
doc: $(GIT_SUBTREE_DOC) $(GIT_SUBTREE_HTML)
|
||||||
|
|
||||||
|
install: $(GIT_SUBTREE)
|
||||||
|
- $(INSTALL) -d -m 755 $(DESTDIR)$(libexecdir)
|
||||||
|
- $(INSTALL) -m 755 $(GIT_SUBTREE) $(DESTDIR)$(libexecdir)
|
||||||
|
+ $(INSTALL) -d -m 755 $(DESTDIR)$(gitexecdir)
|
||||||
|
+ $(INSTALL) -m 755 $(GIT_SUBTREE) $(DESTDIR)$(gitexecdir)
|
||||||
|
|
||||||
|
install-doc: install-man
|
||||||
|
|
||||||
|
--
|
||||||
|
1.8.3.1
|
||||||
|
|
@ -1,3 +1,11 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 14 15:19:17 UTC 2014 - iartarisi@suse.com
|
||||||
|
|
||||||
|
- Package the git subtree command
|
||||||
|
- Add 0001-git-subtree-Use-gitexecdir-instead-of-libexecdir.patch - to
|
||||||
|
fix install paths for git-subtree
|
||||||
|
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Thu Dec 19 02:40:10 UTC 2013 - douglarek@outlook.com
|
Thu Dec 19 02:40:10 UTC 2013 - douglarek@outlook.com
|
||||||
|
|
||||||
|
8
git.spec
8
git.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package git
|
# spec file for package git
|
||||||
#
|
#
|
||||||
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -43,6 +43,7 @@ Patch5: git-bash-completion-egrep-color-fix.diff
|
|||||||
Patch6: git-tcsh-completion-fixes.diff
|
Patch6: git-tcsh-completion-fixes.diff
|
||||||
# adapt paths in zsh completion (bnc#853183)
|
# adapt paths in zsh completion (bnc#853183)
|
||||||
Patch7: git-zsh-completion-fixes.diff
|
Patch7: git-zsh-completion-fixes.diff
|
||||||
|
Patch8: 0001-git-subtree-Use-gitexecdir-instead-of-libexecdir.patch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildRequires: apache2
|
BuildRequires: apache2
|
||||||
BuildRequires: asciidoc
|
BuildRequires: asciidoc
|
||||||
@ -194,6 +195,7 @@ directory /git/ that calls the cgi script.
|
|||||||
%patch5 -p1
|
%patch5 -p1
|
||||||
%patch6 -p1
|
%patch6 -p1
|
||||||
%patch7 -p1
|
%patch7 -p1
|
||||||
|
%patch8 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
cat > .make <<'EOF'
|
cat > .make <<'EOF'
|
||||||
@ -217,6 +219,8 @@ chmod 755 .make
|
|||||||
./.make all %{?_smp_mflags}
|
./.make all %{?_smp_mflags}
|
||||||
%{!?_without_docs: ./.make doc}
|
%{!?_without_docs: ./.make doc}
|
||||||
|
|
||||||
|
./.make -C contrib/subtree/
|
||||||
|
|
||||||
%install
|
%install
|
||||||
./.make install %{!?_without_docs: install-doc}
|
./.make install %{!?_without_docs: install-doc}
|
||||||
### git-web
|
### git-web
|
||||||
@ -238,6 +242,8 @@ install -m 644 %{S:4} $RPM_BUILD_ROOT/etc/xinetd.d/git
|
|||||||
mkdir -p $RPM_BUILD_ROOT/%{_fwdefdir}
|
mkdir -p $RPM_BUILD_ROOT/%{_fwdefdir}
|
||||||
install -m 644 %{S:6} $RPM_BUILD_ROOT/%{_fwdefdir}/git-daemon
|
install -m 644 %{S:6} $RPM_BUILD_ROOT/%{_fwdefdir}/git-daemon
|
||||||
###
|
###
|
||||||
|
./.make -C contrib/subtree install
|
||||||
|
%{!?_without_docs: ./.make -C contrib/subtree install-doc}
|
||||||
install -m 755 -D contrib/remote-helpers/git-remote-bzr $RPM_BUILD_ROOT%{gitexecdir}
|
install -m 755 -D contrib/remote-helpers/git-remote-bzr $RPM_BUILD_ROOT%{gitexecdir}
|
||||||
install -m 755 -D contrib/remote-helpers/git-remote-hg $RPM_BUILD_ROOT%{gitexecdir}
|
install -m 755 -D contrib/remote-helpers/git-remote-hg $RPM_BUILD_ROOT%{gitexecdir}
|
||||||
(find $RPM_BUILD_ROOT%{_bindir} -type f -o -type l | grep -vE "archimport|svn|cvs|email|gitk|daemon|gui" | sed -e s@^$RPM_BUILD_ROOT@@) > bin-man-doc-files
|
(find $RPM_BUILD_ROOT%{_bindir} -type f -o -type l | grep -vE "archimport|svn|cvs|email|gitk|daemon|gui" | sed -e s@^$RPM_BUILD_ROOT@@) > bin-man-doc-files
|
||||||
|
Loading…
Reference in New Issue
Block a user