%global srcname tablib

Name:             python-tablib
Version:          3.0.0
Release:          5%{?dist}
Summary:          Format agnostic tabular data library (XLS, JSON, YAML, CSV)

License:          MIT
URL:              http://github.com/kennethreitz/tablib
Source0:          %{pypi_source}
BuildArch:        noarch

%global _description\
Tablib is a format-agnostic tabular dataset library, written in Python.\
\
Output formats supported:\
\
 - Excel (Sets + Books)\
 - JSON (Sets + Books)\
 - YAML (Sets + Books)\
 - HTML (Sets)\
 - TSV (Sets)\
 - CSV (Sets)

%description %_description

%package -n python3-%{srcname}
Summary:        %{summary}
BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(setuptools-scm)
# ods
Requires:       python3dist(odfpy)
# xls
Requires:       python3dist(xlrd)
Requires:       python3dist(xlwt)
# xlsx
Requires:       python3dist(openpyxl) >= 2.6.0
# yaml
Requires:       python3dist(pyyaml)

%description -n python3-%{srcname} %{_description}

%prep
%autosetup -n %{srcname}-%{version}

%build
%py3_build

%install
%py3_install
 
%files -n python3-%{srcname}
%license LICENSE
%doc README.md
%{python3_sitelib}/tablib-*.egg-info/
%{python3_sitelib}/tablib/

%changelog
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> 3.0.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild

* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> 3.0.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild

* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> 3.0.0-3
- Rebuilt for Python 3.11

* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> 3.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

* Fri Jul 23 2021 Igor Raits <ignatenkobrain@fedoraproject.org> 3.0.0-1
- Update to 3.0.0

* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> 0.12.1-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> 0.12.1-18
- Rebuilt for Python 3.10

* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> 0.12.1-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> 0.12.1-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Tue May 26 2020 Miro Hrončok <miro@hroncok.cz> 0.12.1-15
- Rebuilt for Python 3.9

* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> 0.12.1-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

* Thu Oct 03 2019 Miro Hrončok <miro@hroncok.cz> 0.12.1-13
- Rebuilt for Python 3.8.0rc1 (#1748018)

* Mon Aug 19 2019 Miro Hrončok <miro@hroncok.cz> 0.12.1-12
- Rebuilt for Python 3.8

* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> 0.12.1-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> 0.12.1-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Fri Jan 04 2019 Miro Hrončok <miro@hroncok.cz> 0.12.1-9
- Subpackage python2-tablib has been removed, run Python 3 tests

* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> 0.12.1-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Wed Jul 04 2018 Haikel Guemar <hguemar@fedoraproject.org> 0.12.1-7
- Fix compatibility with openpyxl 2.5.x

* Wed Jul 04 2018 Haikel Guemar <hguemar@fedoraproject.org> 0.12.1-6
- Drop unused patches

* Tue Jun 19 2018 Miro Hrončok <miro@hroncok.cz> 0.12.1-5
- Rebuilt for Python 3.7

* Mon Mar 26 2018 Iryna Shcherbina <shcherbina.iryna@gmail.com> 0.12.1-4
- Update Python 2 dependency declarations to new packaging standards

* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> 0.12.1-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Fri Oct 20 2017 Kevin Fenzi <kevin@scrye.com> 0.12.1-2
- Change BuildRequires for older PyYAML packages.

* Fri Oct 13 2017 Kevin Fenzi <kevin@scrye.com> 0.12.1-1
- Update to 0.12.1. Fix requires for no longer bundled items. Fixes bug
  #1499306 Enable tests.

* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> 0.11.5-4
- 2to3 is necessary

* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> 0.11.5-3
- Python 2 binary package renamed to python2-tablib

* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> 0.11.5-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Fri Jul 21 2017 Ralph Bean <rbean@redhat.com> 0.11.5-1
- 0.11.5

* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> 0.10.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Tue Dec 20 2016 Miro Hrončok <miro@hroncok.cz> 0.10.0-7
- Before applying the patch, fix the line endings

* Tue Dec 20 2016 Tomas Orsava <torsava@redhat.com> 0.10.0-6
- Patched for compatibility with Python 3.6

* Mon Dec 19 2016 Miro Hrončok <miro@hroncok.cz> 0.10.0-5
- Rebuild for Python 3.6

* Tue Jul 19 2016 Fedora Release Engineering <releng@fedoraproject.org> 0.10.0-4
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_
  Packages

* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> 0.10.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Tue Nov 10 2015 Peter Robinson <pbrobinson@fedoraproject.org> 0.10.0-2
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5

* Fri Aug 07 2015 Haikel Guemar <hguemar@fedoraproject.org> 0.10.0-1
- Upstream 0.10.0
- Enable python3 subpackage

* Thu Jun 18 2015 Dennis Gilmore <dennis@ausil.us> 0.9.11.20120702git752443f-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Sat Jun 07 2014 Dennis Gilmore <dennis@ausil.us> 0.9.11.20120702git752443f-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Sun Aug 04 2013 Dennis Gilmore <dennis@ausil.us> 0.9.11.20120702git752443f-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Thu Feb 14 2013 Dennis Gilmore <dennis@ausil.us> 0.9.11.20120702git752443f-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Sat Jul 21 2012 Dennis Gilmore <dennis@ausil.us> 0.9.11.20120702git752443f-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Fri Jul 06 2012 Ralph Bean <rbean@redhat.com> 0.9.11.20120702git752443f-3
- Disable python3-tablib since the package is so unstable.

* Fri Jul 06 2012 Ralph Bean <rbean@redhat.com> 0.9.11.20120702git752443f-2
- Fix broken setup.py.

* Thu Jul 05 2012 Ralph Bean <rbean@redhat.com> 0.9.11.20120702git752443f-1
- Initial import (#837686)