## START: Set by rpmautospec ## (rpmautospec version 0.2.6) %define autorelease(e:s:pb:) %{?-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*}}%{?dist} ## END: Set by rpmautospec %global sys_name nwg_panel Name: nwg-panel Version: 0.7.7 Release: %autorelease 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 BuildRequires: desktop-file-utils BuildRequires: python3-devel >= 3.4 BuildRequires: python3-setuptools BuildRequires: systemd-rpm-macros 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 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 install -Dpm 0644 %{name}.svg -t %{buildroot}%{_datadir}/pixmaps/ install -Dpm 0644 nwg-shell.svg -t %{buildroot}%{_datadir}/pixmaps/ install -Dpm 0755 %{name}-config.desktop -t %{buildroot}%{_datadir}/applications/ install -Dpm 0644 %{name}.service -t %{buildroot}%{_userunitdir}/ %check desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop %post %systemd_user_post %{name}.service %preun %systemd_user_preun %{name}.service %postun %systemd_user_postun_with_restart %{name}.service %files %license LICENSE %doc README.md %{_bindir}/%{name} %{_bindir}/%{name}-config %{_bindir}/nwg-dwl-interface %{_datadir}/applications/*.desktop %{_datadir}/pixmaps/*.svg %{_userunitdir}/%{name}.service %{python3_sitelib}/%{sys_name}-%{version}-py%{python3_version}.egg-info/ %{python3_sitelib}/%{sys_name}/ %changelog * Thu Sep 01 2022 Artem Polishchuk 0.7.7-1 - chore(update): 0.7.7 * Mon Aug 29 2022 Artem Polishchuk 0.7.6-1 - chore(update): 0.7.6 * Mon Aug 22 2022 Artem Polishchuk 0.7.5-1 - chore(update): 0.7.5 * Mon Aug 15 2022 Artem Polishchuk 0.7.4-1 - chore(update): 0.7.4 * Sun Jul 31 2022 Artem Polishchuk 0.7.3-1 - chore(update): 0.7.3 * Fri Jul 22 2022 Fedora Release Engineering 0.7.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Tue Jun 21 2022 Artem Polishchuk 0.7.1-1 - chore(update): 0.7.1 * Mon Jun 13 2022 Python Maint 0.7.0-3 - Rebuilt for Python 3.11 * Mon Jun 06 2022 Artem Polishchuk - 0.7.0-1 - chore(update): 0.7.0 * Fri May 13 2022 Artem Polishchuk - 0.6.4-1 - chore(update): 0.6.4 * Wed Apr 13 2022 Artem Polishchuk - 0.6.3-1 - chore(update): 0.6.3 * Thu Mar 17 2022 Artem Polishchuk - 0.6.2-1 - chore(update): 0.6.2 * Tue Feb 01 2022 Artem Polishchuk - 0.6.1-1 - chore(update): 0.6.1 * Sat Jan 29 2022 Artem Polishchuk - 0.6.0-1 - chore(update): 0.6.0 (Pre-release for Rawhide only) * Wed Jan 26 2022 Artem Polishchuk - 0.5.8-1 - chore(update): 0.5.8 * Thu Jan 20 2022 Fedora Release Engineering - 0.5.7-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Sun Jan 16 2022 Artem Polishchuk - 0.5.7-1 - chore(update): 0.5.7 * Sun Jan 09 2022 Artem Polishchuk - 0.5.6-1 - chore(update): 0.5.6 * Thu Dec 30 2021 Artem Polishchuk - 0.5.3-1 - chore(update): 0.5.3 * Tue Dec 14 2021 Artem Polishchuk - 0.5.2-1 - chore(update): 0.5.2 * Mon Dec 13 2021 Artem Polishchuk - 0.5.1-1 - chore(update): 0.5.1 * Tue Nov 16 2021 Artem Polishchuk - 0.5.0-1 - chore(update): 0.5.0 * Mon Aug 23 2021 Artem Polishchuk - 0.4.3-1 - build(update): 0.4.3 * Fri Jul 30 2021 Artem Polishchuk - 0.4.2-1 - build(update): 0.4.2 * Thu Jul 29 2021 Artem Polishchuk - 0.4.1-1 - build(update): 0.4.1 * Mon Jul 26 2021 Artem Polishchuk - 0.4.0-1 - build(update): 0.4.0 * Thu Jul 22 2021 Fedora Release Engineering - 0.3.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Mon Jul 19 2021 Artem Polishchuk - 0.3.3-1 - build(update): 0.3.3 * Wed Jun 09 2021 Artem Polishchuk - 0.3.2-1 - build(update): 0.3.2 * Fri Jun 04 2021 Python Maint - 0.3.1-2 - Rebuilt for Python 3.10 * Thu May 06 2021 Artem Polishchuk - 0.3.1-1 - build(update): 0.3.1 * Fri Apr 16 2021 Artem Polishchuk - 0.2.3-1 - build(update): 0.2.3 * Tue Apr 06 2021 Artem Polishchuk - 0.2.1-1 - Initial package