2015-12-14 10:14:07 +01:00
|
|
|
#
|
2017-06-07 20:49:15 +02:00
|
|
|
# spec file for package python-et_xmlfile
|
2015-12-14 10:14:07 +01:00
|
|
|
#
|
2020-03-12 08:20:00 +01:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2015-12-14 10:14:07 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-12-04 14:25:58 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-12-14 10:14:07 +01:00
|
|
|
#
|
|
|
|
|
2017-07-26 13:59:21 +02:00
|
|
|
|
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2017-06-07 20:49:15 +02:00
|
|
|
Name: python-et_xmlfile
|
2015-12-14 10:14:07 +01:00
|
|
|
Version: 1.0.1
|
|
|
|
Release: 0
|
|
|
|
Summary: An implementation of lxml.xmlfile for the standard library
|
|
|
|
License: MIT
|
2018-12-06 14:26:14 +01:00
|
|
|
URL: https://bitbucket.org/openpyxl/et_xmlfile
|
2017-06-07 20:49:15 +02:00
|
|
|
Source0: https://files.pythonhosted.org/packages/source/e/et_xmlfile/et_xmlfile-%{version}.tar.gz
|
2015-12-14 10:14:07 +01:00
|
|
|
Source1: https://bitbucket.org/openpyxl/et_xmlfile/raw/8c7ad6904ebe0ff98c204a3e77d7e78528b10ffe/LICENCE.rst
|
2017-07-26 13:59:21 +02:00
|
|
|
BuildRequires: %{python_module lxml}
|
|
|
|
BuildRequires: %{python_module pytest}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2017-06-07 20:49:15 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2015-12-14 10:14:07 +01:00
|
|
|
Requires: python-jdcal
|
2017-06-07 20:49:15 +02:00
|
|
|
Requires: python-lxml >= 3.4
|
2015-12-14 10:14:07 +01:00
|
|
|
BuildArch: noarch
|
2017-06-07 20:49:15 +02:00
|
|
|
%python_subpackages
|
2015-12-14 10:14:07 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
et_xmlfile is a low memory library for creating large XML files.
|
|
|
|
|
|
|
|
It is based upon the xmlfile module from lxml with the aim of allowing code to
|
|
|
|
be developed that will work with both libraries. It was developed initially for
|
|
|
|
the openpyxl project but is now a standalone module.
|
|
|
|
|
|
|
|
%prep
|
2017-06-07 20:49:15 +02:00
|
|
|
%setup -q -n et_xmlfile-%{version}
|
2015-12-14 10:14:07 +01:00
|
|
|
rm -rf *.egg-info
|
2018-12-06 14:26:14 +01:00
|
|
|
cp -a %{SOURCE1} .
|
2015-12-14 10:14:07 +01:00
|
|
|
|
|
|
|
%build
|
2017-06-07 20:49:15 +02:00
|
|
|
%python_build
|
2015-12-14 10:14:07 +01:00
|
|
|
|
|
|
|
%install
|
2017-06-07 20:49:15 +02:00
|
|
|
%python_install
|
2018-12-06 14:26:14 +01:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2017-06-07 20:49:15 +02:00
|
|
|
|
2018-12-06 14:26:14 +01:00
|
|
|
%check
|
2020-03-12 08:20:00 +01:00
|
|
|
%pytest et_xmlfile/tests
|
2015-12-14 10:14:07 +01:00
|
|
|
|
2017-06-07 20:49:15 +02:00
|
|
|
%files %{python_files}
|
2018-12-06 14:26:14 +01:00
|
|
|
%license LICENCE.rst
|
|
|
|
%doc README.rst
|
2020-03-12 08:20:00 +01:00
|
|
|
%{python_sitelib}/et_xmlfile-%{version}-py*.egg-info
|
2017-06-07 20:49:15 +02:00
|
|
|
%{python_sitelib}/et_xmlfile/
|
2015-12-14 10:14:07 +01:00
|
|
|
|
|
|
|
%changelog
|