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>
This commit is contained in:
parent
5250929d60
commit
faced1af71
@ -1,4 +1,7 @@
|
|||||||
# Pass --without docs to rpmbuild if you don't want the documentation
|
# Pass --without docs to rpmbuild if you don't want the documentation
|
||||||
|
|
||||||
|
%define python_path /usr/bin/python
|
||||||
|
|
||||||
Name: git
|
Name: git
|
||||||
Version: @@VERSION@@
|
Version: @@VERSION@@
|
||||||
Release: 1%{?dist}
|
Release: 1%{?dist}
|
||||||
@ -93,12 +96,13 @@ Perl interface to Git
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" WITH_P4IMPORT=YesPlease \
|
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
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" DESTDIR=$RPM_BUILD_ROOT \
|
make %{_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" DESTDIR=$RPM_BUILD_ROOT \
|
||||||
WITH_P4IMPORT=YesPlease prefix=%{_prefix} mandir=%{_mandir} \
|
WITH_P4IMPORT=YesPlease prefix=%{_prefix} mandir=%{_mandir} \
|
||||||
|
PYTHON_PATH=%{python_path} \
|
||||||
INSTALLDIRS=vendor install %{!?_without_docs: install-doc}
|
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 .packlist -exec rm -f {} ';'
|
||||||
find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';'
|
find $RPM_BUILD_ROOT -type f -name '*.bs' -empty -exec rm -f {} ';'
|
||||||
|
Loading…
Reference in New Issue
Block a user