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.12 by egeland, Tue Feb 12 11:04:25 2008 UTC

# Line 1 | Line 1
1 < ### RPM external srmcp 1.23
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
1 > ### RPM external srmcp 1.8.0-4
2 > ## INITENV +PATH PATH %i/bin:%i/sbin
3 > ## INITENV SET SRM_PATH %i
4 >
5 > Source: http://www.dcache.org/downloads/1.8.0/dcache-srmclient-%v.noarch.rpm
6 > Requires:  java-jdk
7  
8   %prep
9 < %setup -n srmclient
9 > rpm2cpio %{_sourcedir}/dcache-srmclient-%v.noarch.rpm | cpio -ivd
10 >
11   %build
12  
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 \
19 <    -copy file:////dev/null file:////dev/null > /dev/null 2>&1 || true
20 <  [ -f $HOME/.srmconfig/config.xml ]
21 < fi
22 <
24 < mkdir -p %i/etc
25 < cp -p $HOME/.srmconfig/config.xml %i/etc/config.xml
26 < perl -p -i -e "s|$HOME|%i|" %i/etc/config.xml
14 > mv %{_builddir}/opt/d-cache/srm/* %i
15 >
16 > # unset SRM_PATH SRM_CONFIG || true
17 > # # (cd .. && tar -cf - srmclient) | (cd %i && tar -xf -)
18 > # mkdir -p %i/etc
19 > # SRM_PATH=%i SRM_CONFIG=%i/etc/config.xml \
20 > # %i/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 + # Build dependencies-setup
27 +
28 + mkdir -p %{i}/etc/profile.d
29 +
30 + (echo "#!/bin/sh"; \
31 + echo "source $JAVA_JDK_ROOT/etc/profile.d/init.sh"; \
32 + ) > %{i}/etc/profile.d/dependencies-setup.sh
33 +                                                                                                    
34 + (echo "#!/bin/tcsh"; \
35 + echo "source $JAVA_JDK_ROOT/etc/profile.d/init.csh"; \
36 + ) > %{i}/etc/profile.d/dependencies-setup.csh
37 +                                                                                                    
38   %post
39 < %{relocateConfig}etc/config.xml
39 > %{relocateConfig}etc/profile.d/dependencies-setup.sh
40 > %{relocateConfig}etc/profile.d/dependencies-setup.csh
41 >

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines