Hello community,

here is the log from the commit of package python-pymarc for openSUSE:Leap:15.2 
checked in at 2020-02-11 23:25:49
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Leap:15.2/python-pymarc (Old)
 and      /work/SRC/openSUSE:Leap:15.2/.python-pymarc.new.26092 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pymarc"

Tue Feb 11 23:25:49 2020 rev:1 rq:771183 version:3.1.13

Changes:
--------
New Changes file:

--- /dev/null   2019-12-19 10:12:34.003146842 +0100
+++ /work/SRC/openSUSE:Leap:15.2/.python-pymarc.new.26092/python-pymarc.changes 
2020-02-11 23:25:49.633282726 +0100
@@ -0,0 +1,16 @@
+-------------------------------------------------------------------
+Fri Dec  6 07:42:48 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Add patch to fix building with python 3.8:
+  * python38.patch
+
+-------------------------------------------------------------------
+Sat Aug 24 14:18:04 UTC 2019 - Jan Engelhardt <[email protected]>
+
+- Use noun phrase in summary. Replace summary copy by
+  upstream's description.
+
+-------------------------------------------------------------------
+Wed Jul 31 08:17:16 AM UTC 2019 - John Vandenberg <[email protected]>
+
+- Initial spec for v3.1.13

New:
----
  LICENSE
  pymarc-3.1.13.tar.gz
  python-pymarc.changes
  python-pymarc.spec
  python38.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pymarc.spec ++++++
#
# spec file for package python-pymarc
#
# 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via https://bugs.opensuse.org/
#


%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name:           python-pymarc
Version:        3.1.13
Release:        0
Summary:        MARC bibliographic data manipulation module
License:        BSD-2-Clause
Group:          Development/Languages/Python
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
Requires:       python-six >= 1.9.0
BuildArch:      noarch
# SECTION test requirements
BuildRequires:  %{python_module six >= 1.9.0}
# /SECTION
%python_subpackages

%description
pymarc is a Python library for working with bibliographic data
encoded in MARC21. It provides an API for reading, writing and
modifying MARC records. It was originally designed to be an emergency
eject seat for getting data assets out of MARC and into some kind of
saner representation.

%prep
%setup -q -n pymarc-%{version}
%patch0 -p1
cp %{SOURCE1} .

%build
%python_build

%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%check
%python_exec setup.py test

%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/*

%changelog
++++++ LICENSE ++++++
Copyright 2005-2019 Gabriel Farrell, Mark Matienzo, Geoffrey Spear, Ed Summers

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
++++++ 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])

Reply via email to