Hello community, here is the log from the commit of package python-mutagen for openSUSE:Factory checked in at 2016-04-17 22:16:36 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-mutagen (Old) and /work/SRC/openSUSE:Factory/.python-mutagen.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-mutagen" Changes: -------- --- /work/SRC/openSUSE:Factory/python-mutagen/python-mutagen.changes 2016-01-23 01:15:35.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-mutagen.new/python-mutagen.changes 2016-04-17 22:16:37.000000000 +0200 @@ -1,0 +2,6 @@ +Mon Apr 11 08:51:20 UTC 2016 - norm...@linux.vnet.ibm.com + +- fix_SynchronizedTextSpec_test_on_BE.patch for ppc64 archi + as per upstream commit Id c4d43fa + +------------------------------------------------------------------- New: ---- fix_SynchronizedTextSpec_test_on_BE.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-mutagen.spec ++++++ --- /var/tmp/diff_new_pack.sKixqL/_old 2016-04-17 22:16:38.000000000 +0200 +++ /var/tmp/diff_new_pack.sKixqL/_new 2016-04-17 22:16:38.000000000 +0200 @@ -24,6 +24,7 @@ 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 @@ %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' {} ';' ++++++ fix_SynchronizedTextSpec_test_on_BE.patch ++++++ 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