File casilda.spec of Package casilda

#
# spec file for package casilda
#
# Copyright (c) 2025 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 major 1
%define minor 0
%define micro 0
%define api_major 1
%define api_minor 0

Name:           casilda
Version:        %{major}.%{minor}.%{micro}
Release:        0
Summary:        A simple Wayland compositor widget for Gtk 4
License:        LGPL-2.1
URL:            https://gitlab.gnome.org/jpu/casilda
Source:         https://gitlab.gnome.org/jpu/casilda/-/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:  meson
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(epoxy)
BuildRequires:  pkgconfig(gobject-introspection-1.0)
BuildRequires:  pkgconfig(gtk4)
BuildRequires:  pkgconfig(pixman-1)
BuildRequires:  pkgconfig(wayland-protocols)
BuildRequires:  pkgconfig(wayland-scanner)
BuildRequires:  pkgconfig(wayland-server)
BuildRequires:  pkgconfig(wlroots-0.18)
BuildRequires:  pkgconfig(x11-xcb)
BuildRequires:  pkgconfig(xkbcommon-x11)
BuildRequires:  pkgconfig(xkbcommon)

%description
%summary

%package -n libcasilda-%{api_major}_%{api_minor}-%{major}
Summary:        A simple Wayland compositor widget for Gtk 4

%description -n libcasilda-%{api_major}_%{api_minor}-%{major}
%summary

%package  -n typelib-1_0-Casilda-%{api_major}_%{api_minor}
Summary:        Introspection bindings for the Casilda library

%description -n typelib-1_0-Casilda-%{api_major}_%{api_minor}
%summary

%package devel
Summary:        Development files for the Casilda library
Group:          Development/Libraries/Wayland

%description devel
%summary

%prep
%autosetup

%build
%meson
%meson_build

%install
%meson_install

%check
%meson_test

%ldconfig_scriptlets -n libcasilda-%{api_major}_%{api_minor}-%{major}

%files -n libcasilda-%{api_major}_%{api_minor}-1
%license COPYING
%doc README.md
%{_libdir}/libcasilda-%{api_major}.%{api_minor}.so.*

%files -n typelib-1_0-Casilda-%{api_major}_%{api_minor}
%{_libdir}/girepository-1.0/Casilda-%{api_major}.%{api_minor}.typelib

%files devel
%{_includedir}/casilda/
%{_libdir}/libcasilda-%{api_major}.%{api_minor}.so
%{_libdir}/pkgconfig/casilda-%{api_major}.%{api_minor}.pc
%{_datadir}/gir-1.0/Casilda-%{api_major}.%{api_minor}.gir

%changelog

openSUSE Build Service is sponsored by