Hello community, here is the log from the commit of package python-pymarc for openSUSE:Factory checked in at 2019-12-06 12:11:49 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pymarc (Old) and /work/SRC/openSUSE:Factory/.python-pymarc.new.4691 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pymarc" Fri Dec 6 12:11:49 2019 rev:3 rq:754605 version:3.1.13 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pymarc/python-pymarc.changes 2019-08-27 10:20:43.407942216 +0200 +++ /work/SRC/openSUSE:Factory/.python-pymarc.new.4691/python-pymarc.changes 2019-12-06 12:12:06.520032788 +0100 @@ -1,0 +2,6 @@ +Fri Dec 6 07:42:48 UTC 2019 - Tomáš Chvátal <[email protected]> + +- Add patch to fix building with python 3.8: + * python38.patch + +------------------------------------------------------------------- New: ---- python38.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pymarc.spec ++++++ --- /var/tmp/diff_new_pack.5Ut7hf/_old 2019-12-06 12:12:11.324030457 +0100 +++ /var/tmp/diff_new_pack.5Ut7hf/_new 2019-12-06 12:12:11.324030457 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-pymarc # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2019 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,6 +26,7 @@ URL: https://github.com/edsu/pymarc Source: https://files.pythonhosted.org/packages/source/p/pymarc/pymarc-%{version}.tar.gz Source1: https://raw.githubusercontent.com/edsu/pymarc/master/LICENSE +Patch0: python38.patch BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros @@ -45,6 +46,7 @@ %prep %setup -q -n pymarc-%{version} +%patch0 -p1 cp %{SOURCE1} . %build ++++++ python38.patch ++++++ >From 44d37f6aef231e1b874f2c12e002007d686da28e Mon Sep 17 00:00:00 2001 From: Geoffrey Spear <[email protected]> Date: Mon, 7 Oct 2019 08:33:07 -0400 Subject: [PATCH 1/2] test on 3.8-dev --- pymarc/marcxml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pymarc/marcxml.py b/pymarc/marcxml.py index 7d87905..f351a8b 100644 --- a/pymarc/marcxml.py +++ b/pymarc/marcxml.py @@ -160,9 +160,9 @@ def translate(data): control_field.text = translate(field.data) else: data_field = ET.SubElement(root, 'datafield') - data_field.set('tag', field.tag) data_field.set('ind1', field.indicators[0]) data_field.set('ind2', field.indicators[1]) + data_field.set('tag', field.tag) for subfield in field: data_subfield = ET.SubElement(data_field, 'subfield') data_subfield.set('code', subfield[0])
