]>
Commit | Line | Data |
---|---|---|
a49b8f1c MK |
1 | %define module openpyxl |
2 | Summary: A Python library to read/write Excel 2007 xlsx/xlsm files | |
3 | Summary(pl.UTF-8): Biblioteka umożliwiająca tworzenie plików w formacie xlsx/xlsm dla języka Python. | |
0ac70068 | 4 | Name: python3-%{module} |
baa2bbaf | 5 | Version: 3.0.9 |
48711b11 | 6 | Release: 2 |
0ac70068 | 7 | License: MIT |
a49b8f1c MK |
8 | Group: Development/Languages/Python |
9 | Source0: https://pypi.python.org/packages/source/o/%{module}/%{module}-%{version}.tar.gz | |
baa2bbaf | 10 | # Source0-md5: d4e7a3bd87b5854df49fc60ddd54ecda |
0ac70068 JP |
11 | URL: https://openpyxl.readthedocs.io |
12 | BuildRequires: python3-modules >= 1:3.6 | |
13 | BuildRequires: python3-setuptools | |
a49b8f1c | 14 | BuildRequires: rpm-pythonprov |
cacb1e33 | 15 | BuildRequires: rpmbuild(macros) >= 1.710 |
0ac70068 | 16 | Requires: python3-modules >= 1:3.6 |
a49b8f1c MK |
17 | BuildArch: noarch |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
20 | %description | |
21 | Openpyxl is a pure python reader and writer of Excel OpenXML files. It | |
22 | is ported from the PHPExcel project | |
23 | ||
24 | %prep | |
25 | %setup -q -n %{module}-%{version} | |
26 | ||
27 | %build | |
0ac70068 | 28 | %py3_build |
a49b8f1c MK |
29 | |
30 | %install | |
31 | rm -rf $RPM_BUILD_ROOT | |
0ac70068 | 32 | %py3_install |
a49b8f1c MK |
33 | |
34 | %clean | |
35 | rm -rf $RPM_BUILD_ROOT | |
36 | ||
37 | %files | |
38 | %defattr(644,root,root,755) | |
0ac70068 JP |
39 | %doc AUTHORS.rst README.rst |
40 | %{py3_sitescriptdir}/%{module} | |
41 | %{py3_sitescriptdir}/%{module}-*.egg-info |