[calibre/f17] rebuild (sip)

Rex Dieter rdieter at fedoraproject.org
Fri Mar 8 22:58:31 UTC 2013


commit 38f42cc2683d94e839b65f1a28e17749859257e2
Author: Rex Dieter <rdieter at math.unl.edu>
Date:   Fri Mar 8 16:58:06 2013 -0600

    rebuild (sip)

 calibre-pyqt496.patch |   15 +++++++++++++++
 calibre.spec          |    7 ++++++-
 2 files changed, 21 insertions(+), 1 deletions(-)
---
diff --git a/calibre-pyqt496.patch b/calibre-pyqt496.patch
new file mode 100644
index 0000000..a995af7
--- /dev/null
+++ b/calibre-pyqt496.patch
@@ -0,0 +1,15 @@
+=== modified file 'src/calibre/gui2/__init__.py'
+--- src/calibre/gui2/__init__.py	2012-11-26 06:10:52 +0000
++++ src/calibre/gui2/__init__.py	2012-12-15 18:45:46 +0000
+@@ -1034,7 +1034,9 @@
+             dat = dat.replace('from widgets import', 'from calibre.gui2.widgets import')
+             dat = dat.replace('from convert.xpath_wizard import',
+                 'from calibre.gui2.convert.xpath_wizard import')
+-            dat = re.compile(r'QtGui.QApplication.translate\(.+?,\s+"(.+?)(?<!\\)",.+?\)', re.DOTALL).sub(r'_("\1")', dat)
++            dat = re.sub(r'^ {4}def _translate\(.+:\s+return.*$', '    pass', dat,
++                         flags=re.M)
++            dat = re.compile(r'(?:QtGui.QApplication.translate|(?<!def )_translate)\(.+?,\s+"(.+?)(?<!\\)",.+?\)', re.DOTALL).sub(r'_("\1")', dat)
+             dat = dat.replace('_("MMM yyyy")', '"MMM yyyy"')
+             dat = pat.sub(sub, dat)
+             dat = dat.replace('from QtWebKit.QWebView import QWebView',
+
diff --git a/calibre.spec b/calibre.spec
index fb6cf60..6d2552a 100644
--- a/calibre.spec
+++ b/calibre.spec
@@ -2,7 +2,7 @@
 
 Name:           calibre
 Version:        0.9.6
-Release:        2%{?dist}
+Release:        2%{?dist}.1
 Summary:        E-book converter and library management
 Group:          Applications/Multimedia
 License:        GPLv3
@@ -20,6 +20,7 @@ Source0:        %{name}-%{version}-nofonts.tar.xz
 Source1:        generate-tarball.sh
 Source2:        calibre-mount-helper
 Patch1:         %{name}-no-update.patch
+Patch2:         calibre-pyqt496.patch
 
 BuildRequires:  python >= 2.6
 BuildRequires:  python-devel >= 2.6
@@ -87,6 +88,7 @@ RTF, TXT, PDF and LRS.
 
 # don't check for new upstream version (that's what packagers do)
 %patch1 -p1 -b .no-update
+%patch2 -p0 -b .pyqt486
 
 # dos2unix newline conversion
 %{__sed} -i 's/\r//' src/calibre/web/feeds/recipes/*
@@ -277,6 +279,9 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
 %{python_sitelib}/init_calibre.py*
 
 %changelog
+* Fri Mar 08 2013 Rex Dieter <rdieter at fedoraproject.org> 0.9.6-2.1
+- rebuild (sip)
+
 * Sun Nov 18 2012 Kevin Fenzi <kevin at scrye.com> 0.9.6-2
 - Another better approach to unbundling feedparser. 
 


More information about the scm-commits mailing list