|
|
daaffc0 |
%if 0%{?fedora}
|
|
|
3692656 |
%global with_python3 1
|
|
|
3692656 |
%endif
|
|
|
3692656 |
|
|
|
3692656 |
%global modname tablib
|
|
|
3692656 |
|
|
|
3692656 |
Name: python-tablib
|
|
|
8ddf10e |
Version: 0.11.5
|
|
|
8ddf10e |
Release: 1%{?dist}
|
|
|
3692656 |
Summary: Format agnostic tabular data library (XLS, JSON, YAML, CSV)
|
|
|
3692656 |
|
|
|
3692656 |
License: MIT
|
|
|
3692656 |
URL: http://github.com/kennethreitz/tablib
|
|
|
ae738ed |
Source0: https://files.pythonhosted.org/packages/source/t/tablib/%{modname}-%{version}.tar.gz
|
|
|
3692656 |
BuildArch: noarch
|
|
|
3692656 |
|
|
|
3692656 |
BuildRequires: python2-devel
|
|
|
daaffc0 |
BuildRequires: python-setuptools
|
|
|
3692656 |
Requires: PyYAML
|
|
|
3692656 |
|
|
|
3692656 |
%description
|
|
|
3692656 |
Tablib is a format-agnostic tabular dataset library, written in Python.
|
|
|
3692656 |
|
|
|
3692656 |
Output formats supported:
|
|
|
3692656 |
|
|
|
3692656 |
- Excel (Sets + Books)
|
|
|
3692656 |
- JSON (Sets + Books)
|
|
|
3692656 |
- YAML (Sets + Books)
|
|
|
3692656 |
- HTML (Sets)
|
|
|
3692656 |
- TSV (Sets)
|
|
|
3692656 |
- CSV (Sets)
|
|
|
3692656 |
|
|
|
3692656 |
%if 0%{?with_python3}
|
|
|
3692656 |
%package -n python3-tablib
|
|
|
3692656 |
Summary: Format agnostic tabular data library (XLS, JSON, YAML, CSV)
|
|
|
3692656 |
|
|
|
daaffc0 |
BuildRequires: python-tools
|
|
|
daaffc0 |
BuildRequires: python3-devel
|
|
|
daaffc0 |
BuildRequires: python3-setuptools
|
|
|
3692656 |
Requires: python3-PyYAML
|
|
|
3692656 |
|
|
|
3692656 |
%description -n python3-tablib
|
|
|
3692656 |
Tablib is a format-agnostic tabular dataset library, written in Python.
|
|
|
3692656 |
|
|
|
3692656 |
Output formats supported:
|
|
|
3692656 |
|
|
|
3692656 |
- Excel (Sets + Books)
|
|
|
3692656 |
- JSON (Sets + Books)
|
|
|
3692656 |
- YAML (Sets + Books)
|
|
|
3692656 |
- HTML (Sets)
|
|
|
3692656 |
- TSV (Sets)
|
|
|
3692656 |
- CSV (Sets)
|
|
|
3692656 |
|
|
|
3692656 |
%endif
|
|
|
3692656 |
|
|
|
3692656 |
%prep
|
|
|
daaffc0 |
%setup -q -n %{modname}-%{version}
|
|
|
b161761 |
|
|
|
3692656 |
# Remove shebangs
|
|
|
3692656 |
for lib in $(find . -name "*.py"); do
|
|
|
3692656 |
sed '/\/usr\/bin\/env/d' $lib > $lib.new &&
|
|
|
3692656 |
touch -r $lib $lib.new &&
|
|
|
3692656 |
mv $lib.new $lib
|
|
|
3692656 |
done
|
|
|
3692656 |
|
|
|
3692656 |
%if 0%{?with_python3}
|
|
|
3692656 |
rm -rf %{py3dir}
|
|
|
3692656 |
cp -a . %{py3dir}
|
|
|
3692656 |
pushd %{py3dir}
|
|
|
daaffc0 |
sed -i "/\(xlwt\|odf\|xlrd\|openpyxl\|openpyxl\..*\|yaml\)'/d" setup.py
|
|
|
3692656 |
find . -name "*.py" | grep -v 3 | xargs 2to3 -w
|
|
|
3692656 |
popd
|
|
|
3692656 |
%endif
|
|
|
3692656 |
|
|
|
daaffc0 |
sed -i '/tablib.packages.*3/d' setup.py
|
|
|
daaffc0 |
|
|
|
3692656 |
|
|
|
3692656 |
%build
|
|
|
daaffc0 |
%{__python2} setup.py build
|
|
|
3692656 |
|
|
|
3692656 |
%if 0%{?with_python3}
|
|
|
3692656 |
pushd %{py3dir}
|
|
|
3692656 |
%{__python3} setup.py build
|
|
|
3692656 |
popd
|
|
|
3692656 |
%endif
|
|
|
3692656 |
|
|
|
3692656 |
|
|
|
3692656 |
|
|
|
3692656 |
%install
|
|
|
3692656 |
%if 0%{?with_python3}
|
|
|
3692656 |
pushd %{py3dir}
|
|
|
3692656 |
%{__python3} setup.py install -O1 --skip-build --root=%{buildroot}
|
|
|
3692656 |
popd
|
|
|
3692656 |
%endif
|
|
|
3692656 |
|
|
|
daaffc0 |
%{__python2} setup.py install -O1 --skip-build --root=%{buildroot}
|
|
|
3692656 |
|
|
|
3692656 |
|
|
|
3692656 |
%files
|
|
|
daaffc0 |
%license LICENSE
|
|
|
daaffc0 |
%doc README.rst AUTHORS
|
|
|
daaffc0 |
%{python2_sitelib}/%{modname}
|
|
|
daaffc0 |
%{python2_sitelib}/*.egg-info
|
|
|
3692656 |
|
|
|
3692656 |
%if 0%{?with_python3}
|
|
|
3692656 |
%files -n python3-%{modname}
|
|
|
daaffc0 |
%license
|
|
|
daaffc0 |
%doc README.rst AUTHORS
|
|
|
3692656 |
%{python3_sitelib}/%{modname}
|
|
|
daaffc0 |
%{python3_sitelib}/*.egg-info
|
|
|
3692656 |
%endif
|
|
|
3692656 |
|
|
|
3692656 |
|
|
|
3692656 |
%changelog
|
|
|
8ddf10e |
* Fri Jul 21 2017 Ralph Bean <rbean@redhat.com> - 0.11.5-1
|
|
|
8ddf10e |
- new version
|
|
|
8ddf10e |
|
|
|
263951e |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-7
|
|
|
263951e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
263951e |
|
|
|
ae738ed |
* Tue Dec 20 2016 Tomas Orsava <torsava@redhat.com> - 0.10.0-6
|
|
|
ae738ed |
- Added a patch for Python 3.6 compatibility
|
|
|
ae738ed |
- Updated PyPI download URL
|
|
|
ae738ed |
|
|
|
5878285 |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.10.0-5
|
|
|
5878285 |
- Rebuild for Python 3.6
|
|
|
5878285 |
|
|
|
811a7c9 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.0-4
|
|
|
811a7c9 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
811a7c9 |
|
|
|
829a34a |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-3
|
|
|
829a34a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
829a34a |
|
|
|
78b4f3b |
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.0-2
|
|
|
78b4f3b |
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
78b4f3b |
|
|
|
daaffc0 |
* Wed Aug 05 2015 Haïkel Guémar <hguemar@fedoraproject.org> - 0.10.0-1
|
|
|
daaffc0 |
- Upstream 0.10.0
|
|
|
daaffc0 |
- Enable python3 subpackage
|
|
|
daaffc0 |
|
|
|
185513b |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.11.20120702git752443f-10
|
|
|
185513b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
185513b |
|
|
|
0a2ee61 |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.11.20120702git752443f-9
|
|
|
0a2ee61 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
0a2ee61 |
|
|
|
b1b33b9 |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.11.20120702git752443f-8
|
|
|
b1b33b9 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
b1b33b9 |
|
|
|
fed4944 |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.11.20120702git752443f-7
|
|
|
fed4944 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
fed4944 |
|
|
|
0bb6e9d |
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.11.20120702git752443f-6
|
|
|
0bb6e9d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
0bb6e9d |
|
|
|
25f841f |
* Fri Jul 06 2012 Ralph Bean <rbean@redhat.com> - 0.9.11.20120702git752443f-5
|
|
|
25f841f |
- Disable python3 for now since the package is so unstable.
|
|
|
25f841f |
|
|
|
a4a352a |
* Fri Jul 06 2012 Ralph Bean <rbean@redhat.com> - 0.9.11.20120702git752443f-4
|
|
|
a4a352a |
- Patch to fix broken setup.py
|
|
|
a4a352a |
|
|
|
3692656 |
* Wed Jul 04 2012 Ralph Bean <rbean@redhat.com> - 0.9.11.20120702git752443f-3
|
|
|
3692656 |
- Removed shebangs.
|
|
|
3692656 |
|
|
|
3692656 |
* Wed Jul 04 2012 Ralph Bean <rbean@redhat.com> - 0.9.11.20120702git752443f-2
|
|
|
3692656 |
- Added link to upstream bug for patch.
|
|
|
3692656 |
|
|
|
3692656 |
* Thu Jun 28 2012 Ralph Bean <rbean@redhat.com> - 0.9.11.20120702git752443f-1
|
|
|
3692656 |
- Initial package for Fedora
|