Summary: E-book converter and library management
Summary(pl.UTF-8): Konwerter oraz biblioteka dla e-booków
Name: calibre
-Version: 2.37.1
+Version: 2.44.1
Release: 1
License: GPL v3+
Group: Applications/Multimedia
-Source0: http://code.calibre-ebook.com/dist/src/%{name}-%{version}.tar.xz
-# Source0-md5: d2e97c9e690ce2d877d6390445b76994
+Source0: %{name}-%{version}-nofonts.tar.xz
+# Source0-md5: bfd48e59aa9d650a2d305e456a857fe0
Source1: generate-tarball.sh
Source2: %{name}-mount-helper
Patch0: %{name}-prefix.patch
Patch2: %{name}-env_module.patch
Patch3: %{name}-locales.patch
Patch4: shebang-python-fix.patch
+Patch5: desktop-integration.patch
URL: http://www.calibre-ebook.com/
%define baeutifulsoup_ver 3.0.5
%define pil_ver 1.1.6
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
# 64bit target build fix
%{__sed} -i -e "s!'/usr/lib'!'%{_libdir}'!g" setup/build_environment.py
--- /dev/null
+--- calibre-2.44.1/src/calibre/linux.py.orig 2015-11-21 11:22:06.420641478 +0100
++++ calibre-2.44.1/src/calibre/linux.py 2015-11-21 11:20:41.000000000 +0100
+@@ -781,7 +781,7 @@
+ def install_single_icon(iconsrc, basename, size, context, is_last_icon=False):
+ filename = '%s-%s.png' % (basename, size)
+ render_img(iconsrc, filename, width=int(size), height=int(size))
+- cmd = ['xdg-icon-resource', 'install', '--noupdate', '--context', context, '--size', str(size), filename, basename]
++ cmd = ['xdg-icon-resource', 'install', '--noupdate', '--novendor', '--context', context, '--size', str(size), filename, basename]
+ if is_last_icon:
+ del cmd[2]
+ cc(cmd)
+@@ -850,7 +850,7 @@
+
+ APPDATA = get_appdata()
+ for x in des:
+- cmd = ['xdg-desktop-menu', 'install', '--noupdate', './'+x]
++ cmd = ['xdg-desktop-menu', 'install', '--noupdate', '--novendor', './'+x]
+ cc(' '.join(cmd), shell=True)
+ self.menu_resources.append(x)
+ ak = x.partition('.')[0]
+@@ -859,7 +859,7 @@
+ cc(['xdg-desktop-menu', 'forceupdate'])
+ MIME = P('calibre-mimetypes.xml')
+ self.mime_resources.append(MIME)
+- cc(['xdg-mime', 'install', MIME])
++ cc(['xdg-mime', 'install', '--novendor', MIME])
+ except Exception:
+ if self.opts.fatal_errors:
+ raise