--- /dev/null
+--- otp-OTP-21.3.8.6/erts/configure.in.orig 2019-07-11 17:18:55.000000000 +0200
++++ otp-OTP-21.3.8.6/erts/configure.in 2019-09-09 17:44:05.368217526 +0200
+@@ -855,7 +855,8 @@
+ AC_MSG_WARN([No 'xsltproc' command found: the documentation cannot be built])
+ fi
+
+-AC_CHECK_PROGS(FOP, fop)
++dnl AC_CHECK_PROGS(FOP, fop)
++AC_SUBST(FOP)
+ if test -z "$FOP"; then
+ FOP="$ERL_TOP/make/fakefop"
+ echo "fop" >> doc/CONF_INFO
Source5: epmd@.socket
Patch0: %{name}-fPIC.patch
Patch1: x32.patch
+# disable pdf docs (require libxslt-progs and fop > 1.0, with -cache option)
+Patch2: %{name}-no-fop.patch
URL: http://www.erlang.org/
%{?with_java:BuildRequires: /usr/bin/jar}
BuildRequires: autoconf
%setup -q -n otp-OTP-%{_version}
#%patch0 -p1
%patch1 -p1
+%patch2 -p1
%build
./otp_build autoconf