File python-eyeD3.spec of Package python-eyeD3
#
# spec file for package python-eyeD3
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#
%{?sle15_python_module_pythons}
Name: python-eyeD3
Summary: Python Module for ID3 Tag Manipulation
License: GPL-2.0+
Group: Productivity/Multimedia/Sound/Utilities
Version: 0.9.7
Release: 0
Source: https://files.pythonhosted.org/packages/source/e/eyeD3/eyeD3-%{version}.tar.gz
Url: http://eyed3.nicfit.net/
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module poetry-core}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
Provides: python-eyed3 = %version
Requires: python-deprecation
Requires: python-filetype
Requires(post): update-alternatives
Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
%description
A Python module for the the manipulation of ID3 tags. It supports the
versions 1.0, 1.1, 2.3, and 2.4 of the ID3 standard. It can also
retrieve information, such as length and bit rate, from an MP3 file.
%prep
%autosetup -n eyeD3-%{version}
sed -i '/^build-backend/d' pyproject.toml
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%python_clone -a %{buildroot}%{_bindir}/eyeD3
%post
%python_install_alternative eyeD3
%postun
%python_uninstall_alternative eyeD3
%files %{python_files}
%license LICENSE
%doc AUTHORS.rst HISTORY.rst README.rst
%python_alternative %{_bindir}/eyeD3
%{python_sitelib}/*
%changelog