1 #include pre-built image ISO as source
2 %{!?source_iso: %define source_iso 0}
4 Summary: oVirt Node ISO image
7 Release: 0%{?dist}%{?extra_release}
8 Source0: %{name}-%{version}.tar.gz
11 Source2: %{name}-manifests.tar
12 %define image_iso
%{SOURCE1}
13 %define image_manifests
%{SOURCE2}
15 %define image_iso
%{name}.iso
16 %define image_manifests
%{name}-manifests.tar
19 Group: Applications
/System
20 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
21 URL: http
://ovirt.org
/
23 BuildRequires
: livecd
-tools
>= 020-2
24 BuildRequires
: appliance
-tools
>= 003.9
26 Requires: livecd
-tools
>= 020-2
28 %define app_root
%{_datadir}/%{name}
30 # disable debuginfo, makes no sense for boot image and it is created empty anyway
31 %define debug_package
%{nil}
34 The ISO boot image
for oVirt Node booting from CDROM device.
35 At the moment
, this RPM just packages prebuilt ISO.
45 make %{?ovirt_cache_dir: OVIRT_CACHE_DIR=%{ovirt_cache_dir}} \
46 %{?ovirt_local_repo: OVIRT_LOCAL_REPO=%{ovirt_local_repo}} \
47 %{?ovirt_url: OVIRT_URL=%{ovirt_url}} \
52 %{__rm} -rf %{buildroot}
55 %{__install} -d -m0755 %{buildroot}%{app_root}
56 %{__install} -p -m0644 %{image_iso} %{buildroot}%{app_root}
57 %{__install} -d -m0755 %{buildroot}%{_sbindir}
58 %{__install} -p -m0755 create-ovirt-iso-nodes %{buildroot}%{_sbindir}
59 %{__install} -p -m0755 edit-livecd %{buildroot}%{_sbindir}
60 %{__install} -p -m0755 livecd-setauth %{buildroot}%{_sbindir}
61 %{__install} -p -m0755 livecd-rpms %{buildroot}%{_sbindir}
62 %{__tar} -xf %{image_manifests} -C %{buildroot}%{app_root}
65 %{__rm} -rf %{buildroot}
68 %defattr(0644,root
,root
,0755)
69 %{app_root}/%{name}.iso
70 %doc %{app_root}/manifests
/rpm
-manifest.txt
71 %doc %{app_root}/manifests
/srpm
-manifest.txt
72 %doc %{app_root}/manifests
/file
-manifest.txt
73 %doc %{app_root}/manifests
/dir
-manifest.txt
74 %doc %{app_root}/manifests
/rpm
-manifest
-post.txt
75 %doc %{app_root}/manifests
/srpm
-manifest
-post.txt
76 %doc %{app_root}/manifests
/file
-manifest
-post.txt
77 %doc %{app_root}/manifests
/dir
-manifest
-post.txt
78 %doc %{app_root}/manifests
/ovirt
-release
80 %defattr(0755,root
,root
,0755)
81 %{_sbindir}/create
-ovirt
-iso
-nodes
82 %{_sbindir}/edit
-livecd
83 %{_sbindir}/livecd
-setauth
84 %{_sbindir}/livecd
-rpms
87 * Thu Jul
03 2008 Perry Myers
<pmyers@redhat.com
> 0.92-0
88 - Only store ISO
in SRPM
, and generate PXE from that during build
90 * Tue Jun
03 2008 Alan Pevec
<apevec@redhat.com
> 0.0.5-1