File feeluown.spec of Package feeluown
#
# spec file for package feeluown
#
# Copyright (c) 2024 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
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: feeluown
Version: 4.1.8
Release: 0
Summary: *nix music player
License: GPL-3.0
URL: https://github.com/feeluown/FeelUOwn
Source: https://files.pythonhosted.org/packages/source/f/feeluown/feeluown-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools}
# SECTION test requirements
BuildRequires: %{python_module janus}
BuildRequires: %{python_module packaging}
BuildRequires: %{python_module pydantic}
BuildRequires: %{python_module qasync}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module tomlkit}
# /SECTION
BuildRequires: fdupes
BuildRequires: update-desktop-files
BuildRequires: hicolor-icon-theme
Requires: mpv-devel
Requires: %{python_module janus}
Requires: %{python_module packaging}
Requires: %{python_module pydantic}
Requires: %{python_module qasync}
Requires: %{python_module requests}
Requires: %{python_module tomlkit}
Requires: %{python_module mutagen}
Recommends: %{python_module fuo_netease}
Recommends: %{python_module fuo_qqmusic}
Recommends: %{python_module fuo_kuwo}
BuildArch: noarch
%description
*nix music player
%prep
%setup -q -n feeluown-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%suse_update_desktop_file -c %{name} %{name} FeelUOwn %{_bindir}/feeluown %{name} Audio AudioVideo Player
install -Dm644 feeluown/gui/assets/icons/feeluown.png -t %{buildroot}%{_datadir}/icons/hicolor/512x512/apps/
%files
%doc README.md
%{_bindir}/feeluown
%{_bindir}/fuo
%exclude %{_bindir}/feeluown-genicon
%{python_sitelib}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/512x512/apps/feeluown.png
%changelog