%global sys_name nwg_panel Name: nwg-panel Version: 0.2.1 Release: 1%{?dist} Summary: GTK3-based panel for sway window manager BuildArch: noarch License: MIT URL: https://github.com/nwg-piotr/%{name} Source: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz # Remove executable bit from SVG icons # https://github.com/nwg-piotr/nwg-panel/pull/49 Patch0: https://github.com/nwg-piotr/nwg-panel/pull/49.patch#/remove-executable-bit-from-svg-icons.patch BuildRequires: python3-devel Requires: gtk-layer-shell Requires: gtk3 Requires: python3-gobject Requires: python3-i3ipc Requires: wlr-randr Recommends: light Recommends: playerctl Recommends: python3-netifaces Recommends: python3-psutil Recommends: python3-pybluez ### Not packaged # Recommends: pamixer %description I have been using sway since 2019 and find it the most comfortable working environment, but... Have you ever missed all the graphical bells and whistles in your panel, we used to have in tint2? It happens to me. That's why I decided to try to code a GTK-based panel, including best features from my two favourites: Waybar and tint2. Many thanks to Developers and Contributors of the both projects! There are 8 modules available at the moment, and I don't plan on many more. Basis system controls are available in the Controls module, and whatever else you may need, there's an executor for that. %prep %autosetup -p1 sed -i 's|#!/usr/bin/python|#!/usr/bin/python3|' \ nwg_panel/executors/arch_updates.py %build %py3_build %install %py3_install # Remove shebang from Python libraries for lib in %{buildroot}%{python3_sitelib}/%{sys_name}/{/,modules}/*.py; do sed '1{\@^#!/usr/bin/env python@d}' $lib > $lib.new && touch -r $lib $lib.new && mv $lib.new $lib done # Remove shebang from Python libraries for lib in %{buildroot}%{python3_sitelib}/%{sys_name}/*.py; do sed '1{\@^#!/usr/bin/python@d}' $lib > $lib.new && touch -r $lib $lib.new && mv $lib.new $lib done %files %license LICENSE %doc README.md %{_bindir}/%{name} %{_bindir}/%{name}-config %{python3_sitelib}/%{sys_name}-%{version}-py%{python3_version}.egg-info/ %{python3_sitelib}/%{sys_name}/ %changelog * Tue Apr 06 2021 Artem Polishchuk - 0.2.1-1 - Initial package