1 |
< |
### RPM external qt 3.3.4 |
1 |
> |
### RPM external qt 3.3.6 |
2 |
> |
Requires: gcc-wrapper |
3 |
|
## INITENV UNSET QMAKESPEC |
4 |
|
## INITENV SET QTDIR %i |
5 |
|
%define qttype %(echo %v | sed 's/[-0-9.]*//') |
23 |
|
# Requires: zlib, ... |
24 |
|
Source0: ftp://ftp.trolltech.com/qt/source/%n-mac-free-%{qtversion}.tar.bz2 |
25 |
|
Source1: ftp://ftp.trolltech.com/qt/source/%n-x11-free-%{qtversion}.tar.bz2 |
26 |
+ |
Patch0: qt-mkspecs-qmake.conf |
27 |
+ |
Patch1: qt-mkspecs-qplatformdefs.h |
28 |
+ |
Patch2: qt-src-kernel-qaccessible_mac.cpp |
29 |
+ |
Patch3: qt-src-qt_install.pri |
30 |
|
|
31 |
|
%prep |
32 |
|
%setup -T -b %sourcepkg -n %n-%type-free-%{qtversion} |
33 |
+ |
#%ifos darwin |
34 |
+ |
#%patch1 -p0 |
35 |
+ |
#%patch2 -p0 |
36 |
+ |
#%patch3 -p0 |
37 |
+ |
#%endif |
38 |
|
|
39 |
|
%build |
40 |
+ |
## IMPORT gcc-wrapper |
41 |
|
unset QMAKESPEC || true |
42 |
|
export QTDIR=$PWD |
43 |
|
export PATH=$QTDIR/bin:$PATH |
53 |
|
# install_framework is hosed |
54 |
|
perl -p -i -e 's/^install_framework:/install_framework:\ninstall_framework_no:/' src/Makefile |
55 |
|
make %makeprocesses |
56 |
+ |
%post |
57 |
+ |
%{relocateConfig}lib/libqt-mt.la |
58 |
+ |
|