Package python-module-trac-wikiprintplugin: Specfile

%define tarname tracwikiprintplugin
Name: python-module-trac-wikiprintplugin
%define r_minor r7916
Version: 1.8.2
Release: alt1.%r_minor.1

Summary: Make wiki pages easily printable, exporting to PDF (book or article format) or printable HTML format (page contents without trac headers/footers)

Group: Development/Python
License: GPL
Url: http://trac-hacks.org/wiki/tracwikiprintplugin

Packager: Slava Dubrovskiy <dubrsl@altlinux.ru>

Source: %{tarname}-%r_minor.zip
Patch: python-module-trac-wikiprintplugin-fix-error-in-html-output.patch

BuildArch: noarch

BuildRequires: python-module-setuptools unzip

Requires: python-module-imaging

%description
Make wiki pages easily printable, exporting to PDF (book or article format) or printable HTML format
(page contents without trac headers/footers).

PDF export is based on xhtml2pdf/PISA pure python libraries, instead of depending on an external application.

WikiPrint features:
- Fully customizable header/footers for PDF
- Syntax highlighting in exported format, using pygments
- Customizable front page for PDF book format
- Automatic creation of Table of Contents if [[PageOutline]] or [[TOC]] Macro is used
- The style of the resulting PDF or HTML can be fully customized using CSS files.

%prep
%setup -q -n %tarname/0.11
%patch -p2

%build
%__python setup.py build

%install
%__python setup.py install --root %buildroot

chmod -R a+r %buildroot%python_sitelibdir/wikiprint

%files
%python_sitelibdir/*

%changelog
* Thu Oct 20 2011 Vitaly Kuznetsov <vitty@altlinux.ru> 1.8.2-alt1.r7916.1
- Rebuild with Python-2.7

* Mon May 03 2010 Slava Dubrovskiy <dubrsl@altlinux.org> 1.8.2-alt1.r7916
- Build for ALT