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.3 by mballint, Thu Sep 7 22:01:16 2006 UTC vs.
Revision 1.7 by rehn, Fri Oct 27 09:46:34 2006 UTC

# Line 1 | Line 1
1 < ### RPM external srmcp 1.23
1 > ### RPM external srmcp 1.24
2   ## INITENV +PATH PATH %i/srmclient/bin
3   ## INITENV SET SRM_PATH %i/srmclient
4   ## INITENV SET SRM_CONFIG %i/etc/config.xml
5  
6   %define downloadv %(echo %v | tr . _)
7   Source: https://srm.fnal.gov/twiki/pub/SrmProject/SrmcpClient/%{n}_v%{downloadv}_NULL.tar
8 Requires: java-jdk
8  
9   %prep
10   %setup -n srmclient
# Line 14 | Line 13 | Requires: java-jdk
13   %install
14   unset SRM_PATH SRM_CONFIG || true
15   (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 \
16 > mkdir -p %i/etc
17 > SRM_PATH=%i/srmclient SRM_CONFIG=%i/etc/config.xml \
18 >  %i/srmclient/sbin/srm \
19 >    -x509_user_trusted_certificates /etc/grid-security/certificates \
20      -copy file:////dev/null file:////dev/null > /dev/null 2>&1 || true
21  [ -f $HOME/.srmconfig/config.xml ]
22 fi
21  
24 mkdir -p %i/etc
25 cp -p $HOME/.srmconfig/config.xml %i/etc/config.xml
22   perl -p -i -e "s|$HOME|%i|" %i/etc/config.xml
23  
24   %post

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines