@matheusbsbs / matheus-bagliano / commits / faced1af71
Fork 0

Added correct Python path to the RPM specfile.

Signed-off-by: Eygene Ryabinkin <rea-git@codelabs.ru> Signed-off-by: Junio C Hamano <junkio@cox.net>

Eygene Ryabinkin committed Mar 29, 2007 at 14:07 UTC faced1af7112353bcb67e033cd2a4fb47e21b201
1 file changed +5 -1
git.spec.in
+5 -1
@@ -1,4 +1,7 @@
1 # Pass --without docs to rpmbuild if you don't want the documentation
2 +
3 +%define python_path /usr/bin/python
4 +
5 Name: git
6 Version: @@VERSION@@
7 Release: 1%{?dist}
@@ -93,12 +96,13 @@ Perl interface to Git
96
97 %build
98 make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" WITH_P4IMPORT=YesPlease \
96 - prefix=%{_prefix} all %{!?_without_docs: doc}
99 + prefix=%{_prefix} PYTHON_PATH=%{python_path} all %{!?_without_docs: doc}
100
101 %install
102 rm -rf $RPM_BUILD_ROOT
103 make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" DESTDIR=$RPM_BUILD_ROOT \
104 WITH_P4IMPORT=YesPlease prefix=%{_prefix} mandir=%{_mandir} \
105 + PYTHON_PATH=%{python_path} \
106 INSTALLDIRS=vendor install %{!?_without_docs: install-doc}
107 find $RPM_BUILD_ROOT -type f -name .packlist -exec rm -f {} ';'
108 find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';'