%global glib2_version 2.44 %global ostree_version 2017.14 %global flatpak_version 0.10.2 Name: flatpak-builder Version: 0.10.10 Release: 2.2%{?dist} Summary: Tool to build flatpaks from source License: LGPLv2+ URL: http://flatpak.org/ Source0: https://github.com/flatpak/flatpak-builder/releases/download/%{version}/%{name}-%{version}.tar.xz Patch0: flatpak-builder-0.10.10-flathub-builds-download-fix.patch BuildRequires: gettext BuildRequires: docbook-dtds BuildRequires: docbook-style-xsl BuildRequires: flatpak >= %{flatpak_version} BuildRequires: libcap-devel BuildRequires: libdwarf-devel BuildRequires: pkgconfig(glib-2.0) >= %{glib2_version} BuildRequires: pkgconfig(gobject-introspection-1.0) BuildRequires: pkgconfig(json-glib-1.0) BuildRequires: pkgconfig(libelf) BuildRequires: pkgconfig(libsoup-2.4) BuildRequires: pkgconfig(ostree-1) >= %{ostree_version} BuildRequires: pkgconfig(yaml-0.1) BuildRequires: /usr/bin/xmlto BuildRequires: /usr/bin/xsltproc Requires: flatpak%{?_isa} >= %{flatpak_version} Requires: glib2%{?_isa} >= %{glib2_version} %if 0%{?rhel} && 0%{?rhel} <= 7 Requires: ostree%{?_isa} >= %{ostree_version} %else Requires: ostree-libs%{?_isa} >= %{ostree_version} %endif Requires: /usr/bin/bzip2 Requires: /usr/bin/bzr Requires: /usr/bin/eu-strip Requires: /usr/bin/git Requires: /usr/bin/patch Requires: /usr/bin/rofiles-fuse Requires: /usr/bin/strip Requires: /usr/bin/svn Requires: /usr/bin/tar Requires: /usr/bin/unzip %description Flatpak-builder is a tool for building flatpaks from sources. See http://flatpak.org/ for more information. %prep %autosetup -p1 %build # src/builder-manifest.c:3659:3: error: 'for' loop initial declarations are only allowed in C99 mode CFLAGS="%{optflags} -std=c99" CXXFLAGS="%{optflags} -std=c99" export CFLAGS export CXXFLAGS # Work around https://bugzilla.redhat.com/show_bug.cgi?id=1392354 %configure \ --enable-docbook-docs \ --with-dwarf-header="%{_includedir}/libdwarf" --docdir="%{_pkgdocdir}" %make_build V=1 %install %make_install %files %license COPYING %doc %{_pkgdocdir} %{_bindir}/flatpak-builder %{_mandir}/man1/flatpak-builder.1* %{_mandir}/man5/flatpak-manifest.5* %changelog * Sun May 06 2018 Tomasz Tomasik - 0.10.10-2.2 - SPEC file cleanups - Add -std=c99 flag - Rebuilt for EL7 * Sun May 06 2018 Tomasz Tomasik - 0.10.10-2.1 - SPEC file cleanups - Rebuilt for EL7 - Backport patch from flatpak-builder-0.10.10-3.el7.centos.src.rpm ( Thu May 03 2018 David King - 0.10.10-3 ) * Fri Apr 27 2018 David King - 0.10.10-2 - Add some extra dependencies * Thu Apr 26 2018 Kalev Lember - 0.10.10-1 - Update to 0.10.10 * Mon Feb 19 2018 David King - 0.10.9-1 - Update to 0.10.9 * Fri Dec 15 2017 Kalev Lember - 0.10.6-1 - Update to 0.10.6 * Tue Nov 28 2017 David King - 0.10.5-1 - Update to 0.10.5 * Mon Nov 06 2017 Kalev Lember - 0.10.4-1 - Update to 0.10.4 * Tue Oct 31 2017 David King - 0.10.3-1 - Update to 0.10.3 * Mon Oct 30 2017 David King - 0.10.2-1 - Update to 0.10.2 * Fri Oct 27 2017 Kalev Lember - 0.10.1-1 - Update to 0.10.1 * Thu Oct 26 2017 Kalev Lember - 0.10.0-1 - Update to 0.10.0 * Mon Oct 09 2017 Kalev Lember - 0.9.99-1 - Update to 0.9.99 * Mon Sep 25 2017 Kalev Lember - 0.9.98-1 - Update to 0.9.98 * Wed Sep 13 2017 Kalev Lember - 0.9.11-1 - Update to 0.9.11 * Mon Sep 04 2017 Kalev Lember - 0.9.9-1 - Initial flatpak-builder package