From 1560f85674ab588d00dfe5b22d2b9feb8e220065 Mon Sep 17 00:00:00 2001 From: Francois Andriot Date: Sun, 4 Dec 2011 17:17:51 +0100 Subject: RHEL/Fedora: add tqscintilla --- .../tqscintilla/tqscintilla-ftbfs.patch | 614 +++++++++++++++++++++ .../tqscintilla/trinity-tqscintilla.spec | 234 ++++++++ 2 files changed, 848 insertions(+) create mode 100644 redhat/dependencies/tqscintilla/tqscintilla-ftbfs.patch create mode 100644 redhat/dependencies/tqscintilla/trinity-tqscintilla.spec (limited to 'redhat/dependencies') diff --git a/redhat/dependencies/tqscintilla/tqscintilla-ftbfs.patch b/redhat/dependencies/tqscintilla/tqscintilla-ftbfs.patch new file mode 100644 index 000000000..b4bb5b08e --- /dev/null +++ b/redhat/dependencies/tqscintilla/tqscintilla-ftbfs.patch @@ -0,0 +1,614 @@ +--- tqscintilla-master/qt/qextscintillacommandset.cpp.ORI 2011-12-04 14:33:29.344201345 +0100 ++++ tqscintilla-master/qt/qextscintillacommandset.cpp 2011-12-04 14:35:03.180233103 +0100 +@@ -43,525 +43,525 @@ + QextScintillaBase::SCI_LINEDOWN, + TQt::Key_Down, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Move down one line") + }, + { + QextScintillaBase::SCI_LINEDOWNEXTEND, + TQt::Key_Down | TQt::SHIFT, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Extend selection down one line") + }, + { + QextScintillaBase::SCI_LINESCROLLDOWN, + TQt::Key_Down | TQt::CTRL, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Scroll view down one line") + }, + { + QextScintillaBase::SCI_LINEDOWNRECTEXTEND, + TQt::Key_Down | TQt::ALT | TQt::SHIFT, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Extend rectangular selection down one line") + }, + { + QextScintillaBase::SCI_LINEUP, + TQt::Key_Up, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Move up one line") + }, + { + QextScintillaBase::SCI_LINEUPEXTEND, + TQt::Key_Up | TQt::SHIFT, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Extend selection up one line") + }, + { + QextScintillaBase::SCI_LINESCROLLUP, + TQt::Key_Up | TQt::CTRL, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Scroll view up one line") + }, + { + QextScintillaBase::SCI_LINEUPRECTEXTEND, + TQt::Key_Up | TQt::ALT | TQt::SHIFT, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Extend rectangular selection up one line") + }, + { + QextScintillaBase::SCI_PARAUP, + TQt::Key_BracketLeft | TQt::CTRL, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Move up one paragraph") + }, + { + QextScintillaBase::SCI_PARAUPEXTEND, + TQt::Key_BracketLeft | TQt::CTRL | TQt::SHIFT, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Extend selection up one paragraph") + }, + { + QextScintillaBase::SCI_PARADOWN, + TQt::Key_BracketRight | TQt::CTRL, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Move down one paragraph") + }, + { + QextScintillaBase::SCI_PARADOWNEXTEND, + TQt::Key_BracketRight | TQt::CTRL | TQt::SHIFT, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Extend selection down one paragraph") + }, + { + QextScintillaBase::SCI_CHARLEFT, + TQt::Key_Left, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Move left one character") + }, + { + QextScintillaBase::SCI_CHARLEFTEXTEND, + TQt::Key_Left | TQt::SHIFT, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Extend selection left one character") + }, + { + QextScintillaBase::SCI_WORDLEFT, + TQt::Key_Left | TQt::CTRL, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Move left one word") + }, + { + QextScintillaBase::SCI_WORDLEFTEXTEND, + TQt::Key_Left | TQt::SHIFT | TQt::CTRL, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Extend selection left one word") + }, + { + QextScintillaBase::SCI_CHARLEFTRECTEXTEND, + TQt::Key_Left | TQt::ALT | TQt::SHIFT, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Extend rectangular selection left one character") + }, + { + QextScintillaBase::SCI_CHARRIGHT, + TQt::Key_Right, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Move right one character") + }, + { + QextScintillaBase::SCI_CHARRIGHTEXTEND, + TQt::Key_Right | TQt::SHIFT, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Extend selection right one character") + }, + { + QextScintillaBase::SCI_WORDRIGHT, + TQt::Key_Right | TQt::CTRL, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Move right one word") + }, + { + QextScintillaBase::SCI_WORDRIGHTEXTEND, + TQt::Key_Right | TQt::CTRL | TQt::SHIFT, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Extend selection right one word") + }, + { + QextScintillaBase::SCI_CHARRIGHTRECTEXTEND, + TQt::Key_Right | TQt::ALT | TQt::SHIFT, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Extend rectangular selection right one character") + }, + { + QextScintillaBase::SCI_WORDPARTLEFT, + TQt::Key_Slash | TQt::CTRL, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Move left one word part") + }, + { + QextScintillaBase::SCI_WORDPARTLEFTEXTEND, + TQt::Key_Slash | TQt::CTRL | TQt::SHIFT, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Extend selection left one word part") + }, + { + QextScintillaBase::SCI_WORDPARTRIGHT, + TQt::Key_Backslash | TQt::CTRL, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Move right one word part") + }, + { + QextScintillaBase::SCI_WORDPARTRIGHTEXTEND, + TQt::Key_Backslash | TQt::CTRL | TQt::SHIFT, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Extend selection right one word part") + }, + { + QextScintillaBase::SCI_VCHOME, + TQt::Key_Home, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Move to first visible character in line") + }, + { + QextScintillaBase::SCI_VCHOMEEXTEND, + TQt::Key_Home | TQt::SHIFT, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Extend selection to first visible character in line") + }, + { + QextScintillaBase::SCI_DOCUMENTSTART, + TQt::Key_Home | TQt::CTRL, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Move to start of text") + }, + { + QextScintillaBase::SCI_DOCUMENTSTARTEXTEND, + TQt::Key_Home | TQt::CTRL | TQt::SHIFT, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Extend selection to start of text") + }, + { + QextScintillaBase::SCI_HOMEDISPLAY, + TQt::Key_Home | TQt::ALT, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Move to start of displayed line") + }, + { + QextScintillaBase::SCI_HOMEDISPLAYEXTEND, + 0, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Extend selection to start of line") + }, + { + QextScintillaBase::SCI_VCHOMERECTEXTEND, + TQt::Key_Home | TQt::ALT | TQt::SHIFT, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Extend rectangular selection to first visible character in line") + }, + { + QextScintillaBase::SCI_LINEEND, + TQt::Key_End, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Move to end of line") + }, + { + QextScintillaBase::SCI_LINEENDEXTEND, + TQt::Key_End | TQt::SHIFT, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Extend selection to end of line") + }, + { + QextScintillaBase::SCI_DOCUMENTEND, + TQt::Key_End | TQt::CTRL, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Move to end of text") + }, + { + QextScintillaBase::SCI_DOCUMENTENDEXTEND, + TQt::Key_End | TQt::CTRL | TQt::SHIFT, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Extend selection to end of text") + }, + { + QextScintillaBase::SCI_LINEENDDISPLAY, + TQt::Key_End | TQt::ALT, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Move to end of displayed line") + }, + { + QextScintillaBase::SCI_LINEENDDISPLAYEXTEND, + 0, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Extend selection to end of displayed line") + }, + { + QextScintillaBase::SCI_LINEENDRECTEXTEND, + TQt::Key_End | TQt::ALT | TQt::SHIFT, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Extend rectangular selection to end of line") + }, + { + QextScintillaBase::SCI_PAGEUP, + TQt::Key_Prior, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Move up one page") + }, + { + QextScintillaBase::SCI_PAGEUPEXTEND, + TQt::Key_Prior | TQt::SHIFT, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Extend selection up one page") + }, + { + QextScintillaBase::SCI_PAGEUPRECTEXTEND, + TQt::Key_Prior | TQt::ALT | TQt::SHIFT, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Extend rectangular selection up one page") + }, + { + QextScintillaBase::SCI_PAGEDOWN, + TQt::Key_Next, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Move down one page") + }, + { + QextScintillaBase::SCI_PAGEDOWNEXTEND, + TQt::Key_Next | TQt::SHIFT, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Extend selection down one page") + }, + { + QextScintillaBase::SCI_PAGEDOWNRECTEXTEND, + TQt::Key_Next | TQt::ALT | TQt::SHIFT, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Extend rectangular selection down one page") + }, + { + QextScintillaBase::SCI_CLEAR, + TQt::Key_Delete, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Delete current character") + }, + { + QextScintillaBase::SCI_CUT, + TQt::Key_X | TQt::CTRL, + TQt::Key_Delete | TQt::SHIFT, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Cut selection") + }, + { + QextScintillaBase::SCI_DELWORDRIGHT, + TQt::Key_Delete | TQt::CTRL, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Delete word to right") + }, + { + QextScintillaBase::SCI_DELLINERIGHT, + TQt::Key_Delete | TQt::CTRL | TQt::SHIFT, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Delete line to right") + }, + { + QextScintillaBase::SCI_EDITTOGGLEOVERTYPE, + TQt::Key_Insert, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Toggle insert/overtype") + }, + { + QextScintillaBase::SCI_PASTE, + TQt::Key_V | TQt::CTRL, + TQt::Key_Insert | TQt::SHIFT, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Paste") + }, + { + QextScintillaBase::SCI_COPY, + TQt::Key_C | TQt::CTRL, + TQt::Key_Insert | TQt::CTRL, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Copy selection") + }, + { + QextScintillaBase::SCI_CANCEL, + TQt::Key_Escape, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Cancel") + }, + { + QextScintillaBase::SCI_DELETEBACK, + TQt::Key_Backspace, + TQt::Key_Backspace | TQt::SHIFT, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Delete previous character") + }, + { + QextScintillaBase::SCI_DELWORDLEFT, + TQt::Key_Backspace | TQt::CTRL, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Delete word to left") + }, + { + QextScintillaBase::SCI_UNDO, + TQt::Key_Z | TQt::CTRL, + TQt::Key_Backspace | TQt::ALT, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Undo the last command") + }, + { + QextScintillaBase::SCI_DELLINELEFT, + TQt::Key_Backspace | TQt::CTRL | TQt::SHIFT, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Delete line to left") + }, + { + QextScintillaBase::SCI_REDO, + TQt::Key_Y | TQt::CTRL, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Redo last command") + }, + { + QextScintillaBase::SCI_SELECTALL, + TQt::Key_A | TQt::CTRL, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Select all text") + }, + { + QextScintillaBase::SCI_TAB, + TQt::Key_Tab, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Indent one level") + }, + { + QextScintillaBase::SCI_BACKTAB, + TQt::Key_Tab | TQt::SHIFT, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Move back one indentation level") + }, + { + QextScintillaBase::SCI_NEWLINE, + TQt::Key_Return, + TQt::Key_Return | TQt::SHIFT, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Insert new line") + }, + { + QextScintillaBase::SCI_ZOOMIN, + TQt::Key_Plus | TQt::CTRL, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Zoom in") + }, + { + QextScintillaBase::SCI_ZOOMOUT, + TQt::Key_Minus | TQt::CTRL, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Zoom out") + }, + { + QextScintillaBase::SCI_SETZOOM, + 0, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Set zoom") + }, + { + QextScintillaBase::SCI_FORMFEED, + 0, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Formfeed") + }, + { + QextScintillaBase::SCI_LINECUT, + TQt::Key_L | TQt::CTRL, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Cut current line") + }, + { + QextScintillaBase::SCI_LINEDELETE, + TQt::Key_L | TQt::CTRL | TQt::SHIFT, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Delete current line") + }, + { + QextScintillaBase::SCI_LINECOPY, + TQt::Key_T | TQt::CTRL | TQt::SHIFT, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Copy current line") + }, + { + QextScintillaBase::SCI_LINETRANSPOSE, + TQt::Key_T | TQt::CTRL, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Swap current and previous lines") + }, + { + QextScintillaBase::SCI_SELECTIONDUPLICATE, + TQt::Key_D | TQt::CTRL, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Duplicate selection") + }, + { + QextScintillaBase::SCI_LOWERCASE, + TQt::Key_U | TQt::CTRL, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Convert selection to lower case") + }, + { + QextScintillaBase::SCI_UPPERCASE, + TQt::Key_U | TQt::CTRL | TQt::SHIFT, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Convert selection to upper case") + }, + { + QextScintillaBase::SCI_DELETEBACKNOTLINE, + 0, + 0, +- TQT_TRANSLATE_NOOP("QextScintillaCommand", ++ QT_TRANSLATE_NOOP("QextScintillaCommand", + "Delete previous character if not at line start") + }, + }; +--- tqscintilla-master/designer/designer.pro.ORI 2011-12-04 14:41:08.714487484 +0100 ++++ tqscintilla-master/designer/designer.pro 2011-12-04 14:41:21.248222899 +0100 +@@ -5,7 +5,7 @@ + TARGET = qscintillaplugin + # DESTDIR = $(QTDIR)/plugins/designer + INCLUDEPATH = ../qt /usr/include/tqt +-LIBPATH += ../tmplib ++LIBPATH += ../tmplib ../qt + CONFIG += qt warn_on release plugin + + SOURCES += qscintillaplugin.cpp diff --git a/redhat/dependencies/tqscintilla/trinity-tqscintilla.spec b/redhat/dependencies/tqscintilla/trinity-tqscintilla.spec new file mode 100644 index 000000000..c12858d36 --- /dev/null +++ b/redhat/dependencies/tqscintilla/trinity-tqscintilla.spec @@ -0,0 +1,234 @@ +# Default version for this component +%define kdecomp libtqscintilla +%define version 1.7.1 +%define release 1 + +# If TDE is built in a specific prefix (e.g. /opt/trinity), the release will be suffixed with ".opt". +%if "%{?_prefix}" != "/usr" +%define _variant .opt +%define _docdir %{_prefix}/share/doc +%endif + +# TDE 3.5.13 specific building variables +BuildRequires: autoconf automake libtool m4 +%define tde_docdir %{_docdir}/kde +%define tde_includedir %{_includedir}/kde +%define tde_libdir %{_libdir}/trinity + +%global qtdir %(qmake -query QT_INSTALL_PREFIX) +%global qtdata %(qmake -query QT_INSTALL_DATA) +%global qtinc %{qtdir}/include +%global qtlib %{qtdir}/lib + + +Name: %{kdecomp} +Summary: TQt source code editing component based on Scintilla +Version: %{?version} +Release: %{?release}%{?dist}%{?_variant} + +License: GPLv2+ +Group: Development/Tools + +Vendor: Trinity Project +Packager: Francois Andriot +Url: http://www.riverbankcomputing.co.uk/qscintilla/ + +Prefix: %{_prefix} +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +# This file is a GIT snapshot +Source0: tqscintilla-master.tar.gz + +# Fix FTBFS +Patch0: tqscintilla-ftbfs.patch + +BuildRequires: tqtinterface-devel +BuildRequires: trinity-kdelibs-devel +BuildRequires: trinity-kdebase-devel +BuildRequires: desktop-file-utils +BuildRequires: gettext + +%description +Scintilla is a free source code editing component. It has features found +in standard editing components, as well as features especially useful +when editing and debugging source code. + +TQScintilla is a port or Scintilla to the TQt GUI toolkit. + + +%package designer +Summary: TQScintilla designer plugin +Group: Development/Tools +Requires: %{name} = %{version}-%{release} +Requires: qt-designer +%description designer +%{summary}. + +%package devel +Summary: TQScintilla Development Files +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +Requires: qt-devel +%description devel +%{summary}. + +%package doc +Summary: TQScintilla Documentation +Group: Development/Libraries +Requires: %{name} = %{version}-%{release} +%description doc +%{summary}. + +%prep +%setup -q -n tqscintilla-master +%patch0 -p1 + +# Ugly hack to modify TQT include directory inside autoconf files. +# If TQT detection fails, it fallbacks to TQT4 instead of TQT3 ! +%__sed -i */*.pro \ + -e "s|/usr/include/tqt|%{_includedir}/tqt|g" + +( cd qt; qmake "DESTDIR=$PWD/../tmplib" ) +( cd designer; qmake ) + + +%build +unset QTDIR; . /etc/profile.d/qt.sh +export PATH="%{_bindir}:${PATH}" +export LDFLAGS="-L%{_libdir} -I%{_includedir}" + +%__make %{?_smp_mflags} -C qt +%__make %{?_smp_mflags} -C designer + + +%install +%__rm -rf $RPM_BUILD_ROOT + +# Installs the QT part +%__make INSTALL_ROOT=$RPM_BUILD_ROOT -C qt install + +# Installs supplementary headers +for i in include/*.h; do + %__install -D -m 644 $i %{buildroot}${QTINC}/private/${i##*/} +done + +# Installs the HTML documentation +for i in doc/html/*; do + %__install -D -m 644 $i %{buildroot}%{tde_docdir}/HTML/en/%{name}/${i##*/} +done + +# Installs the Designer plugin +for i in designer/*.so; do + %__install -D -m 644 $i %{buildroot}${QTDIR}/plugins/designer/${i##*/} +done + +# Installs libraries +for i in tmplib/*; do + %__install -D $i %{buildroot}%{_libdir}/${i##*/} +done + +%clean +%__rm -rf $RPM_BUILD_ROOT + + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + + +%files +%defattr(-,root,root,-) +%doc ChangeLog LICENSE NEWS README +%{_libdir}/*.so.* +%{qtdir}/translations/*.qm + +%files designer +%defattr(-,root,root,-) +%{qtdir}/plugins/designer/*.so + +%files devel +%defattr(-,root,root,-) +%doc doc/html doc/Scintilla example +%{qtinc}/*.h +%{qtinc}/private/*.h +%{_libdir}/*.so + +%files doc +%defattr(-,root,root,-) +%{tde_docdir}/HTML/en/%{name} + +%changelog +* Sat Aug 25 2007 Rex Dieter - 1.7.1-3 +- respin (BuildID) + +* Sat Aug 11 2007 Rex Dieter - 1.7.1-2 +- License: GPLv2+ + +* Mon Dec 11 2006 Rex Dieter - 1.7.1-1 +- QScintilla-1.71-gpl-1.7.1 + +* Thu Nov 09 2006 Rex Dieter - 1.7-1 +- QScintilla1-1.71-gpl-1.7 (#214192) + +* Sun Sep 03 2006 Konstantin Ryabitsev - 1.6-3.3 +- FC6 rebuild. +- Export flags. + +* Mon Feb 13 2006 Konstantin Ryabitsev - 1.6-3.2 +- FC5 Rebuild. + +* Tue Jan 31 2006 Konstantin Ryabitsev - 1.6-3.1 +- Rebuild for FC5. + +* Wed Sep 14 2005 Konstantin Ryabitsev - 1.6-3 +- Fix permissions in prep, not in install. + +* Tue Sep 13 2005 Konstantin Ryabitsev - 1.6-2 +- Fix permissions on doc files to be 0644. + +* Sun Sep 11 2005 Konstantin Ryabitsev 1.6-1 +- Update to 1.65-gpl-1.6 +- Use the patch from Aurelien Bompard to build sanely in buildroot +- Include docs and examples for the -devel package + +* Sat Aug 27 2005 Konstantin Ryabitsev 1.5.1-1 +- Adapt for Fedora Extras +- Drop 0-Epoch +- Make specfile simpler +- Move .so to devel + +* Mon Mar 09 2005 Rex Dieter 0:1.5.1-0.0.kde +- 1.5.1 + +* Thu Sep 16 2004 Rex Dieter 0:1.4-0.1.kde +- updated designer-incpath patch: don't require an already installed + qscintilla-devel +- BuildConflicts: qscintilla-devel != %%version + +* Thu Sep 16 2004 Rex Dieter 0:1.4-0.0.kde +- 1.4 +- include designer plugin +- Prereq: %%qtdir + +* Fri May 28 2004 Rex Dieter 0:1.3-0.fdr.0 +- 1.3 + +* Thu Mar 11 2004 Rex Dieter 0:1.2-0.fdr.6 +- dynamically determine version for qt dependancy. + +* Wed Mar 10 2004 Rex Dieter 0:1.2-0.fdr.5 +- (re)build against qt-3.3.1 + +* Wed Dec 03 2003 Rex Dieter 0:1.2-0.fdr.4 +- remove extraneous macros +- (re)build against qt-3.2.3 + +* Mon Nov 10 2003 Rex Dieter 0:1.2-0.fdr.3 +- (re)build against qt-3.2.2 + +* Wed Sep 17 2003 Rex Dieter 0:1.2-0.fdr.2 +- use Epoch's in Requires + +* Tue Aug 19 2003 Rex Dieter 0:1.2-0.fdr.1 +- 1.2 + -- cgit v1.2.1