adding files to the build cache to reduce bandwidth by reusing already downloaded... 89/1589/9
authorDan Radez <dradez@redhat.com>
Tue, 15 Sep 2015 15:14:53 +0000 (11:14 -0400)
committerDan Radez <dradez@redhat.com>
Wed, 16 Sep 2015 01:28:30 +0000 (21:28 -0400)
reverting git archive to use HEAD, jenkins checks out the correct branch so we can rely on head

Change-Id: Iaf308ebdbd72e96c87fb49ee04168a7e9a905d98
Signed-off-by: Dan Radez <dradez@redhat.com>
foreman/build/Makefile
foreman/build/cache.mk
foreman/build/opnfv-genesis.spec

index 09e91d2..2d2a2a7 100644 (file)
@@ -26,7 +26,7 @@ export VBOXDNLD = http://download.virtualbox.org/virtualbox/rpm/el/7.1/x86_64/Vi
 export VBOXRPM = $(shell pwd)/VirtualBox-4.3-4.3.26_98988_el7-1.x86_64.rpm
 export VAGRANTDNLD = https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.2_x86_64.rpm
 export VAGRANTRPM = $(shell pwd)/vagrant_1.7.2_x86_64.rpm
-export GENESISRPM = $(shell pwd)/x86_64/opnfv-genesis-0.1-1.x86_64.rpm
+export GENESISRPM = $(shell pwd)/x86_64/opnfv-genesis-0.2-1.x86_64.rpm
 
 # Note! Invoke with "make REVSTATE=RXXXX all" to make release build!
 # Invoke with ICOCACHE=/full/path/to/iso if cached ISO is in non-standard location.
@@ -106,8 +106,8 @@ rpm-clean:
 
 .PHONY: rpm
 rpm:
-       pushd ../../ && git archive --format=tar --prefix=opnfv-genesis-0.1/ origin/stable/arno | gzip > foreman/build/opnfv-genesis.tar.gz
-       rpmbuild -ba opnfv-genesis.spec -D '_topdir %(echo `pwd`)' -D '_builddir %(echo `pwd`)' -D '_sourcedir %(echo `pwd`)' -D '_rpmdir %(echo `pwd`)' -D '_specdir %(echo `pwd`)' -D '_srcrpmdir %(echo `pwd`)' 
+       pushd ../../ && git archive --format=tar --prefix=opnfv-genesis-0.2/ HEAD | gzip > foreman/build/opnfv-genesis.tar.gz
+       rpmbuild -ba opnfv-genesis.spec -D '_topdir %(echo `pwd`)' -D '_builddir %(echo `pwd`)' -D '_sourcedir %(echo `pwd`)' -D '_rpmdir %(echo `pwd`)' -D '_specdir %(echo `pwd`)' -D '_srcrpmdir %(echo `pwd`)'
        @make rpm-clean
 
 
index fdfd003..56b7273 100644 (file)
@@ -16,6 +16,8 @@ CACHECLEAN := $(addsuffix .clean,$(CACHEFILES) $(CACHEDIRS))
 # BEGIN of variables to customize
 #
 CACHEFILES += .versions
+CACHEFILES += $(shell basename $(VAGRANTRPM))
+CACHEFILES += $(shell basename $(VBOXRPM))
 CACHEFILES += $(shell basename $(ISOSRC))
 #
 # END of variables to customize
index bcac1a9..30692b4 100644 (file)
@@ -1,5 +1,5 @@
 Name:          opnfv-genesis
-Version:       0.1
+Version:       0.2
 Release:       1
 Summary:       The files from the OPNFV genesis repo
 
@@ -8,8 +8,8 @@ License:        Apache 2.0
 URL:           https://gerrit.opnfv.org/gerrit/genesis.git
 Source0:       opnfv-genesis.tar.gz
 
-#BuildRequires:        
-Requires:      vagrant, VirtualBox-4.3
+#BuildRequires:
+Requires:      vagrant, VirtualBox-4.3, net-tools
 
 %description
 The files from the OPNFV genesis repo
@@ -30,5 +30,7 @@ cp -r common/ %{buildroot}/root/genesis
 
 
 %changelog
-* Fri Apr 24 2015 Dan Radez <dradez@redhatcom> - 0.1-1
+* Tue Sep 15 2015 Dan Radez <dradez@redhat.com> - 0.2-1
+- Updating the install files and cleaning up white space
+* Fri Apr 24 2015 Dan Radez <dradez@redhat.com> - 0.1-1
 - Initial Packaging