diff options
| author | Daniel P. Berrange <berrange@redhat.com> | 2012-10-12 11:35:36 +0100 |
|---|---|---|
| committer | Daniel P. Berrange <berrange@redhat.com> | 2012-10-12 19:29:00 +0100 |
| commit | dcbd306051ec7352d11cda3c78be7a705a4daa84 (patch) | |
| tree | ca6e0f67d54aa6694f759bc62f881eb8f765064a | |
| parent | c4bfbe104f507236e2f98d6d4aa5966b0b6857bc (diff) | |
Add RPM magic to run autoreconf
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
| -rw-r--r-- | virt-viewer.spec.in | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/virt-viewer.spec.in b/virt-viewer.spec.in index ac236f4..ee91b5f 100644 --- a/virt-viewer.spec.in +++ b/virt-viewer.spec.in @@ -1,5 +1,10 @@ # -*- rpm-spec -*- +# 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 1} + # Plugin isn't ready for real world use yet - it needs # a security audit at very least %define _with_plugin %{?with_plugin:1}%{!?with_plugin:0} @@ -38,6 +43,13 @@ Requires(postun): %{_sbindir}/update-alternatives Requires(post): desktop-file-utils Requires(postun): desktop-file-utils +%if 0%{?enable_autotools} +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: gettext-devel +BuildRequires: libtool +%endif + BuildRequires: glib2-devel >= 2.22 %if %{with_gtk3} BuildRequires: gtk3-devel >= 3.0.0 @@ -94,6 +106,10 @@ browsers. %build +%if 0%{?enable_autotools} +autoreconf -if +%endif + %if %{_with_plugin} %define plugin_arg --enable-plugin %else |
