%global git_date 20240910 %global git_hash a491658 %global git_ver 0.9.0 %global rel 3 %global src_name %{name}-%{git_date}-%{git_hash}.tar.xz %global apiver 0 Name: gtk-layer-shell Version: %{git_ver}^%{git_date}g%{git_hash} Release: %{rel}%{?dist} Summary: Library to create components for Wayland using the Layer Shell License: MIT URL: https://github.com/wmww/gtk-layer-shell Source0: %{url}/%{src_name} BuildRequires: gcc cmake vala BuildRequires: meson BuildRequires: pkgconfig(gobject-introspection-1.0) BuildRequires: pkgconfig(gtk+-wayland-3.0) >= 3.22.0 BuildRequires: pkgconfig(wayland-client) >= 1.10.0 BuildRequires: pkgconfig(wayland-scanner) >= 1.10.0 %description A library to write GTK applications that use Layer Shell. Layer Shell is a Wayland protocol for desktop shell components, such as panels, notifications and wallpapers. You can use it to anchor your windows to a corner or edge of the output, or stretch them across the entire output. This library only makes sense on Wayland compositors that support Layer Shell, and will not work on X11. It supports all Layer Shell features including popups and popovers (GTK popups Just Work™). Please open issues for any bugs you come across. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Development files for %{name}. %prep %autosetup -n %{name} %build %meson %meson_build %install %meson_install %files %license LICENSE_GPL.txt LICENSE_LGPL.txt LICENSE_MIT.txt %doc README.md %{_libdir}/lib%{name}.so.%{apiver}* %{_libdir}/girepository-1.0/GtkLayerShell-%{apiver}.?.typelib %files devel %{_includedir}/%{name} %{_libdir}/pkgconfig/*.pc %{_libdir}/lib%{name}.so %{_datadir}/gir-1.0/GtkLayerShell-%{apiver}.?.gir %{_datadir}/vala/vapi/%{name}-* %changelog %autochangelog