diff --git a/xhtml2pdf-0.2b.tar.gz b/0.2b.tar.gz
similarity index 100%
rename from xhtml2pdf-0.2b.tar.gz
rename to 0.2b.tar.gz
diff --git a/no_optimize.patch b/no_optimize.patch
deleted file mode 100644
index 345fbc2..0000000
--- a/no_optimize.patch
+++ /dev/null
@@ -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]
-
diff --git a/python-xhtml2pdf.changes b/python-xhtml2pdf.changes
index 2b8fa41..05e9090 100644
--- a/python-xhtml2pdf.changes
+++ b/python-xhtml2pdf.changes
@@ -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
diff --git a/python-xhtml2pdf.spec b/python-xhtml2pdf.spec
index 6f9ae99..e3c0fbe 100644
--- a/python-xhtml2pdf.spec
+++ b/python-xhtml2pdf.spec
@@ -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' \