1 | %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()") |
---|
2 | %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)") |
---|
3 | |
---|
4 | %define name PyQt |
---|
5 | %define version 3.18.1 |
---|
6 | %define release 4%{?_dist_release} |
---|
7 | |
---|
8 | Summary: Python bindings for Qt. |
---|
9 | Summary(ja): Qt の Python バインディング |
---|
10 | Name: %{name} |
---|
11 | Version: %{version} |
---|
12 | Release: %{release} |
---|
13 | License: GPLv2 |
---|
14 | Group: System Environment/Libraries |
---|
15 | URL: http://www.riverbankcomputing.co.uk/pyqt |
---|
16 | |
---|
17 | Source: http://www.riverbankcomputing.com/Downloads/PyQt3/GPL/%{name}-x11-gpl-%{version}.tar.gz |
---|
18 | # FTBFS against sip-4.15+ |
---|
19 | Patch1: PyQt-x11-gpl-3.18.1-sip415.patch |
---|
20 | |
---|
21 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
22 | BuildRequires: libXmu-devel |
---|
23 | BuildRequires: python-devel |
---|
24 | BuildRequires: qt-devel |
---|
25 | BuildRequires: sip-devel |
---|
26 | Requires: python |
---|
27 | |
---|
28 | %description |
---|
29 | Python bindings for the Qt C++ class library. |
---|
30 | |
---|
31 | %package devel |
---|
32 | Summary: Files needed to build other bindings based on Qt |
---|
33 | Group: Development/Libraries |
---|
34 | Requires: %{name} = %{version} |
---|
35 | Requires: sip-devel qt-devel |
---|
36 | |
---|
37 | %description devel |
---|
38 | Files needed to build other bindings for C++ classes that inherit from any |
---|
39 | of the Qt classes (e.g. KDE or your own). |
---|
40 | |
---|
41 | %prep |
---|
42 | %setup -q -n %{name}-x11-gpl-%{version} |
---|
43 | %patch1 -p0 -b .sip415 |
---|
44 | |
---|
45 | %build |
---|
46 | unset QTDIR || : ; . /etc/profile.d/qt.sh |
---|
47 | |
---|
48 | echo yes | python configure.py -d %{python_sitearch} CXXFLAGS="%{optflags} -DANY=void" CFLAGS="%{optflags} -DANY=void" |
---|
49 | |
---|
50 | # Makefiles are broken, workaround |
---|
51 | make -C qt %{?_smp_mflags} |
---|
52 | make %{?_smp_mflags} |
---|
53 | |
---|
54 | %install |
---|
55 | rm -rf $RPM_BUILD_ROOT |
---|
56 | make DESTDIR=$RPM_BUILD_ROOT install |
---|
57 | mkdir -p $RPM_BUILD_ROOT%{_datadir}/sip/qt |
---|
58 | cp -r sip/* $RPM_BUILD_ROOT%{_datadir}/sip/qt/ |
---|
59 | |
---|
60 | %clean |
---|
61 | rm -rf %{buildroot} |
---|
62 | |
---|
63 | %files |
---|
64 | %defattr(-, root, root, 755) |
---|
65 | %doc NEWS README ChangeLog THANKS |
---|
66 | %doc doc/PyQt.html |
---|
67 | %{_bindir}/* |
---|
68 | %{python_sitearch}/* |
---|
69 | |
---|
70 | %files devel |
---|
71 | %defattr(-,root,root) |
---|
72 | %doc examples* |
---|
73 | %{_datadir}/sip/* |
---|
74 | |
---|
75 | %changelog |
---|
76 | * Sat Nov 8 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 3.18.1-4 |
---|
77 | - rebuilt on current VineSeed |
---|
78 | - added patch1 |
---|
79 | - moved to System Environment/Libraries Group |
---|
80 | |
---|
81 | * Sat Feb 18 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.18.1-3 |
---|
82 | - rebuilt with python-2.7.2 |
---|
83 | |
---|
84 | * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 3.18.1-2 |
---|
85 | - rebuilt with python-2.6.4 |
---|
86 | |
---|
87 | * Thu Nov 12 2009 Ryoichi INAGAKI <owa@bg.wakwak.com> 3.18.1-1 |
---|
88 | - new upstream release |
---|
89 | - removed qscintilla dependency |
---|
90 | |
---|
91 | * Mon Jul 21 2008 Shu KONNO <owa@bg.wakwak.com> 3.17.3-1vl5 |
---|
92 | - rebuilt with python-2.5.2 |
---|
93 | - added pyexeclib macro |
---|
94 | - applied new versioning policy |
---|
95 | |
---|
96 | * Fri Nov 30 2007 Shu KONNO <owa@bg.wakwak.com> 3.17.3-0vl2 |
---|
97 | - changed source url |
---|
98 | - fixed python site-packages path (for lib64) |
---|
99 | |
---|
100 | * Thu Sep 13 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.17.3-0vl1 |
---|
101 | - updated to 3.16 |
---|
102 | - rebuilt with new toolchain |
---|
103 | |
---|
104 | * Sun Jun 11 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.16-0vl1 |
---|
105 | - updated to 3.16 |
---|
106 | - changed Group to Development/Languages |
---|
107 | - rebuild with python-2.4.3, sip-4.4.5, qscinteilla-1.6 |
---|
108 | |
---|
109 | * Sun Apr 03 2005 Shu KONNO <owa@bg.wakwak.com> 3.13-0vl2 |
---|
110 | - rebuild with python-2.4.1 |
---|
111 | |
---|
112 | * Sat Jan 15 2005 Satoshi MACHINO <machino@vinelinux.org> 3.13-0vl1 |
---|
113 | - initial release for VineLinux |
---|
114 | |
---|