diff --git a/fix_SynchronizedTextSpec_test_on_BE.patch b/fix_SynchronizedTextSpec_test_on_BE.patch new file mode 100644 index 0000000..a7d096b --- /dev/null +++ b/fix_SynchronizedTextSpec_test_on_BE.patch @@ -0,0 +1,30 @@ +Subject: fix SynchronizedTextSpec test on BE +Date: Mon, 11 Apr 2016 10:40:52 +0200 + +fix SynchronizedTextSpec test on BE +as per upstream https://bitbucket.org/lazka/mutagen/commits/c4d43fa880d7363c2b78ed6270171911b9da77a2 + +--- + tests/test__id3specs.py | 9 +++++++-- + 1 file changed, 7 insertions(+), 2 deletions(-) + +Index: mutagen-1.31/tests/test__id3specs.py +=================================================================== +--- mutagen-1.31.orig/tests/test__id3specs.py ++++ mutagen-1.31/tests/test__id3specs.py +@@ -102,8 +102,13 @@ class SpecSanityChecks(TestCase): + # utf-16 + f.encoding = 1 + self.assertEqual(s.read(f, s.write(f, values)), (values, b"")) +- self.assertEquals( +- s.write(f, [(u"A", 100)]), b"\xff\xfeA\x00\x00\x00\x00\x00\x00d") ++ data = s.write(f, [(u"A", 100)]) ++ if sys.byteorder == 'little': ++ self.assertEquals( ++ data, b"\xff\xfeA\x00\x00\x00\x00\x00\x00d") ++ else: ++ self.assertEquals( ++ data, b"\xfe\xff\x00A\x00\x00\x00\x00\x00d") + + # utf-16be + f.encoding = 2 diff --git a/python-mutagen.changes b/python-mutagen.changes index 784a403..aaa3e5e 100644 --- a/python-mutagen.changes +++ b/python-mutagen.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Apr 11 08:51:20 UTC 2016 - normand@linux.vnet.ibm.com + +- fix_SynchronizedTextSpec_test_on_BE.patch for ppc64 archi + as per upstream commit Id c4d43fa + ------------------------------------------------------------------- Thu Jan 14 13:56:56 UTC 2016 - toddrme2178@gmail.com diff --git a/python-mutagen.spec b/python-mutagen.spec index 72eb22a..13f0bf2 100644 --- a/python-mutagen.spec +++ b/python-mutagen.spec @@ -24,6 +24,7 @@ License: GPL-2.0 Group: Development/Libraries/Python Url: https://pypi.python.org/pypi/mutagen Source: https://pypi.python.org/packages/source/m/mutagen/mutagen-%{version}.tar.gz +Patch1: fix_SynchronizedTextSpec_test_on_BE.patch BuildRequires: python-devel BuildRequires: python-pytest BuildRequires: python-setuptools @@ -47,6 +48,7 @@ Ogg streams on an individual packet/page level. %prep %setup -q -n mutagen-%{version} +%patch1 -p1 # remove shebangs from library files find mutagen/ -name "*.py" -exec sed -i -e '/^#!\s\?\/usr\/bin\/\(env\s\)\?python$/d' {} ';'