#
+# TODO: - xdg stuff (put desktops and icons in proper place)
+# - calibre can be installed only when some locales files are already installed, try to fix it
+#
# NOTE:
# Upstream packages some unfree fonts which we cannot redistribute,
# so when upgrading calibre we should download upstream tarball by hand from
Summary: E-book converter and library management
Summary(pl.UTF-8): Konwerter oraz biblioteka dla e-booków
Name: calibre
-Version: 0.6.53
+Version: 0.7.8
Release: 0.1
License: GPL v3+
Group: Applications/Multimedia
Source0: %{name}-%{version}-nofonts.tar.bz2
-# Source0-md5: 7ed89159bbd97db0d2dcf850bb1dd867
+# Source0-md5: b6d0cf3afc2d6ef927028cd98e13604b
Source1: generate-tarball.sh
Patch0: %{name}-prefix.patch
Patch1: %{name}-manpages.patch
Patch2: %{name}-no-update.patch
Patch3: %{name}-env_module.patch
Patch4: %{name}-locales.patch
+Patch5: %{name}-mounthelper.patch
URL: http://www.calibre-ebook.com/
BuildRequires: ImageMagick-devel
BuildRequires: chmlib-devel
+BuildRequires: pkgconfig
BuildRequires: podofo-devel
BuildRequires: poppler-Qt-devel
BuildRequires: python-BeautifulSoup
BuildRequires: python-modules-sqlite
BuildRequires: python-sip-devel
BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(find_lang) >= 1.23
+BuildRequires: rpmbuild(macros) >= 1.268
BuildRequires: sed >= 4.0
BuildRequires: xdg-utils
+Requires: ImageMagick-coder-jpeg
Requires: python-PIL
Requires: python-cssutils
Requires: python-dateutil
%patch2 -p1
%patch3 -p1
%patch4 -p1
+%patch5 -p1
%build
%{__python} setup.py build