LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File trac-plugin-wikitoprint.spec of Package trac-plugin-wikiprint (Project devel:tools:scm)

#
# spec file for package trac-plugin-iniadminpanel
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

%define shortname wikiprint
Name:           trac-plugin-%{shortname}
%define revision 13321
Version:        1.9.3_r%{revision}
Release:        1
Url:            http://trac-hacks.org/wiki/TracWikiPrintPlugin
Source:         %{shortname}-r%{revision}.tar.bz2
%if 0%{?suse_version} > 1110
BuildArch:      noarch
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  python-devel
BuildRequires:  python-setuptools >= 0.6c8
%py_requires
Requires:       python-setuptools
Requires:       trac
Requires:       python-imaging
Requires:       python-pypdf
Requires:       python-Pygments
Requires:       python-html5lib
Requires:       python-reportlab
Requires:       python-reportlab
Requires:       python-pisa
Summary:        A plugin for Trac to convert wiki pages to printable format
License:        BSD-3-Clause
Group:          Development/Tools/Other

%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 pure python libraries (such as ​xhtml2pdf and PISA), instead
of depending on an external applications. 

%prep
%setup -qn %{shortname}

%build
CFLAGS="%{optflags}" %{__python} setup.py build

%install
%{__python} setup.py install --root=%{buildroot} --prefix=%{_prefix} --record-rpm=INSTALLED_FILES

%clean
test "%{buildroot}" != "/" && %__rm -rf %{buildroot}

%files -f INSTALLED_FILES
%defattr(-,root,root)

%changelog