File casilda-devel.spec of Package casilda-devel

#
# spec file for package casilda-devel
#
# Copyright (c) 2024 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/
#

%define _sover 1_0-1
Name:           casilda-devel
Version:        1.0.0
Release:        0
Summary:        A simple wayland compositor widget for Gtk 4
License:        LGPL-2.1
URL:            https://gitlab.gnome.org/jpu/casilda
Source:         %{url}/-/archive/%{version}/casilda-%{version}.tar.gz
BuildRequires:  meson
BuildRequires:  pkgconfig(gtk4)
BuildRequires:  pkgconfig(wlroots-0.18)
BuildRequires:  pkgconfig(epoxy)
BuildRequires:  pkgconfig(wayland-protocols)
BuildRequires:  pkgconfig(gobject-introspection-1.0)
Requires:       libcasilda%{_sover} = %{version}
Requires:       typelib-Casilda-1.0

%description
A simple wayland compositor widget for Gtk 4.
Originally created for Cambalache
workspace, it is useful for embedding other processes windows.

%package -n libcasilda%{_sover}
Summary:        Library for %{name}
# Needed to make lang package installable (and because we used to
# have a vte package earlier).
License:        LGPL-2.0-only
Group:          System/Libraries

%description -n libcasilda%{_sover}
VTE is a terminal emulator library that provides a terminal widget for
use with GTK+ as well as handling of child process and terminal
emulation settings.

%package -n typelib-Casilda-1.0
Summary:        Introspection bindings for %{name}

%description -n typelib-Casilda-1.0
This package provides the GObject Introspection bindings for %{name}

%prep
%autosetup -n casilda-%{version} -p1

%build
%meson
%meson_build

%install
%meson_install

%ldconfig_scriptlets -n libcasilda%{_sover}

%check
%meson_test


%files
%license COPYING
%doc README.md
%dir %{_includedir}/casilda/
%{_includedir}/casilda/*.h
%{_libdir}/pkgconfig/casilda-1.0.pc
%{_datadir}/gir-1.0/Casilda-1.0.gir
%{_libdir}/*.so

%files -n libcasilda%{_sover}
%{_libdir}/*.so.*

%files -n typelib-Casilda-1.0
%{_libdir}/girepository-1.0/Casilda-1.0.typelib

%changelog
openSUSE Build Service is sponsored by