mirror of
https://abf.rosa.ru/djam/calibre.git
synced 2025-02-24 16:12:47 +00:00
LOG: update to 1.3.0 for mrb
This commit is contained in:
parent
7767beff8c
commit
c6051d6610
4 changed files with 64 additions and 129 deletions
4
.abf.yml
4
.abf.yml
|
@ -1,3 +1,3 @@
|
|||
sources:
|
||||
calibre-1.0.0.tar.xz: ea5829e2d763afb3e2abfa675f6cb2bffbdbe4ce
|
||||
calibre-1.2.0.tar.xz: 833db1a75ed0e012962dfdbbe86d29be745b0ac9
|
||||
|
||||
calibre-1.3.0.tar.xz: c6acea5a8c9b045d01ba690ac8755de0028852d6
|
||||
|
|
|
@ -1,35 +0,0 @@
|
|||
--- calibre/src/calibre/linux.py~ 2011-09-09 10:46:16.000000000 -0600
|
||||
+++ calibre/src/calibre/linux.py 2011-09-13 12:41:50.307253773 -0600
|
||||
@@ -318,7 +318,7 @@
|
||||
continue
|
||||
parser = parser()
|
||||
raw = create_man_page(prog, parser)
|
||||
- if isbsd:
|
||||
+ if isbsd or islinux:
|
||||
manfile = os.path.join(manpath, prog+'.1')
|
||||
else:
|
||||
manfile = os.path.join(manpath, prog+'.1'+__appname__+'.bz2')
|
||||
--- calibre/src/calibre/utils/help2man.py~ 2011-09-09 10:46:16.000000000 -0600
|
||||
+++ calibre/src/calibre/utils/help2man.py 2011-09-13 12:45:17.056503626 -0600
|
||||
@@ -4,7 +4,7 @@
|
||||
__docformat__ = 'restructuredtext en'
|
||||
|
||||
import time, bz2
|
||||
-from calibre.constants import isbsd
|
||||
+from calibre.constants import isbsd, islinux
|
||||
|
||||
from calibre.constants import __version__, __appname__, __author__
|
||||
|
||||
@@ -58,9 +58,9 @@
|
||||
lines = [x if isinstance(x, unicode) else unicode(x, 'utf-8', 'replace') for
|
||||
x in lines]
|
||||
|
||||
- if not isbsd:
|
||||
- return bz2.compress((u'\n'.join(lines)).encode('utf-8'))
|
||||
- else:
|
||||
+ if isbsd or islinux:
|
||||
return (u'\n'.join(lines)).encode('utf-8')
|
||||
+ else:
|
||||
+ return bz2.compress((u'\n'.join(lines)).encode('utf-8'))
|
||||
|
||||
|
|
@ -1,23 +0,0 @@
|
|||
--- calibre/src/calibre/gui2/update.py~ 2011-09-09 10:46:16.000000000 -0600
|
||||
+++ calibre/src/calibre/gui2/update.py 2011-09-13 13:39:52.629503202 -0600
|
||||
@@ -120,13 +120,13 @@
|
||||
|
||||
class UpdateMixin(object):
|
||||
|
||||
- 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()
|
||||
+ #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()
|
||||
|
||||
def recalc_update_label(self, number_of_plugin_updates):
|
||||
self.update_found('%s%s%d'%(self.last_newest_calibre_version, VSEP,
|
127
calibre.spec
127
calibre.spec
|
@ -1,76 +1,72 @@
|
|||
Summary: E-book converter and library management
|
||||
Name: calibre
|
||||
Version: 1.2.0
|
||||
Release: 1
|
||||
License: GPLv3+
|
||||
Group: Office
|
||||
URL: http://calibre-ebook.com/
|
||||
Source0: http://freefr.dl.sourceforge.net/project/%{name}/%{version}/%{name}-%{version}.tar.xz
|
||||
Source2: calibre-mount-helper
|
||||
Patch1: calibre-no-update-0.8.6.patch
|
||||
Patch3: calibre-0.7.27-python-fix.patch
|
||||
Patch4: calibre-python2-env-fix.patch
|
||||
Patch5: calibre-web-control.patch
|
||||
%define debug_package %{nil}
|
||||
%define distsuffix mrb
|
||||
|
||||
# see http://calibre-ebook.com/download_linux
|
||||
# for mininal requires
|
||||
BuildRequires: chrpath
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: python >= 2.7
|
||||
BuildRequires: python-apsw
|
||||
BuildRequires: python-beautifulsoup >= 3.0.5
|
||||
BuildRequires: python-cherrypy >= 3.2.2
|
||||
BuildRequires: python-cssutils >= 0.9.9
|
||||
BuildRequires: python-dateutil >= 1.4.1
|
||||
BuildRequires: python-imaging >= 1.1.6
|
||||
BuildRequires: python-lxml
|
||||
BuildRequires: python-mechanize >= 0.1.11
|
||||
Name: calibre
|
||||
Version: 1.3.0
|
||||
Release: 1
|
||||
Summary: E-book converter and library management
|
||||
Group: Office
|
||||
License: GPLv3
|
||||
URL: http://calibre-ebook.com/
|
||||
Source0: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
|
||||
Source2: %{name}-mount-helper
|
||||
Patch1: %{name}-no-update-0.8.6.patch
|
||||
Patch3: %{name}-0.7.27-python-fix.patch
|
||||
Patch4: %{name}-python2-env-fix.patch
|
||||
Patch5: %{name}-web-control.patch
|
||||
BuildRequires: chrpath
|
||||
BuildRequires: python >= 2.6
|
||||
BuildRequires: python-devel >= 2.6
|
||||
BuildRequires: imagemagick-devel
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: unzip
|
||||
BuildRequires: xdg-utils >= 1.0.3
|
||||
BuildRequires: chmlib-devel >= 0.40
|
||||
BuildRequires: libwmf-devel >= 0.2.8
|
||||
BuildRequires: podofo-devel >= 0.8.2
|
||||
BuildRequires: python-qt4-devel >= 4.9.6
|
||||
BuildRequires: qt4-devel
|
||||
BuildRequires: qt4-devel-private
|
||||
BuildRequires: pkgconfig(icu-i18n)
|
||||
BuildRequires: pkgconfig(ImageMagick)
|
||||
BuildRequires: pkgconfig(libmtp) >= 1.1.5
|
||||
BuildRequires: python-qt4-devel
|
||||
BuildRequires: pkgconfig(poppler-qt4) >= 0.12
|
||||
BuildRequires: pkgconfig(poppler-glib)
|
||||
BuildRequires: pkgconfig(python) >= 2.7
|
||||
BuildRequires: pkgconfig(sqlite3)
|
||||
|
||||
Requires: imagemagick >= 6.5.9
|
||||
Requires: python-apsw
|
||||
Requires: python-beautifulsoup >= 3.0.5
|
||||
Requires: python-cherrypy >= 3.2.2
|
||||
Requires: python-cssselect >= 0.6.1
|
||||
Requires: python-cssutils >= 0.9.9
|
||||
Requires: python-dateutil >= 1.4.1
|
||||
Requires: python-django-tagging
|
||||
Requires: python-genshi
|
||||
Requires: python-imaging >= 1.1.6
|
||||
Requires: python-lxml
|
||||
Requires: python-mechanize >= 0.1.11
|
||||
Requires: python-netifaces
|
||||
Requires: python-odf
|
||||
Requires: python-pypdf
|
||||
BuildRequires: podofo-devel
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: python-mechanize
|
||||
BuildRequires: python-lxml
|
||||
BuildRequires: python-dateutil
|
||||
BuildRequires: python-six
|
||||
BuildRequires: python-imaging
|
||||
BuildRequires: python-apsw
|
||||
BuildRequires: xdg-utils
|
||||
BuildRequires: python-beautifulsoup
|
||||
BuildRequires: chmlib-devel
|
||||
BuildRequires: python-cssutils >= 0.9.9
|
||||
BuildRequires: sqlite3-devel
|
||||
BuildRequires: icu-devel
|
||||
BuildRequires: unzip
|
||||
BuildRequires: libwmf-devel
|
||||
BuildRequires: libmtp-devel
|
||||
Requires: python-qt4
|
||||
Requires: python-pypdf
|
||||
Requires: python-cherrypy
|
||||
Requires: python-cssutils
|
||||
Requires: python-cssselect
|
||||
Requires: imagemagick
|
||||
Requires: python-odf
|
||||
Requires: python-django-tagging
|
||||
Requires: python-lxml
|
||||
Requires: python-imaging
|
||||
Requires: python-mechanize
|
||||
Requires: python-dateutil
|
||||
Requires: python-genshi
|
||||
Requires: python-beautifulsoup
|
||||
Requires: python-netifaces
|
||||
Requires: poppler
|
||||
# Require the packages of the files which are symlinked by calibre
|
||||
Requires: fonts-ttf-liberation
|
||||
# E-mail functionality requires this package
|
||||
# see https://bugs.launchpad.net/calibre/+bug/739073
|
||||
Requires: python-dnspython >= 1.6.0
|
||||
Requires: python-dnspython
|
||||
Requires: python-qt4-help
|
||||
|
||||
%description
|
||||
Calibre is meant to be a complete e-library solution. It includes library
|
||||
management, format conversion, news feeds to ebook conversion as well as
|
||||
e-book reader sync features.
|
||||
|
||||
Calibre is primarily a ebook cataloging program. It manages your ebook
|
||||
Calibre is primarily a ebook cataloging program. It manages your e-book
|
||||
collection for you. It is designed around the concept of the logical book,
|
||||
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
|
||||
|
@ -80,7 +76,6 @@ Supported input formats are: MOBI, LIT, PRC, EPUB, CHM, ODT, HTML, CBR, CBZ,
|
|||
RTF, TXT, PDF and LRS.
|
||||
|
||||
%files
|
||||
#-f %{name}.lang
|
||||
%doc COPYRIGHT LICENSE Changelog.yaml
|
||||
%{_bindir}/calibre
|
||||
%{_bindir}/calibre-complete
|
||||
|
@ -95,7 +90,6 @@ RTF, TXT, PDF and LRS.
|
|||
%{_bindir}/ebook-device
|
||||
%{_bindir}/ebook-meta
|
||||
%{_bindir}/ebook-viewer
|
||||
#{_bindir}/epub-fix
|
||||
%{_bindir}/ebook-polish
|
||||
%{_bindir}/fetch-ebook-metadata
|
||||
%{_bindir}/lrf2lrs
|
||||
|
@ -250,14 +244,9 @@ ln -s %{_datadir}/fonts/TTF/liberation/LiberationSerif-Regular.ttf \
|
|||
ln -s %{_datadir}/fonts/TTF/liberation/LiberationMono-Regular.ttf \
|
||||
%{buildroot}%{_datadir}/%{name}/fonts/prs500/tt0419m_.ttf
|
||||
|
||||
# localization has changed since calibre-0.8.5
|
||||
# locale.zip is treated internally at runtime
|
||||
# so the traditional locale fixes are moot.
|
||||
# locales should still be looked for in the proper place
|
||||
# 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
|
||||
|
||||
#% find_lang %{name} --with-kde --all-name
|
||||
# delete locales, calibre stores them in a zip file now
|
||||
rm -rf %{buildroot}%{_datadir}/%{name}/localization/locales/
|
||||
|
||||
rm -f %{buildroot}%{_bindir}/%{name}-uninstall
|
||||
|
||||
|
@ -265,6 +254,10 @@ install -m 0755 %{SOURCE2} %{buildroot}%{_bindir}/
|
|||
|
||||
# script-without-shebang
|
||||
find %{buildroot}%{_libdir}/%{name}/chardet -name '*.py' -exec sed -i -e '1i#!/usr/bin/python' {} \;
|
||||
# wrong-script-interpreter
|
||||
find %{buildroot}%{_libdir}/%{name}/calibre/ebooks/markdown/extensions/meta.py -exec sed -i -e '1i#!/usr/bin/python' {} \;
|
||||
#perl -pi -e "s|#!/usr/bin/python|#!/usr/bin/env python|" %{buildroot}%{_libdir}/calibre/calibre/ebooks/markdown/extensions/meta.py
|
||||
|
||||
|
||||
# non-executable-script
|
||||
chmod a+x %{buildroot}%{_libdir}/%{name}/qtcurve/test_rendering.py
|
||||
|
|
Loading…
Add table
Reference in a new issue