File scdl.spec of Package scdl

#
# spec file for package scdl
#
# 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 %{primary_python}
Name:           scdl
Version:        2.12.4
Release:        0
Summary:        Download Music from Souncloud
License:        GPL-2.0-only
URL:            https://github.com/flyingrub/scdl
Source:         %{name}-%{version}.tar.gz
BuildRequires:  %{python_module docopt-ng}
BuildRequires:  %{python_module filelock >= 3.0.0}
BuildRequires:  %{python_module mutagen >= 1.45.0}
BuildRequires:  %{python_module pathvalidate}
BuildRequires:  %{python_module pip}
BuildRequires:  %{python_module requests}
BuildRequires:  %{python_module soundcloud-v2 >= 1.5.2}
BuildRequires:  %{python_module termcolor}
BuildRequires:  %{python_module tqdm}
BuildRequires:  %{python_module setuptools}
Requires:       python3-docopt-ng
Requires:       python3-filelock >= 3.0.0
Requires:       python3-mutagen >= 1.45.0
Requires:       python3-pathvalidate
Requires:       python3-requests
Requires:       python3-soundcloud-v2 >= 1.5.2
Requires:       python3-termcolor
Requires:       python3-tqdm
BuildArch:      noarch

%description
Download Music from Souncloud.

%prep
%setup -q

%build
%pyproject_wheel

%install
%pyproject_install
%python_expand rm -rv %{buildroot}%{$python_sitelib}/tests

%files
%license LICENSE
%doc README.md
%{python3_sitelib}/scdl
%{python3_sitelib}/scdl-%{version}*-info
%{_bindir}/scdl

%changelog
openSUSE Build Service is sponsored by