Backport an upstream patch to fix the build

https://github.com/flatpak/flatpak-builder/pull/185
This commit is contained in:
Kalev Lember 2018-07-20 13:25:52 +02:00
parent 4ce21c3977
commit 75290e81b8

View File

@ -11,6 +11,9 @@ License: LGPLv2+
URL: http://flatpak.org/ URL: http://flatpak.org/
Source0: https://github.com/flatpak/flatpak-builder/releases/download/%{version}/%{name}-%{version}.tar.xz Source0: https://github.com/flatpak/flatpak-builder/releases/download/%{version}/%{name}-%{version}.tar.xz
# https://github.com/flatpak/flatpak/pull/1914
Patch0: 0001-libglnx.m4-Include-stdio.h-for-renameat2.patch
BuildRequires: gettext BuildRequires: gettext
BuildRequires: docbook-dtds BuildRequires: docbook-dtds
BuildRequires: docbook-style-xsl BuildRequires: docbook-style-xsl
@ -27,6 +30,10 @@ BuildRequires: pkgconfig(ostree-1) >= %{ostree_version}
BuildRequires: pkgconfig(yaml-0.1) BuildRequires: pkgconfig(yaml-0.1)
BuildRequires: /usr/bin/xmlto BuildRequires: /usr/bin/xmlto
BuildRequires: /usr/bin/xsltproc BuildRequires: /usr/bin/xsltproc
# For patch0
BuildRequires: automake autoconf libtool
BuildRequires: gettext-devel
BuildRequires: gtk-doc
Requires: flatpak%{?_isa} >= %{flatpak_version} Requires: flatpak%{?_isa} >= %{flatpak_version}
Requires: glib2%{?_isa} >= %{glib2_version} Requires: glib2%{?_isa} >= %{glib2_version}
@ -53,6 +60,9 @@ See http://flatpak.org/ for more information.
%build %build
# For patch0
autoreconf -fi
%configure \ %configure \
--enable-docbook-docs \ --enable-docbook-docs \
--with-dwarf-header=%{_includedir}/libdwarf --with-dwarf-header=%{_includedir}/libdwarf