ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/java-jdk.spec
Revision: 1.2
Committed: Wed Apr 5 15:51:49 2006 UTC (19 years ago) by eulisse
Branch: MAIN
CVS Tags: V00-00-04, V00-00-03, V00-00-02, V00-00-01, V00-00-00
Changes since 1.1: +15 -2 lines
Log Message:
Picks up the correct sources for amd64 as well.

File Contents

# Content
1 ### RPM external java-jdk 1.5.0.p6
2 ## BUILDIF [ $(uname) != Darwin ]
3 %define downloadv %(echo %v | tr '.p' '_0')
4
5 %if "%{cmsplatf}" == "slc3_ia32_gcc323"
6 %define downloadarch i586
7 %endif
8
9 %if "%{cmsplatf}" == "slc3_amd64_gcc344"
10 %define downloadarch amd64
11 %endif
12
13 %if "%{?downloadarch:set}" != "set"
14 %error Unsupported architecture.
15 %endif
16
17 Source: http://eulisse.web.cern.ch/eulisse/jdk-%downloadv-linux-%downloadarch.bin
18 %prep
19 ls
20 %define javadir jdk%(echo %v| sed -e "s/.p/_0/")
21 rm -rf %javadir
22 yes | sh %{_sourcedir}/jdk-%downloadv-linux-%downloadarch.bin
23 cd %javadir
24 %build
25 %install
26 ls
27 cp -r %javadir/* %i