diff --git a/python-xmltodict.spec b/python-xmltodict.spec new file mode 100644 index 0000000000000000000000000000000000000000..396cd10b13dd9720423c440268287c9748db1f68 --- /dev/null +++ b/python-xmltodict.spec @@ -0,0 +1,92 @@ +%global srcname xmltodict +%global sum A Python to transform XML to JSON +%global with_python3 0 + + +Name: python-xmltodict +Version: 0.10.1 +Release: 1 +Summary: %{sum} + +License: MIT +URL: https://github.com/martinblech/xmltodict +Source0: http://pypi.python.org/packages/source/x/%{srcname}/%{srcname}-%{version}.tar.gz + +BuildArch: noarch + +%description +xmltodict is a Python module that makes working with XML feel like you are +working with JSON. It's very fast (Expat-based) and has a streaming mode +with a small memory footprint, suitable for big XML dumps like Discogs or +Wikipedia. + +%package -n python2-%{srcname} +Summary: %{sum} +%{?python_provide:%python_provide python2-%{srcname}} + +BuildRequires: python2-devel +BuildRequires: python2-nose + +%description -n python2-%{srcname} +xmltodict is a Python module that makes working with XML feel like you are +working with JSON. It's very fast (Expat-based) and has a streaming mode +with a small memory footprint, suitable for big XML dumps like Discogs or +Wikipedia. + +%if 0%{?with_python3} +%package -n python3-%{srcname} +Summary: %{sum} +%{?python_provide:%python_provide python3-%{srcname}} + +BuildRequires: python3-devel +BuildRequires: python3-nose + +%description -n python3-%{srcname} +xmltodict is a Python module that makes working with XML feel like you are +working with JSON. It's very fast (Expat-based) and has a streaming mode +with a small memory footprint, suitable for big XML dumps like Discogs or +Wikipedia. +%endif + +%prep +%autosetup -n %{srcname}-%{version} + +%build +%py2_build +%if 0%{?with_python3} +%py3_build +%endif + +%install +%py2_install +%if 0%{?with_python3} +%py3_install +%endif + +%check +nosetests-2.7 +%if 0%{?with_python3} +pushd %{py3dir} +nosetests-%{py3ver} +popd +%endif + +%files -n python2-%{srcname} +%doc README.md PKG-INFO +%license LICENSE +%{python2_sitelib}/%{srcname}.py* +%{python2_sitelib}/%{srcname}-%{version}* + +%if 0%{?with_python3} +%files -n python3-%{srcname} +%doc README.md LICENSE PKG-INFO +%license LICENSE +%{python3_sitelib}/%{srcname}.py +%{python3_sitelib}/%{srcname}-%{version}-* +%{python3_sitelib}/__pycache__/%{srcname}* +%endif + +%changelog +* Tue May 18 2021 Python_Bot +- Package Spec generated + diff --git a/xmltodict-0.10.1.tar.gz b/xmltodict-0.10.1.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..3fc93b3c13e01a5970fb540675a73117aa16304e Binary files /dev/null and b/xmltodict-0.10.1.tar.gz differ