]> git.pld-linux.org Git - packages/qscintilla2.git/commitdiff
- fix failure to link python* packages to the lib (Closes: debian #751239) auto/th/qscintilla2-2.8.4-3
authorJan Rękorajski <baggins@pld-linux.org>
Sun, 30 Nov 2014 19:56:17 +0000 (20:56 +0100)
committerJan Rękorajski <baggins@pld-linux.org>
Sun, 30 Nov 2014 19:56:17 +0000 (20:56 +0100)
- rel 3

qscintilla2-link.patch [new file with mode: 0644]
qscintilla2.spec

diff --git a/qscintilla2-link.patch b/qscintilla2-link.patch
new file mode 100644 (file)
index 0000000..999b229
--- /dev/null
@@ -0,0 +1,16 @@
+Index: qscintilla2-2.8.4+dfsg/Python/configure.py
+===================================================================
+--- qscintilla2-2.8.4+dfsg.orig/Python/configure.py    2014-09-21 22:26:07.110346928 -0400
++++ qscintilla2-2.8.4+dfsg/Python/configure.py 2014-09-21 22:26:07.106346928 -0400
+@@ -1440,7 +1440,10 @@
+     libs = qmake_config.get('LIBS')
+     if libs:
+-        pro.write('LIBS += %s\n' % libs)
++        if target_config.pyqt_package == 'PyQt5':
++            pro.write('LIBS += %s -lqscintilla2-qt5\n' % libs)
++        else:
++            pro.write('LIBS += %s -lqscintilla2-qt4\n' % libs)
+     if not opts.static:
+         pro.write('''
index 3c06a9c8d136f2fd1c1efa8f1a124cb014f81a78..e6d90e91913a5885a67215afa89445a846697dc6 100644 (file)
@@ -18,7 +18,7 @@ Summary:      QScintilla2 - a port to Qt of the Scintilla editing component
 Summary(pl.UTF-8):     QScintilla2 - port komponentu edytora Scintilla dla biblioteki Qt
 Name:          qscintilla2
 Version:       2.8.4
-Release:       2
+Release:       3
 License:       GPL v2 or GPL v3 with Riverbank GPL Exception v1.1
 Group:         X11/Libraries
 Source0:       http://downloads.sourceforge.net/pyqt/QScintilla-gpl-%{version}.tar.gz
@@ -29,6 +29,7 @@ Patch2:               %{name}-make.patch
 Patch3:                %{name}-outoftree.patch
 Patch4:                %{name}-qt5.patch
 Patch5:                %{name}-mkspecs-dir.patch
+Patch6:                %{name}-link.patch
 URL:           http://www.riverbankcomputing.co.uk/software/qscintilla/
 %if %{with python2}
 BuildRequires: python-sip-devel >= 2:%{sip_ver}
@@ -292,6 +293,7 @@ Wiązania Pythona 3 dla komponentu QScintilla2 (wersja dla PyQt5).
 %patch3 -p1
 %patch4 -p1
 %patch5 -p1
+%patch6 -p1
 
 %build
 for qt in %{?with_qt4:qt4} %{?with_qt5:qt5} ; do
This page took 0.103197 seconds and 4 git commands to generate.