2024-01-05 17:04:16 +01:00
|
|
|
%define pythonsip_ver %(sip -V)
|
|
|
|
Name: qscintilla
|
2024-01-05 17:04:16 +01:00
|
|
|
Version: 2.10.8
|
|
|
|
Release: 2mamba
|
2024-01-05 17:04:16 +01:00
|
|
|
Summary: A port to Qt of Neil Hodgson's Scintilla C++ editor control
|
|
|
|
Group: Development/Tools
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: http://www.riverbankcomputing.co.uk/software/qscintilla
|
2024-01-05 17:04:16 +01:00
|
|
|
Source: https://sourceforge.net/projects/pyqt/files/QScintilla2/QScintilla-%{version}/QScintilla_gpl-%{version}.tar.gz
|
2024-01-05 17:04:16 +01:00
|
|
|
Patch0: qscintilla-2.7.2-prepend-local-includes.patch
|
2024-01-05 17:04:16 +01:00
|
|
|
Patch1: qscintilla-2.10.8-designer-prepend-local-includes.patch
|
2024-01-05 17:04:16 +01:00
|
|
|
Patch2: qscintilla-2.8.4-python-build-from-objdir.patch
|
|
|
|
Patch3: qscintilla-2.8.4-python-qsci-link.patch
|
2024-01-05 17:04:16 +01:00
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libgcc
|
|
|
|
BuildRequires: libpython-devel
|
|
|
|
BuildRequires: libqt4-devel
|
|
|
|
BuildRequires: libstdc++6-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
#BuildRequires: qt-designer
|
|
|
|
# following build requirements are for Python bindings
|
|
|
|
# WARNING: do not parametrize python-sip-devel version or it will be useless for ports
|
2024-01-05 17:04:16 +01:00
|
|
|
BuildRequires: python-sip-devel >= 4.16.4
|
2024-01-05 17:04:16 +01:00
|
|
|
BuildRequires: PyQt4-devel
|
2024-01-05 17:04:16 +01:00
|
|
|
BuildRequires: PyQt5-devel
|
2024-01-05 17:04:16 +01:00
|
|
|
#BuildRequires: chrpath
|
2024-01-05 17:04:16 +01:00
|
|
|
%if "%?with_pyver"
|
|
|
|
BuildRequires: PyQt4-py%{with_pyver}
|
2024-01-05 17:04:16 +01:00
|
|
|
BuildRequires: PyQt5-py%{with_pyver}
|
2024-01-05 17:04:16 +01:00
|
|
|
%endif
|
2024-01-05 17:04:16 +01:00
|
|
|
Requires: python-sip = %{pythonsip_ver}
|
|
|
|
Provides: QScintilla2
|
|
|
|
Obsoletes: QScintilla2
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
|
|
|
|
%description
|
|
|
|
QScintilla is a port to Qt of the Scintilla editing component.
|
|
|
|
As well as features found in standard text editing components,
|
|
|
|
Scintilla includes features especially useful when editing and debugging source code:
|
|
|
|
* syntax styling with support for over 70 languages
|
|
|
|
* error indicators
|
|
|
|
* code completion
|
|
|
|
* call tips
|
|
|
|
* code folding
|
|
|
|
* margins can contain markers like those used in debuggers to indicate breakpoints and the current line.
|
|
|
|
* recordable macros
|
|
|
|
* multiple views printing.
|
2024-01-05 17:04:16 +01:00
|
|
|
|
|
|
|
%if "%?with_pyver"
|
|
|
|
%define pyver %{with_pyver}
|
|
|
|
%define __python %(rpm --eval %{__python%{with_pyver}})
|
|
|
|
%define python_sitearch %(rpm --eval %{python%{with_pyver}_sitearch})
|
|
|
|
%define python_sitelib %(rpm --eval %{python%{with_pyver}_sitelib})
|
|
|
|
%define python_inc %(rpm --eval %{python%{with_pyver}_inc})
|
|
|
|
%define python_version %(rpm --eval %{python%{with_pyver}_version})
|
|
|
|
%define python_provides %(rpm --eval %{python%{with_pyver}_provides})
|
|
|
|
%define python_requires %(rpm --eval %{python%{with_pyver}_requires})
|
|
|
|
%define py_requires %(rpm --eval %{py%{with_pyver}_requires})
|
|
|
|
%endif
|
|
|
|
|
2024-01-05 17:04:16 +01:00
|
|
|
%package devel
|
|
|
|
Group: Development/Libraries
|
|
|
|
Summary: Libraries and headers for %{name}
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
Provides: QScintilla2-devel
|
|
|
|
Obsoletes: QScintilla2-devel
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
QScintilla is a port to Qt of the Scintilla editing component.
|
|
|
|
This package contains libraries and header files need for development.
|
|
|
|
|
|
|
|
%package designer
|
|
|
|
Summary: QScintilla designer plugin
|
|
|
|
Group: Development/Tools
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description designer
|
|
|
|
QScintilla is a port to Qt of the Scintilla editing component.
|
|
|
|
This package contains QScintilla designer plugin.
|
|
|
|
|
2024-01-05 17:04:16 +01:00
|
|
|
%package -n python-%{name}%{?with_pyver:-py%{pyver}}
|
2024-01-05 17:04:16 +01:00
|
|
|
Summary: QScintilla PyQt4 bindings
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
2024-01-05 17:04:16 +01:00
|
|
|
%if "%?with_pyver" == ""
|
2024-01-05 17:04:16 +01:00
|
|
|
Provides: python-QScintilla2
|
|
|
|
Obsoletes: python-QScintilla2
|
2024-01-05 17:04:16 +01:00
|
|
|
%endif
|
2024-01-05 17:04:16 +01:00
|
|
|
|
2024-01-05 17:04:16 +01:00
|
|
|
%description -n python-%{name}%{?with_pyver:-py%{pyver}}
|
2024-01-05 17:04:16 +01:00
|
|
|
QScintilla is a port to Qt of the Scintilla editing component.
|
|
|
|
This package contains QScintilla PyQt4 bindings.
|
|
|
|
|
|
|
|
%package -n python-%{name}-devel
|
|
|
|
Summary: Development files for QScintilla PyQt4 bindings
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: python-%{name} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
Requires: python-sip = %{pythonsip_ver}
|
|
|
|
Requires: PyQt4
|
|
|
|
Provides: python-QScintilla2-devel
|
|
|
|
Obsoletes: python-QScintilla2-devel
|
|
|
|
|
|
|
|
%description -n python-%{name}-devel
|
|
|
|
QScintilla is a port to Qt of the Scintilla editing component.
|
|
|
|
|
|
|
|
This package contains development files for QScintilla PyQt4 bindings.
|
|
|
|
|
|
|
|
%prep
|
2024-01-05 17:04:16 +01:00
|
|
|
%setup -q -n QScintilla_gpl-%{version}
|
2024-01-05 17:04:16 +01:00
|
|
|
#-D -T
|
|
|
|
#:<< _EOF
|
|
|
|
#%patch0 -p1
|
2024-01-05 17:04:16 +01:00
|
|
|
%patch1 -p1
|
2024-01-05 17:04:16 +01:00
|
|
|
#%patch2 -p1
|
|
|
|
#%patch3 -p1
|
2024-01-05 17:04:16 +01:00
|
|
|
|
|
|
|
sed -i "s/^DESTDIR = \$(QTDIR)/DESTDIR = \$(INSTALL_ROOT)\$(QTDIR)/" */*.pro
|
|
|
|
|
|
|
|
# fix permissions on doc files
|
|
|
|
find doc example-Qt4Qt5 -type f -exec chmod 0644 {} ';'
|
|
|
|
find src include -type f -exec chmod 0644 {} ';'
|
|
|
|
|
2024-01-05 17:04:16 +01:00
|
|
|
mkdir build-qt4
|
|
|
|
cp -a * build-qt4/ || true
|
2024-01-05 17:04:16 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-05 17:04:16 +01:00
|
|
|
#:<< _EOF
|
|
|
|
|
2024-01-05 17:04:16 +01:00
|
|
|
cd Qt4Qt5
|
2024-01-05 17:04:16 +01:00
|
|
|
#sed -i 's/INSTALLS += header trans qsci/INSTALLS += header trans qsci target/g' qscintilla.pro
|
2024-01-05 17:04:16 +01:00
|
|
|
%{_qt5_qmake} qscintilla.pro
|
2024-01-05 17:04:16 +01:00
|
|
|
%make
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
cd designer-Qt4Qt5
|
2024-01-05 17:04:16 +01:00
|
|
|
%{_qt5_qmake} designer.pro
|
|
|
|
%make
|
|
|
|
#LFLAGS+="-L../Qt4Qt5 -shared -Wl,-O1"
|
2024-01-05 17:04:16 +01:00
|
|
|
#INCLUDEPATH+=../Qt4Qt5 QMAKE_LIBDIR+=../Qt4Qt5
|
2024-01-05 17:04:16 +01:00
|
|
|
cd ..
|
|
|
|
|
|
|
|
cd Python
|
|
|
|
%{__python} configure.py \
|
2024-01-05 17:04:16 +01:00
|
|
|
-c \
|
2024-01-05 17:04:16 +01:00
|
|
|
-d %{python_sitearch}/PyQt5 \
|
2024-01-05 17:04:16 +01:00
|
|
|
--qsci-incdir=../Qt4Qt5 \
|
|
|
|
--qsci-libdir=../Qt4Qt5 \
|
2024-01-05 17:04:16 +01:00
|
|
|
--qmake /usr/bin/qmake-qt5 \
|
|
|
|
--pyqt=PyQt5
|
|
|
|
|
|
|
|
|
|
|
|
%make CXX="c++ -I/usr/include/qt5/QtWidgets -I/usr/include/qt5/QtPrintSupport"
|
|
|
|
cd ..
|
2024-01-05 17:04:16 +01:00
|
|
|
|
2024-01-05 17:04:16 +01:00
|
|
|
cd build-qt4
|
|
|
|
cd Qt4Qt5
|
|
|
|
#sed -i 's/INSTALLS += header trans qsci/INSTALLS += header trans qsci target/g' qscintilla.pro
|
|
|
|
%{_qt4_qmake} qscintilla.pro
|
|
|
|
%make
|
|
|
|
cd ..
|
|
|
|
|
|
|
|
cd designer-Qt4Qt5
|
|
|
|
%{_qt4_qmake} designer.pro
|
|
|
|
%make
|
|
|
|
#LFLAGS+="-L../Qt4Qt5 -shared -Wl,-O1"
|
|
|
|
#INCLUDEPATH+=../Qt4Qt5 QMAKE_LIBDIR+=../Qt4Qt5
|
|
|
|
cd ..
|
2024-01-05 17:04:16 +01:00
|
|
|
|
2024-01-05 17:04:16 +01:00
|
|
|
#cd Python
|
|
|
|
#%{__python} configure.py \
|
|
|
|
# -c \
|
|
|
|
# -d %{python_sitearch}/PyQt5 \
|
|
|
|
# --qsci-incdir=../Qt4Qt5 \
|
|
|
|
# --qsci-libdir=../Qt4Qt5 \
|
|
|
|
# --qmake /usr/bin/qmake-qt4 \
|
|
|
|
# --pyqt=PyQt4
|
|
|
|
#
|
|
|
|
#% make
|
2024-01-05 17:04:16 +01:00
|
|
|
cd ..
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-05 17:04:16 +01:00
|
|
|
cd build-qt4
|
|
|
|
%makeinstall -C Qt4Qt5 \
|
|
|
|
INSTALL_ROOT=%{buildroot}
|
|
|
|
|
|
|
|
%makeinstall -C designer-Qt4Qt5 \
|
|
|
|
INSTALL_ROOT=%{buildroot}
|
|
|
|
|
|
|
|
#% makeinstall -C Python INSTALL_ROOT=%{buildroot}
|
|
|
|
|
|
|
|
cd ..
|
|
|
|
|
2024-01-05 17:04:16 +01:00
|
|
|
%makeinstall -C Qt4Qt5 \
|
|
|
|
INSTALL_ROOT=%{buildroot}
|
|
|
|
|
|
|
|
%makeinstall -C designer-Qt4Qt5 \
|
|
|
|
INSTALL_ROOT=%{buildroot}
|
|
|
|
|
|
|
|
%makeinstall -C Python INSTALL_ROOT=%{buildroot}
|
|
|
|
|
|
|
|
#chrpath --list %{buildroot}%{python_sitearch}/PyQt4/Qsci.so
|
|
|
|
#chrpath --delete %{buildroot}%{python_sitearch}/PyQt4/Qsci.so
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
|
|
|
:
|
|
|
|
|
|
|
|
#%post qt3 -p /sbin/ldconfig
|
|
|
|
#%postun qt3 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2024-01-05 17:04:16 +01:00
|
|
|
%{_libdir}/libqscintilla2_qt4.so.*
|
2024-01-05 17:04:16 +01:00
|
|
|
%{_qt4_datadir}/translations/qscintilla_*.qm
|
|
|
|
%dir %{_qt4_datadir}/qsci/api/python
|
|
|
|
%{_qt4_datadir}/qsci/api/python/*.api
|
2024-01-05 17:04:16 +01:00
|
|
|
# qt5
|
|
|
|
%{_libdir}/libqscintilla2_qt5.so.*
|
|
|
|
%{_qt5_datadir}/translations/qscintilla_*.qm
|
|
|
|
%dir %{_qt5_datadir}/qsci/api/python
|
|
|
|
%{_qt5_datadir}/qsci/api/python/*.api
|
|
|
|
%doc LICENSE
|
2024-01-05 17:04:16 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{_includedir}/qt4/Qsci
|
|
|
|
%{_qt4_headerdir}/Qsci/*.h
|
2024-01-05 17:04:16 +01:00
|
|
|
%{_libdir}/libqscintilla2_qt4.so
|
2024-01-05 17:04:16 +01:00
|
|
|
%{_datadir}/qt4/mkspecs/features/qscintilla2.prf
|
2024-01-05 17:04:16 +01:00
|
|
|
# qt5
|
|
|
|
%{_qt5_headerdir}/Qsci/*.h
|
|
|
|
%{_libdir}/libqscintilla2_qt5.so
|
|
|
|
%{_libdir}/qt5/mkspecs/features/qscintilla2.prf
|
|
|
|
%{_libdir}/qt5/plugins/designer/libqscintillaplugin.so
|
2024-01-05 17:04:16 +01:00
|
|
|
%doc NEWS README
|
|
|
|
%doc doc/html-Qt4Qt5 doc/Scintilla example-Qt4Qt5
|
|
|
|
|
|
|
|
%files designer
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_qt4_prefix}/plugins/designer/libqscintillaplugin.so
|
|
|
|
|
2024-01-05 17:04:16 +01:00
|
|
|
%files -n python-%{name}%{?with_pyver:-py%{pyver}}
|
2024-01-05 17:04:16 +01:00
|
|
|
%defattr(-,root,root)
|
2024-01-05 17:04:16 +01:00
|
|
|
%{python_sitearch}/PyQt5/Qsci.so
|
|
|
|
%{python_sitearch}/PyQt5/Qsci.pyi
|
|
|
|
%dir %{python_sitearch}/QScintilla-%{version}.dist-info
|
|
|
|
%{python_sitearch}/QScintilla-%{version}.dist-info/*
|
2024-01-05 17:04:16 +01:00
|
|
|
|
|
|
|
%files -n python-%{name}-devel
|
|
|
|
%defattr(-,root,root)
|
2024-01-05 17:04:16 +01:00
|
|
|
%dir %{_datadir}/sip/PyQt5/Qsci
|
|
|
|
%{_datadir}/sip/PyQt5/Qsci/*.sip
|
2024-01-05 17:04:16 +01:00
|
|
|
#%{_datadir}/qt4/api/python/QScintilla2.api
|
2024-01-05 17:04:16 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-05 17:04:16 +01:00
|
|
|
* Sun Mar 31 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 2.10.8-2mamba
|
|
|
|
- rebuilt
|
|
|
|
|
|
|
|
* Sun Jan 06 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 2.10.8-1mamba
|
|
|
|
- update to 2.10.8
|
|
|
|
|
2024-01-05 17:04:16 +01:00
|
|
|
* Sat Nov 15 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8.4-4mamba
|
|
|
|
- added -py3 support
|
|
|
|
|
|
|
|
* Sat Nov 15 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8.4-3mamba
|
|
|
|
- rebuilt with python-sip 4.16.4
|
|
|
|
|
2024-01-05 17:04:16 +01:00
|
|
|
* Sun Nov 02 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8.4-2mamba
|
|
|
|
- x86_64: install python module in %python_sitearch
|
|
|
|
|
2024-01-05 17:04:16 +01:00
|
|
|
* Fri Sep 26 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8.4-1mamba
|
|
|
|
- update to 2.8.4
|
|
|
|
|
2024-01-05 17:04:16 +01:00
|
|
|
* Tue Apr 01 2014 Automatic Build System <autodist@mambasoft.it> 2.8.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Wed Dec 25 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.8-2mamba
|
|
|
|
- rebuilt with python-sip 4.15.3
|
|
|
|
|
|
|
|
* Sat Nov 09 2013 Automatic Build System <autodist@mambasoft.it> 2.8-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Fri Oct 04 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.7.2-3mamba
|
|
|
|
- rebuilt with python-sip 4.15.2
|
|
|
|
|
|
|
|
* Sat Jul 13 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.7.2-2mamba
|
|
|
|
- also repatch designer to build against built libraries instead of system installed
|
|
|
|
|
|
|
|
* Thu Jul 11 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 2.7.2-1mamba
|
|
|
|
- update to 2.7.2
|
|
|
|
- renamed from QScintilla2 to qscintilla
|
|
|
|
|
|
|
|
* Sun Nov 11 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 2.6.2-2mamba
|
|
|
|
- rebuild to link designer to current release
|
|
|
|
|
|
|
|
* Thu Aug 09 2012 Automatic Build System <autodist@mambasoft.it> 2.6.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Thu May 19 2011 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 2.5.1-2mamba
|
|
|
|
- rebuilt with PyQt4 4.8.4
|
|
|
|
|
|
|
|
* Thu Apr 28 2011 Silvan Calarco <silvan.calarco@mambasoft.it> 2.5.1-1mamba
|
|
|
|
- update to 2.5.1
|
|
|
|
|
|
|
|
* Fri Dec 24 2010 Automatic Build System <autodist@mambasoft.it> 2.4.6-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sat Nov 06 2010 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 2.4.5-2mamba
|
|
|
|
- rebuilt with libqt 4.7.0
|
|
|
|
|
|
|
|
* Tue Sep 28 2010 Automatic Build System <autodist@mambasoft.it> 2.4.5-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Mon Jul 19 2010 Automatic Build System <autodist@mambasoft.it> 2.4.4-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Mon Apr 12 2010 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 2.4.3-1mamba
|
|
|
|
- update to 2.4.3
|
|
|
|
|
|
|
|
* Wed Mar 10 2010 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 2.4.2-1mamba
|
|
|
|
- update to 2.4.2
|
|
|
|
|
|
|
|
* Mon Dec 07 2009 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 2.4-2mamba
|
|
|
|
- fixed postun scriptlet
|
|
|
|
|
|
|
|
* Mon Dec 07 2009 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 2.4-1mamba
|
|
|
|
- update to 2.4
|
|
|
|
|
|
|
|
* Thu Nov 13 2008 gil <puntogil@libero.it> 2.3.1-1mamba
|
|
|
|
- package created by autospec
|