build: Support builds via rpmdistro-gitoverlay

See similar changes in glib2.spec I made a long time ago, several
buildsystems previous.
This commit is contained in:
Colin Walters 2016-06-10 10:15:44 -04:00 committed by David King
parent ece4e85134
commit 4dd2f01fe9

View File

@ -8,6 +8,8 @@ License: LGPLv2+
URL: https://flatpak.github.io/ URL: https://flatpak.github.io/
Source0: https://github.com/flatpak/flatpak/releases/download/%{version}/%{name}-%{version}.tar.xz 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(fuse)
BuildRequires: pkgconfig(gio-unix-2.0) BuildRequires: pkgconfig(gio-unix-2.0)
BuildRequires: pkgconfig(json-glib-1.0) BuildRequires: pkgconfig(json-glib-1.0)
@ -93,8 +95,9 @@ This package contains libflatpak.
%build %build
# User namespace support is sufficient. (if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; CONFIGFLAGS=--enable-gtk-doc; fi;
%configure --with-dwarf-header=%{_includedir}/libdwarf --with-priv-mode=none # User namespace support is sufficient.
%configure --with-dwarf-header=%{_includedir}/libdwarf --with-priv-mode=none $CONFIGFLAGS)
%make_build V=1 %make_build V=1