libxmpp4r-URL := http://pkg.mytestbed.net/yum/base/8/i386/libxmpp4r-ruby1.8-1.0-1.noarch.rpm
libxmpp4r-SHA1SUM := 7db1a6260435aca494f9b5e36517568a7f63e5c8
libxmpp4r := $(notdir $(libxmpp4r-URL))
+ALL += imagezip
+imagezip-URL := http://pkg.mytestbed.net/yum/base/8/i386/imagezip-1.0.0-3.i386.rpm
+imagezip-SHA1SUM := b96297e480dfbc2360bcb62ff4ee130794124849
+imagezip := $(notdir $(imagezip-URL))
all: $(ALL)
.PHONY: all
$(eval $(call download_target,omf-common))
$(eval $(call download_target,liblog4r))
$(eval $(call download_target,libxmpp4r))
+$(eval $(call download_target,imagezip))
#################### convenience, for debugging only
# make +foo : prints the value of $(foo)
#
%define url $URL$
-# Marc E. Fiuczynski <mef@cs.princeton.edu>
-# Copyright (C) 2006 The Trustees of Princeton University
+# Thierry Parmentelat - INRIA
+# Copyright (C) 2010 INRIA
# License is GPL.
%define name omf-resctl
URL: %(echo %{url} | cut -d ' ' -f 2)
BuildArch: noarch
-Requires: imagezip
Requires: pciutils
Requires: ruby
Requires: wget
Requires: omf-common
Requires: liblog4r
Requires: libxmpp4r
+Requires: imagezip
%description
The OMF Resource Controller (RC) is the experiment-side of the
%description -n libxmpp4r
An XMPP/Jabber library for Ruby, needed by OMF software
+####################
+%define imagezip_actual_name imagezip-1.0.0-3
+
+%package -n imagezip
+Summary: filesystem image compression tool from EMULAB
+Group: System Environment/Base
+%description -n imagezip
+filesystem image compression tool from EMULAB
+
####################
%prep
(cd unwrap; rpm2cpio ../%{liblog4r_actual_name}.noarch.rpm | cpio -diu)
make libxmpp4r
(cd unwrap; rpm2cpio ../%{libxmpp4r_actual_name}.noarch.rpm | cpio -diu)
+make imagezip
+(cd unwrap; rpm2cpio ../%{imagezip_actual_name}.i386.rpm | cpio -diu)
# cleanup svn sequels
find unwrap -type d -name .svn -print0 | xargs -0 rm -rf
/usr/lib/ruby/1.8/xmpp4r
/usr/share/doc/libxmpp4r-ruby1.8
+####################
+%files -n imagezip
+%defattr(-,root,root)
+/usr/bin/imagedump
+/usr/bin/imageunzip
+/usr/bin/imagezip
+/usr/share/doc/imagezip
+
####################
%changelog