diff --git a/python-xmltodict.spec b/python-xmltodict.spec new file mode 100644 index 0000000000000000000000000000000000000000..11c0f82a369764c52be4999007dc712a5637c3aa --- /dev/null +++ b/python-xmltodict.spec @@ -0,0 +1,56 @@ +%global srcname xmltodict +Name: python-xmltodict +Version: 0.12.0 +Release: 1 +Summary: A Python to transform XML to JSON +License: MIT +URL: https://github.com/martinblech/xmltodict +Source0: https://github.com/martinblech/xmltodict/archive/v%{version}.tar.gz#/%{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 python3-%{srcname} +Summary: %{summary} +BuildRequires: python3-devel python3-nose +%{?python_provide:%python_provide python3-%{srcname}} +%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. + +%prep +%autosetup -n %{srcname}-%{version} +rm -rf %{py3dir} +cp -a . %{py3dir} + +%build +pushd %{py3dir} +%py3_build +popd + +%install +pushd %{py3dir} +%py3_install +popd + +%check +pushd %{py3dir} +%{__python3} -m nose +popd + + +%files -n python3-%{srcname} +%doc README.md +%license LICENSE +%{python3_sitelib}/%{srcname}.py +%{python3_sitelib}/%{srcname}-%{version}-* +%{python3_sitelib}/__pycache__/%{srcname}* + +%changelog +* Fri May 14 2021 chengshaowei - 0.12.0-1 +- package init \ No newline at end of file diff --git a/xmltodict-0.12.0.tar.gz b/xmltodict-0.12.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..0cf7e1a7b95e97e924076b15d5aa191bcc2d581f Binary files /dev/null and b/xmltodict-0.12.0.tar.gz differ