Hello community, here is the log from the commit of package python-rst2pdf for openSUSE:Factory checked in at 2013-11-14 14:22:41 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-rst2pdf (Old) and /work/SRC/openSUSE:Factory/.python-rst2pdf.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-rst2pdf" Changes: -------- --- /work/SRC/openSUSE:Factory/python-rst2pdf/python-rst2pdf.changes 2013-10-30 15:50:53.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-rst2pdf.new/python-rst2pdf.changes 2013-11-14 14:22:42.000000000 +0100 @@ -1,0 +2,13 @@ +Sat Nov 9 17:55:19 UTC 2013 - tchva...@suse.com + +- Wordaxe was supposed to stay. + +------------------------------------------------------------------- +Sat Nov 9 17:53:03 UTC 2013 - tchva...@suse.com + +- Update the runtime dependencies to reflect reality. + Previous content was not right at all. +- Add patch to fix logging: + * rst2pdf-0.93-fix-logging.patch + +------------------------------------------------------------------- New: ---- rst2pdf-0.93-fix-logging.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-rst2pdf.spec ++++++ --- /var/tmp/diff_new_pack.KMo33k/_old 2013-11-14 14:22:42.000000000 +0100 +++ /var/tmp/diff_new_pack.KMo33k/_new 2013-11-14 14:22:42.000000000 +0100 @@ -22,14 +22,20 @@ Summary: Tool for transforming reStructuredText to PDF using ReportLab License: MIT Group: Development/Libraries/Python -Source: rst2pdf-%{version}.tar.gz +Source: https://rst2pdf.googlecode.com/files/rst2pdf-%{version}.tar.gz Url: http://code.google.com/p/rst2pdf/ -BuildRequires: python-devel +# 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-pygments -Requires: python-reportlab -Recommends: python-pypdf +Requires: python-reportlab >= 2.6 +Requires: python-svg2rlg Recommends: python-wordaxe %{py_requires} BuildArch: noarch @@ -40,7 +46,10 @@ %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 \ @@ -55,7 +64,7 @@ %files %defattr(-,root,root) -%doc CHANGES.txt LICENSE.txt README.txt +%doc CHANGES.txt LICENSE.txt README.txt doc/*.pdf %{_bindir}/rst2pdf %dir %{python_sitelib}/rst2pdf %{python_sitelib}/rst2pdf/* ++++++ rst2pdf-0.93-fix-logging.patch ++++++ --- rst2pdf/log.py +++ rst2pdf/log.py @@ -4,11 +4,12 @@ import logging import sys -logging.basicConfig( - format='[%(levelname)s] %(filename)s:%(lineno)d %(message)s', - level=logging.WARNING) - log = logging.getLogger('rst2pdf') +_fmt = logging.Formatter('[%(levelname)s] %(filename)s:%(lineno)d %(message)s') +_hdlr = logging.StreamHandler() +_hdlr.setFormatter(_fmt) +log.addHandler(_hdlr) +log.setLevel(logging.WARNING) def nodeid(node): """Given a node, tries to return a way to see where it was in the @@ -23,4 +24,4 @@ if node.source: fname=str(node.source) except: pass - return 'near line %s in file %s'%(line,fname) \ No newline at end of file + return 'near line %s in file %s'%(line,fname) -- To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org For additional commands, e-mail: opensuse-commit+h...@opensuse.org