14
0

- Switch to downloadable url

- Remove pointless patch

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-xhtml2pdf?expand=0&rev=7
This commit is contained in:
Tomáš Chvátal
2017-12-15 13:46:02 +00:00
committed by Git OBS Bridge
parent 59cbd779dd
commit 65791c3183
4 changed files with 7 additions and 16 deletions

View File

@@ -1,12 +0,0 @@
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]

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Dec 15 13:47:52 UTC 2017 - tchvatal@suse.com
- Switch to downloadable url
- Remove pointless patch
-------------------------------------------------------------------
Fri Dec 15 13:34:51 UTC 2017 - tchvatal@suse.com

View File

@@ -24,9 +24,7 @@ Summary: PDF Generator Using HTML and CSS
License: Apache-2.0
Group: Development/Languages/Python
Url: https://github.com/xhtml2pdf/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
Source: https://github.com/xhtml2pdf/xhtml2pdf/archive/%{version}.tar.gz
BuildRequires: %{python_module Pillow >= 2.0}
BuildRequires: %{python_module PyPDF2 >= 1.26}
BuildRequires: %{python_module html5lib >= 1.0b10}
@@ -58,7 +56,6 @@ able to generate PDF templates very quickly without learning new technologies.
%prep
%setup -q -n xhtml2pdf-%{version}
%patch0 -p1
# sed out hardcoded html5lib require
sed -i \
-e 's:==1.0b10::g' \