diff --git a/python-xmltodict.changes b/python-xmltodict.changes index 1e5c20f..f95562a 100644 --- a/python-xmltodict.changes +++ b/python-xmltodict.changes @@ -1,3 +1,16 @@ +------------------------------------------------------------------- +Thu May 18 15:01:55 UTC 2017 - toddrme2178@gmail.com + +- Implement single-spec version +- Fix source URL. +- Update to version 0.11.0 + * Determine fileness by checking for read attr + * Add support for Python 3.6. + * Release as a universal wheel. + * Updated docs examples to use print function. + * unparse: pass short_empty_elements to XMLGenerator + * Added namespace support when unparsing. + ------------------------------------------------------------------- Tue Sep 6 07:25:55 UTC 2016 - mardnh@gmx.de diff --git a/python-xmltodict.spec b/python-xmltodict.spec index 3b4c3e6..08f4479 100644 --- a/python-xmltodict.spec +++ b/python-xmltodict.spec @@ -1,7 +1,7 @@ # # spec file for package python-xmltodict # -# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,55 +16,55 @@ # -%define use_build_checks 1 - +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_without test Name: python-xmltodict -Version: 0.10.2 +Version: 0.11.0 Release: 0 Summary: Makes working with XML feel like you are working with JSON License: MIT Group: Development/Languages/Python Url: https://github.com/martinblech/xmltodict -Source: https://pypi.io/packages/source/x/xmltodict/xmltodict-%{version}.tar.gz -BuildRequires: python-devel -BuildRequires: python-setuptools -%if 0%{?use_build_checks} -BuildRequires: python-coverage -BuildRequires: python-nose -%endif -%if 0%{?suse_version} -BuildRequires: python-xml +Source: https://files.pythonhosted.org/packages/source/x/xmltodict/xmltodict-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module xml} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +%if %{with test} +BuildRequires: %{python_module nose >= 1.0} %endif +Requires: python-xml BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else BuildArch: noarch -%endif +%python_subpackages %description xmltodict is a Python module that makes working with XML feel like you are -working with json, as in this +working with json, as in this: http://www.xml.com/pub/a/2006/05/31/converting-between-xml-and-json.html %prep %setup -q -n xmltodict-%{version} +sed -i '1{\@^#!/usr/bin/env python@d}' xmltodict.py %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%if %{with test} %check -%if 0%{?use_build_checks} -nosetests -v +%python_expand nosetests-%{$python_bin_suffix} %endif -%files +%files %{python_files} %defattr(-,root,root,-) %doc README.md LICENSE -%{python_sitelib}/xmltodict* -%{python_sitelib}/xmltodict-%{version}-py%{py_ver}.egg-info +%{python_sitelib}/xmltodict.py* +%pycache_only %{python_sitelib}/__pycache__/xmltodict.*.py* +%{python_sitelib}/xmltodict-%{version}-py*.egg-info %changelog diff --git a/xmltodict-0.10.2.tar.gz b/xmltodict-0.10.2.tar.gz deleted file mode 100644 index d6db69d..0000000 --- a/xmltodict-0.10.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fc518ccf9adbbb917a2ddcb386be852ae6dd36935e1e8b9a3e760201abfdbf77 -size 24854 diff --git a/xmltodict-0.11.0.tar.gz b/xmltodict-0.11.0.tar.gz new file mode 100644 index 0000000..67c4e94 --- /dev/null +++ b/xmltodict-0.11.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8f8d7d40aa28d83f4109a7e8aa86e67a4df202d9538be40c0cb1d70da527b0df +size 26589