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 %define image_iso
%{SOURCE1}
13 %define image_iso
%{name}.iso
16 Group: Applications
/System
17 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
18 URL: http
://ovirt.org
/
19 BuildRequires
: livecd
-tools
>= 020-2
20 BuildRequires
: syslinux
21 Requires: appliance
-tools
>= 003.9
23 %define app_root
%{_datadir}/%{name}
25 # disable debuginfo, makes no sense for boot image and it is created empty anyway
26 %define debug_package
%{nil}
29 The ISO boot image
for oVirt Node booting from CDROM device.
30 At the moment
, this RPM just packages prebuilt ISO.
33 Summary: oVirt Node PXE image
34 Group: Applications
/System
35 Requires: %{name} = %{version}-%{release}
38 PXE boot image installer
for oVirt Node network boot from oVirt Server.
48 make %{?ovirt_cache_dir: OVIRT_CACHE_DIR=%{ovirt_cache_dir}} \
49 %{?ovirt_local_repo: OVIRT_LOCAL_REPO=%{ovirt_local_repo}} \
50 %{?ovirt_url: OVIRT_URL=%{ovirt_url}} \
55 %{__rm} -rf %{buildroot}
58 %{__install} -d -m0755 %{buildroot}%{app_root}
59 %{__install} -p -m0644 %{image_iso} %{buildroot}%{app_root}
60 %{__install} -d -m0755 %{buildroot}%{_sbindir}
61 %{__install} -p -m0755 ovirt-pxe %{buildroot}%{_sbindir}
62 %{__install} -p -m0755 ovirt-flash %{buildroot}%{_sbindir}
63 %{__install} -p -m0755 create-ovirt-iso-nodes %{buildroot}%{_sbindir}
64 %{__install} -p -m0755 edit-livecd %{buildroot}%{_sbindir}
65 %{__install} -p -m0755 livecd-setauth %{buildroot}%{_sbindir}
68 %{__rm} -rf %{buildroot}
73 ovirt
-pxe
%{name}.iso
> /dev
/null
74 cobbler sync
> /dev
/null
2>&1 ||
:
77 %defattr(-,root
,root
,0644)
78 %{app_root}/%{name}.iso
79 %defattr(-,root
,root
,0755)
81 %{_sbindir}/ovirt
-flash
82 %{_sbindir}/create
-ovirt
-iso
-nodes
83 %{_sbindir}/edit
-livecd
84 %{_sbindir}/livecd
-setauth
87 %defattr(0644,root
,root
,0755)
90 * Thu Jul
03 2008 Perry Myers
<pmyers@redhat.com
> 0.92-0
91 - Only store ISO
in SRPM
, and generate PXE from that during build
93 * Tue Jun
03 2008 Alan Pevec
<apevec@redhat.com
> 0.0.5-1