Accepting request 678108 from home:jayvdb:pyexcel

- Update to v1.4.0, using defusedxml
- Replace dead url with https://github.com/eea/odfpy
- Make sure to install license files

OBS-URL: https://build.opensuse.org/request/show/678108
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-odfpy?expand=0&rev=22
This commit is contained in:
Tomáš Chvátal 2019-02-22 10:43:54 +00:00 committed by Git OBS Bridge
parent eae8ce793b
commit 0c1b97036c
4 changed files with 25 additions and 9 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:6bcaf3b23aa9e49ed8c8c177266539b211add4e02402748a994451482a10cb1b
size 691122

3
odfpy-1.4.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:596021f0519623ca8717331951c95e3b8d7b21e86edc7efe8cb650a0d0f59a2b
size 715096

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Fri Feb 22 01:45:28 UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Update to v1.4.0
* Use defusedxml, which guards against various XML vulnerabilities
* Fix odf/opendocument.py toXml needs codecs import
* Add tests for various XML vulnerabilities
* Add metadata for Python 3.7 support
- Replace dead url with https://github.com/eea/odfpy
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Aug 29 10:52:40 UTC 2018 - tchvatal@suse.com Wed Aug 29 10:52:40 UTC 2018 - tchvatal@suse.com
@ -9,7 +19,11 @@ Wed Jun 6 13:52:20 UTC 2018 - mcepl@suse.com
- Clean SPEC file - Clean SPEC file
- Switched on tests - Switched on tests
- Update to 1.3.6 - Update to 1.3.6
- Various bugfixes * Proper import of load
* Escaping: replace xml-1.0-illegal characters with question marks
* ODT merge example
* Changed the path to save images.
Now image of the subobject is stored in a folder of subobject
------------------------------------------------------------------- -------------------------------------------------------------------
Thu Aug 24 05:19:14 UTC 2017 - tbechtold@suse.com Thu Aug 24 05:19:14 UTC 2017 - tbechtold@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package python-odfpy # spec file for package python-odfpy
# #
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# #
# 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
@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9) # license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative. # published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via https://bugs.opensuse.org/
# #
@ -20,18 +20,20 @@
%define modname odfpy %define modname odfpy
%{?!python_module:%define python_module() python-%{**} python3-%{**}} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-%{modname} Name: python-%{modname}
Version: 1.3.6 Version: 1.4.0
Release: 0 Release: 0
Summary: Python API and tools to manipulate OpenDocument files Summary: Python API and tools to manipulate OpenDocument files
License: GPL-2.0-or-later AND Apache-2.0 License: GPL-2.0-or-later AND Apache-2.0
Group: Development/Languages/Python Group: Development/Languages/Python
URL: http://opendocumentfellowship.com/development/projects/odfpy URL: https://github.com/eea/odfpy
Source: https://files.pythonhosted.org/packages/source/o/odfpy/%{modname}-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/o/odfpy/%{modname}-%{version}.tar.gz
BuildRequires: %{python_module defusedxml}
BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools} BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildArch: noarch BuildArch: noarch
Requires: python-defusedxml
%python_subpackages %python_subpackages
%description %description
@ -59,7 +61,7 @@ In addition to the API, there are a few scripts:
- odfuserfield - List or change the user-field declarations in an ODF file - odfuserfield - List or change the user-field declarations in an ODF file
- xml2odf - Create OD? package from OpenDocument in XML form - xml2odf - Create OD? package from OpenDocument in XML form
Visit http://odfpy.forge.osor.eu/ for documentation and examples. Visit https://github.com/eea/odfpy for documentation and examples.
%prep %prep
%setup -q -n %{modname}-%{version} %setup -q -n %{modname}-%{version}