Accepting request 496363 from home:TheBlackCat:branches:devel:languages:python
- Implement single-spec version - Fix source URL. - Update to version 0.11.0 OBS-URL: https://build.opensuse.org/request/show/496363 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xmltodict?expand=0&rev=5
This commit is contained in:
parent
8d396c4ad2
commit
2a3ac57798
@ -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
|
Tue Sep 6 07:25:55 UTC 2016 - mardnh@gmx.de
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-xmltodict
|
# 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
|
# 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
|
||||||
@ -16,55 +16,55 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%define use_build_checks 1
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
|
%bcond_without test
|
||||||
Name: python-xmltodict
|
Name: python-xmltodict
|
||||||
Version: 0.10.2
|
Version: 0.11.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Makes working with XML feel like you are working with JSON
|
Summary: Makes working with XML feel like you are working with JSON
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: https://github.com/martinblech/xmltodict
|
Url: https://github.com/martinblech/xmltodict
|
||||||
Source: https://pypi.io/packages/source/x/xmltodict/xmltodict-%{version}.tar.gz
|
Source: https://files.pythonhosted.org/packages/source/x/xmltodict/xmltodict-%{version}.tar.gz
|
||||||
BuildRequires: python-devel
|
BuildRequires: %{python_module devel}
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: %{python_module setuptools}
|
||||||
%if 0%{?use_build_checks}
|
BuildRequires: %{python_module xml}
|
||||||
BuildRequires: python-coverage
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-nose
|
BuildRequires: python-rpm-macros
|
||||||
%endif
|
%if %{with test}
|
||||||
%if 0%{?suse_version}
|
BuildRequires: %{python_module nose >= 1.0}
|
||||||
BuildRequires: python-xml
|
|
||||||
%endif
|
%endif
|
||||||
|
Requires: python-xml
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
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
|
BuildArch: noarch
|
||||||
%endif
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
xmltodict is a Python module that makes working with XML feel like you are
|
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
|
http://www.xml.com/pub/a/2006/05/31/converting-between-xml-and-json.html
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n xmltodict-%{version}
|
%setup -q -n xmltodict-%{version}
|
||||||
|
sed -i '1{\@^#!/usr/bin/env python@d}' xmltodict.py
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
|
%if %{with test}
|
||||||
%check
|
%check
|
||||||
%if 0%{?use_build_checks}
|
%python_expand nosetests-%{$python_bin_suffix}
|
||||||
nosetests -v
|
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc README.md LICENSE
|
%doc README.md LICENSE
|
||||||
%{python_sitelib}/xmltodict*
|
%{python_sitelib}/xmltodict.py*
|
||||||
%{python_sitelib}/xmltodict-%{version}-py%{py_ver}.egg-info
|
%pycache_only %{python_sitelib}/__pycache__/xmltodict.*.py*
|
||||||
|
%{python_sitelib}/xmltodict-%{version}-py*.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:fc518ccf9adbbb917a2ddcb386be852ae6dd36935e1e8b9a3e760201abfdbf77
|
|
||||||
size 24854
|
|
3
xmltodict-0.11.0.tar.gz
Normal file
3
xmltodict-0.11.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:8f8d7d40aa28d83f4109a7e8aa86e67a4df202d9538be40c0cb1d70da527b0df
|
||||||
|
size 26589
|
Loading…
Reference in New Issue
Block a user