## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec # Disable tests on s390x arch # * integration-test-menu-popup FAIL %ifnarch s390x %bcond_without check %else %bcond_with check %endif Name: gtk4-layer-shell Version: 1.3.0 Release: %autorelease Summary: Library to create panels and other desktop components for Wayland License: MIT URL: https://github.com/wmww/gtk4-layer-shell Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: gcc BuildRequires: meson BuildRequires: vala BuildRequires: pkgconfig(gobject-introspection-1.0) BuildRequires: pkgconfig(gtk4) BuildRequires: pkgconfig(wayland-client) >= 1.10.0 BuildRequires: pkgconfig(wayland-protocols) >= 1.16 BuildRequires: pkgconfig(wayland-scanner) >= 1.10.0 BuildRequires: pkgconfig(wayland-server) >= 1.10.0 %if %{with check} BuildRequires: python3-gobject ### For smoke tests # BuildRequires: luarocks # BuildRequires: pkgconfig(luajit) %endif %description A library for using the Layer Shell and Session Lock Wayland protocols with GTK4. This Library is compatible with C, C++ and any language that supports GObject introspection files (Python, Vala, etc). The Layer Shell protocol allows building desktop shell components such as panels, notifications and wallpapers. It can be used to anchor your windows to a corner or edge of the output, or stretch them across the entire output. The Session Lock protocol allows building lock screens. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel Development files for %{name}. %prep %autosetup %build # Disable smoke tests since they introduce two problems: # 1. They need the examples which will be installed and check-files fails with # the error 'Installed (but unpackaged) file(s) found' # 2. The lua-lgi package is based on the (latest) release from 2017 which does # not work with GTK4. # See also: # - https://github.com/wmww/gtk4-layer-shell/issues/28 # - https://github.com/wmww/gtk4-layer-shell/issues/32#issuecomment-2089302515 # - https://github.com/lgi-devs/lgi/issues/225 # - https://github.com/lgi-devs/lgi/issues/278 %meson \ %if %{with check} -Dsmoke-tests=false \ -Dtests=true \ %endif %{nil} %meson_build %install %meson_install %if %{with check} %check %meson_test %endif %files %license LICENSE %doc README.md CHANGELOG.md %{_libdir}/girepository-1.0/Gtk4LayerShell-*.typelib %{_libdir}/girepository-1.0/Gtk4SessionLock-*.typelib %{_libdir}/lib%{name}.so.%{version} %{_libdir}/lib%{name}.so.0 %files devel %{_datadir}/gir-1.0/Gtk4LayerShell-*.gir %{_datadir}/gir-1.0/Gtk4SessionLock-*.gir %{_datadir}/vala/vapi/%{name}-* %{_includedir}/%{name}/ %{_libdir}/lib%{name}.so %{_libdir}/liblayer-shell-preload.so %{_libdir}/pkgconfig/*.pc %changelog ## START: Generated by rpmautospec * Sat Jan 17 2026 Artem Polishchuk - 1.3.0-1 - 1.3.0 * Fri Jan 16 2026 Fedora Release Engineering - 1.0.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_44_Mass_Rebuild * Thu Jul 24 2025 Fedora Release Engineering - 1.0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Tue Feb 04 2025 Artem Polishchuk - 1.0.3-1 - chore: Update to 1.0.3 * Fri Jan 17 2025 Fedora Release Engineering - 1.0.2-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Thu Jul 18 2024 Fedora Release Engineering - 1.0.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Mon May 06 2024 Artem Polishchuk - 1.0.2-2 - test: Disable on s390x arch * Mon May 06 2024 Artem Polishchuk - 1.0.2-1 - Initial (rh#2277337) ## END: Generated by rpmautospec