Run autotools to generate the configure script before building

Partially fixes https://bugzilla.redhat.com/show_bug.cgi?id=1377240
This commit is contained in:
Petr Viktorin 2017-08-29 15:13:05 +02:00
commit 96a7bd540e
2 changed files with 11 additions and 60 deletions

View file

@ -733,11 +733,21 @@ sed --in-place \
%patch5001 -p1
# Remove files that should be generated by the build
# (This is after patching, so that we can use patches directly from upstream)
rm configure pyconfig.h.in
# ======================================================
# Configuring and building the code:
# ======================================================
%build
# Regenerate the configure script and pyconfig.h.in
autoconf
autoheader
topdir=$(pwd)
export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -fPIC -fwrapv"
export CXXFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -fPIC -fwrapv"
@ -1669,6 +1679,7 @@ fi
%changelog
* Mon Aug 28 2017 Petr Viktorin <pviktori@redhat.com> - 3.6.2-13
- Rename patch files to be consistent
- Run autotools to generate the configure script before building
* Mon Aug 28 2017 Michal Cyprian <mcyprian@redhat.com> - 3.6.2-12
- Use python3 style of calling super() without arguments in rpath