X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=pyplnet.spec;h=c929c1ecb6f6b29616218b3da9f346e97c55e283;hb=6f4902626b1c77f58b8785f17ba83b7f278985d7;hp=8bd786e8616f9f54a6882d079c8c69b8b7cc3c94;hpb=f5331875592beb6a1d9487168a73e9adf2b83860;p=pyplnet.git diff --git a/pyplnet.spec b/pyplnet.spec index 8bd786e..c929c1e 100644 --- a/pyplnet.spec +++ b/pyplnet.spec @@ -1,11 +1,9 @@ %define name pyplnet -%define version 4.3 -%define taglevel 18 +%define version 7.0 +%define taglevel 0 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}} -%{!?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} Version: %{version} @@ -20,8 +18,8 @@ Packager: PlanetLab Central Distribution: PlanetLab %{plrelease} URL: %{SCMURL} -Requires: python >= 2.4 -BuildRequires: python, python-devel +Requires: python3 +BuildRequires: python3, python3-devel BuildArch: noarch %description @@ -32,14 +30,14 @@ configuration data recorded at PLC. %setup -q %build -python setup.py build +python3 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_sitelib}/plnet.py +python3 setup.py install --skip-build --root "$RPM_BUILD_ROOT" +chmod +x $RPM_BUILD_ROOT/%{python3_sitelib}/plnet.py mkdir -p $RPM_BUILD_ROOT/%{_bindir} -ln -s %{python_sitelib}/plnet.py $RPM_BUILD_ROOT/%{_bindir}/plnet +ln -s %{python3_sitelib}/plnet.py $RPM_BUILD_ROOT/%{_bindir}/plnet %clean rm -rf $RPM_BUILD_ROOT @@ -47,9 +45,18 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %{_bindir}/plnet -%{python_sitelib}/* +%{python3_sitelib}/* %changelog +* Mon Jan 07 2019 Thierry Parmentelat - pyplnet-7.0-0 +- based on python3 +- remove 'NM_CONTROLLED=no' from ifcfg file, as we now rely on NetworkManager +- cleaned up old code related to 'nodenetworks', oly use 'interfaces' instead + +* Sun Jul 10 2016 Thierry Parmentelat - pyplnet-4.3-19 +- always set NM_CONTROLLED=no in ifcfg files +- more modern python + * Fri Aug 09 2013 Andy Bavier - pyplnet-4.3-18 - IPv6 changes from Thomas Dreibholz