From 1dd6bff8d68cb00d8e87bf8f87132a4d9afd0186 Mon Sep 17 00:00:00 2001 From: Jakub Bogusz Date: Thu, 20 Nov 2014 21:47:29 +0100 Subject: [PATCH] - added mkspecs-dir patch, package qt5 mkspecs files where expected --- qscintilla2-mkspecs-dir.patch | 11 +++++++++++ qscintilla2.spec | 11 ++++++++--- 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 qscintilla2-mkspecs-dir.patch diff --git a/qscintilla2-mkspecs-dir.patch b/qscintilla2-mkspecs-dir.patch new file mode 100644 index 0000000..362b205 --- /dev/null +++ b/qscintilla2-mkspecs-dir.patch @@ -0,0 +1,11 @@ +--- QScintilla-gpl-2.8.4/Qt4Qt5/qscintilla.pro.orig 2014-11-20 20:54:22.727494808 +0100 ++++ QScintilla-gpl-2.8.4/Qt4Qt5/qscintilla.pro 2014-11-20 21:01:46.424142856 +0100 +@@ -82,7 +82,7 @@ + INSTALLS += header trans qsci target + + greaterThan(QT_MAJOR_VERSION, 3) { +- features.path = $$[QT_INSTALL_DATA]/mkspecs/features ++ features.path = $$[QMAKE_MKSPECS]/features + features.files = $$PWD/features/qscintilla2.prf + INSTALLS += features + } diff --git a/qscintilla2.spec b/qscintilla2.spec index 83e4e8f..6791d17 100644 --- a/qscintilla2.spec +++ b/qscintilla2.spec @@ -28,6 +28,7 @@ Patch1: %{name}-multiqt.patch Patch2: %{name}-make.patch Patch3: %{name}-outoftree.patch Patch4: %{name}-qt5.patch +Patch5: %{name}-mkspecs-dir.patch URL: http://www.riverbankcomputing.co.uk/software/qscintilla/ %if %{with python2} BuildRequires: python-sip-devel >= 2:%{sip_ver} @@ -65,7 +66,9 @@ BuildRequires: python-PyQt5 >= %{pyqt5_ver} BuildRequires: python3-PyQt5 >= %{pyqt5_ver} %endif %endif -BuildConflicts: qscintilla2-devel +BuildConflicts: qscintilla2-devel < %{version} +%{?with_qt4:BuildConflicts: qscintilla2-qt4-devel < %{version}} +%{?with_qt5:BuildConflicts: qscintilla2-qt5-devel < %{version}} BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %define _sipfilesdir %{_datadir}/sip @@ -288,12 +291,14 @@ Wiązania Pythona 3 dla komponentu QScintilla2 (wersja dla PyQt5). %patch2 -p1 %patch3 -p1 %patch4 -p1 +%patch5 -p1 %build for qt in %{?with_qt4:qt4} %{?with_qt5:qt5} ; do install -d build-${qt}/{Qt4Qt5,designer-Qt4Qt5,Python2,Python3} cd build-${qt}/Qt4Qt5 -qmake-${qt} ../../Qt4Qt5/qscintilla.pro +qmake-${qt} ../../Qt4Qt5/qscintilla.pro \ + $(test "$qt" = "qt4" || echo QMAKE_MKSPECS=%{_libdir}/$qt/mkspecs) %{__make} cd ../designer-Qt4Qt5 qmake-${qt} ../../designer-Qt4Qt5/designer.pro @@ -449,7 +454,7 @@ rm -rf $RPM_BUILD_ROOT %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/libqscintilla2-qt5.so %{_includedir}/qt5/Qsci -%{_datadir}/qt5/mkspecs/features/qscintilla2.prf +%{_libdir}/qt5/mkspecs/features/qscintilla2.prf %files -n Qt5Designer-plugin-%{name} %defattr(644,root,root,755) -- 2.44.0