File python-qscintilla.spec of Package python-qscintilla

#
# spec file for package python-qscintilla
#
# Copyright (c) 2015 SUSE LINUX 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/
#


Name:           python-qscintilla
Version:        2.10
Release:        0
Summary:        Python  Bindings for the C++ Editor Class Library
License:        GPL-3.0
Group:          Development/Libraries/C and C++
Url:            http://www.riverbankcomputing.co.uk/qscintilla
Source:         http://downloads.sourceforge.net/project/pyqt/QScintilla2/QScintilla-%{version}/QScintilla-gpl-%{version}.tar.gz
BuildRequires:  libdrm-devel
BuildRequires:  libqscintilla-devel
BuildRequires:  python-devel
BuildRequires:  python-qt4-devel
BuildRequires:  python-sip-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%requires_ge    python-qt4
%requires_ge    python-sip
%requires_ge    libqt4-x11

%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.

%package sip
Summary:        sip files for PyQScintilla
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-%{version}

%build
pushd Python
python configure.py
make %{?_smp_mflags}
popd

%install
pushd Python
make DESTDIR=%{buildroot} install %{?_smp_mflags} INSTALL_ROOT=%{buildroot}
popd

%files
%defattr(-,root,root)
%doc NEWS README LICENSE
%{python_sitearch}/PyQt4/Qsci.so
%{_datadir}/qt4/qsci
%{_datadir}/qt4/qsci/api
%{_datadir}/qt4/qsci/api/python
%{_datadir}/qt4/qsci/api/python/QScintilla2.api

%files sip
%defattr(-,root,root)
%{_datadir}/sip/PyQt4/Qsci

%changelog
openSUSE Build Service is sponsored by