1 |
< |
### RPM external glimpse 4.18.5 |
2 |
< |
Source: http://webglimpse.net/trial/glimpse-%{v}.tar.gz |
1 |
> |
### RPM external glimpse 4.18.5-CMS3 |
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 |
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'). " |
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; } |