omf-expctl
authorthierry <thierry@8c455092-636d-4788-adf5-e71def0336e8>
Wed, 24 Mar 2010 14:00:11 +0000 (14:00 +0000)
committerthierry <thierry@8c455092-636d-4788-adf5-e71def0336e8>
Wed, 24 Mar 2010 14:00:11 +0000 (14:00 +0000)
Makefile
omf-expctl.spec [new file with mode: 0644]

index b33f885..fbe5622 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -25,6 +25,11 @@ imagezip-URL         := http://pkg.mytestbed.net/yum/base/8/i386/imagezip-1.0.0-3.i386.
 imagezip-SHA1SUM       := b96297e480dfbc2360bcb62ff4ee130794124849
 imagezip               := $(notdir $(imagezip-URL))
 
+ALL += omf-expctl
+omf-expctl-URL         := http://pkg.mytestbed.net/yum/base/8/i386/omf-expctl-5.3-1ubuntu2-2.noarch.rpm
+omf-expctl-SHA1SUM     := cb3fbc3e211c4cec48a55473ec3f1ba11caf487b
+omf-expctl             := $(notdir $(omf-expctl-URL))
+
 all: $(ALL)
 .PHONY: all
 
@@ -68,6 +73,8 @@ $(eval $(call download_target,liblog4r))
 $(eval $(call download_target,libxmpp4r))
 $(eval $(call download_target,imagezip))
 
+$(eval $(call download_target,omf-expctl))
+
 #################### convenience, for debugging only
 # make +foo : prints the value of $(foo)
 # make ++foo : idem but verbose, i.e. foo=$(foo)
diff --git a/omf-expctl.spec b/omf-expctl.spec
new file mode 100644 (file)
index 0000000..358c07c
--- /dev/null
@@ -0,0 +1,81 @@
+#
+# $Id$
+#
+%define url $URL$
+
+# Thierry Parmentelat - INRIA
+# Copyright (C) 2010 INRIA
+# License is GPL.
+
+%define name omf-expctl
+%define version 5.3
+%define taglevel 1
+
+%define plc_name %{name}-%{version}-%{taglevel}
+%define actual_name omf-resctl-5.3-1ubuntu2-2
+
+Summary: OMF Experiment Controller - for end-users
+Name: %{name}
+Version: %{version}
+Release: %{taglevel}
+License: GPL
+Group: System Environment/Base
+Source0: %{plc_name}.tar.bz2
+BuildRoot: %{_tmppath}/%{plc_name}-buildroot
+
+Vendor: NICTA
+Packager: PlanetLab <devel@planet-lab.org>
+Distribution: %{pldistro} %{plrelease}
+URL: %(echo %{url} | cut -d ' ' -f 2)
+# BuildArch: noarch
+
+Requires: pciutils  
+Requires: ruby  
+Requires: wget  
+Requires: wireless-tools  
+Requires: rpmlib(CompressedFileNames) <= 3.0.4-1
+Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1
+#
+Requires: omf-common  
+Requires: liblog4r
+Requires: libxmpp4r
+Requires: imagezip
+
+%description 
+The OMF Experiment Controller (EC) is the front end for
+experimenters/users to run and manage their experiments.
+
+####################
+
+%prep
+%setup -n %{plc_name}
+
+%build
+rm -rf $RPM_BUILD_ROOT
+
+mkdir unwrap
+
+make omf-resctl 
+(cd unwrap; rpm2cpio ../%{actual_name}.noarch.rpm | cpio -diu)
+
+# cleanup any svn sequels
+find unwrap -type d -name .svn -print0 | xargs -0 rm -rf
+
+%install
+rm -fr $RPM_BUILD_ROOT
+
+rsync -a unwrap/ $RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+####################
+%files
+%defattr(-,root,root)
+/etc
+/usr/sbin
+/usr/share/omf-resctl-%{version}
+/usr/share/doc
+
+####################
+%changelog