From 85bc798cde4c4fc8929e80eeed7b69cc28901630 Mon Sep 17 00:00:00 2001 From: thierry Date: Wed, 24 Mar 2010 14:00:11 +0000 Subject: [PATCH] omf-expctl --- Makefile | 7 +++++ omf-expctl.spec | 81 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 omf-expctl.spec diff --git a/Makefile b/Makefile index b33f885..fbe5622 100644 --- 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 index 0000000..358c07c --- /dev/null +++ b/omf-expctl.spec @@ -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 +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 -- 2.43.0