File qscintilla.spec of Package qscintilla
#
# spec file for package qscintilla (Version 2.3)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: qscintilla
BuildRequires: libjpeg-devel qt3-devel-tools
BuildRequires: libdrm-devel libqt4-devel
Url: http://www.riverbankcomputing.co.uk/qscintilla
License: GPL v2 or later
Group: Development/Libraries/C and C++
Summary: C++ Editor Class Library
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Version: 2.3
Release: 2
%define scintilla_version 2.3
Source: QScintilla-gpl-%scintilla_version.tar.bz2
Patch: %name.diff
%define debug_package_requires libqscintilla2-4 = %version-%release
%description
QScintilla is a Qt port of Neil Hodgson's Scintilla C++ editor class.
This is a Qt port from the original Scintilla class
(http://www.scintilla.org/).
This package is mainly used by eric, the Python IDE.
Authors:
--------
Riverbank Computing Limited <info@riverbankcomputing.co.uk>
%package -n libqscintilla2-4
License: GPL v2 or later
Group: Development/Libraries/C and C++
Summary: C++ Editor Class Library
Provides: qscintilla = 1.73
Obsoletes: qscintilla <= 1.73
%description -n libqscintilla2-4
QScintilla is a Qt port of Neil Hodgson's Scintilla C++ editor class.
This is a Qt port from the original Scintilla class
(http://www.scintilla.org/).
This package is mainly used by eric, the Python IDE.
Authors:
--------
Riverbank Computing Limited <info@riverbankcomputing.co.uk>
%package -n libqscintilla-devel
License: GPL v2 or later
Group: Development/Libraries/C and C++
Summary: C++ Editor Class Library Development Files
Requires: libqscintilla2-4 = %{version}
Requires: qt3-devel >= %( echo `rpm -q --queryformat '%{VERSION}' qt3-devel`)
Requires: libqt4-devel >= %( echo `rpm -q --queryformat '%{VERSION}' libqt4-devel`)
# openSUSE 10.3
Provides: qscintilla-devel = %{version}
Obsoletes: qscintilla-devel <= %{version}
%description -n libqscintilla-devel
QScintilla is a Qt port of Neil Hodgson's Scintilla C++ editor class.
This is a Qt port from the original Scintilla class
(http://www.scintilla.org/).
This package is mainly used by eric, the Python IDE.
Authors:
--------
Riverbank Computing Limited <info@riverbankcomputing.co.uk>
%prep
%setup -q -n QScintilla-gpl-%scintilla_version
%patch
%build
%define qt3_environment \
export QTDIR=/usr/lib/qt3/ \
export QTDIR_LIB=$QTDIR/%_lib \
export PATH=$QTDIR/bin/:$PATH
pushd Qt4
qmake
make %{?jobs:-j %jobs}
popd
%qt3_environment
pushd Qt3
qmake -o Makefile qscintilla.pro
make %{?jobs:-j %jobs}
popd
%install
pushd Qt4
make INSTALL_ROOT=$RPM_BUILD_ROOT install
popd
%qt3_environment
pushd Qt3
make INSTALL_ROOT=$RPM_BUILD_ROOT install
popd
%post -n libqscintilla2-4 -p /sbin/ldconfig
%postun -n libqscintilla2-4 -p /sbin/ldconfig
%clean
rm -rf $RPM_BUILD_ROOT
%files -n libqscintilla2-4
%defattr(-,root,root)
%doc NEWS README ChangeLog LICENSE.GPL2 LICENSE.GPL3
/usr/lib/qt3/%_lib/libqscintilla2.so.4*
/usr/lib/qt3/translations/qscintilla_*.qm
/usr/lib/qt3/qsci
/usr/share/qt4/qsci
/usr/share/qt4/translations/qscintilla_*.qm
%_libdir/libqscintilla2.so.4*
%files -n libqscintilla-devel
%defattr(-,root,root)
%doc doc/html-Qt3
/usr/include/Qsci
/usr/lib/qt3/include/*
/usr/lib/qt3/%_lib/libqscintilla2.so
%_libdir/libqscintilla2.so
%changelog
* Wed Oct 22 2008 stbinner@suse.de
- debug_package_requires depend also on %%release
* Fri Oct 10 2008 dmueller@suse.de
- update to 2.3 (bnc#432385):
* Licensing update: Dual licensed GPLv2/v3
* The new QsciAbstractAPIs class allows applications to replace the default
implementation of the language APIs used for auto-completion lists and call
tips.
* Added QsciScintilla::apiContext() to allow applications to determine the
context used for auto-completion and call tips.
* Added the QsciLexerFortran, QsciLexerFortran77, QsciLexerPascal,
QsciLexerPostScript, QsciLexerTCL, QsciLexerXML and QsciLexerYAML classes.
* QsciScintilla::setFolding() will now accept an optional margin number.
* A lexer's default colour, paper and font are now written to and read from
the settings.
* Windows64 is now supported.
* The signature of the QsciScintillaBase::SCN_MACRORECORD() signal has
changed slightly.
* Tue Sep 04 2007 dmueller@suse.de
- break buildcycle
* Sun Aug 12 2007 dmueller@suse.de
- install Qt4 version of libraries
- build python bindings
- rename package to comply to Shared Library Policy
* Mon Aug 06 2007 dmueller@suse.de
- update to 1.73 (scintilla 2.1) (#297650)
* A revised API, incompatible with QScintilla v1.
* Hugely improved autocompletion and call tips support.
* Supports both Qt v3 and Qt v4.
* Includes Python bindings.
* Mon Jun 05 2006 stbinner@suse.de
- fix build for < 10.1
* Thu May 18 2006 dmueller@suse.de
- split into devel package (#165234)
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Sep 19 2005 joe@suse.de
- update to version 1.6 (Scintilla 1.65 based)
* Wed Sep 29 2004 joe@suse.de
- update to version 1.4 (Scintilla 1.61 based); if I don't get
it wrong the naming scheme used by SUSE has been wrong, with
Scintilla and qscintilla versions being mixed up.
* Tue May 11 2004 adrian@suse.de
- update to version 1.60 (Scintilla 1.3 based)
* Sat Jan 10 2004 adrian@suse.de
- build as user
* Sun Aug 17 2003 adrian@suse.de
- update to version 1.54 (Scintilla 1.2 based now)
* Wed May 28 2003 adrian@suse.de
- fix symlink
* Mon May 26 2003 adrian@suse.de
- update to version 1.53 (Scintilla 1.1 based now)
* Fri May 23 2003 adrian@suse.de
- fix symlink
* Fri May 02 2003 adrian@suse.de
- update to version 1.52
* Mon Mar 10 2003 ro@suse.de
- fix build on lib64 for real
* Mon Feb 24 2003 ro@suse.de
- fix lib64 issue
* Fri Jan 31 2003 adrian@suse.de
- initial package, version 1.49