File cambalache.spec of Package cambalache

#
# spec file for package cambalache
#
# Copyright (c) 2022 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/
#


Name:           cambalache
Version:        0.99.1
Release:        0
Summary:        Is a new RAD tool for Gtk 4 and 3 with a clear MVC design
License:        LGPL-2.1-only
URL:            https://gitlab.gnome.org/jpu/cambalache
Source:         %{url}/-/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:  meson
BuildRequires:  desktop-file-utils
BuildRequires:  pkgconfig
BuildRequires:  python3-gobject-devel
BuildRequires:  python3-lxml-devel
BuildRequires:  pkgconfig(libhandy-1)
BuildRequires:  typelib-1_0-WebKit2-4_1
BuildRequires:  typelib-1_0-WebKit2WebExtension-4_1
BuildRequires:  pkgconfig(webkit2gtk-4.1)
BuildRequires:  pkgconfig(webkitgtk-6.0)
BuildRequires:  pkgconfig(gtksourceview-5)
BuildRequires:  pkgconfig(gtk4)
BuildRequires:  pkgconfig(libadwaita-1) >= 1.6.0
BuildRequires:  pkgconfig(wlroots-0.18)
BuildRequires:  pkgconfig(casilda-1.0) >= 1.0.0

%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.

%package devel
Summary:        Development files for %{name}
Group:          System/Libraries
Requires:       typelib-1_0-CambalachePrivate-3.0
Requires:       typelib-1_0-CambalachePrivate-4.0
BuildArch:      noarch

%description devel
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.

%package -n typelib-1_0-CambalachePrivate-3.0
Summary:        Introspection bindings for %{name}
Group:          System/Libraries

%description -n typelib-1_0-CambalachePrivate-3.0
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.

%package -n typelib-1_0-CambalachePrivate-4.0
Summary:        Introspection bindings for %{name}
Group:          System/Libraries

%description -n typelib-1_0-CambalachePrivate-4.0
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.

%package -n typelib-1_0-CmbCatalogUtils-3.0
Summary:        Introspection bindings for %{name}
Group:          System/Libraries

%description -n typelib-1_0-CmbCatalogUtils-3.0
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.

%package -n typelib-1_0-CmbCatalogUtils-4.0
Summary:        Introspection bindings for %{name}
Group:          System/Libraries

%description -n typelib-1_0-CmbCatalogUtils-4.0
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.

%lang_package

%prep
%autosetup

%build
%meson
%meson_build

%install
%meson_install
%find_lang %{name}

%post -n %{name} -p /sbin/ldconfig
%postun -n %{name} -p /sbin/ldconfig

%files
%license COPYING COPYING.GPL
%doc README.md
%{_bindir}/%{name}
%{_bindir}/cmb-catalog-gen
%{python_sitelib}/*
%{_datadir}/%{name}/
%{_datadir}/applications/ar.xjuan.Cambalache.desktop
%{_datadir}/glib-2.0/schemas/ar.xjuan.Cambalache.gschema.xml
%{_datadir}/icons/hicolor/*/*/*.svg
%{_datadir}/metainfo/ar.xjuan.Cambalache.metainfo.xml
%{_datadir}/mime/packages/ar.xjuan.Cambalache.mime.xml
%dir %{_libdir}/cambalache/
%{_libdir}/cambalache/libcambalacheprivate-3.so
%{_libdir}/cambalache/libcambalacheprivate-4.so
%dir %{_libdir}/cmb_catalog_gen/
%{_libdir}/cmb_catalog_gen/libcmbcatalogutils-3.so
%{_libdir}/cmb_catalog_gen/libcmbcatalogutils-4.so

%files devel
%{_datadir}/gir-1.0/CambalachePrivate-3.0.gir
%{_datadir}/gir-1.0/CambalachePrivate-4.0.gir
%{_datadir}/gir-1.0/CmbCatalogUtils-3.0.gir
%{_datadir}/gir-1.0/CmbCatalogUtils-4.0.gir

%files -n typelib-1_0-CambalachePrivate-4.0
%{_libdir}/cambalache/CambalachePrivate-4.0.typelib

%files -n typelib-1_0-CambalachePrivate-3.0
%{_libdir}/cambalache/CambalachePrivate-3.0.typelib

%files -n typelib-1_0-CmbCatalogUtils-3.0
%{_libdir}/cmb_catalog_gen/CmbCatalogUtils-3.0.typelib

%files -n typelib-1_0-CmbCatalogUtils-4.0
%{_libdir}/cmb_catalog_gen/CmbCatalogUtils-4.0.typelib

%files lang -f %{name}.lang

%changelog
openSUSE Build Service is sponsored by