1 |
|
### RPM lcg SCRAM V0_20_0 |
2 |
+ |
Requires: gcc-wrapper |
3 |
|
## INITENV +PATH PATH %instroot/bin |
4 |
|
|
5 |
|
# This package is somewhat unusual compared to other packages we |
32 |
|
%define cvsrepo cvs://:pserver:anonymous@spitools.cvs.cern.ch:2401/cvs/SPITOOLS?passwd=Ah<Z |
33 |
|
|
34 |
|
Source0: %{cvsrepo}&tag=-r%{v}&module=%n&output=/source.tar.gz |
35 |
< |
Requires: p5-libwww-perl |
35 |
> |
Requires: p5-libwww-perl cms-env |
36 |
|
Patch: scram-detect-make |
37 |
|
Patch2: scram-no-check-env |
38 |
|
Provides: perl(ActiveDoc::UserInterface_basic) |
50 |
|
%patch2 -p1 |
51 |
|
rm src/URL/test/test_URL_cvsfile.pm |
52 |
|
%build |
53 |
+ |
## IMPORT gcc-wrapper |
54 |
|
%install |
55 |
|
tar -cf - . | tar -C %i -xvvf - |
56 |
|
|
82 |
|
[ -f %instroot/bin/scramv0 ] && rm %instroot/bin/scramv0 |
83 |
|
cat > %instroot/bin/scramv0 << \EOF_BIN_SCRAMV0 |
84 |
|
#!/bin/sh |
85 |
< |
source %i/etc/profile.d/init.sh |
86 |
< |
%i/bin/scramv0 $@ |
85 |
> |
source %instroot/`cmsarch`/lcg/%n/%v/etc/profile.d/init.sh |
86 |
> |
%instroot/`cmsarch`/lcg/%n/%v/bin/scramv0 $@ |
87 |
|
EOF_BIN_SCRAMV0 |
88 |
|
|
89 |
|
mkdir -p %{instroot}/%{cmsplatf}/etc/profile.d |