Change in vdsm[master]: Add the autotools support in the spec file
fsimonce at redhat.com
fsimonce at redhat.com
Tue Sep 11 09:40:20 UTC 2012
Federico Simoncelli has uploaded a new change for review.
Change subject: Add the autotools support in the spec file
......................................................................
Add the autotools support in the spec file
This change makes easier for rpm-based distributions to backport patches
that touch the autotools files.
Bug-Url: https://bugzilla.redhat.com/show_bug.cgi?id=847535
Signed-off-by: Federico Simoncelli <fsimonce at redhat.com>
Change-Id: I23703d299b639d55714b71567bc04c154fc21fc0
---
M vdsm.spec.in
1 file changed, 16 insertions(+), 0 deletions(-)
git pull ssh://gerrit.ovirt.org:29418/vdsm refs/changes/25/7925/1
diff --git a/vdsm.spec.in b/vdsm.spec.in
index bb6730e..ba14141 100644
--- a/vdsm.spec.in
+++ b/vdsm.spec.in
@@ -13,6 +13,11 @@
# Required paths
%global _polkitdir %{_localstatedir}/lib/polkit-1/localauthority/10-vendor.d
+# Default to skipping autoreconf. Distros can change just this one line
+# (or provide a command-line override) if they backport any patches that
+# touch configure.ac or Makefile.am.
+%{!?enable_autotools:%define enable_autotools 0}
+
Name: %{vdsm_name}
Version: @PACKAGE_VERSION@
Release: @PACKAGE_RELEASE@%{?dist}%{?extra_release}
@@ -35,6 +40,14 @@
BuildRequires: libvirt-python
BuildRequires: sanlock-python >= 2.3
BuildRequires: genisoimage
+
+# Autotools BuildRequires
+%if 0%{?enable_autotools}
+BuildRequires: autoconf
+BuildRequires: automake
+BuildRequires: gettext-devel
+BuildRequires: libtool
+%endif
%if !0%{?rhel}
BuildRequires: systemd-units
@@ -335,6 +348,9 @@
%setup -q
%build
+%if 0%{?enable_autotools}
+autoreconf -if
+%endif
%configure %{?with_hooks:--enable-hooks}
make
# Setting software_version and software_revision in dsaversion.py
--
To view, visit http://gerrit.ovirt.org/7925
To unsubscribe, visit http://gerrit.ovirt.org/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I23703d299b639d55714b71567bc04c154fc21fc0
Gerrit-PatchSet: 1
Gerrit-Project: vdsm
Gerrit-Branch: master
Gerrit-Owner: Federico Simoncelli <fsimonce at redhat.com>
More information about the vdsm-patches
mailing list