ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/qt.spec
Revision: 1.5
Committed: Tue May 9 17:02:08 2006 UTC (18 years, 11 months ago) by eulisse
Branch: MAIN
CVS Tags: V00-00-04, V00-00-03
Changes since 1.4: +1 -0 lines
Log Message:
Dependency on X11 added.

File Contents

# Content
1 ### RPM external qt 3.3.4
2 ## INITENV UNSET QMAKESPEC
3 ## INITENV SET QTDIR %i
4 %define qttype %(echo %v | sed 's/[-0-9.]*//')
5 %define qtversion %(echo %v | sed 's/-.*//')
6 %if "%qttype" == ""
7 %ifos darwin
8 %define type mac
9 %else
10 %define type x11
11 %endif
12 %else
13 %define type %{qttype}
14 %endif
15
16 %if "%type" == "x11"
17 %define sourcepkg 1
18 %else
19 %define sourcepkg 0
20 %endif
21
22 # Requires: zlib, ...
23 Requires: x11
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
27 %prep
28 %setup -T -b %sourcepkg -n %n-%type-free-%{qtversion}
29
30 %build
31 unset QMAKESPEC || true
32 export QTDIR=$PWD
33 export PATH=$QTDIR/bin:$PATH
34 export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
35 export DYLD_LIBRARY_PATH=$QTDIR/lib:$DYLD_LIBRARY_PATH
36
37 case $(uname -m) in
38 x86_64)
39 export CONFIG_ARGS="-platform linux-g++-64"
40 esac
41
42 echo yes | ./configure -prefix %i -thread -stl $CONFIG_ARGS
43 # install_framework is hosed
44 perl -p -i -e 's/^install_framework:/install_framework:\ninstall_framework_no:/' src/Makefile
45 make %makeprocesses