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.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
6  
7   %define downloadv %(echo %v | tr . _)
8   Source: https://srm.fnal.gov/twiki/pub/SrmProject/SrmcpClient/%{n}_v%{downloadv}_NULL.tar
8 Requires: java-jdk
9  
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 -)
18 < if [ ! -f $HOME/.srmconfig/config.xml ]; then
19 <  mkdir -p %i/etc $HOME/.srmconfig
20 <  SRM_PATH=%i/srmclient %i/srmclient/sbin/srm \
18 > mkdir -p %i/etc
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
21  [ -f $HOME/.srmconfig/config.xml ]
22 fi
23  
24 mkdir -p %i/etc
25 cp -p $HOME/.srmconfig/config.xml %i/etc/config.xml
24   perl -p -i -e "s|$HOME|%i|" %i/etc/config.xml
25  
26   %post

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines