Fabian Affolter f9ed8aa
%global srcname xmltodict
93d480b
93d480b
Name:               python-xmltodict
4552dc0
Version:            0.12.0
e775ac3
Release:            2%{?dist}
4552dc0
Summary:            A Python to transform XML to JSON
93d480b
93d480b
License:            MIT
Fabian Affolter f9ed8aa
URL:                https://github.com/martinblech/xmltodict
7b7d028
Source0:            https://github.com/martinblech/xmltodict/archive/v%{version}.tar.gz#/%{srcname}-%{version}.tar.gz
93d480b
BuildArch:          noarch
93d480b
93d480b
%description
93d480b
xmltodict is a Python module that makes working with XML feel like you are
93d480b
working with JSON.  It's very fast (Expat-based) and has a streaming mode
93d480b
with a small memory footprint, suitable for big XML dumps like Discogs or
93d480b
Wikipedia.
93d480b
e775ac3
%if 0%{?fedora} < 31
e775ac3
%package -n python2-%{srcname}
e775ac3
Summary:        %{sum}
e775ac3
BuildRequires:      python2-devel
e775ac3
BuildRequires:      python2-nose
e775ac3
%{?python_provide:%python_provide python2-%{srcname}}
e775ac3
e775ac3
%description -n python2-%{srcname}
e775ac3
xmltodict is a Python module that makes working with XML feel like you are
e775ac3
working with JSON.  It's very fast (Expat-based) and has a streaming mode
e775ac3
with a small memory footprint, suitable for big XML dumps like Discogs or
e775ac3
Wikipedia.
e775ac3
%endif
e775ac3
Fabian Affolter 4f0f698
%package -n python3-%{srcname}
4552dc0
Summary:            %{summary}
4552dc0
4552dc0
BuildRequires:      python3-devel
4552dc0
BuildRequires:      python3-nose
Fabian Affolter 4f0f698
%{?python_provide:%python_provide python3-%{srcname}}
93d480b
Fabian Affolter 4f0f698
%description -n python3-%{srcname}
93d480b
xmltodict is a Python module that makes working with XML feel like you are
93d480b
working with JSON.  It's very fast (Expat-based) and has a streaming mode
93d480b
with a small memory footprint, suitable for big XML dumps like Discogs or
93d480b
Wikipedia.
93d480b
93d480b
%prep
Fabian Affolter 4f0f698
%autosetup -n %{srcname}-%{version}
e775ac3
rm -rf %{py3dir}
e775ac3
cp -a . %{py3dir}
93d480b
93d480b
%build
e775ac3
%if 0%{?fedora} < 31
e775ac3
%py2_build
e775ac3
%endif
e775ac3
pushd %{py3dir}
Fabian Affolter 4f0f698
%py3_build
e775ac3
popd
93d480b
93d480b
%install
e775ac3
%if 0%{?fedora} < 31
e775ac3
%py2_install
e775ac3
%endif
e775ac3
pushd %{py3dir}
Fabian Affolter 4f0f698
%py3_install
e775ac3
popd
93d480b
93d480b
%check
e775ac3
%if 0%{?fedora} < 31
e775ac3
nosetests-2.7
e775ac3
%endif
e775ac3
pushd %{py3dir}
f3b7814
%{__python3} -m nose
e775ac3
popd
e775ac3
e775ac3
%if 0%{?fedora} < 31
e775ac3
%files -n python2-%{srcname}
e775ac3
%doc README.md
e775ac3
%license LICENSE
e775ac3
%{python2_sitelib}/%{srcname}.py*
e775ac3
%{python2_sitelib}/%{srcname}-%{version}*
e775ac3
%endif
93d480b
Fabian Affolter 4f0f698
%files -n python3-%{srcname}
1b30334
%doc README.md
Fabian Affolter 4f0f698
%license LICENSE
Fabian Affolter f9ed8aa
%{python3_sitelib}/%{srcname}.py
Fabian Affolter f9ed8aa
%{python3_sitelib}/%{srcname}-%{version}-*
Fabian Affolter f9ed8aa
%{python3_sitelib}/__pycache__/%{srcname}*
93d480b
93d480b
%changelog
e775ac3
* Sun Jun 30 2019 Kevin Fenzi <kevin@scrye.com> - 0.12.0-2
e775ac3
- Conditionalize dropping python2 support so it only happens in f31+
e775ac3
- Fixes bug 1724842
e775ac3
4552dc0
* Sat Jun 08 2019 Fabian Affolter <mail@fabian-affolter.ch> - 0.12.0-1
4552dc0
- Update to latest upstream release 0.12.0
4552dc0
f3b7814
* Wed Mar 27 2019 Miro Hrončok <mhroncok@redhat.com> - 0.10.2-9
f3b7814
- Subpackage python2-xmltodict has been removed
f3b7814
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
f3b7814
b462862
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-8
b462862
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
b462862
2cc844f
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-7
2cc844f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
2cc844f
81d97ea
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.10.2-6
81d97ea
- Rebuilt for Python 3.7
81d97ea
70188b8
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-5
70188b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
70188b8
d84d06a
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-4
d84d06a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
d84d06a
c918c78
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.2-3
c918c78
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
c918c78
e916b6b
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.10.2-2
e916b6b
- Rebuild for Python 3.6
e916b6b
7b7d028
* Tue Nov 15 2016 Fabian Affolter <mail@fabian-affolter.ch> - 0.10.2-1
7b7d028
- Update to latest upstream reelase 0.10.2
7b7d028
Fabian Affolter e42ac1b
* Sun May 01 2016 Fabian Affolter <mail@fabian-affolter.ch> - 0.10.1-1
Fabian Affolter e42ac1b
- Update to latest upstream reelase 0.10.1
Fabian Affolter e42ac1b
ab8fec1
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-2
ab8fec1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
ab8fec1
Fabian Affolter 4f0f698
* Sat Nov 14 2015 Fabian Affolter <mail@fabian-affolter.ch> - 0.9.2-1
Fabian Affolter 4f0f698
- Cleanup
Fabian Affolter 4f0f698
- Update to latest upstream reelase 0.9.2
Fabian Affolter 4f0f698
b74487e
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-3
b74487e
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
b74487e
15255bd
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-2
15255bd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
15255bd
Fabian Affolter f9ed8aa
* Thu Oct 02 2014 Fabian Affolter <mail@fabian-affolter.ch> - 0.9.0-1
Fabian Affolter f9ed8aa
- Update spec file according guidelines 
Fabian Affolter f9ed8aa
- Update to upstream release 0.9.0
Fabian Affolter f9ed8aa
de6341f
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.2-5
de6341f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
de6341f
6af68a3
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 0.4.2-4
6af68a3
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
6af68a3
e51eb32
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.2-3
e51eb32
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
e51eb32
fbc21f8
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.2-2
fbc21f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
fbc21f8
93d480b
* Fri Jan 04 2013 Ralph Bean <rbean@redhat.com> - 0.4.2-1
93d480b
- Latest upstream
93d480b
- Included README and LICENSE
93d480b
- Running tests now
93d480b
- https://github.com/martinblech/xmltodict/pull/11
93d480b
- Added Requires python3 to the python3 subpackage.
93d480b
93d480b
* Fri Jan 04 2013 Ralph Bean <rbean@redhat.com> - 0.4.1-1
93d480b
- Initial packaging for Fedora