--- /dev/null
+--- 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
+ }
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}
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
%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
%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)