]> git.pld-linux.org Git - packages/python-mutagen.git/commitdiff
- added python3.9 compat patch, relup master auto/th/python-mutagen-1.42.0-8
authorKrzysztof Mrozowicz <mrozowik@pld-linux.org>
Fri, 19 Aug 2022 21:53:05 +0000 (21:53 +0000)
committerKrzysztof Mrozowicz <mrozowik@pld-linux.org>
Fri, 19 Aug 2022 21:53:05 +0000 (21:53 +0000)
apev2_python39.patch [new file with mode: 0644]
python-mutagen.spec

diff --git a/apev2_python39.patch b/apev2_python39.patch
new file mode 100644 (file)
index 0000000..3ff2bf5
--- /dev/null
@@ -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)
index 928d5daaba57c5145f4c0d50d830383c92fb80a9..142ee53d5ffd6cff3b99100e82c861321595246c 100644 (file)
@@ -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}
This page took 0.155162 seconds and 4 git commands to generate.