2014-09-15 17:02:46 +02:00
|
|
|
#
|
|
|
|
# spec file for package python-xmltodict
|
|
|
|
#
|
2023-05-09 22:48:28 +02:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2014-09-15 17:02:46 +02: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 15:15:31 +01:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-11-04 17:21:05 +01:00
|
|
|
#
|
2014-09-15 17:02:46 +02:00
|
|
|
|
|
|
|
|
2023-05-09 22:48:28 +02:00
|
|
|
%{?sle15_python_module_pythons}
|
2014-09-15 17:02:46 +02:00
|
|
|
Name: python-xmltodict
|
2022-06-19 19:48:25 +02:00
|
|
|
Version: 0.13.0
|
2014-09-15 17:02:46 +02:00
|
|
|
Release: 0
|
2019-03-26 13:22:45 +01:00
|
|
|
Summary: Module to make XML working resemble JSON
|
2014-11-04 17:21:05 +01:00
|
|
|
License: MIT
|
2018-12-04 18:26:21 +01:00
|
|
|
URL: https://github.com/martinblech/xmltodict
|
2017-05-18 17:26:31 +02:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/x/xmltodict/xmltodict-%{version}.tar.gz
|
2022-02-22 11:28:26 +01:00
|
|
|
Patch0: skip-tests-expat-245.patch
|
2017-05-18 17:26:31 +02:00
|
|
|
BuildRequires: %{python_module setuptools}
|
|
|
|
BuildRequires: %{python_module xml}
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
2018-12-04 18:26:21 +01:00
|
|
|
Requires: python-xml
|
|
|
|
BuildArch: noarch
|
2020-05-29 13:00:56 +02:00
|
|
|
BuildRequires: %{python_module pytest}
|
2017-05-18 17:26:31 +02:00
|
|
|
%python_subpackages
|
2014-09-15 17:02:46 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
xmltodict is a Python module that makes working with XML feel like you are
|
2017-05-18 17:26:31 +02:00
|
|
|
working with json, as in this:
|
2014-09-15 17:02:46 +02:00
|
|
|
http://www.xml.com/pub/a/2006/05/31/converting-between-xml-and-json.html
|
|
|
|
|
|
|
|
%prep
|
2022-02-22 11:28:26 +01:00
|
|
|
%autosetup -p1 -n xmltodict-%{version}
|
2018-12-04 18:26:21 +01:00
|
|
|
sed -i '1{\@^#!%{_bindir}/env python@d}' xmltodict.py
|
2014-09-15 17:02:46 +02:00
|
|
|
|
|
|
|
%build
|
2019-04-06 12:15:00 +02:00
|
|
|
export LANG=en_US.UTF-8
|
2017-05-18 17:26:31 +02:00
|
|
|
%python_build
|
2014-09-15 17:02:46 +02:00
|
|
|
|
|
|
|
%install
|
2019-04-06 12:15:00 +02:00
|
|
|
export LANG=en_US.UTF-8
|
2017-05-18 17:26:31 +02:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2014-09-15 17:02:46 +02:00
|
|
|
|
2016-09-07 10:42:31 +02:00
|
|
|
%check
|
2019-04-06 12:15:00 +02:00
|
|
|
export LANG=en_US.UTF-8
|
2020-05-29 13:00:56 +02:00
|
|
|
%pytest
|
2016-09-07 10:42:31 +02:00
|
|
|
|
2017-05-18 17:26:31 +02:00
|
|
|
%files %{python_files}
|
2018-12-04 18:26:21 +01:00
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
2017-05-18 17:26:31 +02:00
|
|
|
%{python_sitelib}/xmltodict.py*
|
|
|
|
%pycache_only %{python_sitelib}/__pycache__/xmltodict.*.py*
|
|
|
|
%{python_sitelib}/xmltodict-%{version}-py*.egg-info
|
2014-09-15 17:02:46 +02:00
|
|
|
|
2014-11-04 17:21:05 +01:00
|
|
|
%changelog
|