1 | %global python_ver %(%{__python} -c "import sys ; print sys.version[:3]") |
---|
2 | %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()") |
---|
3 | %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)") |
---|
4 | |
---|
5 | %define _qt4_version %(pkg-config --modversion --silence-errors Qt 2>/dev/null || echo 4.7.2) |
---|
6 | %define _qt4_prefix %(pkg-config --variable prefix --silence-errors Qt 2>/dev/null || echo %{_libdir}/qt-%{qt4_ver}) |
---|
7 | %define _qt4_plugindir %(pkg-config --variable plugindir --silence-errors Qt 2>/dev/null || echo %{_qt4_prefix}/plugins) |
---|
8 | %define qt4qmake %{_qt4_prefix}/bin/qmake |
---|
9 | |
---|
10 | Name: PyQt4 |
---|
11 | Summary: Python bindings for Qt4 |
---|
12 | Summary(ja): Qt4 の Python バインディング |
---|
13 | Version: 4.8.3 |
---|
14 | Release: 4%{?_dist_release} |
---|
15 | |
---|
16 | # GPLv2 exceptions(see GPL_EXCEPTIONS*.txt) |
---|
17 | License: GPLv3 or GPLv2 with exceptions |
---|
18 | Group: Development/Languages |
---|
19 | URL: http://www.riverbankcomputing.com/software/pyqt/ |
---|
20 | Source0: http://www.riverbankcomputing.com/static/Downloads/PyQt4/PyQt-x11-gpl-%{version}.tar.gz |
---|
21 | Patch1: PyQt-x11-gpl-4.8.3-64bit.patch |
---|
22 | # HACK! FIXME: ping upstream why this isn't working right. -- Rex |
---|
23 | Patch2: PyQt-x11-gpl-4.5.2-QT_SHARED.patch |
---|
24 | Patch4: PyQt-x11-gpl-4.5.1-pyuic_shebang.patch |
---|
25 | |
---|
26 | # Vine Patch |
---|
27 | Patch100: PyQt-x11-gpl-4.7.3-phononpath_vine.patch |
---|
28 | |
---|
29 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
30 | #BuildRequires: chrpath |
---|
31 | BuildRequires: dbus-devel dbus-python-devel |
---|
32 | BuildRequires: findutils |
---|
33 | BuildRequires: libXext-devel |
---|
34 | BuildRequires: phonon-devel |
---|
35 | BuildRequires: python-devel |
---|
36 | # beware of PyQt4/qscintilla bootstap issues |
---|
37 | #BuildRequires: qscintilla |
---|
38 | BuildRequires: qt4-devel >= 4.5.0 |
---|
39 | BuildRequires: sip-devel >= 4.12.1 |
---|
40 | Requires: sip >= 4.12.1 |
---|
41 | Requires: dbus-python |
---|
42 | Requires: qt4 |
---|
43 | |
---|
44 | %description |
---|
45 | These are Python bindings for Qt4. |
---|
46 | |
---|
47 | %package devel |
---|
48 | Summary: Files needed to build other bindings based on Qt4 |
---|
49 | Group: Development/Libraries |
---|
50 | Requires: %{name} = %{version}-%{release} |
---|
51 | Requires: sip-devel >= 4.12.1 |
---|
52 | |
---|
53 | %description devel |
---|
54 | Files needed to build other bindings for C++ classes that inherit from any |
---|
55 | of the Qt4 classes (e.g. KDE or your own). |
---|
56 | |
---|
57 | |
---|
58 | %prep |
---|
59 | %setup -q -n PyQt-x11-gpl-%{version} |
---|
60 | %ifarch x86_64 |
---|
61 | %patch1 -p1 -b .64bit |
---|
62 | %endif |
---|
63 | %patch2 -p1 -b .QT_SHARED |
---|
64 | #patch4 -p1 |
---|
65 | |
---|
66 | %patch100 -p1 -b .phononpath_vine |
---|
67 | |
---|
68 | ## permissions |
---|
69 | # mark examples non-executable |
---|
70 | find examples/ -name "*.py" | xargs chmod a-x |
---|
71 | chmod a+rx pyuic/uic/pyuic.py |
---|
72 | |
---|
73 | |
---|
74 | %build |
---|
75 | unset QTDIR || : ; . /etc/profile.d/qt4.sh |
---|
76 | CFLAGS="${CFLAGS:-%optflags}" \ |
---|
77 | CXXFLAGS="${CXXFLAGS:-%optflags} -I%{_includedir}/KDE" \ |
---|
78 | %{__python} configure.py \ |
---|
79 | --confirm-license \ |
---|
80 | --qmake=%{qt4qmake} \ |
---|
81 | --no-qsci-api \ |
---|
82 | --verbose |
---|
83 | |
---|
84 | make %{?_smp_mflags} |
---|
85 | |
---|
86 | %install |
---|
87 | rm -rf $RPM_BUILD_ROOT |
---|
88 | |
---|
89 | make install DESTDIR=$RPM_BUILD_ROOT INSTALL_ROOT=$RPM_BUILD_ROOT |
---|
90 | |
---|
91 | # HACK: fix multilb conflict, http://bugzilla.redhat.com/509415 |
---|
92 | rm -fv $RPM_BUILD_ROOT%{_bindir}/pyuic4 |
---|
93 | mv $RPM_BUILD_ROOT%{python_sitearch}/PyQt4/uic/pyuic.py \ |
---|
94 | $RPM_BUILD_ROOT%{_bindir}/pyuic4 |
---|
95 | ln -s %{_bindir}/pyuic4 \ |
---|
96 | $RPM_BUILD_ROOT%{python_sitearch}/PyQt4/uic/pyuic.py |
---|
97 | |
---|
98 | %clean |
---|
99 | rm -rf $RPM_BUILD_ROOT |
---|
100 | |
---|
101 | %files |
---|
102 | %defattr(-,root,root,-) |
---|
103 | %doc NEWS README |
---|
104 | %doc OPENSOURCE-NOTICE.TXT |
---|
105 | %doc LICENSE.GPL2 GPL_EXCEPTION*.TXT |
---|
106 | %doc LICENSE.GPL3 |
---|
107 | %{python_sitearch}/PyQt4/ |
---|
108 | %exclude %{python_sitearch}/PyQt4/uic/pyuic.py* |
---|
109 | # fixme? -> sitearch? -- Rex |
---|
110 | %{python_sitelib}/dbus/mainloop/qt.so |
---|
111 | %{_qt4_plugindir}/designer/* |
---|
112 | |
---|
113 | %files devel |
---|
114 | %defattr(-,root,root,-) |
---|
115 | %doc doc/* |
---|
116 | %doc examples/ |
---|
117 | %{_bindir}/pylupdate4 |
---|
118 | %{_bindir}/pyrcc4 |
---|
119 | %{_bindir}/pyuic4 |
---|
120 | %{python_sitearch}/PyQt4/uic/pyuic.py* |
---|
121 | %{_datadir}/sip/PyQt4/ |
---|
122 | #{_qt4_prefix}/qsci/api/python/PyQt4.api |
---|
123 | |
---|
124 | %changelog |
---|
125 | * Sun Mar 13 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.8.3-4 |
---|
126 | - re-add Patch1 (PyQt-x11-gpl-4.8.3-64bit.patch) (x86_64 only) |
---|
127 | - remove %%sip_ver |
---|
128 | |
---|
129 | * Thu Mar 10 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.8.3-3 |
---|
130 | - rebuilt with qt4-4.7.2 |
---|
131 | |
---|
132 | * Tue Feb 01 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.8.3-2 |
---|
133 | - update Patch1 (PyQt-x11-gpl-4.8.3-64bit.patch) |
---|
134 | |
---|
135 | * Sun Jan 30 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.8.3-1 |
---|
136 | - new upstream release |
---|
137 | - built with sip-4.12.1 and qt4-4.7.1 |
---|
138 | |
---|
139 | * Wed Aug 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.7.4-2 |
---|
140 | - rebuild with qt4-4.6.3 |
---|
141 | - fix %qtver (from 4.6.1 to 4.6.3) |
---|
142 | |
---|
143 | * Sun Jul 25 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.4-1 |
---|
144 | - new upstream release |
---|
145 | - rebuilt with sip-4.10.5 and qt4-4.6.3 |
---|
146 | |
---|
147 | * Sun May 09 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.3-1 |
---|
148 | - new upstream release |
---|
149 | - updated Patch100 |
---|
150 | |
---|
151 | * Fri Feb 05 2010 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7-2 |
---|
152 | - updated Patch100 to build phonon module |
---|
153 | |
---|
154 | * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 4.7-1 |
---|
155 | - new upstream release |
---|
156 | - rebuilt with python-2.6.4 |
---|
157 | - dropt Patch100: PyQt-x11-gpl-4.5.4-vine_phonon.patch |
---|
158 | |
---|
159 | * Fri Oct 23 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 4.6-2 |
---|
160 | - now BuildRequires sip-devel >= 4.9 (was 4.8.2) |
---|
161 | |
---|
162 | * Thu Oct 22 2009 Shu KONNO <owa@bg.wakwak.com> 4.6-1 |
---|
163 | - new upstream release |
---|
164 | - added BR: libXext-devel |
---|
165 | |
---|
166 | * Sat Aug 29 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 4.5.4-3 |
---|
167 | - added Patch100 for building phonon modules |
---|
168 | |
---|
169 | * Tue Aug 18 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 4.5.4-2 |
---|
170 | - Initial build for Vine |
---|
171 | |
---|
172 | * Tue Jul 28 2009 Rex Dieter <rdieter@fedoraproject.org> - 4.5.4-1 |
---|
173 | - PyQt4-4.5.4 |
---|
174 | |
---|
175 | * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.5.2-2 |
---|
176 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
---|
177 | |
---|
178 | * Thu Jul 16 2009 Rex Dieter <rdieter@fedoraproject.org> - 4.5.2-1 |
---|
179 | - PyQt4-4.5.2 |
---|
180 | |
---|
181 | * Thu Jul 02 2009 Rex Dieter <rdieter@fedoraproject.org> - 4.5.1-2 |
---|
182 | - fix build with qt-4.5.2 |
---|
183 | - PyQt4-devel multilib conflict (#509415) |
---|
184 | |
---|
185 | * Tue Jun 16 2009 Rex Dieter <rdieter@fedoraproject.org> - 4.5.1-1 |
---|
186 | - PyQt-4.5.1 |
---|
187 | |
---|
188 | * Fri Jun 05 2009 Rex Dieter <rdieter@fedoraproject.org> - 4.5-1 |
---|
189 | - PyQt-4.5 |
---|
190 | |
---|
191 | * Thu May 21 2009 Rex Dieter <rdieter@fedoraproject.org> - 4.5-0.2.20090520 |
---|
192 | - fix generation of sip_ver |
---|
193 | |
---|
194 | * Thu May 21 2009 Rex Dieter <rdieter@fedoraproject.org> - 4.5-0.1.20090520 |
---|
195 | - PyQt-4.5-snapshot-20090520 |
---|
196 | |
---|
197 | * Sun Apr 26 2009 Rex Dieter <rdieter@fedoraproject.org> - 4.4.4-6 |
---|
198 | - rebuild for phonon bindings (#497680) |
---|
199 | |
---|
200 | * Wed Mar 05 2009 Rex Dieter <rdieter@fedorproject.org> - 4.4.4-5 |
---|
201 | - move designer plugins to main/runtime (#487622) |
---|
202 | |
---|
203 | * Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.4.4-4 |
---|
204 | - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
---|
205 | |
---|
206 | * Fri Feb 13 2009 Than Ngo <than@redhat.com> - 4.4.4-3 |
---|
207 | - rebuild against qt-4.5rc1 |
---|
208 | |
---|
209 | * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 4.4.4-2 |
---|
210 | - Rebuild for Python 2.6 |
---|
211 | |
---|
212 | * Mon Nov 10 2008 Rex Dieter <rdieter@fedoraproject.org> 4.4.4-1 |
---|
213 | - PyQt-4.4.4 |
---|
214 | |
---|
215 | * Tue Aug 26 2008 Rex Dieter <rdieter@fedoraproject.org> 4.4.3-1 |
---|
216 | - PyQt-4.4.3 |
---|
217 | |
---|
218 | * Sat Jun 14 2008 Rex Dieter <rdieter@fedoraproject.org> 4.4.2-2 |
---|
219 | - PyQt4 is built without QtWebKit support (#451490) |
---|
220 | |
---|
221 | * Wed May 21 2008 Rex Dieter <rdieter@fedoraproject.org> 4.4.2-1 |
---|
222 | - PyQt-4.4.2 |
---|
223 | |
---|
224 | * Wed May 14 2008 Rex Dieter <rdieter@fedoraproject.org> 4.4-1 |
---|
225 | - PyQt-4.4 |
---|
226 | - License: GPLv3 or GPLv2 with exceptions |
---|
227 | |
---|
228 | * Mon Feb 11 2008 Rex Dieter <rdieter@fedoraproject.org> 4.3.3-2 |
---|
229 | - respin (gcc43) |
---|
230 | |
---|
231 | * Wed Dec 05 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 4.3.3-1 |
---|
232 | - PyQt-4.3.3 |
---|
233 | |
---|
234 | * Thu Nov 22 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 4.3.1-3 |
---|
235 | - dbus support (#395741) |
---|
236 | |
---|
237 | * Mon Nov 12 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 4.3.1-1 |
---|
238 | - PyQt-4.3.1 |
---|
239 | |
---|
240 | * Thu Oct 04 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 4.2-8 |
---|
241 | - drop ExcludeArch: ppc64 , qt4 bug is (hopefully) fixed. |
---|
242 | |
---|
243 | * Thu Oct 04 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 4.2-7 |
---|
244 | - fix QtDesigner plugin install |
---|
245 | |
---|
246 | * Wed Oct 03 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 4.2-6 |
---|
247 | - 64bit QtDesigner patch |
---|
248 | |
---|
249 | * Mon Aug 27 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 4.2-5 |
---|
250 | - -devel: Requires: qt4-devel |
---|
251 | |
---|
252 | * Sun Aug 26 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 4.2-4 |
---|
253 | - use %%python_sitearch |
---|
254 | - License: GPLv2 |
---|
255 | |
---|
256 | * Thu Aug 02 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 4.2-3 |
---|
257 | - fix python_sitelib typo (wrt chrpath call) |
---|
258 | - move %%_bindir stuff to -devel |
---|
259 | - mark %%doc examples non-executable |
---|
260 | - add shebang to %%_bindir/pyuic4 |
---|
261 | |
---|
262 | * Tue Jul 17 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 4.2-2 |
---|
263 | - remove rpath from QtDesigner.so |
---|
264 | - BR: qt4-devel > 4.3.0-8 |
---|
265 | |
---|
266 | * Wed Apr 11 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 4.2-1 |
---|
267 | - PyQt4-4.2 |
---|
268 | |
---|
269 | * Wed Feb 28 2007 Rex Dieter <rdieter[AT]fedoraproject.org> 4.1.1-2 |
---|
270 | - fix build against multilib'd qt4 |
---|
271 | |
---|
272 | * Mon Dec 11 2006 Rex Dieter <rexdieter[AT]usres.sf.net> 4.1.1-1 |
---|
273 | - PyQt4-4.1.1 |
---|
274 | - BR: sip-devel >= 4.5.1 |
---|
275 | |
---|
276 | * Mon Nov 06 2006 Rex Dieter <rexdieter[AT]users.sf.net> 4.1-1 |
---|
277 | - PyQt4-4.1 |
---|
278 | |
---|
279 | * Wed Oct 04 2006 Rex Dieter <rexdieter[AT]users.sf.net> 4.0.1-4 |
---|
280 | - don't own %%_datadir/sip (bug #206633) |
---|
281 | |
---|
282 | * Mon Aug 28 2006 Rex Dieter <rexdieter[AT]users.sf.net> 4.0.1-3 |
---|
283 | - BR: qt4-devel < 4.2 |
---|
284 | |
---|
285 | * Sat Jul 29 2006 Rex Dieter <rexdieter[AT]users.sf.net> 4.0.1-2 |
---|
286 | - fix reference(s) to qmake(4) |
---|
287 | |
---|
288 | * Sun Jul 16 2006 Rex Dieter <rexdieter[AT]users.sf.net> 4.0.1-1 |
---|
289 | - PyQt-4.0.1 |
---|
290 | |
---|
291 | * Mon Jun 12 2006 Rex Dieter <rexdieter[AT]users.sf.net> 4.0-1 |
---|
292 | - PyQt-4.0(final) |
---|
293 | - BR: sip-devel >= 4.4.4 (see bug #199430) |
---|
294 | |
---|
295 | * Fri May 12 2006 Rex Dieter <rexdieter[AT]users.sf.net> 4.0-0.6.beta1 |
---|
296 | - drop BR: qt4-MySQL qt4-ODBC qt4-PostgreSQL |
---|
297 | - drop usage of (undefined) %%sip_min |
---|
298 | |
---|
299 | * Fri Apr 28 2006 Rex Dieter <rexdieter[AT]users.sf.net> 4.0-0.5.beta1 |
---|
300 | - cleanup for Extras |
---|
301 | |
---|
302 | * Fri Apr 28 2006 Rex Dieter <rexdieter[AT]users.sf.net> 4.0-0.4.beta1 |
---|
303 | - 4.0beta1 |
---|
304 | |
---|
305 | * Thu Apr 27 2006 Rex Dieter <rexdieter[AT]users.sf.net> 4.0-0.3.20060421 |
---|
306 | - respin for sip-4.4.3 |
---|
307 | - use sip-abi, sip-abi-min |
---|
308 | |
---|
309 | * Mon Apr 24 2006 Rex Dieter <rexdieter[AT]users.sf.net> 4.0-0.2.20060421 |
---|
310 | - 20060421 snapshot |
---|
311 | |
---|
312 | * Wed Apr 19 2006 Rex Dieter <rexdieter[AT]users.sf.net> 0.0-0.1.20060417 |
---|
313 | - first try, using 20060417 snapshot |
---|
314 | |
---|