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.13 by ratnik, Wed Apr 18 23:46:02 2007 UTC vs.
Revision 1.17 by muzaffar, Mon Sep 3 15:28:45 2007 UTC

# Line 1 | Line 1
1 < ### RPM external qt 3.3.6
2 < Requires: gcc-wrapper
1 > ### RPM external qt 3.3.6-CMS8
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/-.*//')
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
# Line 27 | Line 26 | 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  
31   %prep
32   %setup -T -b %sourcepkg -n %n-%type-free-%{qtversion}
# Line 35 | Line 35 | Patch3: qt-src-qt_install.pri
35   #%patch2 -p0
36   #%patch3 -p0
37   #%endif
38 + # The kludge supports the libfontconfig kludge described below
39 + %if "%cmsplatf" == "slc4_ia32_gcc345"
40 + %patch4 -p1
41 + %endif
42  
43   %build
40 ## IMPORT gcc-wrapper
44   unset QMAKESPEC || true
45   export QTDIR=$PWD
46   export PATH=$QTDIR/bin:$PATH
# Line 52 | Line 55 | esac
55   echo yes | ./configure -prefix %i -thread -stl $CONFIG_ARGS
56   # install_framework is hosed
57   perl -p -i -e 's/^install_framework:/install_framework:\ninstall_framework_no:/' src/Makefile
58 + # The following is a kludge around the fact that the fact that the
59 + # /usr/lib/libfontconfig.so soft link (for 32-bit lib) is missing
60 + # on the 64-bit machines
61 + %if "%cmsplatf" == "slc4_ia32_gcc345"
62 +  mkdir -p %{_builddir}/lib
63 +  ln -s /usr/lib/libfontconfig.so.1 %{_builddir}/%n-%type-free-%{qtversion}/lib/libfontconfig.so
64 + %endif
65 +
66   make %makeprocesses
67 +
68 + %install
69 + make install
70 +
71 + # SCRAM ToolBox toolfile
72 + mkdir -p %i/etc/scram.d
73 + cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
74 + <doc type=BuildSystem::ToolDoc version=1.0>
75 + <Tool name=%n version=%v>
76 + <info url="http://www.trolltech.com/products/qt.html"></info>
77 + <LIB name=qt-mt>
78 + <Client>
79 + <Environment name=QT_BASE default="%i"></Environment>
80 + <Environment name=LIBDIR default="$QT_BASE/lib"></Environment>
81 + <Environment name=INCLUDE default="$QT_BASE/include"></Environment>
82 + </Client>
83 + <Flags CPPDEFINES="QT_ALTERNATE_QTSMANIP QT_CLEAN_NAMESPACE QT_THREAD_SUPPORT">
84 + <Runtime name=PATH value="$QT_BASE/bin" type=path>
85 + <use name=X11>
86 + <use name=opengl>
87 + <use name=zlib>
88 + </Tool>
89 + EOF_TOOLFILE
90 +
91   %post
92   %{relocateConfig}lib/libqt-mt.la
93 + %{relocateConfig}etc/scram.d/%n
94  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines