[Ovirt-devel] [PATCH appliance] restore envvar-controlled RPM_FLAGS additions

Jim Meyering jim at meyering.net
Fri Sep 12 16:00:19 UTC 2008


* Makefile.am: Restore the code to append to RPM_FLAGS.
These were mistakenly removed by the previous commit.
---
Thanks to Perry Myers for spotting this.
Testing it now...

 Makefile.am |   17 +++++++++++++++++
 1 files changed, 17 insertions(+), 0 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index b59086a..8fbba56 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -35,3 +35,20 @@ pkg_name = $(PACKAGE_NAME)
 tar: dist
 	mkdir -p rpm-build/BUILDROOT
 	cp version $(distdir).tar.gz rpm-build
+
+# FEDORA_URL env var can be set to the root of a fedora mirror
+# OVIRT_URL env var can be set to the root of an ovirt.org mirror
+# SKIP_COMPRESS_IMAGE env var an be set to 1 to skip qcow compression
+# that contains the install tree
+
+ifdef SKIP_COMPRESS_IMAGE
+RPM_FLAGS += --define "skip_compress_image 1"
+endif
+
+ifdef FEDORA_URL
+RPM_FLAGS += --define "fedora_url $(FEDORA_URL)"
+endif
+
+ifdef OVIRT_URL
+RPM_FLAGS += --define "ovirt_url $(OVIRT_URL)"
+endif
--
1.6.0.1.308.gede4c




More information about the ovirt-devel mailing list