[9071] | 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 | |
---|
[521] | 4 | %define name PyQt |
---|
| 5 | %define version 3.18.1 |
---|
[10460] | 6 | %define release 5%{?_dist_release} |
---|
[521] | 7 | |
---|
| 8 | Summary: Python bindings for Qt. |
---|
[9071] | 9 | Summary(ja): Qt の Python バインディング |
---|
[521] | 10 | Name: %{name} |
---|
| 11 | Version: %{version} |
---|
| 12 | Release: %{release} |
---|
[9071] | 13 | License: GPLv2 |
---|
| 14 | Group: System Environment/Libraries |
---|
| 15 | URL: http://www.riverbankcomputing.co.uk/pyqt |
---|
| 16 | |
---|
[521] | 17 | Source: http://www.riverbankcomputing.com/Downloads/PyQt3/GPL/%{name}-x11-gpl-%{version}.tar.gz |
---|
[9071] | 18 | # FTBFS against sip-4.15+ |
---|
| 19 | Patch1: PyQt-x11-gpl-3.18.1-sip415.patch |
---|
| 20 | |
---|
[521] | 21 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
[9071] | 22 | BuildRequires: libXmu-devel |
---|
| 23 | BuildRequires: python-devel |
---|
| 24 | BuildRequires: qt-devel |
---|
| 25 | BuildRequires: sip-devel |
---|
[521] | 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} |
---|
[9071] | 43 | %patch1 -p0 -b .sip415 |
---|
[521] | 44 | |
---|
| 45 | %build |
---|
[9071] | 46 | unset QTDIR || : ; . /etc/profile.d/qt.sh |
---|
[521] | 47 | |
---|
[9071] | 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 | |
---|
[521] | 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}/* |
---|
[9071] | 68 | %{python_sitearch}/* |
---|
[521] | 69 | |
---|
| 70 | %files devel |
---|
| 71 | %defattr(-,root,root) |
---|
| 72 | %doc examples* |
---|
| 73 | %{_datadir}/sip/* |
---|
| 74 | |
---|
| 75 | %changelog |
---|
[10460] | 76 | * Thu Jun 30 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.18.1-5 |
---|
| 77 | - rebuild with gcc-5.4.0 |
---|
| 78 | |
---|
[9071] | 79 | * Sat Nov 8 2014 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 3.18.1-4 |
---|
| 80 | - rebuilt on current VineSeed |
---|
| 81 | - added patch1 |
---|
| 82 | - moved to System Environment/Libraries Group |
---|
| 83 | |
---|
[5701] | 84 | * Sat Feb 18 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 3.18.1-3 |
---|
| 85 | - rebuilt with python-2.7.2 |
---|
| 86 | |
---|
[521] | 87 | * Wed Feb 03 2010 Shu KONNO <owa@bg.wakwak.com> 3.18.1-2 |
---|
| 88 | - rebuilt with python-2.6.4 |
---|
| 89 | |
---|
| 90 | * Thu Nov 12 2009 Ryoichi INAGAKI <owa@bg.wakwak.com> 3.18.1-1 |
---|
| 91 | - new upstream release |
---|
| 92 | - removed qscintilla dependency |
---|
| 93 | |
---|
| 94 | * Mon Jul 21 2008 Shu KONNO <owa@bg.wakwak.com> 3.17.3-1vl5 |
---|
| 95 | - rebuilt with python-2.5.2 |
---|
| 96 | - added pyexeclib macro |
---|
| 97 | - applied new versioning policy |
---|
| 98 | |
---|
| 99 | * Fri Nov 30 2007 Shu KONNO <owa@bg.wakwak.com> 3.17.3-0vl2 |
---|
| 100 | - changed source url |
---|
| 101 | - fixed python site-packages path (for lib64) |
---|
| 102 | |
---|
| 103 | * Thu Sep 13 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.17.3-0vl1 |
---|
| 104 | - updated to 3.16 |
---|
| 105 | - rebuilt with new toolchain |
---|
| 106 | |
---|
| 107 | * Sun Jun 11 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.16-0vl1 |
---|
| 108 | - updated to 3.16 |
---|
| 109 | - changed Group to Development/Languages |
---|
| 110 | - rebuild with python-2.4.3, sip-4.4.5, qscinteilla-1.6 |
---|
| 111 | |
---|
| 112 | * Sun Apr 03 2005 Shu KONNO <owa@bg.wakwak.com> 3.13-0vl2 |
---|
| 113 | - rebuild with python-2.4.1 |
---|
| 114 | |
---|
| 115 | * Sat Jan 15 2005 Satoshi MACHINO <machino@vinelinux.org> 3.13-0vl1 |
---|
| 116 | - initial release for VineLinux |
---|
| 117 | |
---|