ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/qt.spec
Revision: 1.49
Committed: Wed Aug 17 18:45:11 2011 UTC (13 years, 8 months ago) by eulisse
Branch: MAIN
CVS Tags: vs20120215-50X, da20120214-50X, CMSSW_5_0_1_patch3, daForCMSSW_5_0_1_patch3b-slc5_amd64_gcc434, daForCMSSW_5_0_1_patch3-slc5_amd64_gcc434, CMSSW_5_0_1_patch2, daForCMSSW_5_0_1_patch2c-slc5_amd64_gcc434, daForCMSSW_5_0_1_patch2b-slc5_amd64_gcc434, daForCMSSW_5_0_1_patch2-slc5_amd64_gcc434, da20120206-50X, da20120205-50X, CMSSW_5_0_1_patch1, CMSSW_5_0_0_patch2, CMSSW_5_0_1, da20120129-50X, da20120123-50X, CMSSW_5_0_0_patch1, da20120112-50X, da20120110-50X, CMSSW_5_0_0_g4emtest, da20111220-50X, sjgFor510pre1, CMSSW_5_0_0, sjgFor500, az20111214-50X, vs20111213-50X, fwFor500pre7-online, CMSSW_5_0_0_pre7pythia424, sjgFor500pre7p424b, sjgFor500pre7p424, CMSSW_5_0_0_pre7, sjgFor500pre7, da20111205-50X, sjg20111204b-50X, sjg20111204-50X, da20111202-50X, vs20111201c-50X, vs20111201temp-50X, vs20111201b-50X, vs20111201-50X, da20111201b-50X, da20111201-50X, da20111130-50X, CMSSW_5_0_0_pre6g494, da20111128-50X, sjgFor500pre6gcc494, az20111126-50X, sm20111126-50X, az20111125-50X, az20111124-50X, az20111123-50X, CMSSW_5_0_0_pre6, sjgFor500pre6, sm20111121-50X, az20111117b-50X, az20111117-50X, az20111116-50X, az20111115-50X, CMSSW_5_0_0_pre5_root532rc1, azFor500pre5r532rc1, az20111111b-50X, az20111111-50X, az20111108-50X, CMSSW_5_0_0_pre5, sjgFor500pre5, fwFor500pre4-online, az20111102b-50X, az20111102-50X, az20111031c-50X, az20111031b-50X, az20111031-50X, CMSSW_5_0_0_pre4, az20111027b-50X, az20111027-50X, sjgFor500pre4, az20111026-50X, az20111025-50X, sm20111025-50X, az20111024-50X, az20111022-50X, sjg111021d-50X, sjg111021c-50X, sjg111021b-50X, sjg111021-50X, CMSSW_5_0_0_pre3, sjgFor500pre3, az20111014-50X, az20111012-50X, az20111011b-50X, az20111011a-50X, CMSSW_5_0_0_pre2, sjgFor500pre2, az20111007-50X, builder_2011-09-29_09-05-43_crab-server3, builder_2011-09-29_09-05-42_asyncstageout, builder_2011-09-29_05-49-40_wmagent, az20110928a-50X, az20110928-50X, builder_2011-09-27_17-51-30_reqmon, CMSSW_5_0_0_pre1, sjgFor500pre1b, sjgFor500pre1, builder_2011-09-23_12-09-06_wmagent, az20110922c-50X, az20110922b-50X, az20110922a-50X, az20110922-50X, builder_2011-09-22_12-03-59_asyncstageout, builder_2011-09-22_11-25-57_crab-server3, builder_2011-09-22_11-24-38_asyncstageout, builder_2011-09-22_05-26-44_wmagent, builder_2011-09-21_18-06-30_asyncstageout, builder_2011-09-21_15-26-46_wmagent, builder_2011-09-21_12-53-09_crab-server3, builder_2011-09-21_12-53-09_asyncstageout, builder_2011-09-21_12-47-08_crab-server3, builder_2011-09-21_12-45-23_asyncstageout, builder_2011-09-20_21-03-55_regsvc, az20110920-50X, az20110918-50X, az20110916c-50X, az20110916b-50X, az20110916a-50X, az20110916-50X, az20110912-50X, sm20110912-50X, az20110908-50X, az20110907c-50X, builder_2011-09-07_19-00-35_cmsweb, az20110907b-50X, sm20110907-50X, builder_2011-09-06_22-45-07_globalmonitor, az20110904-50X-ports, az20110904-50X, az20110902b-50X-ports, az20110902b-50X, az20110902a-50X, az20110902-50X-ports, az20110902-50X, builder_2011-09-01_12-14-12_wmagent, az20110831-50X-ports, az20110831-50X, HG1109a, builder_2011-08-29_19-08-40_cmsweb, az20110827-50X-ports, az20110827-50X, az20110826b-50X-ports, az20110826b-50X, az20110826a-50X, az20110826-50X, az20110825-50X-ports, az20110825-50X, az20110823-50X-ports, az20110823-50X, az20110818a-50X-ports, az20110818a-50X, az20110818-50X-ports, az20110818-50X
Changes since 1.48: +5 -1 lines
Log Message:
Reduce installation size

* No debug libraries
* No webkit support
* No multimedia support

File Contents

# Content
1 ### RPM external qt 4.6.3
2 ## INITENV UNSET QMAKESPEC
3 ## INITENV SET QTDIR %i
4
5 Requires: libjpg
6 Source0: ftp://ftp.qt.nokia.com/qt/source/%n-everywhere-opensource-src-%{realversion}.tar.gz
7
8 %prep
9 %setup -T -b 0 -n %n-everywhere-opensource-src-%{realversion}
10
11 %build
12 unset QMAKESPEC || true
13 export QTDIR=$PWD
14 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 %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 rm -rf demos examples doc
31 echo yes | ./configure -prefix %i -opensource -stl -no-openssl -no-webkit -no-debug \
32 -L$LIBJPG_ROOT/lib -no-glib -no-libtiff -no-libpng -no-libmng \
33 -no-phonon -no-multimedia \
34 -no-separate-debug-info -no-multimedia -no-sql-odbc -no-sql-mysql $CONFIG_ARGS \
35 -make "libs tools"
36
37 make %makeprocesses
38
39 %install
40 make install
41 # We remove pkg-config files for two reasons:
42 # * it's actually not required (macosx does not even have it).
43 # * rpm 4.8 adds a dependency on the system /usr/bin/pkg-config
44 # on linux.
45 # In the case at some point we build a package that can be build
46 # only via pkg-config we have to think on how to ship our own
47 # version.
48 rm -rf %i/lib/pkgconfig
49
50 # Qt itself has some paths that can only be overwritten by
51 # using an appropriate `qt.conf`.
52 # Without this qmake will complain whenever used in
53 # a directory different than the build one.
54 mkdir -p %i/bin
55 cat << \EOF_QT_CONF >%i/bin/qt.conf
56 [Paths]
57 Prefix = %{i}
58 EOF_QT_CONF
59
60 %post
61 %{relocateConfig}lib/libQt3Support.la
62 %{relocateConfig}lib/libQtSql.la
63 %{relocateConfig}lib/libQtCLucene.la
64 %{relocateConfig}lib/libQtSvg.la
65 %{relocateConfig}lib/libQtCore.la
66 %{relocateConfig}lib/libQtTest.la
67 %{relocateConfig}lib/libQtGui.la
68 %{relocateConfig}lib/libQtWebKit.la
69 %{relocateConfig}lib/libQtHelp.la
70 %{relocateConfig}lib/libQtXml.la
71 %{relocateConfig}lib/libQtNetwork.la
72 %{relocateConfig}lib/libQtXmlPatterns.la
73 %{relocateConfig}lib/libQtOpenGL.la
74 %{relocateConfig}lib/libQtScript.la
75 %{relocateConfig}bin/qt.conf
76 %{relocateConfig}mkspecs/qconfig.pri