File flatpak-builder.spec of Package flatpak-builder

# spec file for package flatpak-builder
# Copyright (c) 2023 SUSE LLC
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via

%define flatpak_version 1.12.4
%bcond_with system_debugedit
%if 0%{?suse_version} >= 1550
%bcond_without system_debugedit
Name:           flatpak-builder
Version:        1.2.3
Release:        0
Summary:        Tool to build flatpaks from source
License:        LGPL-2.1-or-later
Group:          Development/Tools/Building
# PATCH-FIX-UPSTREAM 0001-builder-Fix-silent-truncation-of-gt-32-bit-inodes.patch boo#1214708
Patch0:         0001-builder-Fix-silent-truncation-of-gt-32-bit-inodes.patch
BuildRequires:  docbook-xsl-stylesheets
BuildRequires:  gettext
BuildRequires:  gtk-doc
BuildRequires:  libcap-devel
BuildRequires:  pkgconfig >= 0.24
BuildRequires:  xmlto
BuildRequires:  xsltproc
BuildRequires:  pkgconfig(flatpak) >= %{flatpak_version}
BuildRequires:  pkgconfig(gio-2.0)
BuildRequires:  pkgconfig(gio-unix-2.0)
BuildRequires:  pkgconfig(glib-2.0) >= 2.44
BuildRequires:  pkgconfig(gobject-introspection-1.0)
BuildRequires:  pkgconfig(json-glib-1.0)
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(libdw) >= 0.172
BuildRequires:  pkgconfig(libelf) >= 0.8.12
BuildRequires:  pkgconfig(libsoup-2.4)
BuildRequires:  pkgconfig(libxml-2.0) >= 2.4
BuildRequires:  pkgconfig(ostree-1) >= 2017.14
BuildRequires:  pkgconfig(yaml-0.1)
Requires:       %{_bindir}/bzip2
Recommends:     %{_bindir}/bzr
Requires:       %{_bindir}/eu-strip
Requires:       %{_bindir}/git
Requires:       %{_bindir}/patch
Requires:       %{_bindir}/strip
Requires:       %{_bindir}/tar
Requires:       %{_bindir}/unzip
Requires:       flatpak >= %{flatpak_version}
%if %{with system_debugedit}
BuildRequires:  debugedit
Requires:       debugedit

Tool to build flatpaks from source.
See for more information.

%autosetup -p1

%configure \
	--enable-docbook-docs \
%if %{with system_debugedit}
	--with-system-debugedit \


%license COPYING
%doc NEWS
%doc %{_datadir}/doc/%{name}/
%if %{without system_debugedit}

openSUSE Build Service is sponsored by