source: projects/specs/trunk/P/PyQt4/PyQt4-vl.spec @ 992

Revision 992, 8.7 KB checked in by inagaki, 14 years ago (diff)

updated: PyQt4, sip

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