2 # $Id: madwifi.spec 16422 2010-01-04 11:33:08Z thierry $
4 %define url $URL: svn+ssh://thierry@svn.planet-lab.org/svn/madwifi/trunk/madwifi.spec $
6 # Marc E. Fiuczynski <mef@cs.princeton.edu>
7 # Copyright (C) 2006 The Trustees of Princeton University
10 %define name omf-resctl
12 %define release 1ubuntu2-2
15 %define actual_name %{name}-%{version}-%{release}
17 Summary: OMF Resource Controller - for slivers
22 Group: System Environment/Kernel
23 Source0: %{actual_name}.noarch.rpm
24 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
27 Packager: PlanetLab <devel@planet-lab.eu>
28 Distribution: PlanetLab %{plrelease}
29 URL: %(echo %{url} | cut -d ' ' -f 2)
32 Requires: liblog4r-ruby1.8
33 Requires: libxmpp4r-ruby1.8
37 Requires: wireless-tools
38 Requires: rpmlib(CompressedFileNames) <= 3.0.4-1
39 Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1
41 Requires: omf-common-5.3
43 %description The OMF Resource Controller (RC) is the experiment-side
44 of the Experiment Eontroller (EC) that lets experimenter control their
45 resources. It relies on an XMPP server for exchanging with its EC.
48 %setup -n %{actual_name}
51 rm -rf $RPM_BUILD_ROOT
56 rpm2cpio ../omf-resctl*.rmp | cpio -diu
59 rm -fr $RPM_BUILD_ROOT
61 rsync -av unwrap/ $RPM_BUILD_ROOT
64 rm -rf $RPM_BUILD_ROOT
70 /usr/share/omf-resctl-%{version}
74 # tweak config in /etc/omf-resctl-5.3/
75 mkdir /etc/omf-resctl-5.3/