File cambalache.spec of Package cambalache
#
# spec file for package cambalache
#
# Copyright (c) 2021/22 Florian "sp1rit" <packaging@sp1rit.anonaddyme.me>
# Copyright (c) 2021 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 https://bugs.opensuse.org/
#
%global uuid ar.xjuan.Cambalache
Name: cambalache
Version: 0.8.2
Release: 0
Summary: User Interface Builder for GTK+ and Gnome
License: LGPL-2.1 AND GPL-2.0
URL: https://gitlab.gnome.org/jpu/cambalache
Group: Development/Tools/GUI Builders
Source0: %{name}-%{version}.tar.xz
BuildArch: noarch
BuildRequires: python3 meson
BuildRequires: python3-lxml >= 4.5.0
BuildRequires: python3-gobject >= 3.40.1
BuildRequires: gtk3-devel >= 3.24.30
BuildRequires: gtk4-devel >= 4.2.1
BuildRequires: webkit2gtk3-devel >= 2.32.3
BuildRequires: typelib-1_0-WebKit2-4_0 >= 2.32.0
BuildRequires: gtk4-tools
BuildRequires: update-desktop-files
Requires: python3-lxml >= 4.5.0
Requires: typelib(Gtk) = 4.0
Requires: gtk4-tools
Requires: typelib(Gtk) = 3.0
Requires: gtk3-immodule-broadway
Requires: gtk3-tools
Requires: typelib(WebKit2)
%description
Cambalache is a new RAD tool for Gtk 4 and 3 with a clear MVC design
and data model first philosophy. This translates to a wide feature
coverage with minimal/none developer intervention for basic support.
To support multiple Gtk versions it renders the workspace out of
process using the Gdk broadway backend.
%lang_package
%prep
%autosetup -p1
%build
%meson
%meson_build
%install
%meson_install
%suse_update_desktop_file %{uuid}
%find_lang %{name}
%files lang -f %{name}.lang
%files
%license COPYING
%license COPYING.GPL
%doc README.md
%doc SUPPORTERS.md
%doc TODO.md
%{_bindir}/%{name}
%{python3_sitelib}/%{name}/
%{_datadir}/applications/%{uuid}.desktop
%{_datadir}/%{name}
%{_datadir}/glib-2.0/schemas/%{uuid}.gschema.xml
%{_datadir}/icons/hicolor/{scalable,symbolic}/{apps,mimetypes}/%{uuid}*.svg
%{_datadir}/metainfo/%{uuid}.metainfo.xml
%{_datadir}/mime/packages/%{uuid}.mime.xml
%changelog