## START: Set by rpmautospec ## (rpmautospec version 0.8.3) ## 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 Name: nwg-displays Version: 0.3.26 Release: %autorelease Summary: Output management for sway and Hyprland License: MIT URL: https://github.com/nwg-piotr/nwg-displays Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: desktop-file-utils Requires: hicolor-icon-theme Requires: gobject-introspection Requires: gtk3 Requires: gtk-layer-shell Requires: python3-gobject Requires: python3-i3ipc %description Nwg-displays is an output management utility for sway and Hyprland Wayland compositors, inspired by wdisplays and wlay. %prep %autosetup -p1 %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l nwg_displays install -D -m0644 -t %{buildroot}%{_datadir}/applications %{name}.desktop install -D -m0644 -t %{buildroot}%{_datadir}/icons/hicolor/scalable/apps %{name}.svg %check # Skip %%pyproject_check_import, main code is not guarded desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop %files -f %{pyproject_files} %doc README.md %{_bindir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/scalable/apps/%{name}.svg %changelog ## START: Generated by rpmautospec * Wed Dec 31 2025 John Doe - 0.3.26-1 - Uncommitted changes ## END: Generated by rpmautospec