Name: QScintilla2 Version: 2.6.2 Release: 2mamba Summary: A port to Qt of Neil Hodgson's Scintilla C++ editor control Group: Development/Tools Vendor: openmamba Distribution: openmamba Packager: Automatic Build System URL: http://www.riverbankcomputing.co.uk/software/qscintilla Source: http://www.riverbankcomputing.co.uk/static/Downloads/QScintilla2/QScintilla-gpl-%{version}.tar.gz Patch0: QScintilla-2-gpl-Qt4-incpath.patch Patch1: QScintilla-2-gpl-Qt3-incpath.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libgcc BuildRequires: libpython-devel BuildRequires: libqt4-devel BuildRequires: libstdc++6-devel BuildRequires: libX11-devel BuildRequires: libXext-devel ## AUTOBUILDREQ-END #BuildRequires: qt-designer # following build requirements are for Python bindings BuildRequires: PyQt4 BuildRequires: chrpath 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. %package devel Group: Development/Libraries Summary: Libraries and headers for %{name} Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %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. #%package qt3 #Summary: QScintilla qt3 stuff #Group: Development/Tools #%description qt3 #QScintilla is a port to Qt of the Scintilla editing component. #%package qt3-devel #Group: Development/Libraries #Summary: Libraries and headers for %{name}-qt3 #Requires: %{name}-qt3 = %{?epoch:%epoch:}%{version}-%{release} #%description qt3-devel #QScintilla is a port to Qt of the Scintilla editing component. #This package contains libraries and header files need for development. #%package designer-qt3 #Summary: QScintilla designer-qt3 plugin #Group: Development/Tools #Requires: %{name} = %{version}-%{release} #%description designer-qt3 #QScintilla is a port to Qt of the Scintilla editing component. #This package contains QScintilla designer-qt3 plugin %package -n python-%{name} Summary: QScintilla PyQt4 bindings Group: Development/Libraries Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} %description -n python-%{name} 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} %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 %setup -q -n QScintilla-gpl-%{version} %patch0 -p1 #%patch1 -p1 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 {} ';' # fix line endings in license file(s) sed -i 's/\r//' LICENSE.GPL2 GPL_EXCEPTION_ADDENDUM.TXT %build export QTDIR=%{_qt4_prefix} QTLIB=%{_qt4_libdir} pushd Qt4Qt5 sed -i 's/INSTALLS += header trans qsci/INSTALLS += header trans qsci target/g' qscintilla.pro %{_qt4_qmake} qscintilla.pro %make popd pushd designer-Qt4 %{_qt4_qmake} designer.pro %make popd #export QTDIR=%{_qt3_prefix} QTLIB=%{_qt3_libdir} #pushd Qt3 #%{_qt3_bindir}/qmake qscintilla.pro #popd #pushd designer-Qt3 #%{_qt3_bindir}/qmake designer.pro # ../Qt3/Qsci/qsciscintilla.h #popd pushd Python %{__python} configure.py \ -c -j 3 \ -n ../Qt4Qt5 \ -o ../Qt4Qt5 %make popd %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall -C Qt4Qt5 \ INSTALL_ROOT=%{buildroot} %makeinstall -C designer-Qt4 \ INSTALL_ROOT=%{buildroot} #pushd Qt3 #INSTALL_ROOT=%{buildroot} QTDIR=%{_qt3_prefix} #popd #pushd designer-Qt3 #INSTALL_ROOT=%{buildroot} QTDIR=%{_qt3_prefix} #popd %makeinstall -C Python 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) %{_libdir}/libqscintilla2.so.* %{_qt4_datadir}/translations/qscintilla_*.qm %dir %{_qt4_datadir}/qsci/api/python %{_qt4_datadir}/qsci/api/python/*.api %doc GPL_EXCEPTION_ADDENDUM.TXT %doc GPL_EXCEPTION.TXT LICENSE.GPL2 LICENSE.GPL3 %doc OPENSOURCE-NOTICE.TXT %files devel %defattr(-,root,root) %dir %{_includedir}/qt4/Qsci %{_qt4_headerdir}/Qsci/*.h %{_libdir}/libqscintilla2.so %doc NEWS README %doc doc/html-Qt4Qt5 doc/Scintilla example-Qt4Qt5 %files designer %defattr(-,root,root) %{_qt4_prefix}/plugins/designer/libqscintillaplugin.so #%files qt3 #%defattr(-,root,root) #%files qt3-devel #%defattr(-,root,root) #%files designer-qt3 #%defattr(-,root,root) %files -n python-%{name} %defattr(-,root,root) %{python_sitearch}/PyQt4/Qsci.so %files -n python-%{name}-devel %defattr(-,root,root) %dir %{_datadir}/sip/PyQt4/Qsci %{_datadir}/sip/PyQt4/Qsci/*.sip #%{_qt4_datadir}/qsci/api/python/*.api %changelog * Sun Nov 11 2012 Silvan Calarco 2.6.2-2mamba - rebuild to link designer to current release * Thu Aug 09 2012 Automatic Build System 2.6.2-1mamba - automatic version update by autodist * Thu May 19 2011 Stefano Cotta Ramusino 2.5.1-2mamba - rebuilt with PyQt4 4.8.4 * Thu Apr 28 2011 Silvan Calarco 2.5.1-1mamba - update to 2.5.1 * Fri Dec 24 2010 Automatic Build System 2.4.6-1mamba - automatic update by autodist * Sat Nov 06 2010 Stefano Cotta Ramusino 2.4.5-2mamba - rebuilt with libqt 4.7.0 * Tue Sep 28 2010 Automatic Build System 2.4.5-1mamba - automatic update by autodist * Mon Jul 19 2010 Automatic Build System 2.4.4-1mamba - automatic update by autodist * Mon Apr 12 2010 Stefano Cotta Ramusino 2.4.3-1mamba - update to 2.4.3 * Wed Mar 10 2010 Stefano Cotta Ramusino 2.4.2-1mamba - update to 2.4.2 * Mon Dec 07 2009 Stefano Cotta Ramusino 2.4-2mamba - fixed postun scriptlet * Mon Dec 07 2009 Stefano Cotta Ramusino 2.4-1mamba - update to 2.4 * Thu Nov 13 2008 gil 2.3.1-1mamba - package created by autospec