Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15
python-rst2pdf
python-rst2pdf.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-rst2pdf.spec of Package python-rst2pdf
# # spec file for package python-rst2pdf # # Copyright (c) 2017 SUSE LINUX 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/ # Name: python-rst2pdf Version: 0.93 Release: 0 Summary: Tool for transforming reStructuredText to PDF using ReportLab License: MIT Group: Development/Libraries/Python Source: https://rst2pdf.googlecode.com/files/rst2pdf-%{version}.tar.gz Url: http://code.google.com/p/rst2pdf/ # PATCH-FIX-UPSTREAM fix logging to work properly https://code.google.com/p/rst2pdf/issues/detail?id=509&q=log Patch0: rst2pdf-0.93-fix-logging.patch BuildRequires: dos2unix BuildRequires: python-setuptools BuildRoot: %{_tmppath}/%{name}-%{version}-build Requires: python-Pygments Requires: python-docutils Requires: python-imaging Requires: python-pdfrw Requires: python-reportlab >= 2.6 Requires: python-svg2rlg Recommends: python-wordaxe %{py_requires} %if 0%{?suse_version} && 0%{?suse_version} > 1110 BuildArch: noarch %endif %description The usual way of creating PDF from reStructuredText is by going through LaTeX. This tool provides an alternative by producing PDF directly using the ReportLab library. %prep %setup -q -n rst2pdf-%{version} %patch0 rm -f rst2pdf/tests/input/charter.afm # fix dos encodings find -name '*.py' -exec dos2unix {} + sed -i -e '1{/^#!/d}' \ rst2pdf/smartypants.py \ rst2pdf/findfonts.py \ rst2pdf/dumpstyle.py %build python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} %files %defattr(-,root,root) %doc CHANGES.txt LICENSE.txt README.txt doc/*.pdf %{_bindir}/rst2pdf %dir %{python_sitelib}/rst2pdf %{python_sitelib}/rst2pdf/* %{python_sitelib}/rst2pdf-%{version}.*-py%{py_ver}.egg-info %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor