1 |
|
|
2 |
|
### RPM external dcache-client 1.7.0 |
3 |
< |
Requires: apache-ant |
3 |
> |
#Requires: apache-ant |
4 |
> |
# Normally requires Ant, but here we use gmake directly |
5 |
> |
# in order to avoid dependency on java-jdk. |
6 |
> |
|
7 |
> |
Provides: libdcap.so |
8 |
> |
Provides: libpdcap.so |
9 |
> |
|
10 |
|
%define downloadv %(echo %v | tr . -) |
11 |
|
Source: http://www.dcache.org/downloads/%{v}/dCache-production-%{downloadv}-sources.tar |
12 |
|
%prep |
13 |
< |
%setup -n dCacheBuild |
14 |
< |
export JAVA_HOME=$JAVA_JDK_ROOT |
15 |
< |
export CLASSPATH="." |
13 |
> |
%setup -n dCacheBuild/modules/dcap |
14 |
> |
pwd |
15 |
> |
chmod a+x `find ./ -type f -name "*.sh"` |
16 |
|
%build |
17 |
< |
chmod a+x `find modules -type f -name "*.sh"` |
12 |
< |
ant dcache-srm > dcache-srm.log 2>&1 |
13 |
< |
ant all > all.log 2>&1 |
17 |
> |
make BIN_PATH=%i |
18 |
|
%install |
19 |
< |
ls dist/d-cache |
16 |
< |
tar -cf - -C dist/d-cache/dcap . | tar -C %i -xvvf - |
19 |
> |
make BIN_PATH=%i install |