imagezip also needed
authorthierry <thierry@8c455092-636d-4788-adf5-e71def0336e8>
Sat, 6 Mar 2010 07:21:03 +0000 (07:21 +0000)
committerthierry <thierry@8c455092-636d-4788-adf5-e71def0336e8>
Sat, 6 Mar 2010 07:21:03 +0000 (07:21 +0000)
Makefile
omf-resctl.spec

index 8e624a8..0c3bbe0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -20,6 +20,10 @@ ALL += libxmpp4r
 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
@@ -45,6 +49,7 @@ $(eval $(call download_target,omf-resctl))
 $(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)
index c92e586..1e28fce 100644 (file)
@@ -3,8 +3,8 @@
 #
 %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
@@ -29,7 +29,6 @@ Distribution: %{pldistro} %{plrelease}
 URL: %(echo %{url} | cut -d ' ' -f 2)
 BuildArch: noarch
 
-Requires: imagezip
 Requires: pciutils  
 Requires: ruby  
 Requires: wget  
@@ -40,6 +39,7 @@ Requires: rpmlib(PayloadFilesHavePrefix) <= 4.0-1
 Requires: omf-common  
 Requires: liblog4r
 Requires: libxmpp4r
+Requires: imagezip
 
 %description 
 The OMF Resource Controller (RC) is the experiment-side of the
@@ -73,6 +73,15 @@ Group: System Environment/Base
 %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
@@ -91,6 +100,8 @@ make liblog4r
 (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
@@ -142,5 +153,13 @@ ln -s /usr/bin/ruby /usr/bin/ruby1.8
 /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