ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/CMSDIST/java-jdk.spec
(Generate patch)

Comparing COMP/CMSDIST/java-jdk.spec (file contents):
Revision 1.1 by eulisse, Mon Feb 27 15:01:46 2006 UTC vs.
Revision 1.4 by eulisse, Thu Jun 15 13:19:35 2006 UTC

# Line 1 | Line 1
1   ### RPM external java-jdk 1.5.0.p6
2   ## BUILDIF [ $(uname) != Darwin ]
3 +
4 + Provides: libasound.so.2
5 + Provides: libasound.so.2(ALSA_0.9)
6 + Provides: libjava_crw_demo_g.so
7 + Provides: libodbc.so
8 + Provides: libodbcinst.so
9 +
10   %define downloadv %(echo %v | tr '.p' '_0')
11 < Source: http://eulisse.web.cern.ch/eulisse/jdk-%downloadv-linux-i586.bin
11 >
12 > %define tmpArch %(echo %cmsplatf | cut -d_ -f 1,2)
13 >
14 > %if "%{tmpArch}" == "slc3_ia32"
15 > %define downloadarch i586
16 > %endif
17 >
18 > %if "%{tmpArch}" == "slc3_amd64"
19 > %define downloadarch amd64
20 > %endif
21 >
22 > %if "%{?downloadarch:set}" != "set"
23 > %error Unsupported architecture.
24 > %endif
25 >
26 > Source: http://eulisse.web.cern.ch/eulisse/jdk-%downloadv-linux-%downloadarch.bin
27   %prep
28   ls
29   %define javadir jdk%(echo %v| sed -e "s/.p/_0/")
30   rm -rf %javadir
31 < yes | sh %{_sourcedir}/jdk-%downloadv-linux-i586.bin
31 > yes | sh %{_sourcedir}/jdk-%downloadv-linux-%downloadarch.bin
32   cd %javadir
33   %build
34   %install

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines