3 %bcond_without python2 # CPython 2.x module
4 %bcond_without python3 # CPython 3.x module
7 Summary: Library to create spreadsheets compatible with MS Excel 97/2000/XP/2003 XLS
12 Group: Libraries/Python
13 #Source0Download: https://pypi.org/simple/xlwt/
14 Source0: https://files.pythonhosted.org/packages/source/x/xlwt/%{module}-%{version}.tar.gz
15 # Source0-md5: 4b1ca8a3cef3261f4b4dc3f138e383a8
16 URL: http://www.python-excel.org/
18 BuildRequires: python-modules >= 1:2.7
19 BuildRequires: python-setuptools
22 BuildRequires: python3-modules >= 1:3.3
23 BuildRequires: python3-setuptools
25 BuildRequires: rpm-pythonprov
26 BuildRequires: rpmbuild(macros) >= 1.714
27 Requires: python-modules >= 1:2.7
29 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32 This is a library for developers to use to generate spreadsheet files
33 compatible with Microsoft Excel versions 95 to 2003.
35 The package itself is pure Python with no dependencies on modules or
36 packages outside the standard Python distribution.
38 %package -n python3-%{module}
39 Summary: Library to create spreadsheets compatible with MS Excel 97/2000/XP/2003 XLS
40 Requires: python3-modules >= 1:3.5
42 %description -n python3-%{module}
43 This is a library for developers to use to generate spreadsheet files
44 compatible with Microsoft Excel versions 95 to 2003.
46 The package itself is pure Python with no dependencies on modules or
47 packages outside the standard Python distribution.
50 %setup -q -n %{module}-%{version}
62 rm -rf $RPM_BUILD_ROOT
74 rm -rf $RPM_BUILD_ROOT
78 %defattr(644,root,root,755)
80 %{py_sitescriptdir}/%{module}
81 %{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
85 %files -n python3-%{module}
86 %defattr(644,root,root,755)
88 %{py3_sitescriptdir}/%{module}
89 %{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info