From cd9c960d1938845481a6a82979cc74149869e97b Mon Sep 17 00:00:00 2001 From: Krzysztof Mrozowicz Date: Fri, 19 Aug 2022 21:53:05 +0000 Subject: [PATCH] - added python3.9 compat patch, relup --- apev2_python39.patch | 14 ++++++++++++++ python-mutagen.spec | 4 +++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 apev2_python39.patch diff --git a/apev2_python39.patch b/apev2_python39.patch new file mode 100644 index 0000000..3ff2bf5 --- /dev/null +++ b/apev2_python39.patch @@ -0,0 +1,14 @@ +--- mutagen-1.42.0/mutagen/apev2.py~ 2018-11-17 10:56:49.000000000 +0000 ++++ mutagen-1.42.0/mutagen/apev2.py 2022-08-19 21:46:55.162926190 +0000 +@@ -32,7 +32,10 @@ + + import sys + import struct +-from collections import MutableSequence ++if sys.version_info[:2] >= (3, 8): ++ from collections.abc import MutableSequence ++else: ++ from collections import MutableSequence + + from ._compat import (cBytesIO, PY3, text_type, PY2, reraise, swap_to_string, + xrange) diff --git a/python-mutagen.spec b/python-mutagen.spec index 928d5da..142ee53 100644 --- a/python-mutagen.spec +++ b/python-mutagen.spec @@ -8,12 +8,13 @@ Summary: Audio metadata reader/writer for Python 2 Summary(pl.UTF-8): Moduł Pythona 2 do odczytu i zapisu metadanych dźwiękowych Name: python-%{module} Version: 1.42.0 -Release: 7 +Release: 8 License: GPL v2+ Group: Development/Languages/Python #Source0Download: https://github.com/quodlibet/mutagen/releases Source0: https://github.com/quodlibet/mutagen/releases/download/release-%{version}/mutagen-%{version}.tar.gz # Source0-md5: 3729218f974c3a79ee9972ffa5ca5d12 +Patch0: apev2_python39.patch URL: https://github.com/quodlibet/mutagen %if %{with python2} BuildRequires: python-devel >= 1:2.7 @@ -75,6 +76,7 @@ APEv2 i FLAC. %prep %setup -q -n %{module}-%{version} +%patch0 -p1 %build %if %{with python2} -- 2.44.0