forked from pool/python-mutagen
Accepting request 387375 from home:michel_mno:branches:devel:languages:python
- fix_SynchronizedTextSpec_test_on_BE.patch for ppc64 archi as per upstream commit Id c4d43fa OBS-URL: https://build.opensuse.org/request/show/387375 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-mutagen?expand=0&rev=20
This commit is contained in:
30
fix_SynchronizedTextSpec_test_on_BE.patch
Normal file
30
fix_SynchronizedTextSpec_test_on_BE.patch
Normal file
@@ -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
|
||||
@@ -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
|
||||
|
||||
|
||||
@@ -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' {} ';'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user