ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/qt.spec
(Generate patch)

Comparing COMP/CMSDIST/qt.spec (file contents):
Revision 1.22 by elmer, Thu Dec 27 20:28:33 2007 UTC vs.
Revision 1.26 by eulisse, Tue Jan 27 13:21:14 2009 UTC

# Line 1 | Line 1
1 < ### RPM external qt 3.3.8-CMS19
1 > ### RPM external qt 4.4.3
2   ## INITENV UNSET QMAKESPEC
3   ## INITENV SET QTDIR %i
4 %define qttype %(echo %realversion | sed 's/[-0-9.]*//')
5 %define qtversion %(echo %realversion | 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
4  
5   # Requires: zlib, ...
6 < Source0: ftp://ftp.trolltech.com/qt/source/%n-mac-free-%{qtversion}.tar.bz2
24 < Source1: ftp://ftp.trolltech.com/qt/source/%n-x11-free-%{qtversion}.tar.bz2
25 < Patch0: qt-mkspecs-qmake.conf
26 < Patch1: qt-mkspecs-qplatformdefs.h
27 < Patch2: qt-src-kernel-qaccessible_mac.cpp
28 < Patch3: qt-src-qt_install.pri
29 < Patch4: qt-mkspecs-qmake.conf_2
30 < Patch5: qt3-leopard
6 > Source0: ftp://ftp.trolltech.com/qt/source/%n-all-opensource-src-%{realversion}.tar.bz2
7  
8   %prep
9 < %setup -T -b %sourcepkg -n %n-%type-free-%{qtversion}
34 < #%ifos darwin
35 < #%patch1 -p0
36 < #%patch2 -p0
37 < #%patch3 -p0
38 < #%endif
39 <
40 < case %cmsplatf in
41 <    slc4_ia32* )
42 <        # The kludge supports the libfontconfig kludge described below
43 < %patch4 -p1
44 <    ;;
45 <    osx105* )
46 < %patch5 -p1
47 <    ;;
48 < esac
9 > %setup -T -b 0 -n %n-all-opensource-src-%{realversion}
10  
11   %build
12   unset QMAKESPEC || true
# Line 54 | Line 15 | export PATH=$QTDIR/bin:$PATH
15   export LD_LIBRARY_PATH=$QTDIR/lib:$LD_LIBRARY_PATH
16   export DYLD_LIBRARY_PATH=$QTDIR/lib:$DYLD_LIBRARY_PATH
17  
18 < case $(uname -m) in
19 <  x86_64)
18 > case %cmsplatf in
19 >  slc*_amd64*)
20      export CONFIG_ARGS="-platform linux-g++-64"
21 +  ;;
22 +  osx*)
23 +    export CONFIG_ARGS="-no-framework"
24 +  ;;
25   esac
26  
27 < echo yes | ./configure -prefix %i -thread -stl $CONFIG_ARGS
28 < # install_framework is hosed
64 < perl -p -i -e 's/^install_framework:/install_framework:\ninstall_framework_no:/' src/Makefile
27 > echo yes | ./configure -prefix %i -stl -no-openssl $CONFIG_ARGS
28 >
29   # The following is a kludge around the fact that the fact that the
30   # /usr/lib/libfontconfig.so soft link (for 32-bit lib) is missing
31   # on the 64-bit machines
32 < %if (("%cmsplatf" == "slc4_ia32_gcc345")||("%cmsplatf" == "slc4_ia32_gcc412")||("%cmsplatf" == "slc4_ia32_gcc422"))
33 <  mkdir -p %{_builddir}/lib
34 <  ln -s /usr/lib/libfontconfig.so.1 %{_builddir}/%n-%type-free-%{qtversion}/lib/libfontconfig.so
35 < %endif
32 > case %cmsplatf in
33 >  slc*_ia32*)
34 >    mkdir -p %{_builddir}/lib
35 >    ln -s /usr/lib/libfontconfig.so.1 %{_builddir}/%n-all-opensource-src-%{realversion}/lib/libfontconfig.so
36 >    ;;
37 > esac
38  
39   make %makeprocesses
40  
# Line 77 | Line 43 | make install
43  
44   # SCRAM ToolBox toolfile
45   mkdir -p %i/etc/scram.d
46 < cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
46 > cat << \EOF_TOOLFILE >%i/etc/scram.d/qtbase
47   <doc type=BuildSystem::ToolDoc version=1.0>
48 < <Tool name=%n version=%v>
48 > <Tool name=qtbase version=%v>
49   <info url="http://www.trolltech.com/products/qt.html"></info>
50 < <LIB name=qt-mt>
50 > <LIB name=QtCore>
51 > <LIB name=QtXML>
52   <Client>
53   <Environment name=QT_BASE default="%i"></Environment>
54   <Environment name=LIBDIR default="$QT_BASE/lib"></Environment>
# Line 89 | Line 56 | cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
56   </Client>
57   <Flags CPPDEFINES="QT_ALTERNATE_QTSMANIP QT_CLEAN_NAMESPACE QT_THREAD_SUPPORT">
58   <Runtime name=PATH value="$QT_BASE/bin" type=path>
59 + <use name=zlib>
60 + </Tool>
61 + EOF_TOOLFILE
62 +
63 + cat << \EOF_TOOLFILE >%i/etc/scram.d/qt
64 + <doc type=BuildSystem::ToolDoc version=1.0>
65 + <Tool name=qt version=%v>
66 + <info url="http://www.trolltech.com/products/qt.html"></info>
67 + <LIB name=QtOpenGL>
68 + <LIB name=QtGui>
69 + <use name=qtbase>
70   <use name=X11>
71   <use name=opengl>
72 < <use name=zlib>
72 > </Tool>
73 > EOF_TOOLFILE
74 >
75 > cat << \EOF_TOOLFILE >%i/etc/scram.d/qtdesigner
76 > <doc type=BuildSystem::ToolDoc version=1.0>
77 > <Tool name=qtdesigner version=%v>
78 > <info url="http://www.trolltech.com/products/qt.html"></info>
79 > <LIB name=QtDesigner>
80 > <use name=qtinteractive>
81   </Tool>
82   EOF_TOOLFILE
83  
84   %post
85   %{relocateConfig}lib/libqt-mt.la
86   %{relocateConfig}etc/scram.d/%n
101

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines