%global pypi_name xlsxwriter %global srcname XlsxWriter Name: python-%{pypi_name} Version: 1.1.5 Release: 1%{?dist} Summary: Python module for writing files in the Excel 2007+ XLSX file format License: BSD URL: https://pypi.python.org/pypi/XlsxWriter Source0: %{pypi_source} BuildArch: noarch %global common_desc\ XlsxWriter is a Python module for writing files in the Excel 2007+\ XLSX file format.\ \ XlsxWriter can be used to write text, numbers, formulas and hyperlinks\ to multiple worksheets and it supports features such as formatting and\ many more, including:\ \ 100%% compatible Excel XLSX files.\ Full formatting.\ Merged cells.\ Defined names.\ Charts.\ Autofilters.\ Data validation and drop down lists.\ Conditional formatting.\ Worksheet PNG/JPEG images.\ Rich multi-format strings.\ Cell comments.\ Integration with Pandas.\ Textboxes.\ Memory optimization mode for writing large files.\ \ It supports Python 2.7, 3.4+, Jython and PyPy and uses standard libraries only. %description %{common_desc} %package -n python3-%{pypi_name} Summary: Python 3 modules for writing files in the Excel 2007+ XLSX file format BuildRequires: python3-setuptools BuildRequires: python3-devel %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} %{common_desc} %prep %setup -q -n %{srcname}-%{version} # Remove bundled egg-info rm -rf %{srcname}.egg-info %build %py3_build %install %py3_install %files -n python3-%{pypi_name} %doc README.rst docs/ examples/ %license LICENSE.txt %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{srcname}-%{version}-py?.?.egg-info %{_bindir}/vba_extract.py %changelog * Mon Mar 11 2019 Rajeesh KV 1.1.5-1 - Release 1.1.5, initial packaging for Fedora