ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/srmcp.spec
(Generate patch)

Comparing COMP/CMSDIST/srmcp.spec (file contents):
Revision 1.1 by eulisse, Thu May 4 17:15:15 2006 UTC vs.
Revision 1.9 by ratnik, Wed Apr 18 23:46:02 2007 UTC

# Line 1 | Line 1
1 < ### RPM external srmcp 1.23
1 > ### RPM external srmcp 1.25
2 > Requires: gcc-wrapper
3   ## INITENV +PATH PATH %i/srmclient/bin
4   ## INITENV SET SRM_PATH %i/srmclient
5   ## INITENV SET SRM_CONFIG %i/etc/config.xml
# Line 9 | Line 10 | Source: https://srm.fnal.gov/twiki/pub/S
10   %prep
11   %setup -n srmclient
12   %build
13 + ## IMPORT gcc-wrapper
14  
15   %install
16   unset SRM_PATH SRM_CONFIG || true
17   (cd .. && tar -cf - srmclient) | (cd %i && tar -xf -)
16 if [ ! -f $HOME/.srmconfig/config.xml ]; then
17  mkdir -p %i/etc $HOME/.srmconfig
18  SRM_PATH=%i/srmclient %i/srmclient/sbin/srm \
19    -copy file:///dev/null file:///dev/null > /dev/null 2>&1 || true
20  [ -f $HOME/.srmconfig/config.xml ]
21 fi
22
18   mkdir -p %i/etc
19 < cp -p $HOME/.srmconfig/config.xml %i/etc/config.xml
19 > SRM_PATH=%i/srmclient SRM_CONFIG=%i/etc/config.xml \
20 >  %i/srmclient/sbin/srm \
21 >    -x509_user_trusted_certificates /etc/grid-security/certificates \
22 >    -copy file:////dev/null file:////dev/null > /dev/null 2>&1 || true
23 >
24   perl -p -i -e "s|$HOME|%i|" %i/etc/config.xml
25  
26   %post
27 < %{relocateConfig}.srmconfig/config.xml
27 > %{relocateConfig}etc/config.xml

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines