[et-mgmt-tools] koan patch to use __python
Michael DeHaan
mdehaan at redhat.com
Wed Oct 18 22:30:37 UTC 2006
Tru Huynh wrote:
> Hi,
>
> same request on koan.spec (%{__python} instead of python)
>
> [tru at casewell koan]$ hg diff koan.spec
> diff -r 85dbf26fe42a koan.spec
> --- a/koan.spec Tue Oct 17 11:42:11 2006 -0400
> +++ b/koan.spec Wed Oct 18 23:47:17 2006 +0200
> @@ -26,14 +26,14 @@ any existing system. For use with a boo
> %setup -q
>
> %build
> -python setup.py build
> +%{__python} setup.py build
>
> %install
> -rm -rf $RPM_BUILD_ROOT
> -python setup.py install --optimize=1 --root=$RPM_BUILD_ROOT
> +test "x$RPM_BUILD_ROOT" != "x" && rm -rf $RPM_BUILD_ROOT
> +%{__python} setup.py install --optimize=1 --root=$RPM_BUILD_ROOT
>
> %clean
> -rm -rf $RPM_BUILD_ROOT
> +test "x$RPM_BUILD_ROOT" != "x" && rm -rf $RPM_BUILD_ROOT
>
> %files
> %defattr(-,root,root)
>
> Cheers,
>
> Tru
>
applied, thanks!
--Michael
More information about the et-mgmt-tools
mailing list