# -*-Mode: rpm-spec -*- # Use 0 for release and 1 for git %global git 0 Version: 0.1.3 %global forgeurl https://github.com/nwg-piotr/nwg-wrapper %if %{?git} %global commit b186a827404eb2c5e4d757bf122d5d74521b7dcd %global date 20220703 %endif %forgemeta %global sys_name nwg_wrapper Name: nwg-wrapper Summary: A GTK3 wrapper to display text on the desktop for wlroots Release: 1%{?dist} License: MIT URL: %{forgeurl} Source0: %{forgesource} BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-setuptools Requires: python3-gobject Requires: gtk-layer-shell Requires: gtk3 Requires: python3-i3ipc Requires: wlr-randr %description nwg-wrapper is a GTK3-based wrapper to display a script output, or a text file content on the desktop in sway or other wlroots-based compositors. %prep %forgesetup -a %build %py3_build %install %py3_install chmod 0755 %{buildroot}%{python3_sitelib}/%{sys_name}/main.py chmod 0755 %{buildroot}%{python3_sitelib}/%{sys_name}/tools.py %files %license LICENSE %doc README.md %{_bindir}/%{name} %{python3_sitelib}/%{sys_name}/ %{python3_sitelib}/%{sys_name}-%{version}-py%{python3_version}.egg-info/ %changelog * Mon Nov 28 2022 Bob Hepple - 0.1.3 - rebuid in response to RHBZ#2104366 * Wed Jul 06 2022 Bob Hepple - 0.1.2-1.20220703gitb186a82 - initial version