File project.diff of Package python-eyeD3
--- python-eyeD3.changes.orig
+++ python-eyeD3.changes
@@ -1,4 +1,28 @@
-------------------------------------------------------------------
+Sun Sep 26 11:27:33 UTC 2021 - Hans-Peter Jansen <hpj@urpla.net>
+
+- update to 0.9.6:
+ too many changes tolist here, check:
+ https://github.com/nicfit/eyeD3/blob/master/HISTORY.rst
+- adjust deps, exclude python3.6 (due to missing dependencies)
+- add alternative for cmdline tool
+- spec clean up
+
+-------------------------------------------------------------------
+Sun May 10 20:31:25 UTC 2020 - Hans-Peter Jansen <hpj@urpla.net>
+
+- use proper python build macros
+
+-------------------------------------------------------------------
+Sun May 10 13:28:19 UTC 2020 - Hans-Peter Jansen <hpj@urpla.net>
+
+- update to 0.9.5:
+ too many changes tolist here, check:
+ https://github.com/nicfit/eyeD3/blob/master/HISTORY.rst
+- switch to python3
+- adjust spec
+
+-------------------------------------------------------------------
Wed Nov 11 11:56:11 UTC 2015 - hpj@urpla.net
- apply a few usability patches
--- python-eyeD3.spec.orig
+++ python-eyeD3.spec
@@ -11,35 +11,43 @@
# 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/
#
+%{?!python_module:%define python_module() python-%{**} python3-%{**}}
+%define skip_python2 1
+%define skip_python36 1
Name: python-eyeD3
Summary: Python Module for ID3 Tag Manipulation
License: GPL-2.0+
Group: Productivity/Multimedia/Sound/Utilities
-Version: 0.7.8
+Version: 0.9.6
Release: 0
-Source0: http://eyed3.nicfit.net/releases/eyeD3-%{version}.tar.gz
-Patch0: eyeD3-0.7.8-process-sorted.diff
-Patch1: eyeD3-0.7.8-display-shortened-path.diff
-Patch2: eyeD3-0.7.8-mention-filename-with-invalid-mp3.diff
-Patch3: eyeD3-0.7.8-encode-empty-image-desc-in-latin1.diff
-Patch4: eyeD3-0.7.8-stable-tag-order.diff
-Url: http://eyeD3.nicfit.net/
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
-Recommends: python-magic
-BuildRequires: python-devel
-BuildRequires: python-magic
-BuildRequires: python-setuptools
-%{py_requires}
-%if 0%{?suse_version} && 0%{?suse_version} <= 1110
-%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%else
+# we're fetching from gh, since this tarball contains the docs as well
+Source: https://github.com/nicfit/eyeD3/archive/v%{version}.tar.gz#/eyeD3-%{version}.tar.gz
+URL: https://eyed3.readthedocs.io
+#BuildRequires: %%{python_module grako}
+BuildRequires: %{python_module packaging}
+BuildRequires: %{python_module setuptools}
+BuildRequires: %{pythons}
+BuildRequires: fdupes
+BuildRequires: python-rpm-macros
+# TODO: testing requires a lot of specific packages and test data
+Requires: python-certifi
+Requires: python-chardet
+Requires: python-deprecation
+Requires: python-filetype
+Requires: python-idna
+Requires: python-pyparsing
+Requires: python-ruamel.yaml
+Recommends: python-Pillow
+#Recommends: python-grako
+Recommends: python-pylast
+Requires(post): update-alternatives
+Requires(postun):update-alternatives
BuildArch: noarch
-%endif
+%python_subpackages
%description
A Python module and command line program for processing ID3 tags. Information
@@ -47,25 +55,34 @@ about mp3 files (i.e bit rate, sample fr
provided. The formats supported are ID3 v1.0/v1.1 and v2.3/v2.4.
%prep
-%setup -n eyeD3-%{version}
-%patch0 -p1
-%patch1 -p1
-%patch2 -p1
-%patch3 -p1
-%patch4 -p1
+%setup -q -n eyeD3-%{version}
+find docs -name .keep\* -delete
+# remove stray shebang from a generated file
+sed -i '1!b;/^#!\/usr\/bin\/env python/d' eyed3/plugins/_display_parser.py
%build
-%__python setup.py build
+%python_build
%install
-%__python setup.py install --prefix="%{_prefix}" --root=%{buildroot}
-%__install -d -m755 "%{buildroot}/%{_bindir}"
-%__install -m755 bin/eyeD3 "%{buildroot}/%{_bindir}/"
-
-%files
-%defattr(-,root,root)
-%doc AUTHORS ChangeLog COPYING README.rst
-%{_bindir}/eyeD3
-%{python_sitelib}/*
+%python_install
+%python_clone -a %{buildroot}%{_bindir}/eyeD3
+%python_expand %fdupes %{buildroot}%{$python_sitelib}/eyed3
+
+#%%check
+#%%pytest
+
+%post
+%python_install_alternative eyeD3
+
+%postun
+%python_uninstall_alternative eyeD3
+
+%files %{python_files}
+%defattr(-,root,root,-)
+%license LICENSE
+%doc *.rst docs/
+%python_alternative %{_bindir}/eyeD3
+%{python_sitelib}/eyeD3-%{version}-py*.egg-info
+%{python_sitelib}/eyed3
%changelog