contrib/mercurial.spec: Use DESTDIR variable and 'make install'
authorMads Kiilerich <mads@kiilerich.com>
Mon, 19 Apr 2010 11:31:19 +0200
changeset 11062 a2a6fd1064df
parent 11061 51d0387523c6
child 11063 eb23c876c111
contrib/mercurial.spec: Use DESTDIR variable and 'make install'
contrib/mercurial.spec
--- a/contrib/mercurial.spec	Thu Apr 01 00:35:12 2010 +0900
+++ b/contrib/mercurial.spec	Mon Apr 19 11:31:19 2010 +0200
@@ -38,8 +38,7 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-python setup.py install --root $RPM_BUILD_ROOT --prefix %{_prefix}
-make install-doc DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir}
+make install DESTDIR=$RPM_BUILD_ROOT PREFIX=%{_prefix} MANDIR=%{_mandir}
 
 install contrib/hgk          $RPM_BUILD_ROOT%{_bindir}
 install contrib/convert-repo $RPM_BUILD_ROOT%{_bindir}/mercurial-convert-repo