File calibre-python_test.patch of Package calibre

Index: calibre-5.10.0/bypy/linux/__main__.py
===================================================================
--- calibre-5.10.0.orig/bypy/linux/__main__.py
+++ calibre-5.10.0/bypy/linux/__main__.py
@@ -36,7 +36,7 @@ qt_get_dll_path = partial(get_dll_path,
 
 def binary_includes():
     return [
-        j(PREFIX, 'bin', x) for x in ('pdftohtml', 'pdfinfo', 'pdftoppm', 'optipng', 'JxrDecApp')] + [
+        j(PREFIX, 'bin', x) for x in ('pdftohtml', 'pdfinfo', 'pdftoppm', 'optipng')] + [
 
         j(PREFIX, 'private', 'mozjpeg', 'bin', x) for x in ('jpegtran', 'cjpeg')] + [
         ] + list(map(
Index: calibre-5.10.0/src/calibre/test_build.py
===================================================================
--- calibre-5.10.0.orig/src/calibre/test_build.py
+++ calibre-5.10.0/src/calibre/test_build.py
@@ -369,9 +369,10 @@ class BuildTest(unittest.TestCase):
         from calibre.gui2.win_file_dialogs import test
         test()
 
-    def test_unrar(self):
-        from calibre.utils.unrar import test_basic
-        test_basic()
+# unrar is not in openSUSE
+#    def test_unrar(self):
+#        from calibre.utils.unrar import test_basic
+#        test_basic()
 
     def test_7z(self):
         from calibre.utils.seven_zip import test_basic
openSUSE Build Service is sponsored by