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