Use boostrap.sh to build rpm on Fedora machines

Use bootstrap.sh before running configure when building an rpm.
Reorder the tools in bootstrap.sh to avoid error messages.

Rename configure.in to configure.ac to quite down more recent autotools.

Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
Signed-off-by: Joel Schopp <jschopp@linux.vnet.ibm.com>
This commit is contained in:
Stefan Berger 2014-01-17 15:57:55 -05:00 committed by Joel Schopp
parent ea5d455718
commit 017c810393
4 changed files with 5 additions and 2 deletions

View File

@ -34,6 +34,7 @@ EXTRA_DIST = \
INSTALL \
LICENSE \
README \
bootstrap.sh \
libtpms.pc.in
pkgconfigdir = $(libdir)/pkgconfig

View File

@ -1,6 +1,6 @@
#!/bin/sh
set -x
aclocal || exit 1
libtoolize --force || exit 1
automake || exit 1
aclocal || exit 1
automake --add-missing -c || exit 1
autoconf || exit 1

View File

@ -27,6 +27,7 @@ BuildRequires: nss-softokn-freebl-devel >= 3.12.9-2
BuildRequires: nss-softokn-freebl-static >= 3.12.9-2
BuildRequires: nss-softokn-devel >= 3.12.9-2, gmp-devel
BuildRequires: pkgconfig gawk
BuildRequires: automake autoconf libtool bash coreutils
Requires: nss-softokn-freebl >= 3.12.9-2, nss-softokn >= 3.12.9-2
Requires: gmp
%endif
@ -72,6 +73,7 @@ Libtpms header files and documentation.
%define _enable_debug --enable-debug
%endif
./bootstrap.sh
%configure \
--disable-static \
--prefix=/usr \