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 |
+ |
Patch: scram-detect-make |
35 |
+ |
Provides: perl(ActiveDoc::UserInterface_basic) |
36 |
+ |
Provides: perl(ActiveDoc::UserQuery) |
37 |
+ |
Provides: perl(ObjectStore) |
38 |
+ |
Provides: perl(Utilities::AddDir) |
39 |
+ |
Provides: perl(Utilities::GroupChecker) |
40 |
+ |
Provides: perl(Utilities::SCRAMUtils) |
41 |
|
|
42 |
|
%prep |
43 |
|
%setup -n %n |
44 |
< |
|
44 |
> |
pwd |
45 |
> |
%patch -p1 |
46 |
> |
rm src/URL/test/test_URL_cvsfile.pm |
47 |
|
%build |
48 |
|
%install |
49 |
|
tar -cf - . | tar -C %i -xvvf - |
70 |
|
exec perl "$SCRAM_HOME/src/scramcli" ${1+"$@"} |
71 |
|
EOF |
72 |
|
chmod 755 %instroot/bin/scram |
73 |
< |
|
73 |
> |
perl -p -i -e "s|#!.*perl|#!/usr/bin/env perl|" $(find %{i}) |
74 |
|
%files |
75 |
|
%i |
76 |
|
%instroot/bin/scram |
77 |
|
%instroot/share/scramdb |
78 |
+ |
%post |
79 |
+ |
perl -p -i -e "s|%instroot|$RPM_INSTALL_PREFIX|g" $RPM_INSTALL_PREFIX/bin/scram |
80 |
+ |
# |