File python-qt4.spec of Package python-qt4

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

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



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

%prep
%setup -q -n PyQt-x11-gpl-%{version}
%patch2

%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 README
/usr/bin/pylupdate4
/usr/bin/pyrcc4
/usr/bin/pyuic4
%{py_sitedir}/PyQt4
%if %suse_version > 1020
%{py_sitedir}/dbus/mainloop/qt.so
%endif
%dir /usr/share/sip
/usr/share/sip/PyQt4

%changelog
* 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
* Sun Aug 12 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