ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/qt.spec
Revision: 1.13
Committed: Wed Apr 18 23:46:02 2007 UTC (18 years ago) by ratnik
Branch: MAIN
CVS Tags: pe20070428a-ports, pe20070423b-ports, pe20070423a-ports
Changes since 1.12: +2 -0 lines
Log Message:
Changes for building  externals in 64/32 mode: added gcc-wrapper .

File Contents

# Content
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.]*//')
6 %define qtversion %(echo %v | sed 's/-.*//')
7 %if "%qttype" == ""
8 %ifos darwin
9 %define type mac
10 %else
11 %define type x11
12 %endif
13 %else
14 %define type %{qttype}
15 %endif
16
17 %if "%type" == "x11"
18 %define sourcepkg 1
19 %else
20 %define sourcepkg 0
21 %endif
22
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
44 export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
45 export DYLD_LIBRARY_PATH=$QTDIR/lib:$DYLD_LIBRARY_PATH
46
47 case $(uname -m) in
48 x86_64)
49 export CONFIG_ARGS="-platform linux-g++-64"
50 esac
51
52 echo yes | ./configure -prefix %i -thread -stl $CONFIG_ARGS
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