X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=pyplnet.spec;h=df5a9194883e44f24bf9096670f265356f0b3251;hb=0603f3a71d3d109372b116ab2e443d283203f719;hp=971de3f6c4d48858cae516c2803222d339ba42c8;hpb=c74615c22c1c6b52eb612888d561c48687a156db;p=pyplnet.git diff --git a/pyplnet.spec b/pyplnet.spec index 971de3f..df5a919 100644 --- a/pyplnet.spec +++ b/pyplnet.spec @@ -9,7 +9,7 @@ %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}} -%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Summary: PlanetLab Network Configuration library Name: %{name} @@ -27,6 +27,7 @@ URL: %(echo %{url} | cut -d ' ' -f 2) Requires: python >= 2.4 BuildRequires: python, python-devel +BuildArch: noarch %description pyplnet is used to write the network configuration files based on the @@ -41,8 +42,9 @@ python setup.py build %install rm -rf $RPM_BUILD_ROOT python setup.py install --skip-build --root "$RPM_BUILD_ROOT" -chmod +x $RPM_BUILD_ROOT/%{python_sitearch}/plnet.py -ln -s %{python_sitearch}/plnet.py $RPM_BUILD_ROOT/%{_bindir}/plnet +chmod +x $RPM_BUILD_ROOT/%{python_sitelib}/plnet.py +mkdir -p $RPM_BUILD_ROOT/%{_bindir} +ln -s %{python_sitelib}/plnet.py $RPM_BUILD_ROOT/%{_bindir}/plnet %clean rm -rf $RPM_BUILD_ROOT @@ -50,7 +52,7 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{_bindir}/plnet -%{python_sitearch}/* +%{python_sitelib}/* %changelog * Tue Dec 2 2008 Daniel Hokka Zakrisson - pyplnet-4.3-1