mirror of
https://abf.rosa.ru/djam/calibre.git
synced 2025-02-24 08:02:48 +00:00
version update 0.9.8
This commit is contained in:
parent
934b5c0e46
commit
2242ad8bbb
7 changed files with 187 additions and 260 deletions
2
.abf.yml
2
.abf.yml
|
@ -1,2 +1,2 @@
|
||||||
sources:
|
sources:
|
||||||
"calibre-0.8.60.tar.xz": cf69a9b96cafdc1f02a4e42d9f6b9bfd1e77f7e9
|
calibre-0.9.8.tar.xz: 051d9bad45b7e5bd62843f80bea2713f02112f8f
|
||||||
|
|
|
@ -1,7 +1,5 @@
|
||||||
diff --git a/setup/extensions.py b/setup/extensions.py
|
--- a/setup/extensions.py 2011-12-29 15:00:50.833733423 +0100
|
||||||
index ccff4b6..d3a4693 100644
|
+++ b/setup/extensions.py 2011-12-29 15:01:15.196670817 +0100
|
||||||
--- a/setup/extensions.py
|
|
||||||
+++ b/setup/extensions.py
|
|
||||||
@@ -429,6 +429,7 @@ class Build(Command):
|
@@ -429,6 +429,7 @@ class Build(Command):
|
||||||
makefile=mf, universal=OSX_SDK, qt=1)
|
makefile=mf, universal=OSX_SDK, qt=1)
|
||||||
makefile.extra_lflags = qt_objects
|
makefile.extra_lflags = qt_objects
|
||||||
|
|
9
calibre-mount-helper
Normal file
9
calibre-mount-helper
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# This is a dummy script shipped in the fedora calibre package.
|
||||||
|
# Since we have better/safer/easier ways to mount mass storage devices
|
||||||
|
# there's no need to have a suid binary try and do this.
|
||||||
|
# This script simply exits telling calibre that the device is already
|
||||||
|
# been mounted by your desktop.
|
||||||
|
|
||||||
|
exit 1
|
32
calibre-no-update-0.8.6.patch
Normal file
32
calibre-no-update-0.8.6.patch
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
diff -uNr calibre.old/src/calibre/gui2/ui.py calibre/src/calibre/gui2/ui.py
|
||||||
|
--- calibre.old/src/calibre/gui2/ui.py 2011-01-11 22:08:00.684511166 +0100
|
||||||
|
+++ calibre/src/calibre/gui2/ui.py 2011-01-11 22:11:34.522099663 +0100
|
||||||
|
@@ -648,7 +648,7 @@
|
||||||
|
if write_settings:
|
||||||
|
self.write_settings()
|
||||||
|
self.check_messages_timer.stop()
|
||||||
|
- self.update_checker.terminate()
|
||||||
|
+ # self.update_checker.terminate()
|
||||||
|
self.listener.close()
|
||||||
|
self.job_manager.server.close()
|
||||||
|
while self.spare_servers:
|
||||||
|
diff -uNr calibre.old/src/calibre/gui2/update.py calibre/src/calibre/gui2/update.py
|
||||||
|
--- calibre.old/src/calibre/gui2/update.py 2011-06-19 01:26:50.719502823 +0300
|
||||||
|
+++ ucalibre/src/calibre/gui2/update.py 2011-06-17 20:56:05.000000000 +0300
|
||||||
|
@@ -123,11 +123,11 @@
|
||||||
|
|
||||||
|
def __init__(self, opts):
|
||||||
|
self.last_newest_calibre_version = NO_CALIBRE_UPDATE
|
||||||
|
- if not opts.no_update_check:
|
||||||
|
- self.update_checker = CheckForUpdates(self)
|
||||||
|
- self.update_checker.update_found.connect(self.update_found,
|
||||||
|
- type=Qt.QueuedConnection)
|
||||||
|
- self.update_checker.start()
|
||||||
|
+ # if not opts.no_update_check:
|
||||||
|
+ # self.update_checker = CheckForUpdates(self)
|
||||||
|
+ # self.update_checker.update_found.connect(self.update_found,
|
||||||
|
+ # type=Qt.QueuedConnection)
|
||||||
|
+ # self.update_checker.start()
|
||||||
|
|
||||||
|
def recalc_update_label(self, number_of_plugin_updates):
|
||||||
|
self.update_found('%s%s%d'%(self.last_newest_calibre_version, VSEP,
|
11
calibre-python2-env-fix.patch
Normal file
11
calibre-python2-env-fix.patch
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
--- calibre/setup/old.install.py 2011-06-17 20:56:05.000000000 +0300
|
||||||
|
+++ calibre/setup/install.py 2011-06-19 16:49:04.834298647 +0300
|
||||||
|
@@ -12,7 +12,7 @@
|
||||||
|
__appname__, __version__)
|
||||||
|
|
||||||
|
HEADER = '''\
|
||||||
|
-#!/usr/bin/env python2
|
||||||
|
+#!/usr/bin/env python
|
||||||
|
|
||||||
|
"""
|
||||||
|
This is the standard runscript for all of calibre's tools.
|
12
calibre-web-control.patch
Normal file
12
calibre-web-control.patch
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
--- calibre/src/calibre/gui2/store/old.web_control.py 2011-06-19 18:49:10.601631964 +0300
|
||||||
|
+++ calibre/src/calibre/gui2/store/web_control.py 2011-06-19 18:51:14.471813402 +0300
|
||||||
|
@@ -9,7 +9,8 @@
|
||||||
|
import os
|
||||||
|
from urlparse import urlparse
|
||||||
|
|
||||||
|
-from PyQt4.Qt import QNetworkCookieJar, QFileDialog, QNetworkProxy
|
||||||
|
+from PyQt4.Qt import QFileDialog
|
||||||
|
+from PyQt4.QtNetwork import QNetworkCookieJar, QNetworkProxy
|
||||||
|
from PyQt4.QtWebKit import QWebView, QWebPage
|
||||||
|
|
||||||
|
from calibre import USER_AGENT, get_proxies, get_download_filename
|
375
calibre.spec
375
calibre.spec
|
@ -1,41 +1,45 @@
|
||||||
Name: calibre
|
%define name calibre
|
||||||
Version: 0.8.60
|
%define version 0.9.8
|
||||||
Release: 1
|
%define release %mkrel 1
|
||||||
|
|
||||||
|
Name: %{name}
|
||||||
|
Version: %{version}
|
||||||
|
Release: %{release}
|
||||||
Summary: E-book converter and library management
|
Summary: E-book converter and library management
|
||||||
Group: Text tools
|
Group: Office
|
||||||
License: GPL
|
License: GPLv3
|
||||||
URL: http://calibre-ebook.com/
|
URL: http://calibre-ebook.com/
|
||||||
Source0: http://calibre-ebook.googlecode.com/files/%{name}-%{version}.tar.xz
|
Source0: http://calibre-ebook.googlecode.com/files/%{name}-%{version}.tar.xz
|
||||||
Patch0: %{name}-manpages.patch
|
Source2: calibre-mount-helper
|
||||||
Patch1: %{name}-no-update.patch
|
Patch1: %{name}-no-update-0.8.6.patch
|
||||||
Patch3: %{name}-0.7.27-python-fix.patch
|
Patch3: %{name}-0.7.27-python-fix.patch
|
||||||
|
Patch4: %{name}-python2-env-fix.patch
|
||||||
BuildRequires: python-devel >= 2.6
|
Patch5: %{name}-web-control.patch
|
||||||
BuildRequires: ImageMagick-devel
|
BuildRequires: python >= 2.6
|
||||||
|
BuildRequires: pkgconfig(python) >= 2.6
|
||||||
|
BuildRequires: imagemagick-devel
|
||||||
BuildRequires: python-setuptools
|
BuildRequires: python-setuptools
|
||||||
BuildRequires: qt4-devel
|
BuildRequires: qt4-devel
|
||||||
BuildRequires: python-qt4-devel >= 4.8.2
|
BuildRequires: python-qt4-devel
|
||||||
BuildRequires: python-qt4-scripttools
|
BuildRequires: pkgconfig(poppler-qt4) >= 0.12
|
||||||
BuildRequires: libpoppler-qt4-devel >= 0.12
|
BuildRequires: pkgconfig(poppler-glib)
|
||||||
BuildRequires: podofo-devel
|
BuildRequires: podofo-devel
|
||||||
BuildRequires: desktop-file-utils
|
BuildRequires: desktop-file-utils
|
||||||
BuildRequires: python-mechanize
|
BuildRequires: python-mechanize
|
||||||
BuildRequires: python-lxml
|
BuildRequires: python-lxml
|
||||||
BuildRequires: python-cssutils >= 0.9.6
|
|
||||||
BuildRequires: python-dateutil
|
BuildRequires: python-dateutil
|
||||||
BuildRequires: python-imaging
|
BuildRequires: python-imaging
|
||||||
BuildRequires: python-sqlite2
|
|
||||||
BuildRequires: xdg-utils
|
BuildRequires: xdg-utils
|
||||||
BuildRequires: python-beautifulsoup
|
BuildRequires: python-beautifulsoup
|
||||||
|
BuildRequires: chmlib-devel
|
||||||
|
BuildRequires: python-cssutils >= 0.9.9
|
||||||
|
BuildRequires: pkgconfig(sqlite3)
|
||||||
|
BuildRequires: pkgconfig(icu-i18n)
|
||||||
BuildRequires: unzip
|
BuildRequires: unzip
|
||||||
BuildRequires: libwmf-devel
|
BuildRequires: libwmf-devel
|
||||||
BuildRequires: chmlib-devel
|
BuildRequires: libmtp-devel
|
||||||
BuildRequires: icu-devel
|
Requires: python-qt4
|
||||||
|
Requires: python-pypdf
|
||||||
Requires: python-qt4-gui
|
|
||||||
Requires: python-qt4-svg
|
|
||||||
Requires: python-qt4-webkit
|
|
||||||
Requires: pyPdf
|
|
||||||
Requires: python-cherrypy
|
Requires: python-cherrypy
|
||||||
Requires: python-cssutils
|
Requires: python-cssutils
|
||||||
Requires: ImageMagick
|
Requires: ImageMagick
|
||||||
|
@ -47,6 +51,8 @@ Requires: python-mechanize
|
||||||
Requires: python-dateutil
|
Requires: python-dateutil
|
||||||
Requires: python-genshi
|
Requires: python-genshi
|
||||||
Requires: python-beautifulsoup
|
Requires: python-beautifulsoup
|
||||||
|
Requires: python-netifaces
|
||||||
|
Requires: poppler
|
||||||
# Require the packages of the files which are symlinked by calibre
|
# Require the packages of the files which are symlinked by calibre
|
||||||
Requires: fonts-ttf-liberation
|
Requires: fonts-ttf-liberation
|
||||||
# E-mail functionality requires this package
|
# E-mail functionality requires this package
|
||||||
|
@ -64,21 +70,76 @@ i.e. a single entry in the database that may correspond to ebooks in several
|
||||||
formats. It also supports conversion to and from a dozen different ebook
|
formats. It also supports conversion to and from a dozen different ebook
|
||||||
formats.
|
formats.
|
||||||
|
|
||||||
Supported input formats are: MOBI, LIT, PRC, EPUB, ODT, HTML, CBR, CBZ, RTF,
|
Supported input formats are: MOBI, LIT, PRC, EPUB, CHM, ODT, HTML, CBR, CBZ,
|
||||||
TXT, PDF, CHM and LRS.
|
RTF, TXT, PDF and LRS.
|
||||||
|
|
||||||
|
%files
|
||||||
|
#-f %{name}.lang
|
||||||
|
%doc COPYRIGHT LICENSE Changelog.yaml
|
||||||
|
%{_bindir}/calibre
|
||||||
|
%{_bindir}/calibre-complete
|
||||||
|
%{_bindir}/calibre-customize
|
||||||
|
%{_bindir}/calibre-debug
|
||||||
|
%{_bindir}/calibre-parallel
|
||||||
|
%{_bindir}/calibre-server
|
||||||
|
%{_bindir}/calibre-smtp
|
||||||
|
%{_bindir}/calibre-mount-helper
|
||||||
|
%{_bindir}/calibredb
|
||||||
|
%{_bindir}/ebook-convert
|
||||||
|
%{_bindir}/ebook-device
|
||||||
|
%{_bindir}/ebook-meta
|
||||||
|
%{_bindir}/ebook-viewer
|
||||||
|
%{_bindir}/epub-fix
|
||||||
|
%{_bindir}/fetch-ebook-metadata
|
||||||
|
%{_bindir}/lrf2lrs
|
||||||
|
%{_bindir}/lrfviewer
|
||||||
|
%{_bindir}/lrs2lrf
|
||||||
|
%{_bindir}/markdown-calibre
|
||||||
|
%{_bindir}/web2disk
|
||||||
|
%config(noreplace) %{_sysconfdir}/bash_completion.d/%{name}
|
||||||
|
%{_libdir}/%{name}
|
||||||
|
%{_datadir}/%{name}
|
||||||
|
%{_datadir}/pixmaps/*
|
||||||
|
%{_datadir}/applications/*.desktop
|
||||||
|
%{_datadir}/mime/packages/*
|
||||||
|
%{_datadir}/icons/hicolor/scalable/mimetypes/*
|
||||||
|
%{_datadir}/icons/hicolor/*/apps/*
|
||||||
|
%{python_sitelib}/init_calibre.py*
|
||||||
|
|
||||||
|
#--------------------------------------------------------------------
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}
|
%setup -q -n %{name}
|
||||||
|
|
||||||
# remove redundant / non-free fonts
|
# remove redundant / non-free fonts
|
||||||
rm -rf resources/fonts/*
|
rm -rf resources/fonts/*/
|
||||||
|
|
||||||
#%patch0 -p1 -b .manpages
|
# don't check for new upstream version (that's what packagers do)
|
||||||
%patch1 -p1 -b .no-update
|
# otherwise the plugins are safe to be updated in ~/.config/calibre/plugins/
|
||||||
|
%patch1 -F 2 -p1 -b .no-update
|
||||||
|
|
||||||
|
# libs
|
||||||
%patch3 -p1 -b .python-fix
|
%patch3 -p1 -b .python-fix
|
||||||
|
|
||||||
|
# there is no python2 symlink to python2.7
|
||||||
|
# but just python, as opposed to python3
|
||||||
|
%patch4 -p1 -b .python2-env-fix
|
||||||
|
|
||||||
|
# import from QtNetwork, not Qt
|
||||||
|
%patch5 -p1 -b .python-web-control
|
||||||
|
|
||||||
# dos2unix newline conversion
|
# dos2unix newline conversion
|
||||||
%{__sed} -i 's/\r//' src/calibre/web/feeds/recipes/*
|
%{__sed} -i -e 's/\r//' src/calibre/web/feeds/recipes/*
|
||||||
|
|
||||||
|
# fix the location of liberation default font
|
||||||
|
#%{__sed} -i -e "s:P('fonts/liberation/LiberationSerif:('%{_datadir}/fonts/TTF/liberation/LiberationSerif:" \
|
||||||
|
# src/calibre/library/catalog.py
|
||||||
|
%{__sed} -i -e "s:P('fonts/liberation/LiberationSerif:('%{_datadir}/fonts/TTF/liberation/LiberationSerif:" \
|
||||||
|
src/calibre/utils/magick/draw.py
|
||||||
|
%{__sed} -i -e "s:P('fonts/liberation/LiberationSerif:('%{_datadir}/fonts/TTF/liberation/LiberationSerif:" \
|
||||||
|
src/calibre/web/feeds/news.py
|
||||||
|
%{__sed} -i -e "s:P('fonts/liberation/LiberationSerif:('%{_datadir}/fonts/TTF/liberation/LiberationSerif:" \
|
||||||
|
recipes/*_ke.recipe
|
||||||
|
|
||||||
# remove shebangs
|
# remove shebangs
|
||||||
%{__sed} -i -e '/^#!\//, 1d' src/calibre/*/*/*/*.py
|
%{__sed} -i -e '/^#!\//, 1d' src/calibre/*/*/*/*.py
|
||||||
|
@ -95,9 +156,8 @@ rm -rf resources/fonts/*
|
||||||
%{__chmod} -x src/calibre/*.py
|
%{__chmod} -x src/calibre/*.py
|
||||||
%{__chmod} -x recipes/*.recipe
|
%{__chmod} -x recipes/*.recipe
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
OVERRIDE_CFLAGS="%{optflags}" python setup.py build
|
OVERRIDE_CFLAGS="%{optflags}" python setup.py build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{_datadir}
|
mkdir -p %{buildroot}%{_datadir}
|
||||||
|
@ -110,22 +170,28 @@ mkdir -p %{buildroot}%{_datadir}/mime
|
||||||
mkdir -p %{buildroot}%{_datadir}/mime/packages
|
mkdir -p %{buildroot}%{_datadir}/mime/packages
|
||||||
mkdir -p %{buildroot}%{_datadir}/applications
|
mkdir -p %{buildroot}%{_datadir}/applications
|
||||||
mkdir -p %{buildroot}%{_datadir}/desktop-directories
|
mkdir -p %{buildroot}%{_datadir}/desktop-directories
|
||||||
|
|
||||||
|
# create directory for calibre environment module
|
||||||
|
# the install script assumes it's there.
|
||||||
mkdir -p %{buildroot}%{python_sitelib}
|
mkdir -p %{buildroot}%{python_sitelib}
|
||||||
|
|
||||||
XDG_DATA_DIRS="%{buildroot}%{_datadir}" \
|
XDG_DATA_DIRS="%{buildroot}%{_datadir}" \
|
||||||
XDG_UTILS_INSTALL_MODE="system" \
|
XDG_UTILS_INSTALL_MODE="system" \
|
||||||
LIBPATH="%{_libdir}" \
|
LIBPATH="%{_libdir}" \
|
||||||
python setup.py install --root=%{buildroot}%{_prefix} \
|
python setup.py install --root=%{buildroot}%{_prefix} \
|
||||||
--prefix=%{_prefix} \
|
--prefix=%{_prefix} \
|
||||||
--libdir=%{_libdir} \
|
--libdir=%{_libdir} \
|
||||||
--staging-libdir=%{buildroot}%{_libdir}
|
--staging-libdir=%{buildroot}%{_libdir} \
|
||||||
|
# remove shebang from init_calibre.py here because
|
||||||
|
# it just got spawned by the install script
|
||||||
%{__sed} -i -e '/^#!\//, 1d' %{buildroot}%{python_sitelib}/init_calibre.py
|
%{__sed} -i -e '/^#!\//, 1d' %{buildroot}%{python_sitelib}/init_calibre.py
|
||||||
|
|
||||||
# icons
|
# icons
|
||||||
mkdir -p %{buildroot}%{_datadir}/pixmaps/
|
mkdir -p %{buildroot}%{_datadir}/pixmaps/
|
||||||
cp -p resources/images/library.png \
|
cp -p resources/images/library.png \
|
||||||
%{buildroot}%{_datadir}/pixmaps/%{name}-gui.png
|
%{buildroot}%{_datadir}/pixmaps/%{name}-gui.png
|
||||||
cp -p resources/images/viewer.png \
|
cp -p resources/images/viewer.png \
|
||||||
%{buildroot}%{_datadir}/pixmaps/calibre-viewer.png
|
%{buildroot}%{_datadir}/pixmaps/calibre-viewer.png
|
||||||
|
|
||||||
# every file is empty here
|
# every file is empty here
|
||||||
find %{buildroot}%{_datadir}/mime -maxdepth 1 -type f|xargs rm -f
|
find %{buildroot}%{_datadir}/mime -maxdepth 1 -type f|xargs rm -f
|
||||||
|
@ -134,7 +200,10 @@ find %{buildroot}%{_datadir}/mime -maxdepth 1 -type f|xargs rm -f
|
||||||
rm -f %{buildroot}%{_bindir}/calibre-portable.bat
|
rm -f %{buildroot}%{_bindir}/calibre-portable.bat
|
||||||
|
|
||||||
# packages aren't allowed to register mimetypes like this
|
# packages aren't allowed to register mimetypes like this
|
||||||
rm -f %{buildroot}%{_datadir}/applications/{defaults.list,mimeinfo.cache}
|
rm -f %{buildroot}%{_datadir}/applications/defaults.list
|
||||||
|
rm -f %{buildroot}%{_datadir}/applications/mimeinfo.cache
|
||||||
|
rm -f %{buildroot}%{_datadir}/mime/application/*.xml
|
||||||
|
rm -f %{buildroot}%{_datadir}/mime/text/*.xml
|
||||||
|
|
||||||
desktop-file-validate \
|
desktop-file-validate \
|
||||||
%{buildroot}%{_datadir}/applications/calibre-ebook-viewer.desktop
|
%{buildroot}%{_datadir}/applications/calibre-ebook-viewer.desktop
|
||||||
|
@ -143,22 +212,20 @@ desktop-file-validate \
|
||||||
desktop-file-validate \
|
desktop-file-validate \
|
||||||
%{buildroot}%{_datadir}/applications/calibre-lrfviewer.desktop
|
%{buildroot}%{_datadir}/applications/calibre-lrfviewer.desktop
|
||||||
|
|
||||||
|
|
||||||
mv %{buildroot}%{_datadir}/mime/packages/calibre-mimetypes \
|
|
||||||
%{buildroot}%{_datadir}/mime/packages/calibre-mimetypes.xml
|
|
||||||
|
|
||||||
# mimetype icon for lrf
|
# mimetype icon for lrf
|
||||||
rm -rf %{buildroot}%{_datadir}/icons/hicolor/128x128
|
rm -rf %{buildroot}%{_datadir}/icons/hicolor/128x128
|
||||||
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable
|
||||||
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/mimetypes
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/mimetypes
|
||||||
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps
|
||||||
cp -p resources/images/mimetypes/lrf.png \
|
cp -p resources/images/mimetypes/lrf.png \
|
||||||
%{buildroot}%{_datadir}/icons/hicolor/scalable/mimetypes/application-x-sony-bbeb.png
|
%{buildroot}%{_datadir}/icons/hicolor/scalable/mimetypes/application-x-sony-bbeb.png
|
||||||
cp -p resources/images/viewer.png \
|
cp -p resources/images/viewer.png \
|
||||||
%{buildroot}%{_datadir}/icons/hicolor/scalable/apps/calibre-viewer.png
|
%{buildroot}%{_datadir}/icons/hicolor/scalable/apps/calibre-viewer.png
|
||||||
|
|
||||||
# don't put bash completions in /usr/etc
|
# don't put bash completions in /usr/etc
|
||||||
mv %{buildroot}%{_prefix}%{_sysconfdir} %{buildroot}
|
mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d
|
||||||
|
mv %{buildroot}%{_prefix}%{_sysconfdir}/bash_completion.d/%{name} %{buildroot}%{_sysconfdir}/bash_completion.d
|
||||||
|
rmdir %{buildroot}%{_prefix}%{_sysconfdir}/bash_completion.d
|
||||||
|
|
||||||
# these are provided as separate packages
|
# these are provided as separate packages
|
||||||
rm -rf %{buildroot}%{_libdir}/%{name}/{odf,cherrypy,pyPdf,encutils,cssutils}
|
rm -rf %{buildroot}%{_libdir}/%{name}/{odf,cherrypy,pyPdf,encutils,cssutils}
|
||||||
|
@ -166,226 +233,24 @@ rm -rf %{buildroot}%{_libdir}/%{name}/cal/utils/genshi
|
||||||
rm -rf %{buildroot}%{_libdir}/%{name}/cal/trac
|
rm -rf %{buildroot}%{_libdir}/%{name}/cal/trac
|
||||||
|
|
||||||
# link to system fonts after we have deleted the non-free ones
|
# link to system fonts after we have deleted the non-free ones
|
||||||
# http://bugs.calibre-ebook.com/ticket/3832
|
# http://oldbugs.calibre-ebook.com/ticket/3832
|
||||||
mkdir -p %{buildroot}%{_datadir}/%{name}/fonts/prs500/
|
mkdir -p %{buildroot}%{_datadir}/%{name}/fonts/prs500
|
||||||
ln -s %{_datadir}/fonts/TTF/liberation/LiberationSans-Regular.ttf \
|
ln -s %{_datadir}/fonts/TTF/liberation/LiberationSans-Regular.ttf \
|
||||||
%{buildroot}%{_datadir}/%{name}/fonts/prs500/tt0003m_.ttf
|
%{buildroot}%{_datadir}/%{name}/fonts/prs500/tt0003m_.ttf
|
||||||
ln -s %{_datadir}/fonts/TTF/liberation/LiberationSerif-Regular.ttf \
|
ln -s %{_datadir}/fonts/TTF/liberation/LiberationSerif-Regular.ttf \
|
||||||
%{buildroot}%{_datadir}/%{name}/fonts/prs500/tt0011m_.ttf
|
%{buildroot}%{_datadir}/%{name}/fonts/prs500/tt0011m_.ttf
|
||||||
ln -s %{_datadir}/fonts/TTF/liberation/LiberationMono-Regular.ttf \
|
ln -s %{_datadir}/fonts/TTF/liberation/LiberationMono-Regular.ttf \
|
||||||
%{buildroot}%{_datadir}/%{name}/fonts/prs500/tt0419m_.ttf
|
%{buildroot}%{_datadir}/%{name}/fonts/prs500/tt0419m_.ttf
|
||||||
|
|
||||||
# man pages
|
|
||||||
#mv %{buildroot}%{_datadir}/%{name}/man %{buildroot}%{_mandir}
|
|
||||||
|
|
||||||
# move locales
|
|
||||||
# localization has changed since calibre-0.8.5
|
# localization has changed since calibre-0.8.5
|
||||||
# locale.zip is treated internally at runtime
|
# locale.zip is treated internally at runtime
|
||||||
# so the traditional locale fixes are moot.
|
# so the traditional locale fixes are moot.
|
||||||
# locales should still be looked for in the proper place
|
# locales should still be looked for in the proper place
|
||||||
# but under the new localization zip-based schema
|
# but under the new localization zip-based schema
|
||||||
%{__sed} -i -e 's:localization/locale.zip:%{_datadir}/%{name}/localization/locales.zip:' %{buildroot}%{_libdir}/%{name}/%{name}/utils/localization.py
|
%{__sed} -i -e 's:localization/locale.zip:%{_datadir}/%{name}/localization/locales.zip:' %{buildroot}%{_libdir}/%{name}/%{name}/utils/localization.py
|
||||||
|
|
||||||
|
#% find_lang %{name} --with-kde --all-name
|
||||||
|
|
||||||
%{__rm} -f %{buildroot}%{_bindir}/%{name}-uninstall
|
%{__rm} -f %{buildroot}%{_bindir}/%{name}-uninstall
|
||||||
|
|
||||||
%files
|
cp -a %{SOURCE2} %{buildroot}%{_bindir}/
|
||||||
%doc COPYRIGHT LICENSE Changelog.yaml
|
|
||||||
%{_bindir}/*
|
|
||||||
%config(noreplace) %{_sysconfdir}/bash_completion.d/%{name}
|
|
||||||
%{_libdir}/%{name}
|
|
||||||
%{_datadir}/%{name}
|
|
||||||
%{_datadir}/pixmaps/*
|
|
||||||
%{_datadir}/applications/*
|
|
||||||
%{_datadir}/mime/packages/*
|
|
||||||
%{_datadir}/icons/hicolor/scalable/mimetypes/*
|
|
||||||
%{_datadir}/icons/hicolor/scalable/apps/*
|
|
||||||
%{_datadir}/icons/hicolor/256x256/apps/*.png
|
|
||||||
#%{_mandir}/man1/*
|
|
||||||
%{python_sitelib}/init_calibre.py*
|
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
|
||||||
* Mon Jul 16 2012 Alexander Khrukin <akhrukin@mandriva.org> 0.8.60-1
|
|
||||||
+ Revision: 809808
|
|
||||||
- version update 0.8.60
|
|
||||||
- version update 0.8.53
|
|
||||||
- version update 0.8.48
|
|
||||||
|
|
||||||
* Mon Mar 26 2012 Alexander Khrukin <akhrukin@mandriva.org> 0.8.44-1
|
|
||||||
+ Revision: 787083
|
|
||||||
- version update 0.8.44
|
|
||||||
|
|
||||||
* Tue Mar 13 2012 Alexander Khrukin <akhrukin@mandriva.org> 0.8.42-1
|
|
||||||
+ Revision: 784663
|
|
||||||
- version update 0.8.42
|
|
||||||
- version update 0.8.41
|
|
||||||
|
|
||||||
* Sat Feb 18 2012 Alexander Khrukin <akhrukin@mandriva.org> 0.8.40-1
|
|
||||||
+ Revision: 777055
|
|
||||||
- version update 0.8.40
|
|
||||||
- version update 0.8.38
|
|
||||||
|
|
||||||
* Sun Jan 29 2012 Alexander Khrukin <akhrukin@mandriva.org> 0.8.37-1
|
|
||||||
+ Revision: 769558
|
|
||||||
- version update 0.8.37
|
|
||||||
|
|
||||||
* Sat Jan 14 2012 Alexander Khrukin <akhrukin@mandriva.org> 0.8.35-1
|
|
||||||
+ Revision: 760865
|
|
||||||
- version update 0.8.35
|
|
||||||
|
|
||||||
+ Rafael da Veiga Cabral <cabral@mandriva.com>
|
|
||||||
- add poppler 0.18.1 build compatibilty
|
|
||||||
|
|
||||||
+ Matthew Dawkins <mattydaw@mandriva.org>
|
|
||||||
- added some spec changes from mga to fix build
|
|
||||||
- rediffed calibre-no-update.patch
|
|
||||||
- rediffed manpage patch
|
|
||||||
- new version 0.8.18
|
|
||||||
|
|
||||||
* Sun Jun 05 2011 Funda Wang <fwang@mandriva.org> 0.7.57-2
|
|
||||||
+ Revision: 682812
|
|
||||||
- rebuild for new icu
|
|
||||||
|
|
||||||
+ Götz Waschk <waschk@mandriva.org>
|
|
||||||
- bump pyqt4 dep
|
|
||||||
- depend on python 2.6 only
|
|
||||||
|
|
||||||
* Tue Apr 26 2011 Götz Waschk <waschk@mandriva.org> 0.7.57-1
|
|
||||||
+ Revision: 659245
|
|
||||||
- update to new version 0.7.57
|
|
||||||
- reduce qt4 deps
|
|
||||||
|
|
||||||
* Mon Mar 28 2011 Matthew Dawkins <mattydaw@mandriva.org> 0.7.52-1
|
|
||||||
+ Revision: 648705
|
|
||||||
- added BR icu-devel
|
|
||||||
- fixed build
|
|
||||||
- rediff p1 for no-update
|
|
||||||
- new version 0.7.52
|
|
||||||
- removed explicit python BR
|
|
||||||
- bumped python-devel version requirement
|
|
||||||
|
|
||||||
* Fri Mar 11 2011 Funda Wang <fwang@mandriva.org> 0.7.32-3
|
|
||||||
+ Revision: 643736
|
|
||||||
- rebuild for new poppler
|
|
||||||
|
|
||||||
* Thu Dec 30 2010 Funda Wang <fwang@mandriva.org> 0.7.32-2mdv2011.0
|
|
||||||
+ Revision: 626152
|
|
||||||
- rebuild for new poppler
|
|
||||||
|
|
||||||
* Sat Dec 04 2010 Tomas Kindl <supp@mandriva.org> 0.7.32-1mdv2011.0
|
|
||||||
+ Revision: 609311
|
|
||||||
- update to 0.7.32
|
|
||||||
|
|
||||||
* Sun Nov 28 2010 Ahmad Samir <ahmadsamir@mandriva.org> 0.7.31-1mdv2011.0
|
|
||||||
+ Revision: 602480
|
|
||||||
- update to 0.7.31
|
|
||||||
- Make python-fix patch detect the version of python used in the chroot; this way
|
|
||||||
one patch can be used for cooker and backports
|
|
||||||
|
|
||||||
* Sun Nov 14 2010 Ahmad Samir <ahmadsamir@mandriva.org> 0.7.27-1mdv2011.0
|
|
||||||
+ Revision: 597480
|
|
||||||
- Update to 0.7.27
|
|
||||||
|
|
||||||
* Mon Nov 01 2010 Ahmad Samir <ahmadsamir@mandriva.org> 0.7.26-1mdv2011.0
|
|
||||||
+ Revision: 591686
|
|
||||||
- update to 0.7.26
|
|
||||||
- rediff python-fix patch. Now there're two patches, one for python-2.7 for distro
|
|
||||||
>= 2011.0 and another for python-2.6 for older stable distros (so that it can
|
|
||||||
be backported).
|
|
||||||
|
|
||||||
* Tue Oct 26 2010 Ahmad Samir <ahmadsamir@mandriva.org> 0.7.24-1mdv2011.0
|
|
||||||
+ Revision: 589452
|
|
||||||
- update to 0.7.24
|
|
||||||
|
|
||||||
* Tue Oct 12 2010 Ahmad Samir <ahmadsamir@mandriva.org> 0.7.23-1mdv2011.0
|
|
||||||
+ Revision: 585054
|
|
||||||
- update to 0.7.23
|
|
||||||
|
|
||||||
* Thu Oct 07 2010 Matthew Dawkins <mattydaw@mandriva.org> 0.7.22-1mdv2011.0
|
|
||||||
+ Revision: 583906
|
|
||||||
- new version 0.7.22
|
|
||||||
|
|
||||||
* Sat Oct 02 2010 Ahmad Samir <ahmadsamir@mandriva.org> 0.7.21-1mdv2011.0
|
|
||||||
+ Revision: 582432
|
|
||||||
- update to 0.7.21
|
|
||||||
|
|
||||||
* Tue Sep 28 2010 Ahmad Samir <ahmadsamir@mandriva.org> 0.7.20-1mdv2011.0
|
|
||||||
+ Revision: 581851
|
|
||||||
- update to 0.7.20
|
|
||||||
|
|
||||||
* Sat Sep 18 2010 Ahmad Samir <ahmadsamir@mandriva.org> 0.7.19-1mdv2011.0
|
|
||||||
+ Revision: 579439
|
|
||||||
- update to 0.7.19
|
|
||||||
|
|
||||||
* Sun Sep 12 2010 Ahmad Samir <ahmadsamir@mandriva.org> 0.7.18-1mdv2011.0
|
|
||||||
+ Revision: 577831
|
|
||||||
- update to 0.7.18
|
|
||||||
- icons are now .png
|
|
||||||
|
|
||||||
* Mon Sep 06 2010 Buchan Milne <bgmilne@mandriva.org> 0.7.17-1mdv2011.0
|
|
||||||
+ Revision: 576247
|
|
||||||
- update to new version 0.7.17
|
|
||||||
|
|
||||||
* Wed Aug 25 2010 Ahmad Samir <ahmadsamir@mandriva.org> 0.7.15-1mdv2011.0
|
|
||||||
+ Revision: 573287
|
|
||||||
- update to 0.7.15 (and in the way rebuild for new podofo)
|
|
||||||
|
|
||||||
* Sun Aug 22 2010 Funda Wang <fwang@mandriva.org> 0.7.14-2mdv2011.0
|
|
||||||
+ Revision: 571800
|
|
||||||
- rebuild for new poppler
|
|
||||||
|
|
||||||
+ Tomas Kindl <supp@mandriva.org>
|
|
||||||
- bump to 0.7.14
|
|
||||||
|
|
||||||
* Sun Aug 08 2010 Ahmad Samir <ahmadsamir@mandriva.org> 0.7.13-1mdv2011.0
|
|
||||||
+ Revision: 567781
|
|
||||||
- update to 0.7.13
|
|
||||||
|
|
||||||
* Fri Aug 06 2010 Ahmad Samir <ahmadsamir@mandriva.org> 0.7.12-1mdv2011.0
|
|
||||||
+ Revision: 567146
|
|
||||||
- update to 0.7.12
|
|
||||||
|
|
||||||
* Thu Aug 05 2010 Funda Wang <fwang@mandriva.org> 0.7.10-3mdv2011.0
|
|
||||||
+ Revision: 566253
|
|
||||||
- rebuild for new poppler
|
|
||||||
|
|
||||||
* Fri Jul 30 2010 Ahmad Samir <ahmadsamir@mandriva.org> 0.7.10-2mdv2011.0
|
|
||||||
+ Revision: 563265
|
|
||||||
- update manpage and no-update patches (from Fedora)
|
|
||||||
- drop SOURCE1 and python-cssutils hack, it's not needed anymore as
|
|
||||||
python-cssutils has been updated to 0.9.7b3
|
|
||||||
- build with optflags
|
|
||||||
- delete mimeinfo.cache too
|
|
||||||
|
|
||||||
+ Juan Luis Baptiste <juancho@mandriva.org>
|
|
||||||
- Updated to 0.7.10, redo diff calibre-no-update.patch.
|
|
||||||
|
|
||||||
* Sat Jul 10 2010 Funda Wang <fwang@mandriva.org> 0.6.54-2mdv2011.0
|
|
||||||
+ Revision: 549995
|
|
||||||
- rebuild for new imagemagick
|
|
||||||
|
|
||||||
+ Tomas Kindl <supp@mandriva.org>
|
|
||||||
- various minor SPEC fixes and clean-ups
|
|
||||||
|
|
||||||
+ Juan Luis Baptiste <juancho@mandriva.org>
|
|
||||||
- Updated to 0.6.54.
|
|
||||||
|
|
||||||
* Tue Apr 20 2010 Tomas Kindl <supp@mandriva.org> 0.6.48-1mdv2010.1
|
|
||||||
+ Revision: 537127
|
|
||||||
- update to 0.6.48
|
|
||||||
- fix python-odf and python-django-tagging dependency'
|
|
||||||
|
|
||||||
* Tue Apr 20 2010 Tomas Kindl <supp@mandriva.org> 0.6.47-3mdv2010.1
|
|
||||||
+ Revision: 536983
|
|
||||||
- fix incorrect odf-py require & bump release
|
|
||||||
- fix incorrect odf-py require
|
|
||||||
|
|
||||||
* Mon Apr 19 2010 Tomas Kindl <supp@mandriva.org> 0.6.47-2mdv2010.1
|
|
||||||
+ Revision: 536555
|
|
||||||
- enable PoDoFo dependency as we have PoDoFo in MDV now
|
|
||||||
|
|
||||||
* Sun Apr 18 2010 Tomas Kindl <supp@mandriva.org> 0.6.47-1mdv2010.1
|
|
||||||
+ Revision: 536529
|
|
||||||
- initial import containing all pertinent fixes to ensure it will build on Mandriva...
|
|
||||||
- create calibre
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue