cleanup spec
[platform/upstream/git.git] / packaging / git-python-install-fix.diff
1 ---
2  Makefile                    |    2 +-
3  git_remote_helpers/Makefile |    2 +-
4  2 files changed, 2 insertions(+), 2 deletions(-)
5
6 --- a/git_remote_helpers/Makefile
7 +++ b/git_remote_helpers/Makefile
8 @@ -29,7 +29,7 @@
9         $(QUIET)$(PYTHON_PATH) $(pysetupfile) $(QUIETSETUP) build
10  
11  install: $(pysetupfile)
12 -       $(PYTHON_PATH) $(pysetupfile) install --prefix $(DESTDIR_SQ)$(prefix)
13 +       $(PYTHON_PATH) $(pysetupfile) install --prefix $(prefix) --root $(DESTDIR_SQ)
14  
15  instlibdir: $(pysetupfile)
16         @echo "$(DESTDIR_SQ)$(prefix)/$(PYLIBDIR)"
17 --- a/Makefile
18 +++ b/Makefile
19 @@ -1800,7 +1800,7 @@
20  $(patsubst %.py,%,$(SCRIPT_PYTHON)): % : %.py
21         $(QUIET_GEN)$(RM) $@ $@+ && \
22         INSTLIBDIR=`MAKEFLAGS= $(MAKE) -C git_remote_helpers -s \
23 -               --no-print-directory prefix='$(prefix_SQ)' DESTDIR='$(DESTDIR_SQ)' \
24 +               --no-print-directory prefix='$(prefix_SQ)' DESTDIR=\
25                 instlibdir` && \
26         sed -e '1s|#!.*python|#!$(PYTHON_PATH_SQ)|' \
27             -e 's|\(os\.getenv("GITPYTHONLIB"\)[^)]*)|\1,"@@INSTLIBDIR@@")|' \