5eac2f3
%global         sum Spreadsheet python library
e433964
%global         commit 98ab3e962ef31c04bba684c82888354eafb243a5
e433964
%global         git_tag 1.3.0
772d12d
%global         shortcommit %(c=%{commit}; echo ${c:0:7})
5eac2f3
Alec Leamas d722cb7
Name:           python-xlwt
e433964
Version:        1.3.0
3c9cbc5
Release:        10%{?dist}
5eac2f3
Summary:        %{sum}
Alec Leamas d722cb7
Alec Leamas d722cb7
                # Utils.py is LPGL2.0+
Alec Leamas d722cb7
License:        LGPLv2+ and BSD and BSD with advertising
Alec Leamas d722cb7
URL:            http://pypi.python.org/pypi/xlwt
Alec Leamas d722cb7
                # See also https://github.com/python-excel/xlwt
772d12d
Source0:        https://github.com/python-excel/xlwt/archive/%{commit}.tar.gz#/%{name}-%{shortcommit}.tar.gz
Alec Leamas d722cb7
BuildArch:      noarch
Alec Leamas d722cb7
5eac2f3
BuildRequires:  python3-devel
0d096d7
BuildRequires:  python3-setuptools
Alec Leamas d722cb7
Alec Leamas d722cb7
Alec Leamas d722cb7
%description
Alec Leamas d722cb7
A library for generating spreadsheet files that are compatible with
Alec Leamas d722cb7
Excel 97/2000/XP/2003, OpenOffice.org Calc, and Gnumeric. xlwt has
Alec Leamas d722cb7
full support for Unicode. Excel spreadsheets can be generated on any
Alec Leamas d722cb7
platform without needing Excel or a COM server. The only requirement
e433964
is Python 2.6 or later.
Alec Leamas d722cb7
Alec Leamas d722cb7
5eac2f3
%package -n python3-xlwt
5eac2f3
Summary:      %{sum}
239500a
              # https://github.com/python-excel/xlwt/issues/73
5eac2f3
Provides:     bundled(antlr) = 2.7.7
5eac2f3
%{?python_provide:%python_provide python3-xlwt}
5eac2f3
5eac2f3
%description -n python3-xlwt
5eac2f3
A library for generating spreadsheet files that are compatible with
5eac2f3
Excel 97/2000/XP/2003, OpenOffice.org Calc, and Gnumeric. xlwt has
5eac2f3
full support for Unicode. Excel spreadsheets can be generated on any
5eac2f3
platform without needing Excel or a COM server. The only requirement
e433964
is Python 2.6 or later.
5eac2f3
5eac2f3
Alec Leamas d722cb7
%prep
772d12d
%autosetup -p1 -n xlwt-%{commit}
772d12d
sed -i "s|tests/python.bmp|python.bmp|g" tests/test_bitmaps.py
Alec Leamas d722cb7
Alec Leamas d722cb7
Alec Leamas d722cb7
%build
5eac2f3
%py3_build
Alec Leamas d722cb7
Alec Leamas d722cb7
Alec Leamas d722cb7
%check
559a635
cd tests
5eac2f3
PYTHONPATH=.. %{__python3} -m unittest discover
Alec Leamas d722cb7
Alec Leamas d722cb7
Alec Leamas d722cb7
%install
5eac2f3
%py3_install
Alec Leamas d722cb7
mkdir tmp_docs
559a635
cp -ar examples docs tmp_docs
Alec Leamas d722cb7
Alec Leamas d722cb7
5eac2f3
%files -n python3-xlwt
5eac2f3
%license docs/licenses.rst
772d12d
%doc README.rst tmp_docs/*
5eac2f3
%{python3_sitelib}/xlwt
5eac2f3
%{python3_sitelib}/*.egg-info
Alec Leamas d722cb7
Alec Leamas d722cb7
Alec Leamas d722cb7
%changelog
3c9cbc5
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-10
3c9cbc5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
3c9cbc5
33d2e87
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-9
33d2e87
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
33d2e87
e4f070f
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-8
e4f070f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
e4f070f
59d7f89
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 1.3.0-7
59d7f89
- Rebuilt for Python 3.12
59d7f89
4accc9d
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-6
4accc9d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
4accc9d
724c601
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-5
724c601
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
724c601
6656bff
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.3.0-4
6656bff
- Rebuilt for Python 3.11
6656bff
da71fb7
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-3
da71fb7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
da71fb7
48b2929
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3.0-2
48b2929
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
48b2929
e433964
* Mon Jul 19 2021 Dominik Mierzejewski <rpm@greysector.net> - 1.3.0-1
e433964
- last released version
e433964
- drop obsolete patch
e433964
db406a9
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.1.2-17
db406a9
- Rebuilt for Python 3.10
db406a9
a1beba1
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-16
a1beba1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
a1beba1
b0c0035
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-15
b0c0035
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
b0c0035
9d499bc
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.1.2-14
9d499bc
- Rebuilt for Python 3.9
9d499bc
456c49f
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-13
456c49f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
456c49f
5c329bd
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.2-12
5c329bd
- Rebuilt for Python 3.8.0rc1 (#1748018)
5c329bd
c3a8114
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.2-11
c3a8114
- Rebuilt for Python 3.8
c3a8114
fd99b73
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-10
fd99b73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
fd99b73
ab31b15
* Sun Mar 17 2019 Miro Hrončok <mhroncok@redhat.com> - 1.1.2-9
ab31b15
- Subpackage python2-xlwt has been removed
ab31b15
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
ab31b15
78e3160
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-8
78e3160
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
78e3160
1b2200e
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-7
1b2200e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
1b2200e
8cedc1c
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.1.2-6
8cedc1c
- Rebuilt for Python 3.7
8cedc1c
c350558
* Fri Feb 09 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.1.2-5
c350558
- Update Python 2 dependency declarations to new packaging standards
c350558
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
c350558
63bea69
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-4
63bea69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
63bea69
c9521bf
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-3
c9521bf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
c9521bf
cf02f92
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.2-2
cf02f92
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
cf02f92
772d12d
* Sat Dec 24 2016 Alec Leamas <leamas.alec@gmail.com> - 1.1.2-1
772d12d
- New version
772d12d
- Get sources from github instead of broken pypis source repos.
772d12d
- Add patch from upstream to make tests run.
772d12d
4da64ef
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.0.0-4
4da64ef
- Rebuild for Python 3.6
4da64ef
6017300
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
6017300
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
6017300
5eac2f3
* Mon Jan 04 2016 Alec Leamas <leamas.alec@gmail.com> - 1.0.0-2
5eac2f3
- Add python3 subpackage
5eac2f3
559a635
* Mon Jan 04 2016 Alec Leamas <leamas.alec@gmail.com> - 1.0.0-1
559a635
- Updating to new upstream.
559a635
- Remove upstreamed patch xlwt-fsf-address.
559a635
- Bundling antlr.py, the system one is unusable; upstream issue filed.
559a635
681634a
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.4-6
681634a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
681634a
2c5d48d
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.4-5
2c5d48d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
2c5d48d
f32b095
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.4-4
f32b095
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
f32b095
b6be8e7
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.4-3
b6be8e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b6be8e7
c1c5794
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.4-2
c1c5794
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c1c5794
Alec Leamas d722cb7
* Thu May 03 2012 Alec Leamas <leamas.alec@gmail.com> - 0.7.4-1
Alec Leamas d722cb7
- Rewriting license according to legal advice.
Alec Leamas d722cb7
- Adding %%check
Alec Leamas d722cb7
Alec Leamas d722cb7
* Thu May 03 2012 Alec Leamas <leamas.alec@gmail.com> - 0.7.4-1
Alec Leamas d722cb7
- Tentative rewrite of License tag (blocked on FE_LEGAL)
Alec Leamas d722cb7
- Unbundle antlr
Alec Leamas d722cb7
- Explicit naming of files in %%{python_sitelib}
Alec Leamas d722cb7
Alec Leamas d722cb7
* Thu May 03 2012 Alec Leamas <leamas.alec@gmail.com> - 0.7.4-1
Alec Leamas d722cb7
- Fixing bad License:
Alec Leamas d722cb7
- Fixing license file encoding.
Alec Leamas d722cb7
Alec Leamas d722cb7
* Wed May 02 2012 Alec Leamas <leamas.alec@gmail.com> - 0.7.4-1
Alec Leamas d722cb7
- Initial release