summaryrefslogtreecommitdiffstats
path: root/glusterfs.spec.in
diff options
context:
space:
mode:
authorNiels de Vos <ndevos@redhat.com>2014-05-22 16:35:35 +0200
committerNiels de Vos <ndevos@redhat.com>2014-05-23 11:20:56 -0700
commitb0ac8069119532fabaafc12650d87da698138a1f (patch)
treeae3443f67c39c0cc24d1c898e836bb82a24a98fd /glusterfs.spec.in
parent52a8652137c80c94b6d934b057e701413055d2d7 (diff)
tests/rpm: always run ./autogen.sh to create missing files
In some occasions 'install-sh' seems to be missing in the 'make dist' tarball when ./autogen.sh has not been run (skipped when 'configure' exists). With this changes, 'autogen.sh' is always run so that missing files should get added to the tarball. Also write the logs from mock to a known location, and copy them to the '/var/log/' directory that Jenkins archives after a regression test failure. This makes it easier to find build issues that mock detects. Cherry picked from commit 79de5b63775f1ab8e2e498fd51b55509a30cd896: > Change-Id: I8d0cf1afef61ebab0137aa0d20521e75a35ddbdd > BUG: 1038391 > Signed-off-by: Niels de Vos <ndevos@redhat.com> > Reviewed-on: http://review.gluster.org/7786 > Tested-by: Gluster Build System <jenkins@build.gluster.com> > Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com> > Reviewed-by: Anand Avati <avati@redhat.com> Change-Id: I8d0cf1afef61ebab0137aa0d20521e75a35ddbdd BUG: 1089054 Signed-off-by: Niels de Vos <ndevos@redhat.com> Reviewed-on: http://review.gluster.org/7850 Reviewed-by: Kaleb KEITHLEY <kkeithle@redhat.com> Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'glusterfs.spec.in')
-rw-r--r--glusterfs.spec.in7
1 files changed, 6 insertions, 1 deletions
diff --git a/glusterfs.spec.in b/glusterfs.spec.in
index 35dbd687546..8baddb1b306 100644
--- a/glusterfs.spec.in
+++ b/glusterfs.spec.in
@@ -457,7 +457,9 @@ regression testing of Gluster.
%setup -q -n %{name}-%{version}%{?prereltag}
%build
-./autogen.sh
+# For whatever reason, install-sh is sometimes missing. When this gets fixed,
+# there is no need to run ./autogen or have a BuildRequires for automake.
+[ -e 'install-sh' -o -e 'install.sh' ] || ./autogen.sh
%configure \
%{?_without_rdma} \
%{?_without_epoll} \
@@ -961,6 +963,9 @@ if [ $1 -ge 1 ]; then
fi
%changelog
+* Thu May 22 2014 Niels de Vos <ndevos@redhat.com>
+- Almost drop calling ./autogen.sh
+
* Fri Apr 25 2014 Kaleb S. KEITHLEY <kkeithle@redhat.com>
- Sync with Fedora spec (#1091392)