From b25cbf802fccb0329a949e94b404fb9a8052b799dc09c9c46a7c843355b5ac27 Mon Sep 17 00:00:00 2001 From: Denisart Benjamin Date: Mon, 15 Aug 2016 22:32:24 +0000 Subject: [PATCH] Accepting request 418837 from home:dstoecker Update to recent version to let it work again with the other python packages. 0.0.5 fails with reportlab >3. OBS-URL: https://build.opensuse.org/request/show/418837 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xhtml2pdf?expand=0&rev=4 --- no_optimize.patch | 10 ++++++---- python-xhtml2pdf.changes | 5 +++++ python-xhtml2pdf.spec | 16 ++++++++++------ xhtml2pdf-0.0.5.tar.gz | 3 --- xhtml2pdf-0.1b2.tar.gz | 3 +++ 5 files changed, 24 insertions(+), 13 deletions(-) delete mode 100644 xhtml2pdf-0.0.5.tar.gz create mode 100644 xhtml2pdf-0.1b2.tar.gz diff --git a/no_optimize.patch b/no_optimize.patch index f1fe943..345fbc2 100644 --- a/no_optimize.patch +++ b/no_optimize.patch @@ -1,10 +1,12 @@ ---- a/setup.cfg -+++ b/setup.cfg -@@ -1,6 +1,6 @@ +diff -u xhtml2pdf-0.1b2/setup.cfg xhtml2pdf-0.1b2_fix/setup.cfg +--- xhtml2pdf-0.1b2/setup.cfg 2016-08-01 17:26:42.000000000 +0200 ++++ xhtml2pdf-0.1b2_fix/setup.cfg 2016-08-12 08:07:19.494073565 +0200 +@@ -1,7 +1,7 @@ [install] + compile = 1 -optimize = 1 +optimize = 0 [sdist] - formats = gztar, zip + diff --git a/python-xhtml2pdf.changes b/python-xhtml2pdf.changes index 37635e5..8faff28 100644 --- a/python-xhtml2pdf.changes +++ b/python-xhtml2pdf.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Aug 12 06:12:16 UTC 2016 - opensuse@dstoecker.de + +- update to 0.1b2 + ------------------------------------------------------------------- Fri Nov 15 19:53:25 UTC 2013 - p.drouand@gmail.com diff --git a/python-xhtml2pdf.spec b/python-xhtml2pdf.spec index 2ec208f..4f7426d 100644 --- a/python-xhtml2pdf.spec +++ b/python-xhtml2pdf.spec @@ -1,7 +1,7 @@ # # spec file for package python-xhtml2pdf # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2016 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 @@ -17,21 +17,25 @@ Name: python-xhtml2pdf -Version: 0.0.5 +Version: 0.1b2 Release: 0 Summary: PDF Generator Using HTML and CSS License: Apache-2.0 Group: Development/Languages/Python -Url: http://www.xhtml2pdf.com/ +Url: https://github.com/xhtml2pdf/ Source: http://pypi.python.org/packages/source/x/xhtml2pdf/xhtml2pdf-%{version}.tar.gz # PATCH-FIX-OPENSUSE no_optimize.patch - Don't generate .pyo files during build Patch0: no_optimize.patch BuildRequires: python-devel +BuildRequires: python-nose BuildRequires: python-setuptools +Requires: python-Pillow +Requires: python-PyPDF2 Requires: python-html5lib -Requires: python-imaging -Requires: python-pypdf -Requires: python-reportlab +Requires: python-html5lib +Requires: python-httplib2 +Requires: python-reportlab >= 3.0 +Requires: python-six BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} diff --git a/xhtml2pdf-0.0.5.tar.gz b/xhtml2pdf-0.0.5.tar.gz deleted file mode 100644 index 63b64f5..0000000 --- a/xhtml2pdf-0.0.5.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:1f108c09d0939025069e71e099ec88fb477076bdc781e54215d28a8d42fe5868 -size 97399 diff --git a/xhtml2pdf-0.1b2.tar.gz b/xhtml2pdf-0.1b2.tar.gz new file mode 100644 index 0000000..122a2b5 --- /dev/null +++ b/xhtml2pdf-0.1b2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7ebd1388bc8cc5bf5033e9665dbc879bb6c77e0f4743a77bf93eeed9ed0e4d48 +size 8931914