summaryrefslogtreecommitdiff
path: root/virt-manager.spec.in
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2011-03-29 09:36:07 -0400
committerCole Robinson <crobinso@redhat.com>2011-03-29 09:36:07 -0400
commit8c1eba2573590314308af8467e0bbaabf7174188 (patch)
treeca68ae3afc51be71c76ccdf772d0ecaf1c4866c8 /virt-manager.spec.in
parentbdb54488b77f54e0cb7f3100625df3fd2af2b858 (diff)
downloadvirt-manager-8c1eba2573590314308af8467e0bbaabf7174188.tar.gz
spec: Move all local config to top of file
Makes diffing between distro specs easier
Diffstat (limited to 'virt-manager.spec.in')
-rw-r--r--virt-manager.spec.in60
1 files changed, 55 insertions, 5 deletions
diff --git a/virt-manager.spec.in b/virt-manager.spec.in
index fa3a83a3..6ad34bfb 100644
--- a/virt-manager.spec.in
+++ b/virt-manager.spec.in
@@ -1,14 +1,30 @@
# -*- rpm-spec -*-
+%define _package @PACKAGE@
+%define _version @VERSION@
+%define _release 1
+%define virtinst_version @VIRTINST_VERSION@
+
+%define qemu_user ""
+%define preferred_distros ""
+%define kvm_packages ""
+%define libvirt_packages ""
+%define disable_unsupported_rhel 0
+%define default_graphics ""
+
+%define with_spice 0
+
+# End local config
+
# This macro is used for the continuous automated builds. It just
# allows an extra fragment based on the timestamp to be appended
# to the release. This distinguishes automated builds, from formal
# Fedora RPM builds
%define _extra_release %{?dist:%{dist}}%{!?dist:%{?extra_release:%{extra_release}}}
-Name: @PACKAGE@
-Version: @VERSION@
-Release: 1%{_extra_release}
+Name: %{_package}
+Version: %{_version}
+Release: %{_release}%{_extra_release}
Summary: Virtual Machine Manager
Group: Applications/Emulators
@@ -37,7 +53,7 @@ Requires: gnome-python2-gnomekeyring >= 2.15.4
# Minimum we've tested with
Requires: libxml2-python >= 2.6.23
# Absolutely require this version or later
-Requires: python-virtinst >= @VIRTINST_VERSION@
+Requires: python-virtinst >= %{virtinst_version}
# Required for loading the glade UI
Requires: pygtk2-libglade
# Required for our graphics which are currently SVG format
@@ -56,6 +72,9 @@ Requires: PolicyKit-authentication-agent
%if 0%{?fedora} >= 9 && 0%{?fedora} < 11
Requires: PolicyKit-gnome
%endif
+%if %{with_spice}
+Requires: spice-gtk
+%endif
BuildRequires: gettext
BuildRequires: scrollkeeper
@@ -78,7 +97,38 @@ management API.
%setup -q
%build
-%configure --without-tui
+%if %{qemu_user}
+%define _qemu_user --with-qemu_user=%{qemu_user}
+%endif
+
+%if %{kvm_packages}
+%define _kvm_packages --with-kvm-packages=%{kvm_packages}
+%endif
+
+%if %{preferred_distros}
+%define _preferred_distros --with-preferred-distros=%{preferred_distros}
+%endif
+
+%if %{libvirt_packages}
+%define _libvirt_packages --with-libvirt-package-names=%{libvirt_packages}
+%endif
+
+%if %{disable_unsupported_rhel}
+%define _disable_unsupported_rhel --disable-unsupported-rhel-options
+%endif
+
+%if %{default_graphics}
+%define _default_graphics --with-default-graphics=%{default_graphics}
+%endif
+
+
+%configure --without-tui \
+ %{?_qemu_user} \
+ %{?_kvm_packages} \
+ %{?_libvirt_packages} \
+ %{?_preferred_distros} \
+ %{?_enable_unsupported_rhel} \
+ %{?_default_graphics}
make %{?_smp_mflags}