From 64dbc2987484ce845ac868bedb1d68ed460c47ba Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Sun, 1 Jul 2018 16:35:07 +0100 Subject: [PATCH] Add generic patches_touch_autotools mechanism for running autoreconf. --- nbdkit.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nbdkit.spec b/nbdkit.spec index 56ceec7..6302323 100644 --- a/nbdkit.spec +++ b/nbdkit.spec @@ -34,6 +34,11 @@ Source1: http://libguestfs.org/download/nbdkit/%{name}-%{version}.tar.gz. Source2: libguestfs.keyring %endif +%global patches_touch_autotools 0 +%if 0%{patches_touch_autotools} +BuildRequires: autoconf, automake, libtool +%endif + %if 0%{?rhel} == 7 # On RHEL 7, nothing in the virt stack is shipped on aarch64 and # libguestfs was not shipped on POWER (fixed in 7.5). We could in @@ -430,6 +435,9 @@ tmphome="$(mktemp -d)" gpgv2 --homedir "$tmphome" --keyring %{SOURCE2} %{SOURCE1} %{SOURCE0} %endif %autosetup -p1 +%if 0%{patches_touch_autotools} +autoreconf -i +%endif %ifnarch %{complete_test_arches} # Simplify the test suite so it doesn't require qemu.