3b0d4bf4d60536aa212a213b72ac8d66e8702389
[nodemanager-topo.git] / NodeManager-topo.spec
1 %define url $URL$
2
3 Name:           NodeManager-topo
4 Version:        0.3
5 Release:        3
6 Summary:        Plugin supporting creating a default virtual topology.
7
8 Group:          System Environment/Daemons
9 License:        PlanetLab
10 URL:            %(echo %{url} | cut -d ' ' -f 2)
11 Source0:        topo.py
12 Source1:        setup-egre-link
13 Source2:        teardown-egre-link
14 Source3:        setup-nat
15 Source4:        teardown-nat
16 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
17 BuildArch:      noarch
18
19 BuildRequires:  python, python-devel
20 Requires:       NodeManager >= 1.7
21
22 %description
23 This package provides a plugin for NodeManager implementing
24 support for the topo_rspec slice attribute.
25
26 %prep
27
28
29 %build
30
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 install -p -D -m755 %{SOURCE0} \
35         $RPM_BUILD_ROOT%{_datadir}/NodeManager/plugins/topo.py
36 install -p -D -m755 %{SOURCE1} \
37         $RPM_BUILD_ROOT%{_datadir}/vini/setup-egre-link
38 install -p -D -m755 %{SOURCE2} \
39         $RPM_BUILD_ROOT%{_datadir}/vini/teardown-egre-link
40 install -p -D -m755 %{SOURCE3} \
41         $RPM_BUILD_ROOT%{_datadir}/vini/setup-nat
42 install -p -D -m755 %{SOURCE4} \
43         $RPM_BUILD_ROOT%{_datadir}/vini/teardown-nat
44
45
46 %clean
47 rm -rf $RPM_BUILD_ROOT
48
49 %post
50 /sbin/service nm restart
51
52 %files
53 %defattr(-,root,root,-)
54 %{_datadir}/NodeManager/plugins/topo.py*
55 %{_datadir}/vini/*-egre-link
56 %{_datadir}/vini/*-nat
57
58
59 %changelog