[Ovirt-devel] [PATCH] added ovirt-node-recipe.spec.in

David Huff dhuff at redhat.com
Wed Jul 29 00:14:50 UTC 2009


Modified configure
---
 configure.ac              |    2 +-
 ovirt-node-recipe.spec.in |   82 +++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 83 insertions(+), 1 deletions(-)
 create mode 100644 ovirt-node-recipe.spec.in

diff --git a/configure.ac b/configure.ac
index af2cccd..d7e8fac 100644
--- a/configure.ac
+++ b/configure.ac
@@ -7,5 +7,5 @@ AC_CONFIG_HEADERS([config.h])
 test x"$ac_ct_CC:$CFLAGS" = 'xgcc:-g -O2' \
   && CFLAGS="$CFLAGS -Wshadow -Wall -Werror"
 
-AC_CONFIG_FILES([Makefile ovirt-node-image.spec])
+AC_CONFIG_FILES([Makefile ovirt-node-image.spec  ovirt-node-recipe.spec])
 AC_OUTPUT
diff --git a/ovirt-node-recipe.spec.in b/ovirt-node-recipe.spec.in
new file mode 100644
index 0000000..113939b
--- /dev/null
+++ b/ovirt-node-recipe.spec.in
@@ -0,0 +1,82 @@
+Summary: oVirt Node image recipe
+Name: ovirt-node-recipe
+Version: @VERSION@
+Release: 0%{?dist}%{?extra_release}
+Source0: %{name}-%{version}.tar.gz
+%define image ovirt-node-image
+%define image_manifests %{image}-manifests.tar
+License: GPLv2+
+Group: Applications/System
+buildroot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
+URL: http://ovirt.org/
+
+Requires: livecd-tools >= 020-2
+Requires: bittorrent
+
+BuildArch: noarch
+%define app_root %{_datadir}/%{name}
+
+#  disable debuginfo, makes no sense for boot image and it is created empty anyway
+%define debug_package %{nil}
+
+%description
+The oVirt-node-recipe provides ks file, manifest files, client tools, and
+documentation for building and running an oVirt Node image. This package 
+is not to be installed on the oVirt-Node, however on a development machine 
+to help in deployment on the node.
+
+%prep
+%setup -c -q
+
+%build
+
+%install
+%{__rm} -rf %{buildroot}
+mkdir %{buildroot}
+
+%{__install} -d -m0755 %{buildroot}%{app_root}
+%{__install} -p -m0644 %{name}.ks %{buildroot}%{app_root}
+%{__install} -d -m0755 %{buildroot}%{_sbindir}
+%{__install} -p -m0755 tools/create-ovirt-iso-nodes %{buildroot}%{_sbindir}
+%{__install} -p -m0755 tools/edit-livecd %{buildroot}%{_sbindir}
+%{__install} -p -m0755 tools/livecd-setauth %{buildroot}%{_sbindir}
+%{__install} -p -m0755 tools/livecd-rpms %{buildroot}%{_sbindir}
+%{__install} -p -m0755 tools/get-ovirt-node-image %{buildroot}%{_sbindir}
+%{__install} -p -m0755 tools/generate-ovirt-node-pxe-tree %{buildroot}%{_sbindir}
+%{__tar} -xf %{image_manifests} -C %{buildroot}%{app_root}
+
+%clean
+%{__rm} -rf %{buildroot}
+
+%files
+%defattr(0644,root,root,0755)
+%{app_root}/%{name}.ks
+%doc %{app_root}/manifests/rpm-manifest.txt
+%doc %{app_root}/manifests/srpm-manifest.txt
+%doc %{app_root}/manifests/file-manifest.txt
+%doc %{app_root}/manifests/dir-manifest.txt
+%doc %{app_root}/manifests/rpm-manifest-post.txt
+%doc %{app_root}/manifests/srpm-manifest-post.txt
+%doc %{app_root}/manifests/file-manifest-post.txt
+%doc %{app_root}/manifests/dir-manifest-post.txt
+%doc %{app_root}/manifests/ovirt-release
+
+%defattr(0755,root,root,0755)
+%{_sbindir}/create-ovirt-iso-nodes
+%{_sbindir}/edit-livecd
+%{_sbindir}/livecd-setauth
+%{_sbindir}/livecd-rpms
+%{_sbindir}/get-ovirt-node-image
+%{_sbindir}/generate-ovirt-node-pxe-tree
+
+%changelog
+* Thu Jul 16 2009 David Huff <dhuff at redhat.com> 0.93-0
+- Package for F-12
+
+* Thu Jul 03 2008 Perry Myers <pmyers at redhat.com> 0.92-0
+- Only store ISO in SRPM, and generate PXE from that during build
+
+* Tue Jun 03 2008 Alan Pevec <apevec at redhat.com>  0.0.5-1
+- Initial build.
+
+
-- 
1.6.0.6




More information about the ovirt-devel mailing list