From 4dd2f01fe9e84ac2b4bc3cbaf9335477b1f84e22 Mon Sep 17 00:00:00 2001 From: Colin Walters Date: Fri, 10 Jun 2016 10:15:44 -0400 Subject: [PATCH] build: Support builds via rpmdistro-gitoverlay See similar changes in glib2.spec I made a long time ago, several buildsystems previous. --- flatpak.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/flatpak.spec b/flatpak.spec index 27318c4..3d77634 100644 --- a/flatpak.spec +++ b/flatpak.spec @@ -8,6 +8,8 @@ License: LGPLv2+ URL: https://flatpak.github.io/ Source0: https://github.com/flatpak/flatpak/releases/download/%{version}/%{name}-%{version}.tar.xz +BuildRequires: automake autoconf libtool +BuildRequires: gtk-doc BuildRequires: pkgconfig(fuse) BuildRequires: pkgconfig(gio-unix-2.0) BuildRequires: pkgconfig(json-glib-1.0) @@ -93,8 +95,9 @@ This package contains libflatpak. %build -# User namespace support is sufficient. -%configure --with-dwarf-header=%{_includedir}/libdwarf --with-priv-mode=none +(if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; CONFIGFLAGS=--enable-gtk-doc; fi; + # User namespace support is sufficient. + %configure --with-dwarf-header=%{_includedir}/libdwarf --with-priv-mode=none $CONFIGFLAGS) %make_build V=1