From 98f3ce0ed528651298117ba3c83ec62c67ee08e6 Mon Sep 17 00:00:00 2001 From: Alan Pevec Date: Tue, 4 Nov 2008 15:08:54 +0100 Subject: [PATCH] build procedure change: include image ISO in SRPM livecd images cannot be built in Koji build-system at the moment, they need to be included in SRPM Signed-off-by: Alan Pevec --- Makefile.am | 4 ++-- autobuild.sh | 2 +- ovirt-node-image.spec.in | 9 +++------ 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/Makefile.am b/Makefile.am index fce5131..6020609 100644 --- a/Makefile.am +++ b/Makefile.am @@ -97,7 +97,7 @@ ovirt-node-image.iso: repos.ks fi \ ) -rpms: dist +rpms: ovirt-node-image.iso dist rpmbuild $(RPM_FLAGS) -ta $(distdir).tar.gz publish: rpms @@ -106,4 +106,4 @@ publish: rpms rsync -aq $(shell rpm --eval '%{_srcrpmdir}')/ $(OVIRT_CACHE_DIR)/ovirt/src createrepo $(OVIRT_CACHE_DIR)/ovirt -.PHONY: rpms publish +.PHONY: rpms publish ovirt-node-image.iso diff --git a/autobuild.sh b/autobuild.sh index 1651a63..e82f4f2 100755 --- a/autobuild.sh +++ b/autobuild.sh @@ -27,6 +27,7 @@ test -f Makefile && make -k distclean || : ./autogen.sh --prefix=$AUTOBUILD_INSTALL_ROOT make dist +make ovirt-node-image.iso OVIRT_LOCAL_REPO=file://$AUTOBUILD_PACKAGE_ROOT/rpm/RPMS if [ -f /usr/bin/rpmbuild ]; then if [ -n "$AUTOBUILD_COUNTER" ]; then @@ -37,6 +38,5 @@ if [ -f /usr/bin/rpmbuild ]; then fi rpmbuild --nodeps --define "extra_release $EXTRA_RELEASE" \ - --define "ovirt_local_repo file://$AUTOBUILD_PACKAGE_ROOT/rpm/RPMS" \ -ta --clean *.tar.gz fi diff --git a/ovirt-node-image.spec.in b/ovirt-node-image.spec.in index 79ce2c3..eb17714 100644 --- a/ovirt-node-image.spec.in +++ b/ovirt-node-image.spec.in @@ -3,6 +3,7 @@ Name: ovirt-node-image Version: @VERSION@ Release: 0%{?dist}%{?extra_release} Source0: %{name}-%{version}.tar.gz +Source1: %{name}.iso License: GPLv2+ Group: Applications/System BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot @@ -33,11 +34,7 @@ The PXE boot image for oVirt Node network boot from oVirt Server. ./configure %build -make %{?ovirt_cache_dir: OVIRT_CACHE_DIR=%{ovirt_cache_dir}} \ - %{?ovirt_local_repo: OVIRT_LOCAL_REPO=%{ovirt_local_repo}} \ - %{?ovirt_url: OVIRT_URL=%{ovirt_url}} \ - ovirt-node-image.iso -sudo su - -c "cd $(pwd) && ./ovirt-pxe %{name}.iso" +sudo su - -c "cd $(pwd) && ./ovirt-pxe %{SOURCE1}" sudo su - -c "cd $(pwd) && chown -R $USER ." %install @@ -51,7 +48,7 @@ mkdir %{buildroot} %{__install} -p -m0644 tftpboot/initrd0.img %{buildroot}%{tftpboot} %{__install} -p -m0644 tftpboot/vmlinuz0 %{buildroot}%{tftpboot} %{__install} -d -m0755 %{buildroot}%{app_root} -%{__install} -p -m0644 %{name}.iso %{buildroot}%{app_root} +%{__install} -p -m0644 %{SOURCE1} %{buildroot}%{app_root} %{__install} -d -m0755 %{buildroot}%{_sbindir} %{__install} -p -m0755 ovirt-pxe %{buildroot}%{_sbindir} %{__install} -p -m0755 ovirt-flash %{buildroot}%{_sbindir} -- 2.11.4.GIT