diff options
author | Petr Spacek <pspacek@redhat.com> | 2016-11-07 16:46:37 +0100 |
---|---|---|
committer | Martin Babinsky <mbabinsk@redhat.com> | 2016-11-09 13:08:32 +0100 |
commit | fee9bbd85afeac3593abd791de2d002bed300c8e (patch) | |
tree | e2db8d619dae9f61d517dba74e4819acec3bb79d /makerpms.sh | |
parent | 75a944e980c64061e51f4ec7215033c118f39863 (diff) | |
download | freeipa-fee9bbd85afeac3593abd791de2d002bed300c8e.tar.gz freeipa-fee9bbd85afeac3593abd791de2d002bed300c8e.tar.xz freeipa-fee9bbd85afeac3593abd791de2d002bed300c8e.zip |
Build: add make rpms target and convenience script makerpms.sh
make rpms and ./makerpms.sh will produce the same RPM packages. The
advantage of makerpms.sh is that it will take care of initial
autoreconf & configure phases as needed.
rpm-build-4.13.0-1.fc24.x86_64 broke parallel build of RPMs.
If you get error
INTERNAL: Exiting with 1 jobserver tokens available; should be 8!
undefine the MAKEFLAGS variable and do not specify neither -j nor -l.
https://fedorahosted.org/freeipa/ticket/6418
Reviewed-By: Martin Basti <mbasti@redhat.com>
Reviewed-By: Christian Heimes <cheimes@redhat.com>
Diffstat (limited to 'makerpms.sh')
-rwxr-xr-x | makerpms.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/makerpms.sh b/makerpms.sh new file mode 100755 index 000000000..775d18f67 --- /dev/null +++ b/makerpms.sh @@ -0,0 +1,10 @@ +#!/usr/bin/bash +set -o errexit + +pushd "$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" + +test ! -x "configure" && autoreconf -i +test ! -f "Makefile" && ./configure "$@" +make rpms + +popd |