Skip to content

Commit

Permalink
Added correct Python path to the RPM specfile.
Browse files Browse the repository at this point in the history
Signed-off-by: Eygene Ryabinkin <rea-git@codelabs.ru>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Eygene Ryabinkin authored and Junio C Hamano committed Apr 1, 2007
1 parent 5250929 commit faced1a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion git.spec.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
# Pass --without docs to rpmbuild if you don't want the documentation

%define python_path /usr/bin/python

Name: git
Version: @@VERSION@@
Release: 1%{?dist}
Expand Down Expand Up @@ -93,12 +96,13 @@ Perl interface to Git

%build
make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" WITH_P4IMPORT=YesPlease \
prefix=%{_prefix} all %{!?_without_docs: doc}
prefix=%{_prefix} PYTHON_PATH=%{python_path} all %{!?_without_docs: doc}

%install
rm -rf $RPM_BUILD_ROOT
make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" DESTDIR=$RPM_BUILD_ROOT \
WITH_P4IMPORT=YesPlease prefix=%{_prefix} mandir=%{_mandir} \
PYTHON_PATH=%{python_path} \
INSTALLDIRS=vendor install %{!?_without_docs: install-doc}
find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';'
Expand Down

0 comments on commit faced1a

Please sign in to comment.