diff --git a/libIDL.spec b/libIDL.spec index 73cfb77..c379985 100644 --- a/libIDL.spec +++ b/libIDL.spec @@ -1,3 +1,5 @@ +%bcond autoreconf 1 + Name: libIDL Summary: Library for parsing IDL (Interface Definition Language) Version: 0.8.14 @@ -74,6 +76,13 @@ Patch: libIDL-0.8.14-old-libIDL-config-script.patch BuildRequires: gcc BuildRequires: make + +%if %{with autoreconf} +BuildRequires: autoconf +BuildRequires: automake +BuildRequires: libtool +%endif + BuildRequires: pkgconfig(glib-2.0) BuildRequires: flex BuildRequires: bison @@ -117,7 +126,12 @@ This page contains info pages and HTML and PDF documentation for libIDL. %build +%if %{with autoreconf} +autoreconf --force --install --verbose +%endif + %configure --disable-static + # We re-generate the info page, and also build PDF and HTML docs from the # texinfo source. rm libIDL2.info