File catt.spec of Package catt

#
# spec file for package catt
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2022 Tejas Guruswamy <tejas.guruswamy@opensuse.org>
#
# 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
%{?sle15_python_module_pythons}

Name:           catt
Version:        0.13.1
Release:        0
Summary:        Cast All The Things to Chromecast
License:        BSD-2-Clause
Group:          Productivity/Multimedia/Other
URL:            https://github.com/skorokithakis/catt
Source:         catt-%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  python-rpm-macros
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module poetry-core}
Requires:       python3-PyChromecast >= 14.0.1
Requires:       python3-click >= 7.1.2
Requires:       python3-ifaddr >= 0.1.7
Requires:       python3-requests >= 2.23
Requires:       yt-dlp >= 2023.3.4
BuildArch:      noarch

# SECTION TEST REQUIREMENTS
BuildRequires:  %{python_module pytest}
BuildRequires:  %{python_module PyChromecast >= 13.0.7}
BuildRequires:  %{python_module click >= 7.1.2}
BuildRequires:  %{python_module ifaddr >= 0.1.7}
BuildRequires:  %{python_module requests >= 2.23}
BuildRequires:  yt-dlp >= 2023.3.4
# /SECTION

%description
Cast All The Things allows you to send videos from many, many online sources (YouTube, Vimeo, and a few hundred others) to your Chromecast. It also allows you to cast local files or render websites.

%prep
%setup -q

%build
%pyproject_wheel

%install
%pyproject_install
%fdupes %{buildroot}%{python3_sitelib}

%__chmod -x %{buildroot}%{python3_sitelib}/catt/cli.py

%check
# Cannot test without python-yt-dlp
#%#pytest

%files
%license LICENSE
%doc README.md CHANGELOG.md
%{_bindir}/catt
%{python3_sitelib}/catt*

%changelog
openSUSE Build Service is sponsored by