%define oname PyRTF %define subrel 0 Name: python-pyrtf Summary: Python module to generate RTF documents Version: 0.45 Release: %mkrel 5 Source0: http://downloads.sourceforge.net/pyrtf/%{oname}-%{version}.tar.bz2 URL: http://pyrtf.sourceforge.net/ License: GPL+ Group: Development/Python BuildRequires: python-devel BuildRequires: dos2unix BuildArch: noarch %description PyRTF is a set of python classes that make it possible to produce RTF documents from python programs. The library has no external dependencies and has proved reliable and fast. %prep %setup -q -n %{oname}-%{version} #fix EOLs dos2unix examples/merged_cells.py #fix rights chmod 644 examples/* %build #nothing %install rm -rf %{buildroot} python setup.py install --root=%{buildroot} --compile --optimize=2 %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc README examples/ %{py_puresitedir}/%{oname} %{py_puresitedir}/%{oname}-%{version}-py%{pyver}.egg-info %changelog * Sun Aug 21 2011 wally <wally> 0.45-5.0.mga1 + Revision: 134784 - add subrel for pushing to mga1 * Sat Jun 11 2011 wally <wally> 0.45-5.mga2 + Revision: 103418 - drop old provides/obsoletes - add some docs - drop buildroot definition - drop obsolete py_requires macro - imported package python-pyrtf * Sat Nov 06 2010 Funda Wang <fwang@mandriva.org> 0.45-5mdv2011.0 + Revision: 593999 - rebuild for py2.7 * Tue Sep 15 2009 Thierry Vignaud <tv@mandriva.org> 0.45-4mdv2010.0 + Revision: 442465 - rebuild * Sat Jan 03 2009 Funda Wang <fwang@mandriva.org> 0.45-3mdv2009.1 + Revision: 323952 - rebuild * Fri Sep 12 2008 Adam Williamson <awilliamson@mandriva.org> 0.45-2mdv2009.0 + Revision: 284031 - generate .pyc and .pyo files - clean macros - clean python requires - new license policy - source location - rename to match python policy - drop unnecessary defines - rename spec - rename to conform to python policy * Thu Sep 04 2008 Jérôme Soyer <saispo@mandriva.org> 0.45-1mdv2009.0 + Revision: 280606 - Fix files section - New version + Thierry Vignaud <tv@mandriva.org> - rebuild - kill re-definition of %%buildroot on Pixel's request - use %%mkrel - import PyRTF + Olivier Blin <oblin@mandriva.com> - restore BuildRoot