ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/glimpse.spec
(Generate patch)

Comparing COMP/CMSDIST/glimpse.spec (file contents):
Revision 1.7 by elmer, Sun Sep 17 11:05:30 2006 UTC vs.
Revision 1.14 by muzaffar, Mon Sep 3 15:28:45 2007 UTC

# Line 1 | Line 1
1 < ### RPM external glimpse 4.18.5
2 < Source: http://webglimpse.net/trial/glimpse-%{v}.tar.gz
1 > ### RPM external glimpse 4.18.5-CMS8
2 > Source: http://webglimpse.net/trial/glimpse-%{realversion}.tar.gz
3  
4   %prep
5 < %setup -n glimpse-%v
5 > %setup -n glimpse-%realversion
6   %build
7   ./configure --prefix=%{i}
8 + # 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   make
12  
13   %install
# Line 18 | Line 21 | action=
21   while [ $# -gt 0 ]
22   do
23    case $1 in
24 <    -full )
24 >    --full )
25          action=full; shift;;
26 <    -help )
27 <        echo "cmsglimpse [-H <CMSSW_TAG>] [-full] [glimpse-options] <search term>"
26 >    --help )
27 >        echo "cmsglimpse [-H <CMSSW_TAG>] [--full] [--help] [glimpse-options] <search term>"
28          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').   "
# Line 29 | Line 32 | do
32          echo "                   default to the release corresponding to      "
33          echo "                   your current scram runtime environment.      "
34          echo ""
35 <        echo "  -full          - Print the full path to the source files. The "
35 >        echo "  --full         - Print the full path to the source files. The "
36          echo "                   default is to print the relative path        "
37          echo "                   beginning with the CMSSW subsystem.          "
38          echo ""
39 +        echo "  --help         - This help information                        "
40 +        echo ""
41          echo "  [glimpse-options] - any of the glimpse options can also be    "
42 <        echo "                      specified, except for -H, which is used   "
43 <        echo "                      as described above. See 'glimpse --help'. "
42 >        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          exit
46          ;;
47      -H )[ $# -gt 1 ] || { echo "Option \`$1' requires an argument" 1>&2; exit 1;  }
# Line 74 | Line 80 | esac
80   EOF_CMS_GLIMPSE
81   perl -p -i -e "s|\@CMSPLATF\@|%cmsplatf|g" %{i}/bin/cmsglimpse
82   chmod +x %{i}/bin/cmsglimpse
83 + # SCRAM ToolBox toolfile
84 + mkdir -p %i/etc/scram.d
85 + cat << \EOF_TOOLFILE >%i/etc/scram.d/%n
86 + <doc type=BuildSystem::ToolDoc version=1.0>
87 + <Tool name=glimpse version=%v>
88 + <Client>
89 + <Environment name=GLIMPSE_BASE default="%i"></Environment>
90 + </Client>
91 + <Runtime name=PATH value="$GLIMPSE_BASE/bin" type=path>
92 + </Tool>
93 + EOF_TOOLFILE
94 +
95   %post
96   perl -p -i -e "s|\@INSTROOT\@|$RPM_INSTALL_PREFIX|g" $RPM_INSTALL_PREFIX/%{pkgrel}/bin/cmsglimpse
97 + %{relocateConfig}etc/scram.d/%n

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines