ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/glimpse.spec
Revision: 1.13
Committed: Wed Jun 27 12:50:44 2007 UTC (17 years, 10 months ago) by elmer
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, CMSSW_1_6_7, pe20071019a-for167, CMSSW_1_6_6, pe20071013a-for166p2, nr20071011-bootstrap, pe20071011a-for166, pe20071009a-for166p1, 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, pe20070926a-for163, CMSSW_1_6_2, ap-20070925, pe20070925a-for162, CMSSW_1_6_2_pre1, pe20070922a-for162p1, CMSSW_1_6_1, pe20070922g-for161p2, pe20070922f-for161p2, pe20070922e-for161p2, pe20070922d-for161p2, pe20070922c-for161p2, pe20070922b-for161p2, pe20070922a-for161p2, CMSSW_1_6_1_pre1, 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_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, 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, pe20070705a-160p3, CMSSW_1_6_0_pre2, ge20070705, ge20070704, ge20070703b, pe20070702b-160p3, pe20070702b-160p2, ge20070702-rpm-webtools, CMSSW_1_6_0_pre1, pe20070729b-160p2, pe20070729b-160p1, pe20070729a-160p2, pe20070729a-160p1, pe20070629a-ports, pe20070628e-ports, pe20070628d-ports, pe20070628c-ports, pe20070628b-ports, pe20070628a-ports, pe20070627b-ports, pe20070627a-ports
Changes since 1.12: +1 -1 lines
Log Message:
Update to -CMS3 for full rebuild

File Contents

# User Rev Content
1 elmer 1.13 ### RPM external glimpse 4.18.5-CMS3
2 elmer 1.11 Source: http://webglimpse.net/trial/glimpse-%{realversion}.tar.gz
3 elmer 1.1
4     %prep
5 elmer 1.11 %setup -n glimpse-%realversion
6 elmer 1.1 %build
7     ./configure --prefix=%{i}
8 elmer 1.12 # Turn off this part, it causes problems for 32-bit-on-64-bit and is only
9     # needed for webglimpse
10     perl -p -i -e "s|dynfilters||g" Makefile
11 eulisse 1.2 make
12 elmer 1.1
13     %install
14     make install
15 elmer 1.4 cat <<\EOF_CMS_GLIMPSE >%{i}/bin/cmsglimpse
16 eulisse 1.3 #!/bin/bash
17     CURRENT_SCRAM_PROJECT=$(echo $SCRAMRT_SET | cut -d: -f2)
18     args=
19     action=
20    
21     while [ $# -gt 0 ]
22     do
23     case $1 in
24 elmer 1.8 --full )
25 elmer 1.6 action=full; shift;;
26 elmer 1.8 --help )
27     echo "cmsglimpse [-H <CMSSW_TAG>] [--full] [--help] [glimpse-options] <search term>"
28 elmer 1.6 echo ""
29     echo " -H <CMSSW_TAG> - specify the CMSSW tag for the release you "
30     echo " would like to search (e.g. 'CMSSW_1_0_0'). "
31     echo " If you do not specify the -H option it will "
32     echo " default to the release corresponding to "
33     echo " your current scram runtime environment. "
34     echo ""
35 elmer 1.8 echo " --full - Print the full path to the source files. The "
36 elmer 1.6 echo " default is to print the relative path "
37     echo " beginning with the CMSSW subsystem. "
38     echo ""
39 elmer 1.8 echo " --help - This help information "
40     echo ""
41 elmer 1.6 echo " [glimpse-options] - any of the glimpse options can also be "
42 elmer 1.8 echo " specified, except for -H and --help, which"
43     echo " are used as described above. "
44     echo " See 'glimpse --help' for the full list. "
45 eulisse 1.3 exit
46     ;;
47     -H )[ $# -gt 1 ] || { echo "Option \`$1' requires an argument" 1>&2; exit 1; }
48     CURRENT_SCRAM_PROJECT=$2; shift; shift ;;
49     * ) args="$args $1"; shift;;
50     esac
51     done
52    
53     if [ "$CURRENT_SCRAM_PROJECT" == "" ]
54     then
55     echo "No project specified. "
56     echo "Please eval some scram runtime or use -H option."
57     exit 1
58     fi
59    
60     case $action in
61 elmer 1.6 full )
62 elmer 1.7 if [ ! -e @INSTROOT@/@CMSPLATF@/cms/cmssw/$CURRENT_SCRAM_PROJECT/src/.glimpse_full/.glimpse_index ]
63     then
64     echo "Glimpse index not found. Expected it in directory:"
65     echo " @INSTROOT@/@CMSPLATF@/cms/cmssw/$CURRENT_SCRAM_PROJECT/src/.glimpse_full/"
66     exit 1
67     fi
68     glimpse -H @INSTROOT@/@CMSPLATF@/cms/cmssw/$CURRENT_SCRAM_PROJECT/src/.glimpse_full/ $args
69 eulisse 1.3 ;;
70     * )
71 elmer 1.7 if [ ! -e @INSTROOT@/@CMSPLATF@/cms/cmssw/$CURRENT_SCRAM_PROJECT/src/.glimpse_index ]
72     then
73     echo "Glimpse index not found. Expected it in directory:"
74     echo " @INSTROOT@/@CMSPLATF@/cms/cmssw/$CURRENT_SCRAM_PROJECT/src/"
75     exit 1
76     fi
77     glimpse -H @INSTROOT@/@CMSPLATF@/cms/cmssw/$CURRENT_SCRAM_PROJECT/src $args
78 eulisse 1.3 ;;
79     esac
80     EOF_CMS_GLIMPSE
81 elmer 1.4 perl -p -i -e "s|\@CMSPLATF\@|%cmsplatf|g" %{i}/bin/cmsglimpse
82     chmod +x %{i}/bin/cmsglimpse
83 eulisse 1.3 %post
84 elmer 1.5 perl -p -i -e "s|\@INSTROOT\@|$RPM_INSTALL_PREFIX|g" $RPM_INSTALL_PREFIX/%{pkgrel}/bin/cmsglimpse