File python3-qt4.spec of Package python3-qt4

#
# spec file for package python-qt4 (Version 4.5.4)
#
# 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:           python3-qt4
BuildRequires:  libqt4-devel python3-devel python3-sip-devel
%if %suse_version > 910
BuildRequires:  libQtWebKit-devel
%endif
%if %suse_version > 1020
# dbus support disabled due to lack of python3 module
#BuildRequires:  dbus-1-python-devel
#Requires:       dbus-1-python >= %( echo `rpm -q --queryformat '%{VERSION}' dbus-1-python`)
%endif
Requires:       python3-sip >= %( echo `rpm -q --queryformat '%{VERSION}' python3-sip`)
License:        GPL v2 only
Group:          Development/Libraries/Python
Summary:        PyQt - python bindings for Qt 4
Version:        4.5.4
Release:        1
%define rversion 4.5.4
Url:            http://www.riverbankcomputing.co.uk/pyqt/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Source0:        PyQt-x11-gpl-%{rversion}.tar.bz2
Patch0:         link-python.diff
Patch2:         disable-rpaths.diff
%py3_requires
Requires:       libqt4-x11 >= %( echo `rpm -q --queryformat '%{VERSION}' libqt4-x11`)
Requires:       python-qt4 = %{version}

%description
PyQt is a set of Python bindings for Trolltech's Qt application
framework and runs on all platforms supported by Qt including Windows,
MacOS/X and Linux. There are two sets of bindings: PyQt v4 supports Qt
v4; and the older PyQt v3 supports Qt v3 and earlier. The bindings are
implemented as a set of Python modules and contain over 300 classes and
nearly 6,000 functions and methods.

This is a test build of PyQt4 for Python 3.  D-BUS support is disabled
until Python 3 bindings are available.



Authors:
--------
    Riverbank Computing Limited

%prep
%setup -q -n PyQt-x11-gpl-%{rversion}
%patch0 -p1
%patch2

%build
export CXXFLAGS="$RPM_OPT_FLAGS"
export CFLAGS="$RPM_OPT_FLAGS"
python3 configure.py --confirm-license
make %{?jobs:-j %jobs}

%install
make DESTDIR=$RPM_BUILD_ROOT install
# conflicts with python 2.x PyQt4
rm $RPM_BUILD_ROOT/usr/bin/py*
rm -rf $RPM_BUILD_ROOT/usr/share/sip

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc ChangeLog README
#/usr/bin/pylupdate4
#/usr/bin/pyrcc4
#/usr/bin/pyuic4
%{py3_sitedir}/PyQt4
%if %suse_version > 1020
# dbus disabled
#%{py3_sitedir}/dbus/mainloop/qt.so
%endif
# use sip files from python 2.x PyQt4
#%dir /usr/share/sip
#/usr/share/sip/PyQt4

%changelog
* Tue Jun  9 2009 hoodedone@gmail.com
- initial build for Python 3
  * D-BUS support is unavailable
  * depends on python-qt4 for pyrcc4, pyuic4, pylupdate4, and
    /usr/share/sip/*
* Mon Jun 08 2009 beineri@opensuse.org
- update to 4.5 release:
  * support for Python v3 and Qt v4.5.1
  * new Pythonic API for connecting signals and slots
  * port of the current Qt examples launcher
* Wed Jun 03 2009 dmueller@suse.de
- update to 4.5 snapshot 20090601 to fix support with
  newer python-sip
* Sun May 17 2009 beineri@opensuse.org
- update to 4.5 snapshot as of 20090507
* Thu May 14 2009 dmueller@suse.de
- require at least the exact qt version it was built against
* Fri Mar 06 2009 coolo@suse.de
- link the modules against python libraries
* Fri Dec 05 2008 dmueller@suse.de
- update to 4.4.4:
  - QVariant.toPyObject() will now handle any Python object.  The way in which
  QVariant wraps objects has subtlely changed in that the name returned by
  typeName() may now be different, but is now more consistent.
  - Added the data() method to the QPolygon, QPolygonF and QXmlAttributes
  classes.
  - Added the --no-designer-plugin option to configure.py to disable the
  building of the Python plugin for Qt Designer.
  - Added the missing Windows and Mac versions to QSysInfo.
* Sun Aug 10 2008 dmueller@suse.de
- update to 4.4.3:
  * a QChar can now be used whenever a QString is expected
  * all read related methods that take a maximum read length
  will now raise an exception if the length is negative
  * QVariant constructor that took a QVariantList argument
  has been replaced
  * QVariant constructor that took a QVariantMap argument
  has been replaced
  * added the embeddeddialogs.py and padnavigator.py examples
  from Igor Prischepoff
* Mon Jun 30 2008 dmueller@suse.de
- Factory merge (bnc#402524)
* Sat Jun 21 2008 mstopka@opensuse.org
- libQtWebKit support added
* Tue May 27 2008 dmueller@suse.de
- update to 4.4.2:
  * Major bugfixes, working bindings for Qt 4.4.0
* Wed Mar 19 2008 dmueller@suse.de
- fix wrong requires for 10.2
* Tue Feb 19 2008 dmueller@suse.de
- fix build against older distributions
* Thu Dec 13 2007 dmueller@suse.de
- bindings updated to Qt 4.3.3
* Sat Aug 11 2007 dmueller@suse.de
- fix requires (#297650)
* Fri Aug 03 2007 dmueller@suse.de
- update to 4.3:
  * bindings updated to match Qt 4.3.0
* Sun Apr 15 2007 dmueller@suse.de
- fix build against newer Qt
* Thu Apr 12 2007 dmueller@suse.de
- Update to 4.2:
  * bindings updated to match Qt 4.2.0
* Thu Apr 05 2007 dmueller@suse.de
- build against Qt 4.3
* Fri Jan 26 2007 dmueller@suse.de
- Initial package (4.1.1)
openSUSE Build Service is sponsored by