Accepting request 1189575 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1189575 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-dbfread?expand=0&rev=5
This commit is contained in:
commit
39e35927c4
13
field_parser.patch
Normal file
13
field_parser.patch
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
Index: dbfread-2.0.7/dbfread/field_parser.py
|
||||||
|
===================================================================
|
||||||
|
--- dbfread-2.0.7.orig/dbfread/field_parser.py
|
||||||
|
+++ dbfread-2.0.7/dbfread/field_parser.py
|
||||||
|
@@ -175,7 +175,7 @@ class FieldParser:
|
||||||
|
|
||||||
|
def parseO(self, field, data):
|
||||||
|
"""Parse long field (O) and return float."""
|
||||||
|
- return struct.unpack('d', data)[0]
|
||||||
|
+ return struct.unpack('<d', data)[0]
|
||||||
|
|
||||||
|
def parseT(self, field, data):
|
||||||
|
"""Parse time field (T)
|
@ -1,3 +1,9 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 23 11:06:07 UTC 2024 - Berthold Gunreben <azouhr@opensuse.org>
|
||||||
|
|
||||||
|
- Add field_parser.patch to ensure that fields are parsed with
|
||||||
|
little endian. Created pull request at gh#olemb/dbfread#71.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Nov 1 13:49:17 CET 2019 - Matej Cepl <mcepl@suse.com>
|
Fri Nov 1 13:49:17 CET 2019 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-dbfread
|
# spec file for package python-dbfread
|
||||||
#
|
#
|
||||||
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2024 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -27,6 +27,7 @@ URL: https://github.com/olemb/dbfread
|
|||||||
Source: https://files.pythonhosted.org/packages/source/d/dbfread/dbfread-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/d/dbfread/dbfread-%{version}.tar.gz
|
||||||
# gh#olemb/dbfread#33
|
# gh#olemb/dbfread#33
|
||||||
Patch0: pytest4.patch
|
Patch0: pytest4.patch
|
||||||
|
Patch1: field_parser.patch
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
|
Loading…
Reference in New Issue
Block a user