Add patches_touch_autotools mechanism from nbdkit.

This commit is contained in:
Richard W.M. Jones 2019-05-31 13:14:43 +01:00
parent 5156cc7e12
commit 29e15986f0

View File

@ -30,6 +30,9 @@
# Verify tarball signature with GPGv2 (only possible for stable branches).
%global verify_tarball_signature %{nil}
# If there are patches which touch autotools files, set this to 1.
%global patches_touch_autotools 1
# Filter perl provides.
%{?perl_default_filter}
@ -64,6 +67,10 @@ Source6: yum.conf.in
Source7: libguestfs.keyring
%endif
%if 0%{patches_touch_autotools}
BuildRequires: autoconf, automake, libtool, gettext-devel
%endif
# Basic build requirements for the library and virt tools.
BuildRequires: gcc, gcc-c++
BuildRequires: rpcgen
@ -803,6 +810,10 @@ gpgv2 --homedir "$tmphome" --keyring %{SOURCE7} %{SOURCE1} %{SOURCE0}
%setup -q
%autopatch -p1
%if 0%{patches_touch_autotools}
autoreconf -i
%endif
# For sVirt to work, the local temporary directory we use in the tests
# must be labelled the same way as /tmp. This doesn't work if either
# the directory is on NFS (no SELinux labels) or if SELinux is