X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=pyplnet.spec;h=c929c1ecb6f6b29616218b3da9f346e97c55e283;hb=refs%2Fheads%2Fmaster;hp=3a2924afd8d6ebbfd223f48a11dc964d03543879;hpb=22247ff617108ae538c2559044677508419e6890;p=pyplnet.git diff --git a/pyplnet.spec b/pyplnet.spec index 3a2924a..c929c1e 100644 --- a/pyplnet.spec +++ b/pyplnet.spec @@ -1,11 +1,9 @@ %define name pyplnet -%define version 4.3 -%define taglevel 7 +%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,52 @@ 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 + +* Fri Aug 09 2013 Andy Bavier - pyplnet-4.3-17 +- Added tags for configuring OvS interfaces + +* Thu Jan 03 2013 Scott Baker - pyplnet-4.3-16 +- verify ovs is running before setting up ovs bridge + +* Wed Oct 24 2012 Andy Bavier - pyplnet-4.3-15 +- Add support for bridging using Open vSwitch + +* Wed May 02 2012 Andy Bavier - pyplnet-4.3-14 +- Fix stupid bug + +* Mon Apr 30 2012 Andy Bavier - pyplnet-4.3-13 +- Support for VLAN interfaces + +* Thu Apr 26 2012 Andy Bavier - pyplnet-4.3-12 + +* Sun Sep 25 2011 Thierry Parmentelat - pyplnet-4.3-11 +- turn off verbose/debug messages +- pyplnet-4.3-10 was broken because of that + +* Wed Sep 21 2011 Andy Bavier - pyplnet-4.3-10 +- Enable creation of bridged interfaces + +* Tue Feb 15 2011 Thierry Parmentelat - pyplnet-4.3-9 +- protect shell vars definition in ifcfg files with "" +- tweaks in numbering rules + +* Mon Jan 24 2011 Thierry Parmentelat - pyplnet-4.3-8 +- no semantic change - just fixed specfile for git URL + * Thu Dec 09 2010 Daniel Hokka Zakrisson - pyplnet-4.3-7 - Secondary interface fixes and features.