File nwg-shell-config.spec of Package nwg-shell-config
%define skip_python312 1
%define skip_python311 1
%define skip_python310 1
#
# spec file for package nwg-shell-config
#
# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%global sys_name nwg_shell-config
Name: nwg-shell-config
Version: 0.5.62
Release: 0
Summary: nwg-shell GUI configuration utility
License: MIT
URL: https://github.com/nwg-piotr/nwg-shell-config
Source: v%{version}.tar.gz
BuildRequires: desktop-file-utils
#BuildRequires: fdupes
BuildRequires: python3-devel >= 3.4
BuildRequires: python3-build
BuildRequires: python3-installer
BuildRequires: python3-setuptools
BuildRequires: python3-wheel
BuildRequires: python3-pip
BuildRequires: systemd-rpm-macros
Requires: python3
Requires: python3-gobject
Requires: python3-i3ipc
Requires: python3-geopy
Requires: python3-requests
Requires: libgtk-3-0
Requires: libgtk-layer-shell0
Requires: glib2
Recommends: playerctl
Recommends: gtklock
Recommends: wlsunset
Recommends: google-noto-fonts
Recommends: typelib-1_0-Playerctl-2_0
BuildArch: noarch
### Not packaged
# Recommends: pamixer
%description
nwg-shell GUI configuration utility
%prep
%autosetup
%build
%pyproject_wheel
%install
%pyproject_install
install -d -m 755 %{buildroot}%{_datadir}/pixmaps
install -d -m 755 %{buildroot}%{_datadir}/applications
install -Dpm 755 nwg-system-update %{buildroot}%{_bindir}/
install -Dpm 644 *.svg %{buildroot}%{_datadir}/pixmaps/
install -Dpm 644 %{name}.desktop %{buildroot}%{_datadir}/applications/
%files
%license LICENSE
%doc README.md
%{_bindir}/nwg-autotiling
%{_bindir}/nwg-autotranslate
%{_bindir}/nwg-dialog
%{_bindir}/nwg-hud
%{_bindir}/nwg-lock
%{_bindir}/nwg-screenshot-applet
%{_bindir}/nwg-shell-config-hyprland
%{_bindir}/nwg-shell-config-sway
%{_bindir}/nwg-shell-help
%{_bindir}/nwg-shell-translate
%{_bindir}/nwg-update-indicator
%{_bindir}/%{name}
%{_bindir}/nwg-system-update
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*.svg
%{python3_sitelib}/nwg_shell_config-%{version}.dist-info/
%{python3_sitelib}/nwg_shell_config
%changelog