diff --git a/indent.spec b/indent.spec
index ee1bacc..3e58239 100644
--- a/indent.spec
+++ b/indent.spec
@@ -112,7 +112,7 @@ Source1: https://ftpmirror.gnu.org/%{name}/%{name}-%{version}.tar.xz.sig
# and
# .
Source2: https://shadura.me/key.pgp
-BuildRequires: autoconf >= 2.71
+BuildRequires: autoconf2.7x >= 2.71
# autoconf-archive for unbundled ax_cc_for_build.m4
BuildRequires: autoconf-archive
BuildRequires: automake
@@ -149,7 +149,7 @@ rm -r aclocal.m4 config configure m4 {,doc/,src/,man/}Makefile.in \
po/Makefile.in.in po/*.sed po/*.sin po/Rules-quot
%build
-autoreconf -i -f
+autoreconf27 -i -f
%configure \
--enable-largefile \
--enable-nls \