forked from pool/python-polib
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) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-polib?expand=0&rev=30
This commit is contained in:
11
polib-1.1.0-fix-tests-big-endian.patch
Normal file
11
polib-1.1.0-fix-tests-big-endian.patch
Normal file
@@ -0,0 +1,11 @@
|
||||
--- a/polib.py
|
||||
+++ b/polib.py
|
||||
@@ -592,7 +592,7 @@ class _BaseFile(list):
|
||||
offsets = koffsets + voffsets
|
||||
|
||||
output = struct.pack(
|
||||
- "Iiiiiii",
|
||||
+ "<Iiiiiii",
|
||||
# Magic number
|
||||
MOFile.MAGIC,
|
||||
# Version
|
||||
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Sep 10 11:44:59 UTC 2018 - Matěj Cepl <mcepl@suse.com>
|
||||
|
||||
- Add polib-0.19.8-fix-tests-big-endian.patch to overcome failing tests
|
||||
on big-endian machines (https://bitbucket.org/izi/polib/issues/96)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 25 15:43:04 UTC 2018 - tchvatal@suse.com
|
||||
|
||||
|
||||
@@ -24,10 +24,12 @@ Release: 0
|
||||
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 @@ This package contains documentation in HTML format.
|
||||
|
||||
%prep
|
||||
%setup -q -n polib-%{version}
|
||||
%autopatch -p1
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -79,7 +82,8 @@ popd
|
||||
%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
|
||||
|
||||
Reference in New Issue
Block a user