%define url $URL$ Name: NodeManager-topo Version: 0.5 Release: 12 Summary: NodeManager plugin for creating virtual topologies. Group: System Environment/Daemons License: PlanetLab URL: %(echo %{url} | cut -d ' ' -f 2) Source0: topo.py Source1: setup-egre-link Source2: teardown-egre-link Source3: setup-nat Source4: teardown-nat BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch BuildRequires: python, python-devel Requires: NodeManager >= 1.7 %description This package provides a plugin for NodeManager implementing support for the topo_rspec slice attribute. %prep %build %install rm -rf $RPM_BUILD_ROOT install -p -D -m755 %{SOURCE0} \ $RPM_BUILD_ROOT%{_datadir}/NodeManager/plugins/topo.py install -p -D -m755 %{SOURCE1} \ $RPM_BUILD_ROOT%{_datadir}/vini/setup-egre-link install -p -D -m755 %{SOURCE2} \ $RPM_BUILD_ROOT%{_datadir}/vini/teardown-egre-link install -p -D -m755 %{SOURCE3} \ $RPM_BUILD_ROOT%{_datadir}/vini/setup-nat install -p -D -m755 %{SOURCE4} \ $RPM_BUILD_ROOT%{_datadir}/vini/teardown-nat %clean rm -rf $RPM_BUILD_ROOT %post /sbin/service nm restart %files %defattr(-,root,root,-) %{_datadir}/NodeManager/plugins/topo.py* %{_datadir}/vini/*-egre-link %{_datadir}/vini/*-nat %changelog