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 |
+ |
Provides: perl(Utilities::GroupChecker) |
35 |
|
|
36 |
|
%prep |
37 |
|
%setup -n %n |
38 |
< |
|
38 |
> |
rm src/URL/test/test_URL_cvsfile.pm |
39 |
|
%build |
40 |
|
%install |
41 |
|
tar -cf - . | tar -C %i -xvvf - |
62 |
|
exec perl "$SCRAM_HOME/src/scramcli" ${1+"$@"} |
63 |
|
EOF |
64 |
|
chmod 755 %instroot/bin/scram |
65 |
< |
|
65 |
> |
perl -p -i -e "s|#!.*perl|#!/usr/bin/env perl|" $(find %{i}) |
66 |
|
%files |
67 |
|
%i |
68 |
|
%instroot/bin/scram |
69 |
|
%instroot/share/scramdb |
70 |
+ |
%post |
71 |
+ |
perl -p -i -e "s|%instroot|$RPM_INSTALL_PREFIX|g" $RPM_INSTALL_PREFIX/bin/scram |