Hello community,
here is the log from the commit of package python-polib for openSUSE:Factory checked in at 2018-09-11 17:21:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-polib (Old)
and /work/SRC/openSUSE:Factory/.python-polib.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-polib"
Tue Sep 11 17:21:00 2018 rev:22 rq:634946 version:1.1.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-polib/python-polib.changes 2018-01-26 13:39:56.608050764 +0100
+++ /work/SRC/openSUSE:Factory/.python-polib.new/python-polib.changes 2018-09-11 17:21:08.491057139 +0200
@@ -1,0 +2,6 @@
+Mon Sep 10 11:44:59 UTC 2018 - Matěj Cepl
+
+- Add polib-1.1.0-fix-tests-big-endian.patch to overcome failing tests
+ on big-endian machines (https://bitbucket.org/izi/polib/issues/96)
+
+-------------------------------------------------------------------
New:
----
polib-1.1.0-fix-tests-big-endian.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-polib.spec ++++++
--- /var/tmp/diff_new_pack.JLLr4v/_old 2018-09-11 17:21:08.879056547 +0200
+++ /var/tmp/diff_new_pack.JLLr4v/_new 2018-09-11 17:21:08.883056541 +0200
@@ -24,10 +24,12 @@
Summary: A library to manipulate gettext files
License: MIT
Group: Development/Languages/Python
-Url: http://bitbucket.org/izi/polib/
+URL: http://bitbucket.org/izi/polib/
Source0: https://files.pythonhosted.org/packages/source/p/polib/polib-%{version}.tar.gz
+Patch0: polib-1.1.0-fix-tests-big-endian.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
+BuildRequires: gettext-runtime >= 0.19.8
BuildRequires: python-rpm-macros
BuildRequires: python3-Sphinx
BuildArch: noarch
@@ -62,6 +64,7 @@
%prep
%setup -q -n polib-%{version}
+%autopatch -p1
%build
%python_build
@@ -79,7 +82,8 @@
%python_exec tests/tests.py
%files %{python_files}
-%doc LICENSE CHANGELOG README.rst
+%license LICENSE
+%doc CHANGELOG README.rst
%{python_sitelib}/*
%files -n python-polib-doc
++++++ polib-1.1.0-fix-tests-big-endian.patch ++++++
--- a/polib.py
+++ b/polib.py
@@ -592,7 +592,7 @@ class _BaseFile(list):
offsets = koffsets + voffsets
output = struct.pack(
- "Iiiiiii",
+ " 1: # python 3.2 or superior
- output += array.array("i", offsets).tobytes()
+ output += outarr.tobytes()
else:
- output += array.array("i", offsets).tostring()
+ output += outarr.tostring()
output += ids
output += strs
return output