File cast_control.spec of Package cast_control

#
# spec file for package cast_control
#
# Copyright (c) 2024 Jay Michalska <hel@lcp.world>
#
# 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 python313

Name:           cast_control
Version:        0.16.0
Release:        0
Summary:        Daemon for displaying playback status of chromecast devices on the network using mpris
License:        AGPL-3.0
URL:            https://cast.firstbyte.dev/
Source:         https://github.com/alexdelorenzo/%{name}/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module setuptools}
BuildRequires:  %{python_module wheel}
BuildRequires:  %{python_module anyio}
BuildRequires:  %{python_module aiopath}
BuildRequires:  %{python_module app-paths}
BuildRequires:  %{python_module appdirs}
BuildRequires:  %{python_module click}
BuildRequires:  %{python_module daemons}
BuildRequires:  %{python_module iteration_utilities}
BuildRequires:  %{python_module mpris-server}
BuildRequires:  %{python_module PyChromecast}
BuildRequires:  %{python_module pydbus}
BuildRequires:  %{python_module gobject}
BuildRequires:  %{python_module rich}
BuildRequires:  %{python_module validators}
BuildRequires:  %{python_module hatchling}
BuildRequires:  python-rpm-macros
BuildRequires:  fdupes
Requires:       %{python_module aiopath}
Requires:       %{python_module app-paths}
Requires:       %{python_module appdirs}
Requires:       %{python_module click}
Requires:       %{python_module daemons}
Requires:       %{python_module iteration_utilities}
Requires:       %{python_module mpris-server}
Requires:       %{python_module PyChromecast}
Requires:       %{python_module pydbus}
Requires:       %{python_module gobject}
Requires:       %{python_module rich}
Requires:       %{python_module validators}
Requires:       %{python_module hatchling}
BuildArch:      noarch
%python_subpackages

%description
Daemon for displaying playback status of chromecast devices on the network using mpris.

%prep
%autosetup -p1 -n %{name}-%{version}

%build
%pyproject_wheel

%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%check

%files
%doc README.md
%license LICENSE
%{python_sitelib}/%{name}
%{python_sitelib}/%{name}-%{version}.dist-info
%{_bindir}/cast{ctl,_control}

%changelog
openSUSE Build Service is sponsored by