File python-qt.spec of Package python-qt

#
# spec file for package python-qt (Version 3.18)
#
# Copyright (c) 2009 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-qt
BuildRequires:  python-devel python-sip qt3-devel
License:        LGPL v2.1 or later
Group:          Development/Libraries/Python
Summary:        Python Bindings for Qt
Version:        3.18
Release:        1
%define rversion 3.18
Provides:       PyQt = %{version}
Requires:       python-sip >= %( echo `rpm -q --queryformat '%{VERSION}' python-sip`)
Url:            http://www.riverbankcomputing.co.uk/software/pyqt/intro
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        PyQt-x11-gpl-%rversion.tar.bz2

%description
Needed libraries for writing GUI applications using Qt in Python.



Authors:
--------
    The KDE Team <kde@kde.org>

%prep
%setup -q -n PyQt-x11-gpl-%rversion

%build
export CXXFLAGS="$RPM_OPT_FLAGS"
export CFLAGS="$RPM_OPT_FLAGS"
echo yes | python configure.py
make %{?jobs:-j %jobs}

%install
make DESTDIR=$RPM_BUILD_ROOT install

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc ChangeLog LICENSE NEWS README THANKS
/usr/bin/pylupdate
/usr/bin/pyuic
%{py_sitedir}/pyqtconfig.py
%{py_sitedir}/qt.so
%{py_sitedir}/qtcanvas.so
%{py_sitedir}/qtgl.so
%{py_sitedir}/qtnetwork.so
%{py_sitedir}/qtsql.so
%{py_sitedir}/qttable.so
%{py_sitedir}/qtui.so
%{py_sitedir}/qtxml.so
/usr/share/sip/qt
/usr/share/sip/qtcanvas
/usr/share/sip/qtgl
/usr/share/sip/qtnetwork
/usr/share/sip/qtsql
/usr/share/sip/qttable
/usr/share/sip/qtui
/usr/share/sip/qtxml
# This is mainly used by eric3, and 10.3 has eric4
%if %suse_version < 1030
%{py_sitedir}/qtext.so
/usr/share/sip/qtext
%endif

%changelog
* Mon Jun 08 2009 beineri@opensuse.org
- update to 3.18 release
* Tue May 26 2009 dmueller@suse.de
- update to 3.18-snapshot-20090323:
  * Compatibility changes needed for SIP v4.8.
* Sat Dec 06 2008 dmueller@suse.de
-update to 3.17.6:
  * Added the /Constrained/ argument annotations for enums needed by SIP v4.7.8
  and later.
  * Added the missing QRegion.rects() (based on a patch from Hans-Peter
  Jansen).
  * Added the missing QWidget.stackUnder() slot.
* Fri Dec 14 2007 dmueller@suse.de
- update to 3.17.4:
  * fix build against newest SIP version
* Tue Sep 04 2007 dmueller@suse.de
- fix buildcycle
* Wed Aug 15 2007 dmueller@suse.de
- Initial version in autobuild (3.17.3)
openSUSE Build Service is sponsored by