X-Git-Url: http://git.onelab.eu/?p=pyplnet.git;a=blobdiff_plain;f=pyplnet.spec;h=cc7f969a310d59e578e3ef74110597e9e60411bd;hp=218321f71152c033ba2cc881ad1eba930dc3f182;hb=bedc71c535f71f71f48ad6d7733ba6a10d714971;hpb=3b46852b4d6e3dc767885a8703792dcd20c7be3c diff --git a/pyplnet.spec b/pyplnet.spec index 218321f..cc7f969 100644 --- a/pyplnet.spec +++ b/pyplnet.spec @@ -5,11 +5,11 @@ %define name pyplnet %define version 4.3 -%define taglevel 0 +%define taglevel 1 %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,9 +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 +chmod +x $RPM_BUILD_ROOT/%{python_sitelib}/plnet.py mkdir -p $RPM_BUILD_ROOT/%{_bindir} -ln -s %{python_sitearch}/plnet.py $RPM_BUILD_ROOT/%{_bindir}/plnet +ln -s %{python_sitelib}/plnet.py $RPM_BUILD_ROOT/%{_bindir}/plnet %clean rm -rf $RPM_BUILD_ROOT @@ -51,8 +52,11 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{_bindir}/plnet -%{python_sitearch}/* +%{python_sitelib}/* %changelog +* Fri Apr 17 2009 Thierry Parmentelat - pyplnet-4.3-1 +- fixes for 4.3 + * Tue Dec 2 2008 Daniel Hokka Zakrisson - pyplnet-4.3-1 - initial release