first draft for packaging openvswitch
[sliver-openvswitch.git] / sliver-openvswitch.spec
1 %define name sliver-openvswitch
2 %define version 0.1
3 %define taglevel 1
4
5 %define release %{taglevel}%{?pldistro:.%{pldistro}}%{?date:.%{date}}
6
7 Vendor: OneLab
8 Packager: OneLab <support@planet-lab.eu>
9 Distribution: PlanetLab %{plrelease}
10 URL: %{SCMURL}
11 #Requires: 
12
13 Summary: Openvswitch modified for running from a PlanetLab sliver
14 Name: %{name}
15 Version: %{version}
16 Release: %{release}
17 License: GPL
18 Group: System Environment/Applications
19 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
20 Source0: sliver-openvswitch-%{version}.tar.gz
21
22 %description
23 Openvswitch tuned for running within a PlanetLab sliver
24
25 %prep 
26 %setup -q
27
28 %build
29 ./boot.sh
30 ./configure --prefix=/usr
31 make
32
33 %install
34 make install DESTDIR=$RPM_BUILD_ROOT
35
36 %clean
37 rm -rf $RPM_BUILD_ROOT
38
39 %files
40 /usr
41
42 %post
43
44 %postun
45
46 %changelog