summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2025-01-05 12:02:16 +0000
committerCoprDistGit <infra@openeuler.org>2025-01-05 12:02:16 +0000
commit6b833eac43a79bf46c911bedbc96a8f7fef252f7 (patch)
tree443e01091cf850dfb9fa49ba770a54443057a006
parent2a00aa69068c6c9d136b5522ab9cad8a58bf9326 (diff)
automatic import of qscintilla
-rw-r--r--qscintilla.spec10
1 files changed, 7 insertions, 3 deletions
diff --git a/qscintilla.spec b/qscintilla.spec
index c398473..87ddbc3 100644
--- a/qscintilla.spec
+++ b/qscintilla.spec
@@ -69,6 +69,7 @@ QMAKEFEATURES=`pwd`/Qt5/features; export QMAKEFEATURES
pushd designer-Qt4Qt5
%{qmake_qt5} designer.pro INCLUDEPATH+=../Qt4Qt5 LIBS+=-L../Qt4Qt5
%make_build
+popd
pushd Python
%{__python3} \
@@ -79,12 +80,13 @@ pushd Python
cat Makefile
cat Qsci/Makefile
%make_build QMAKE_LFLAGS_RELEASE=%{_qt5_ldflags} QMAKE_CXXFLAGS_RELEASE=%{_qt5_cxxflags}
+popd
%install
-make -C Qt5 install INSTALL_ROOT=%{buildroot}
+make -C Qt4Qt5 install INSTALL_ROOT=%{buildroot}
ln -s libqscintilla2_qt5.so %{buildroot}%{_qt5_libdir}/libqscintilla2-qt5.so
-make -C designer-Qt5 install INSTALL_ROOT=%{buildroot}
-make -C Python3-qt5 install DESTDIR=%{buildroot} INSTALL_ROOT=%{buildroot}
+make -C designer-Qt4Qt5 install INSTALL_ROOT=%{buildroot}
+make -C Python install DESTDIR=%{buildroot} INSTALL_ROOT=%{buildroot}
test -x %{buildroot}%{python3_sitearch}/PyQt5/Qsci.so || \
chmod a+x %{buildroot}%{python3_sitearch}/PyQt5/Qsci.so
@@ -115,6 +117,8 @@ grep "%{_qt5_translationdir}" qscintilla.lang > qscintilla-qt5.lang
%changelog
* Sun Jan 05 2025 Funda Wang <fundawang@yeah.net> - 2.11.6-1
- update to 2.11.6
+- drop redunctant conditions regarding qt5 and python3, as we only provide
+ single flavour for now
* Fri Feb 18 2022 liwu <liwu13@huawei.com> - 2.11.2-2
- Fix build error of qscintilla