File waypaper.spec of Package waypaper
#
# spec file for package python-waypaper
#
# 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/
#
%define pythons python3
Name: waypaper
Version: 2.0.2
Release: 0
Summary: GUI wallpaper setter for Wayland
License: GPL-3.0-or-later
URL: https://github.com/anufrievroman/waypaper
Source: https://files.pythonhosted.org/packages/source/w/waypaper/waypaper-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-pip
BuildRequires: python3-setuptools
BuildRequires: python3-wheel
BuildRequires: python3-gobject
BuildRequires: update-desktop-files
BuildRequires: fdupes
BuildRequires: hicolor-icon-theme
Enhances: swaybg, swww, feh
%description
# Waypaper
GUI wallpaper setter for Wayland and Xorg window managers. It works as a frontend for popular wallpaper backends like `swaybg`, `swww`, `wallutils` and `feh`.
%prep
%autosetup -p1 -n waypaper-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%suse_update_desktop_file %{name}
%files
%{_bindir}/%{name}
%{python_sitelib}/waypaper
%{python_sitelib}/waypaper-%{version}.dist-info
%{_datadir}/applications/waypaper.desktop
%{_datadir}/icons/hicolor/scalable/apps/waypaper.svg
%changelog