File python-qscintilla.spec of Package qscintilla

#
# spec file for package python-qscintilla
#
# Copyright (c) 2011 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:           python-qscintilla
BuildRequires:  -libqscintilla2-2 libqscintilla-devel python-devel
%if %suse_version > 1000
BuildRequires:  libdrm-devel python-qt4-devel python-sip-devel
%endif
Url:            http://www.riverbankcomputing.co.uk/qscintilla
License:        GPLv2+
Group:          Development/Libraries/C and C++
Summary:        Python  Bindings for the C++ Editor Class Library
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Version:        2.5.1
Release:        3
%define scintilla_version %version
Source:         QScintilla-gpl-%scintilla_version.tar.bz2
Requires:       python-qt4 >= %( echo `rpm -q --queryformat '%{VERSION}' python-qt4`)
%py_requires

%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 sip
Summary:        sip files for PyQScintilla
License:        GPLv2+
Group:          Development/Libraries/Python

%description sip
This package is needed to avoid conflicts between python-qscintilla and
python3-qscintilla packages. It contains sip files  used to generate
bindings to QScintilla

%prep
%setup -q -n QScintilla-gpl-%scintilla_version

%build
pushd Python
python configure.py
make %{?jobs:-j %jobs}
popd

%install
pushd Python
%makeinstall
popd

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc NEWS README LICENSE.GPL2 LICENSE.GPL3
%py_sitedir/PyQt4/Qsci.so
/usr/share/qt4/qsci/api/python/QScintilla2.api

%files sip
%defattr(-,root,root)
/usr/share/sip/PyQt4/Qsci

%changelog
openSUSE Build Service is sponsored by