ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/gcc-wrapper.spec
Revision: 1.6
Committed: Fri May 25 22:56:26 2007 UTC (17 years, 11 months ago) by ratnik
Branch: MAIN
CVS Tags: nr080626_for1612flt, CMSSW_1_6_12, apFor1612v0, apFor1612p3v0, CMSSW_1_6_12_pre2, apFor1612p2v1, apFor1612p2v0, CMSSW_1_6_12_pre1, apFor1612p1v1, apFor1612p1v0, CMSSW_1_6_11, apFor1611v0, apFor1611p1v1, apFor1611p1v0, CMSSW_1_6_10, apFor1610v0, CMSSW_1_6_10_pre2, CMSSW_1_6_10_pre1, apFor1610p2v0, apFor1610p1v2, CMSSW_1_6_8_FWLITE-root51800, apFor1610p1v1, CMSSW_1_6_9, apFor169v1, CMSSW_1_6_9_pre2, nr080124fwl168a, apFor169p2v2, apFor169p2v1, apFor169p2v0, ap20080116d, ap20080116c, ap20080116b, ap20080116a, ap20080115d, ap20080115c, ap20080115b, ap20080115a, ap20080114b, ap20080114a, CMSSW_1_6_9_pre1, apFor169p1, apFor169p1v5, apFor169p1v4, apFor169p1v3, apFor169p1v2, apFor169p1v1, apFor169p1v0, apFor169v0, CMSSW_1_6_8, CMSSW_1_6_8_pre2_FWLITE-root51706, apFor168, CMSSW_1_6_8_pre2, apFor168p2, CMSSW_1_6_8_pre1, apFor168p1, CMSSW_1_6_7_FWLITE, nr071026_fwlite167, nr071025_fwlite167, nr071023_fwlite170p6, pe20071023-170p6-amd64, pe20071021-170p6-zlib, dl071021t2, dl071021, pe20071021a-ports, dl071020, CMSSW_1_6_7, pe20071019a-for167, CMSSW_1_6_6, nr071017_170p5onl2, CMSSW_1_7_0_pre6, nr071016_170p5onl1, nr071016onl170p5bs, nr071016onl170p5, pe20071015-xrootd, pe20071014-ports, dl071014, pe20071013a-for166p2, nr20071011-bootstrap, pe20071011a-for166, dl071010t2, dl071010, pe20071009a-for166p1, dl071009t2, dl071009, CMSSW_1_7_0_pre5, CMSSW_1_6_5, pe20071006a-for165, CMSSW_1_6_5_pre2, pe20071005a-for165p2, CMSSW_1_6_5_pre1, pe20070930b-for165p1, pe20070930a-for165p1, CMSSW_1_6_4, pe20070929a-for164, nr20070926-bootstrap, CMSSW_1_6_3, pe20070928a-for16Xdpm, dl070926t2, dl070926, pe20070926a-for163, CMSSW_1_6_2, ap-20070926, ap-20070925, pe20070925a-for162, CMSSW_1_6_2_pre1, pe20070922a-for162p1, CMSSW_1_6_1, CMSSW_1_7_0_pre4, pe20070922g-for161p2, pe20070922f-for161p2, pe20070922e-for161p2, pe20070922d-for161p2, pe20070922c-for161p2, pe20070922b-for161p2, pe20070922a-for161p2, dl070921t2, dl070921, dl070920, CMSSW_1_7_0_pre3, CMSSW_1_6_1_pre1, dl070916, dl070912, dl070812, sm070912b, sm070912a, sm070911a, dl070909p3, dl070909, CMSSW_1_7_0_pre2, dl070906, dl070905, sm030907a, CMSSW_1_6_0, CMSSW_1_6_0_pre14, pe20070831d-160p14, pe20070831c-160p14, pe20070831b-160p14, pe20070831a-160p14, pe20070830a-160p14, CMSSW_1_7_0_pre1, dl070829, CMSSW_1_6_0_DAQ3, CMSSW_1_6_0_pre13, dl070828t2, dl070828, dl070827, dl070826, pe20070826a-160p13, CMSSW_1_6_0_pre12, dl070824, pe20070824b-160p12, pe20070824-160p12, pe20070823-160p12, CMSSW_1_6_0_pre11, CMSSW_1_6_0_pre10, ge20070810-ptc, CMSSW_1_6_0_pre9, CMSSW_1_6_0_pre8, CMSSW_1_5_4, CMSSW_1_5_3, CMSSW_1_6_0_pre7, dl070730, cms160daq1_zhen2, cms160daq1_zhen1, ge20070730-cmsbuild, ge20070729-amd64, CMSSW_1_6_0_pre6, pe20070727-160p6, CMSSW_1_6_0_DAQ1, ge20070726, dl070725, ge20070724-slc3, nr20070723_fwlite160p5, ap20070723, CMSSW_1_6_0_pre5, dl070721, dl070720_160daq1_1, pe20070720-160daq1, pe20070720-160p5, ge20070718, ge20070717, ap20070717, ge20070713-macosx, ap20070712, ge20070712-migration, ge20070712, ge20070711-prodcommon, CMSSW_1_6_0_pre4, ge20070710-formencode, ge20070709-slc3, ge20070709-macosx, ge20070709a-macosx, ge20070706-macosx, ap20070706, CMSSW_1_6_0_pre3, CMSSW_1_5_2, pe20070705a-160p3, CMSSW_1_6_0_pre2, ge20070705, CMSSW_1_5_1, ge20070704, ge20070703b, pe20070702b-160p3, pe20070702b-160p2, ge20070702-rpm-webtools, dl070629t2, dl070629, ge20070629, CMSSW_1_6_0_pre1, pe20070729b-160p2, pe20070729b-160p1, pe20070729a-160p2, pe20070729a-160p1, pe20070629a-ports, pe20070628e-ports, pe20070628d-ports, pe20070628c-ports, pe20070628b-ports, CMSSW_1_5_0-ignominy470, pe20070628a-ports, pe20070627b-ports, pe20070627a-ports, pe20070626c-ports, ge20070625, pe20070626b-ports, sm20070626a-ports, pe20070626a-ports, pe20070625b-ports, pe20070625a-ports, CMSSW_1_5_0, ge20070622, dl070621, CMSSW_1_5_0_pre6, dl070616, nrFWLITE_150pre5_noseal_newboost, dl070615, dl070614xdaq, dl070614, CMSSW_1_5_0_pre5, dl070602t2, dl070602, nrFWLITE_150pre4
Changes since 1.5: +1 -1 lines
Log Message:
Bugfix in relocation script.

File Contents

# User Rev Content
1 ratnik 1.1 ### RPM external gcc-wrapper 3.4.5m32
2     Source: gcc-wrapper-template
3     Source1: gcc-wrapper.pl
4     %define gcc_default_root $GCC_ROOT
5     %define gcc_for_amd64 `echo $GCC_ROOT | sed 's|%{cmsplatf}|slc4_amd64_gcc345|'`
6     %prep
7     %build
8     cp %{_sourcedir}/gcc-wrapper-template ./
9     cp %{_sourcedir}/gcc-wrapper.pl ./
10     chmod +x gcc-wrapper.pl
11 ratnik 1.2
12     # Create wrappers:
13 ratnik 1.1 mkdir ./bin
14    
15     ./gcc-wrapper.pl $GCC_ROOT %{gcc_for_amd64} ./bin
16    
17     %install
18     gtar -c bin | gtar -x -C %{i}
19 ratnik 1.2 # Create fake gcc structure to satisfy tool description in SCRAMToolBox.
20     # then compiler tools could be setup against the wrapper instead of gcc:
21     ln -s ${GCC_ROOT}/lib %{i}/lib
22 ratnik 1.1
23     %post
24 ratnik 1.3 for exe in `ls $RPM_INSTALL_PREFIX/%{pkgrel}/bin`; do
25 ratnik 1.1 %{relocateConfig}bin/${exe}
26     done
27 ratnik 1.2
28     # Relocate the link:
29 ratnik 1.6 relpath=`readlink ${RPM_INSTALL_PREFIX}/%{pkgrel}/lib | sed 's|%{instroot}/||'`
30 ratnik 1.3 rm $RPM_INSTALL_PREFIX/%{pkgrel}/lib
31     ln -s $RPM_INSTALL_PREFIX/$relpath $RPM_INSTALL_PREFIX/%{pkgrel}/lib
32 ratnik 1.2
33 ratnik 1.1 if [ "`uname -m`" == "x86_64" ]
34     then
35     # Check that gcc_for_amd64 is installed (or install it?)
36     [ -e $RPM_INSTALL_PREFIX/slc4_amd64_gcc345/external/gcc/3.4.5/bin ] || \
37     echo -e "=====================================================================
38    
39     WARNING: GCC installation for slc4_amd64_gcc345 is missing!
40     To build CMSSW on `uname -m` you need GCC and SCRAMV1
41     installed for this platform.
42     ====================================================================="
43     fi