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.46 by eulisse, Mon Sep 6 20:29:42 2010 UTC

# Line 1 | Line 1
1 < ### RPM external qt 3.3.8-CMS19
1 > ### RPM external qt 4.6.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
21
22 # Requires: zlib, ...
23 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
4  
5 < %prep
6 < %setup -T -b %sourcepkg -n %n-%type-free-%{qtversion}
34 < #%ifos darwin
35 < #%patch1 -p0
36 < #%patch2 -p0
37 < #%patch3 -p0
38 < #%endif
5 > Requires: libjpg
6 > Source0: ftp://ftp.qt.nokia.com/qt/source/%n-everywhere-opensource-src-%{realversion}.tar.gz
7  
8 < case %cmsplatf in
9 <    slc4_ia32* )
42 <        # The kludge supports the libfontconfig kludge described below
43 < %patch4 -p1
44 <    ;;
45 <    osx105* )
46 < %patch5 -p1
47 <    ;;
48 < esac
8 > %prep
9 > %setup -T -b 0 -n %n-everywhere-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*_ia32*)
23 +    export CONFIG_ARGS="-no-framework"
24 +  ;;
25 +  osx*_amd64*)
26 +    export CONFIG_ARGS="-no-framework -arch x86_64"
27 +  ;;
28   esac
29  
30 < echo yes | ./configure -prefix %i -thread -stl $CONFIG_ARGS
31 < # install_framework is hosed
32 < perl -p -i -e 's/^install_framework:/install_framework:\ninstall_framework_no:/' src/Makefile
30 > rm -rf demos examples doc
31 > echo yes | ./configure -prefix %i -opensource -stl -no-openssl -L$LIBJPG_ROOT/lib -no-glib -no-libtiff -no-libpng -no-libmng -no-separate-debug-info -no-sql-odbc -no-sql-mysql $CONFIG_ARGS -make "libs tools"
32 >
33   # The following is a kludge around the fact that the fact that the
34   # /usr/lib/libfontconfig.so soft link (for 32-bit lib) is missing
35   # on the 64-bit machines
36 < %if (("%cmsplatf" == "slc4_ia32_gcc345")||("%cmsplatf" == "slc4_ia32_gcc412")||("%cmsplatf" == "slc4_ia32_gcc422"))
37 <  mkdir -p %{_builddir}/lib
38 <  ln -s /usr/lib/libfontconfig.so.1 %{_builddir}/%n-%type-free-%{qtversion}/lib/libfontconfig.so
39 < %endif
36 > case %cmsplatf in
37 >  slc*_ia32*)
38 >    mkdir -p %{_builddir}/lib
39 >    ln -s /usr/lib/libfontconfig.so.1 %{_builddir}/%n-all-opensource-src-%{realversion}/lib/libfontconfig.so
40 >    ;;
41 > esac
42  
43   make %makeprocesses
44  
45   %install
46   make install
47  
48 < # SCRAM ToolBox toolfile
49 < mkdir -p %i/etc/scram.d
50 < cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
51 < <doc type=BuildSystem::ToolDoc version=1.0>
52 < <Tool name=%n version=%v>
53 < <info url="http://www.trolltech.com/products/qt.html"></info>
54 < <LIB name=qt-mt>
55 < <Client>
56 < <Environment name=QT_BASE default="%i"></Environment>
87 < <Environment name=LIBDIR default="$QT_BASE/lib"></Environment>
88 < <Environment name=INCLUDE default="$QT_BASE/include"></Environment>
89 < </Client>
90 < <Flags CPPDEFINES="QT_ALTERNATE_QTSMANIP QT_CLEAN_NAMESPACE QT_THREAD_SUPPORT">
91 < <Runtime name=PATH value="$QT_BASE/bin" type=path>
92 < <use name=X11>
93 < <use name=opengl>
94 < <use name=zlib>
95 < </Tool>
96 < EOF_TOOLFILE
48 > # Qt itself has some paths that can only be overwritten by
49 > # using an appropriate `qt.conf`.
50 > # Without this qmake will complain whenever used in
51 > # a directory different than the build one.
52 > mkdir -p %i/bin
53 > cat << \EOF_QT_CONF >%i/bin/qt.conf
54 > [Paths]
55 > Prefix = %{i}
56 > EOF_QT_CONF
57  
58   %post
59 < %{relocateConfig}lib/libqt-mt.la
60 < %{relocateConfig}etc/scram.d/%n
61 <
59 > %{relocateConfig}lib/libQt3Support.la    
60 > %{relocateConfig}lib/libQtSql.la
61 > %{relocateConfig}lib/libQtCLucene.la      
62 > %{relocateConfig}lib/libQtSvg.la
63 > %{relocateConfig}lib/libQtCore.la    
64 > %{relocateConfig}lib/libQtTest.la
65 > %{relocateConfig}lib/libQtGui.la      
66 > %{relocateConfig}lib/libQtWebKit.la
67 > %{relocateConfig}lib/libQtHelp.la    
68 > %{relocateConfig}lib/libQtXml.la
69 > %{relocateConfig}lib/libQtNetwork.la      
70 > %{relocateConfig}lib/libQtXmlPatterns.la
71 > %{relocateConfig}lib/libQtOpenGL.la    
72 > %{relocateConfig}lib/libQtScript.la    
73 > %{relocateConfig}bin/qt.conf
74 > %{relocateConfig}mkspecs/qconfig.pri

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines