10 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
12 %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
14 Summary: PlanetLab Network Configuration library
19 Group: System Environment/Daemons
20 Source0: %{name}-%{version}.tar.gz
21 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
24 Packager: PlanetLab Central <support@planet-lab.org>
25 Distribution: PlanetLab %{plrelease}
26 URL: %(echo %{url} | cut -d ' ' -f 2)
28 Requires: python >= 2.4
29 BuildRequires: python, python-devel
33 pyplnet is used to write the network configuration files based on the
34 configuration data recorded at PLC.
43 rm -rf $RPM_BUILD_ROOT
44 python setup.py install --skip-build --root "$RPM_BUILD_ROOT"
45 chmod +x $RPM_BUILD_ROOT/%{python_sitelib}/plnet.py
46 mkdir -p $RPM_BUILD_ROOT/%{_bindir}
47 ln -s %{python_sitelib}/plnet.py $RPM_BUILD_ROOT/%{_bindir}/plnet
50 rm -rf $RPM_BUILD_ROOT
53 %defattr(-,root,root,-)
58 * Sat Dec 13 2008 Daniel Hokka Zakrisson <daniel@hozac.com> - pyplnet-4.2-1
59 - Rewrite sioc in Python.
60 - Add a plnet symlink to make it easier to run the script via plcsh.
61 - Set DNS servers/gateway for static configurations.
62 - Work with an empty tree.
63 - Use tempfile for temporary files.
65 * Tue Dec 2 2008 Daniel Hokka Zakrisson <daniel@hozac.com> - pyplnet-4.2-1