4 Summary: Python bindings for the Qt4 toolkit
5 Summary(pl.UTF-8): Dowiązania do toolkitu Qt4 dla Pythona
10 Group: Libraries/Python
11 Source0: http://www.riverbankcomputing.com/Downloads/PyQt4/GPL/PyQt-x11-gpl-%{version}.tar.gz
12 # Source0-md5: a2ead359f57d84c24bdd10de387e80b4
13 URL: http://www.riverbankcomputing.co.uk/pyqt/index.php
14 BuildRequires: QtAssistant-devel
15 BuildRequires: QtGui-devel
16 BuildRequires: QtNetwork-devel
17 BuildRequires: QtOpenGL-devel
18 BuildRequires: QtScript-devel
19 BuildRequires: QtSql-devel
20 BuildRequires: QtSvg-devel
21 BuildRequires: QtXml-devel
22 BuildRequires: QtTest-devel
23 BuildRequires: python-sip-devel >= %{sipver}
24 BuildRequires: qt4-build >= 4.3.3-3
25 BuildRequires: qt4-qmake >= 4.3.3-3
26 BuildRequires: rpm-pythonprov
27 BuildRequires: rpmbuild(macros) >= 1.219
28 BuildRequires: sed >= 4.0
29 %pyrequires_eq python-libs
30 Requires: python-sip >= %{sipver}
31 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
33 %define _noautoreqdep libGL.so.1 libGLU.so.1
34 %define _sipfilesdir %{_datadir}/sip
37 PyQt4 is a set of Python bindings for the Qt4 toolkit. The bindings
38 are implemented as a set of Python modules: QtAssistant, QtCore,
39 QtGui, QtNetwork, QtOpenGL, QtSql, QtSvg and QtXml.
41 %description -l pl.UTF-8
42 PyQt4 to zbiór dowiązań do Qt4 dla Pythona. Dowiązania zostały
43 zaimplementowane jako moduły Pythona: QtAssistant, QtCore, QtGui,
44 QtNetwork, QtOpenGL, QtSql, QtSvg i QtXml.
47 Summary: Files needed to build other bindings based on Qt4
48 Summary(pl.UTF-8): Pliki potrzebne do budowania innych dowiązań bazowanych na Qt4
49 Group: Development/Languages/Python
50 Requires: %{name} = %{version}-%{release}
51 Requires: python-sip-devel
54 Files needed to build other bindings for C++ classes that inherit from
55 any of the Qt4 classes (e.g. KDE or your own).
57 %description devel -l pl.UTF-8
58 Pliki potrzebne do budowania innych dowiązań do klas C++
59 dziedziczących z dowolnej klasy Qt4 (np. KDE lub własnych).
62 Summary: Examples for PyQt4
63 Summary(pl.UTF-8): Przykłady do PyQt4
64 Group: Libraries/Python
65 Requires: %{name} = %{version}-%{release}
68 Examples code demonstrating how to use the Python bindings for Qt4.
70 %description examples -l pl.UTF-8
71 Przykładowy kod demonstrujący jak używać PyQt4.
74 %setup -q -n PyQt-x11-gpl-%{version}
75 %{__sed} -i 's,pyuic.py,pyuic.pyc,' configure.py
78 echo 'yes' | python configure.py \
82 -q "%{_bindir}/qmake-qt4" \
83 -v %{_sipfilesdir}/%{module} \
84 LIBDIR_QT="%{_libdir}"
89 rm -rf $RPM_BUILD_ROOT
90 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
93 DESTDIR=$RPM_BUILD_ROOT
95 %py_comp $RPM_BUILD_ROOT%{py_sitedir}
96 %py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
99 cp -R examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
102 rm -rf $RPM_BUILD_ROOT
105 %defattr(644,root,root,755)
106 %doc ChangeLog NEWS README THANKS
107 %attr(755,root,root) %{_bindir}/*
108 %dir %{py_sitedir}/PyQt4
109 %attr(755,root,root) %{py_sitedir}/PyQt4/*.so*
110 %{py_sitedir}/PyQt4/*.py[co]
111 %{py_sitedir}/PyQt4/uic
114 %defattr(644,root,root,755)
115 %{_sipfilesdir}/PyQt4
118 %defattr(644,root,root,755)
119 %{_examplesdir}/%{name}-%{version}