%global forgeurl https://github.com/nwg-piotr/nwg-clipman %global sys_name nwg_clipman Name: nwg-clipman Version: 0.2.7 %forgemeta Release: 2%{?dist} Summary: GTK3-based GUI for Senan Kelly's cliphist License: MIT URL: %{forgeurl} Source0: %{forgesource} BuildArch: noarch Requires: python3dist(pygobject) Requires: gtk3 Requires: gtk-layer-shell Requires: cliphist Requires: wl-clipboard %generate_buildrequires %pyproject_buildrequires %description Nwg-clipman is a GTK3-based GUI for Senan Kelly's cliphist. It provides access to previously copied items, as well as management of the clipboard history from a window opened on gtk-layer-shell. The program is intended for use with sway, Hyprland and other wlroots-based Wayland compositors. %prep %forgeautosetup %build sed --in-place '1{/#!/d}' nwg_clipman/main.py %pyproject_wheel %install %pyproject_install install -Dm 644 -t %{buildroot}%{_datadir}/applications/ %{name}.desktop install -Dm 644 -t %{buildroot}%{_datadir}/pixmaps/ %{name}.svg %check %files %license %doc README.md %{python3_sitelib}/%{sys_name}/ %{python3_sitelib}/%{sys_name}-%{version}.dist-info/ %{_bindir}/* %{_datadir}/applications/* %{_datadir}/pixmaps/* %changelog * Wed Oct 29 2025 Jerzy Drożdż - 0.2.7-2 - Added missing dependencies * Sat Oct 25 2025 Jerzy Drożdż - 0.2.7-1 - Initial build