Jan ONDREJ (SAL) c83e016
%global srcname xlrd
Jan ONDREJ (SAL) c83e016
%global sum Library to extract data from Microsoft Excel (TM) spreadsheet files
Jan ONDREJ (SAL) 10b4ff7
%global build_python2 0
Jan ONDREJ (SAL) c83e016
Jan ONDREJ (SAL) c83e016
Name:           python-%{srcname}
Jan ONDREJ (SAL) 10b4ff7
Version:        1.2.0
8c6266f
Release:        6%{?dist}
Jan ONDREJ (SAL) c83e016
Summary:        %{sum}
0805a4e
0805a4e
License:        BSD
Jan ONDREJ (SAL) 2ab81d4
URL:            http://www.python-excel.org/
Jan ONDREJ (SAL) 10b4ff7
Source0:	%pypi_source
0805a4e
0805a4e
BuildArch:      noarch
Jan ONDREJ (SAL) 10b4ff7
#BuildRequires:  dos2unix
0805a4e
0805a4e
%description
Jan ONDREJ (SAL) 2ab81d4
Extract data from Excel spreadsheets (.xls and .xlsx, versions 2.0 onwards)
Jan ONDREJ (SAL) 2ab81d4
on any platform.  Pure Python (2.6, 2.7, 3.2+).  Strong support for Excel
Jan ONDREJ (SAL) 2ab81d4
dates.  Unicode-aware.
0805a4e
Jan ONDREJ (SAL) 10b4ff7
%if %{?build_python2} == 1
Jan ONDREJ (SAL) c83e016
%package -n python2-%{srcname}
Jan ONDREJ (SAL) 12173f4
Summary:        Library to extract data from Microsoft Excel (TM) spreadsheet files
5bf07f2
BuildRequires:  python2-devel
5bf07f2
BuildRequires:  python2-setuptools
5bf07f2
BuildRequires:  python2-nose
Jan ONDREJ (SAL) c83e016
%{?python_provide:%python_provide python2-%{srcname}}
Jan ONDREJ (SAL) c83e016
Jan ONDREJ (SAL) c83e016
%description -n python2-%{srcname}
Jan ONDREJ (SAL) c83e016
Extract data from Excel spreadsheets (.xls and .xlsx, versions 2.0 onwards)
Jan ONDREJ (SAL) c83e016
on any platform.  Pure Python (2.6, 2.7, 3.2+).  Strong support for Excel
Jan ONDREJ (SAL) c83e016
dates.  Unicode-aware.
Jan ONDREJ (SAL) 10b4ff7
%endif
Jan ONDREJ (SAL) 12173f4
Jan ONDREJ (SAL) 87393a7
%package -n python%{python3_pkgversion}-%{srcname}
Jan ONDREJ (SAL) 87393a7
Summary:        %{sum}
Jan ONDREJ (SAL) 87393a7
BuildRequires:  python%{python3_pkgversion}-devel
Jan ONDREJ (SAL) 87393a7
BuildRequires:  python%{python3_pkgversion}-setuptools
Jan ONDREJ (SAL) 87393a7
BuildRequires:  python%{python3_pkgversion}-nose
Jan ONDREJ (SAL) 87393a7
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
Jan ONDREJ (SAL) 87393a7
Jan ONDREJ (SAL) 87393a7
%description -n python%{python3_pkgversion}-%{srcname}
Jan ONDREJ (SAL) 87393a7
Extract data from Excel spreadsheets (.xls and .xlsx, versions 2.0 onwards)
Jan ONDREJ (SAL) 87393a7
on any platform.  Pure Python (2.6, 2.7, 3.2+).  Strong support for Excel
Jan ONDREJ (SAL) 87393a7
dates.  Unicode-aware.
Jan ONDREJ (SAL) 87393a7
Jan ONDREJ (SAL) 87393a7
%if 0%{?with_python3_other}
Jan ONDREJ (SAL) 87393a7
%package -n python%{python3_other_pkgversion}-%{srcname}
Jan ONDREJ (SAL) 87393a7
Summary:        %{sum}
Jan ONDREJ (SAL) 87393a7
BuildRequires:  python%{python3_other_pkgversion}-devel
Jan ONDREJ (SAL) 87393a7
BuildRequires:  python%{python3_other_pkgversion}-setuptools
Jan ONDREJ (SAL) 87393a7
%{?python_provide:%python_provide python%{python3_other_pkgversion}-%{srcname}}
Jan ONDREJ (SAL) c83e016
Jan ONDREJ (SAL) 87393a7
%description -n python%{python3_other_pkgversion}-%{srcname}
Jan ONDREJ (SAL) 12173f4
Extract data from Excel spreadsheets (.xls and .xlsx, versions 2.0 onwards)
Jan ONDREJ (SAL) 12173f4
on any platform.  Pure Python (2.6, 2.7, 3.2+).  Strong support for Excel
Jan ONDREJ (SAL) 12173f4
dates.  Unicode-aware.
Jan ONDREJ (SAL) 87393a7
%endif
Jan ONDREJ (SAL) 87393a7
Jan ONDREJ (SAL) 12173f4
0805a4e
%prep
Jan ONDREJ (SAL) c83e016
%setup -q -n %{srcname}-%{version}
0805a4e
0805a4e
# fix CRLF to LF
Jan ONDREJ (SAL) 10b4ff7
#for i in */*.py *.html docs/* examples/*; do
Jan ONDREJ (SAL) 10b4ff7
#  # ignore missing files, they was may be only removed by mistake
Jan ONDREJ (SAL) 10b4ff7
#  dos2unix $i || :
Jan ONDREJ (SAL) 10b4ff7
#done
Jan ONDREJ (SAL) 10b4ff7
#for i in docs/* examples/xlrdnameAPIdemo.py; do
Jan ONDREJ (SAL) 10b4ff7
#  iconv -f iso8859-1 -t UTF-8 $i > $i.tmp
Jan ONDREJ (SAL) 10b4ff7
#  mv -f $i.tmp $i
Jan ONDREJ (SAL) 10b4ff7
#done
Jan ONDREJ (SAL) 12173f4
Jan ONDREJ (SAL) 12173f4
Jan ONDREJ (SAL) 12173f4
%build
Jan ONDREJ (SAL) 10b4ff7
%if %{?build_python2} == 1
Jan ONDREJ (SAL) 87393a7
%py2_build
Jan ONDREJ (SAL) 10b4ff7
%endif
Jan ONDREJ (SAL) 87393a7
%py3_build
Jan ONDREJ (SAL) 87393a7
%if 0%{?with_python3_other}
Jan ONDREJ (SAL) 87393a7
%py3_other_build
Jan ONDREJ (SAL) 87393a7
%endif
Jan ONDREJ (SAL) 12173f4
0805a4e
%install
Jan ONDREJ (SAL) 87393a7
%if 0%{?with_python3_other}
Jan ONDREJ (SAL) 87393a7
%py3_other_install
Jan ONDREJ (SAL) 87393a7
%endif
Jan ONDREJ (SAL) 87393a7
%py3_install
Jan ONDREJ (SAL) 10b4ff7
%if %{?build_python2} == 1
Jan ONDREJ (SAL) 87393a7
%py2_install
Jan ONDREJ (SAL) 10b4ff7
%endif
Jan ONDREJ (SAL) 12173f4
Jan ONDREJ (SAL) c83e016
# remove .py extension from binary
Jan ONDREJ (SAL) c83e016
mv $RPM_BUILD_ROOT%{_bindir}/runxlrd.py $RPM_BUILD_ROOT%{_bindir}/runxlrd
0805a4e
rm -rf $RPM_BUILD_ROOT%{_bindir}/runxlrd.py* \
Jan ONDREJ (SAL) ed6245c
  $RPM_BUILD_ROOT/%{python2_sitelib}/xlrd/doc \
Jan ONDREJ (SAL) ed6245c
  $RPM_BUILD_ROOT/%{python2_sitelib}/xlrd/examples \
Jan ONDREJ (SAL) 12173f4
  $RPM_BUILD_ROOT/%{python3_sitelib}/xlrd/doc \
Jan ONDREJ (SAL) 12173f4
  $RPM_BUILD_ROOT/%{python3_sitelib}/xlrd/examples
0805a4e
Jan ONDREJ (SAL) 87393a7
%check
Jan ONDREJ (SAL) d5f3d5f
%if %{?build_python2} == 1
Jan ONDREJ (SAL) 87393a7
/usr/bin/nosetests
Jan ONDREJ (SAL) d5f3d5f
%endif
Jan ONDREJ (SAL) 87393a7
/usr/bin/nosetests-%{python3_version}
Jan ONDREJ (SAL) 87393a7
Jan ONDREJ (SAL) 10b4ff7
%if %{?build_python2} == 1
Jan ONDREJ (SAL) c83e016
%files -n python2-%{srcname}
Jan ONDREJ (SAL) 10b4ff7
%license LICENSE
Jan ONDREJ (SAL) 10b4ff7
%doc README.md docs/* examples
Jan ONDREJ (SAL) ed6245c
%{python2_sitelib}/xlrd/*
Jan ONDREJ (SAL) ed6245c
%{python2_sitelib}/*egg-info
Jan ONDREJ (SAL) 10b4ff7
%endif
0805a4e
Jan ONDREJ (SAL) 87393a7
%files -n python%{python3_pkgversion}-%{srcname}
Jan ONDREJ (SAL) 10b4ff7
%license LICENSE
Jan ONDREJ (SAL) 10b4ff7
%doc README.md docs/* examples
Jan ONDREJ (SAL) 12173f4
%attr(755,root,root) %dir %{python3_sitelib}/xlrd
Jan ONDREJ (SAL) 12173f4
%{python3_sitelib}/xlrd/*
Jan ONDREJ (SAL) 12173f4
%{python3_sitelib}/*egg-info
Jan ONDREJ (SAL) c83e016
%attr(755,root,root) %{_bindir}/*
Jan ONDREJ (SAL) 12173f4
Jan ONDREJ (SAL) 87393a7
%if 0%{?with_python3_other}
Jan ONDREJ (SAL) 87393a7
%files -n python%{python3_other_pkgversion}-%{pypi_name}
Jan ONDREJ (SAL) 10b4ff7
%license LICENSE
Jan ONDREJ (SAL) 10b4ff7
%doc README.md docs/* examples
Jan ONDREJ (SAL) 87393a7
%attr(755,root,root) %dir %{python3_other_sitelib}/xlrd
Jan ONDREJ (SAL) 87393a7
%{python3_other_sitelib}/xlrd/*
Jan ONDREJ (SAL) 87393a7
%{python3_other_sitelib}/*egg-info
Jan ONDREJ (SAL) 87393a7
%endif
Jan ONDREJ (SAL) 87393a7
0805a4e
%changelog
8c6266f
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-6
8c6266f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
8c6266f
6de6611
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.0-5
6de6611
- Rebuilt for Python 3.8.0rc1 (#1748018)
6de6611
7bea47f
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.2.0-4
7bea47f
- Rebuilt for Python 3.8
7bea47f
f3ba093
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-3
f3ba093
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
f3ba093
36ca69f
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
36ca69f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
36ca69f
Jan ONDREJ (SAL) 10b4ff7
* Tue Jan 08 2019 Ján ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.2.0-1
Jan ONDREJ (SAL) 10b4ff7
- Update to upstream.
Jan ONDREJ (SAL) 10b4ff7
- Prepare to remove python2 support.
Jan ONDREJ (SAL) 10b4ff7
Jan ONDREJ (SAL) ed6245c
* Sun Jul 15 2018 Ján ONDREJ (SAL) <ondrejj(at)salstar.sk> - 1.0.0-11
Jan ONDREJ (SAL) ed6245c
- Changed python_sitelib macro to python2_sitelib.
Jan ONDREJ (SAL) ed6245c
313da78
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-10
313da78
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
313da78
2bc63b3
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-9
2bc63b3
- Rebuilt for Python 3.7
2bc63b3
c072ebd
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-8
c072ebd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c072ebd
5bf07f2
* Wed Jan 31 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.0.0-7
5bf07f2
- Update Python 2 dependency declarations to new packaging standards
5bf07f2
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
5bf07f2
Jan ONDREJ (SAL) 87393a7
* Tue Jul 25 2017 Dan Čermák <dan.cermak@cgc-instruments.com> - 1.0.0-6
Jan ONDREJ (SAL) 87393a7
- new version: 1.0.0
Jan ONDREJ (SAL) 87393a7
- enable builds for RHEL
972668e
aa344e9
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.4-5
aa344e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
aa344e9
a71f7c5
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.9.4-4
a71f7c5
- Rebuild for Python 3.6
a71f7c5
0400f10
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.4-3
0400f10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
0400f10
Jan ONDREJ (SAL) c83e016
* Fri Nov 27 2015 Ján ONDREJ (SAL) <ondrejj(at)salstar.sk> - 0.9.4-2
Jan ONDREJ (SAL) c83e016
- python3 spec file rewrite (bz#1285816)
Jan ONDREJ (SAL) c83e016
- removed buildroot
Jan ONDREJ (SAL) c83e016
Jan ONDREJ (SAL) 35a5136
* Mon Nov 16 2015 Ján ONDREJ (SAL) <ondrejj(at)salstar.sk> - 0.9.4-1
Jan ONDREJ (SAL) 35a5136
- new version (bz#1282234)
Jan ONDREJ (SAL) 35a5136
0185274
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
0185274
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
0185274
1ab54fc
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.2-6
1ab54fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
1ab54fc
dcfb73d
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.2-5
dcfb73d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
dcfb73d
44bbcb3
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 0.9.2-4
44bbcb3
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
44bbcb3
Jan ONDREJ (SAL) 12173f4
* Tue Aug 27 2013 Ján ONDREJ (SAL) <ondrejj(at)salstar.sk> - 0.9.2-3
Jan ONDREJ (SAL) 12173f4
- add py3 support (bz#995971)
Jan ONDREJ (SAL) 12173f4
c54f35d
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.2-2
c54f35d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
c54f35d
Jan ONDREJ (SAL) 2ab81d4
* Tue Apr 23 2013 Ján ONDREJ (SAL) <ondrejj(at)salstar.sk> - 0.9.2-1
Jan ONDREJ (SAL) 2ab81d4
- Update to upstream.
Jan ONDREJ (SAL) 2ab81d4
- Updated URL and description.
Jan ONDREJ (SAL) 2ab81d4
66e8f4f
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-2
66e8f4f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
66e8f4f
Jan ONDREJ (SAL) d315f1f
* Sun Oct 07 2012 Ján ONDREJ (SAL) <ondrejj(at)salstar.sk> - 0.8.0-1
Jan ONDREJ (SAL) d315f1f
- Update to upstream.
Jan ONDREJ (SAL) d315f1f
e64ae2c
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-4
e64ae2c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e64ae2c
965313c
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-3
965313c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
965313c
d569d01
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.1-2
d569d01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
d569d01
Jan ONDREJ (SAL) 4aedfbf
* Mon Aug 23 2010 Ján ONDREJ (SAL) <ondrejj(at)salstar.sk> - 0.7.1-1
Jan ONDREJ (SAL) 4aedfbf
- new version
Jan ONDREJ (SAL) 4aedfbf
- fixed summary spelling
Jan ONDREJ (SAL) 4aedfbf
- fixed egg-info condition
Jan ONDREJ (SAL) 4aedfbf
- fixed source URL for new version
Jan ONDREJ (SAL) 4aedfbf
912a78d
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 0.6.1-10
912a78d
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
912a78d
1f2d9ec
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-9
1f2d9ec
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
1f2d9ec
9905a48
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.1-8
9905a48
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
9905a48
b9d8a44
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 0.6.1-7
b9d8a44
- Rebuild for Python 2.6
b9d8a44
493657c
* Mon Jun 2 2008 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 0.6.1-5
493657c
- removed "" for fedora macro
493657c
0805a4e
* Tue Jan 1 2008 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 0.6.1-4
0805a4e
- added eggs for Fedora >= 9
0805a4e
0805a4e
* Fri Sep 14 2007 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> 0.6.1-3
0805a4e
- doc files converted to UTF-8
0805a4e
- removed HISTORY.html README.html because they are also in xlrd/doc/
0805a4e
0805a4e
* Fri Sep 7 2007 Jan ONDREJ (SAL) <ondrejj(at)salstar.sk> - 0.6.1-2
0805a4e
- namewithoutprefix removed, too complicated and not required
0805a4e
- added directory xlrd
0805a4e
- permissions for python scripts set to 644
0805a4e
- files converted from DOS line-feeds to UNIX format
0805a4e
- "#!/usr/bin/env python" added to beginning runxlrd script
0805a4e
- removed doc and examples from site-packages/xlrd directory
0805a4e
0805a4e
* Tue Jun 12 2007 Sean Reifschneider <jafo@tummy.com> - 0.6.1-1
0805a4e
- Initial RPM spec file.