31 |
|
%define cvsrepo cvs://:pserver:anonymous@spitools.cvs.cern.ch:2401/cvs/SPITOOLS?passwd=Ah<Z |
32 |
|
|
33 |
|
Source0: %{cvsrepo}&tag=-r%{v}&module=%n&output=/source.tar.gz |
34 |
+ |
Requires: p5-libwww-perl |
35 |
|
Patch: scram-detect-make |
36 |
|
Provides: perl(ActiveDoc::UserInterface_basic) |
37 |
|
Provides: perl(ActiveDoc::UserQuery) |
38 |
+ |
Provides: perl(ActiveDoc::GroupChecker) |
39 |
|
Provides: perl(ObjectStore) |
40 |
|
Provides: perl(Utilities::AddDir) |
41 |
|
Provides: perl(Utilities::GroupChecker) |
71 |
|
|
72 |
|
exec perl "$SCRAM_HOME/src/scramcli" ${1+"$@"} |
73 |
|
EOF |
74 |
+ |
|
75 |
+ |
mkdir -p %{i}/etc/profile.d |
76 |
+ |
echo "#!/bin/sh" > %i/etc/profile.d/dependencies-setup.sh |
77 |
+ |
echo "source $P5_LIBWWW_PERL_ROOT/etc/profile.d/init.sh" >> %i/etc/profile.d/dependencies-setup.sh |
78 |
+ |
echo "#!/bin/csh" > %i/etc/profile.d/dependencies-setup.csh |
79 |
+ |
echo "source $P5_LIBWWW_PERL_ROOT/etc/profile.d/init.csh" >> %i/etc/profile.d/dependencies-setup.csh |
80 |
+ |
|
81 |
|
chmod 755 %instroot/bin/scram |
82 |
|
perl -p -i -e "s|#!.*perl|#!/usr/bin/env perl|" $(find %{i}) |
83 |
|
%files |
85 |
|
%instroot/bin/scram |
86 |
|
%instroot/share/scramdb |
87 |
|
%post |
88 |
+ |
%{relocateConfig}etc/profile.d/dependencies-setup.sh |
89 |
+ |
%{relocateConfig}etc/profile.d/dependencies-setup.csh |
90 |
+ |
|
91 |
|
perl -p -i -e "s|%instroot|$RPM_INSTALL_PREFIX|g" $RPM_INSTALL_PREFIX/bin/scram |
80 |
– |
# |