[libhif] Add bootstrap requirements for git builds
Colin Walters
walters at fedoraproject.org
Tue Mar 10 21:26:12 UTC 2015
commit 2ba118bbb12c343dd6a80ab6fd5a6e3aa58c739c
Author: Colin Walters <walters at verbum.org>
Date: Tue Mar 10 16:50:28 2015 -0400
Add bootstrap requirements for git builds
This is modeled after the current glib2.spec, which has code leftover
from my last CI/CD push.
libhif.spec | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/libhif.spec b/libhif.spec
index 0879cef..f1987c1 100644
--- a/libhif.spec
+++ b/libhif.spec
@@ -16,6 +16,9 @@ BuildRequires: rpm-devel >= 4.11.0
BuildRequires: librepo-devel >= 1.7.11
BuildRequires: libsolv-devel
+# Bootstrap build requirements
+BuildRequires: automake autoconf libtool
+
# already upstream
Patch0: 0001-Ensure-the-mirror-list-is-set-before-trying-to-downl.patch
Patch1: 0001-If-the-enabled-local-source-does-not-exist-do-not-ad.patch
@@ -39,10 +42,13 @@ GLib headers and libraries for libhif.
%patch2 -p1 -b .pointless-api-break
%build
+# Support builds of both git snapshots and tarballs
+(if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; CONFIGFLAGS=--enable-gtk-doc; fi;
%configure \
--enable-gtk-doc \
--disable-static \
--disable-silent-rules
+)
make %{?_smp_mflags}
More information about the scm-commits
mailing list