Version: 8u92.b31
[packages/openjdk9.git] / openjdk8.spec
CommitLineData
3899c70b 1#
20284ad8
JK
2# NOTE: versioning and release status might not be clear
3# http://openjdk.java.net/projects/jdk8u/ gives some information
4# about current status of the 'updates'
5#
3899c70b 6# TODO:
991454fa 7# - use other system libs (libsctp?)
d12f28e3 8# - include icedtea-sound?
bd96d31d 9# - consider zeroshark (LLVM-based JIT) for x32
3899c70b
JK
10
11%bcond_with bootstrap # build a bootstrap version, using icedtea6
12%bcond_without cacerts # don't include the default CA certificates
13
14%if %{with bootstrap}
15%define use_jdk icedtea7
16%else
17%define use_jdk openjdk8
18%endif
19
20# class data version seen with file(1) that this jvm is able to load
c5052a68 21%define _classdataversion 52.0
d8978afb 22# JDK/JRE version, as returned with `java -version`, '_' replaced with '.'
c5052a68 23%define _jdkversion 1.8.0.internal
3899c70b 24
93ccf536
JK
25%define ver_u 92
26%define ver_b 31
83cf7429
ER
27Summary: Open-source implementation of the Java Platform, Standard Edition
28Summary(pl.UTF-8): Wolnoźródłowa implementacja Java 8 SE
9910e19d 29Name: openjdk8
d8978afb 30Version: 8u%{ver_u}.b%{ver_b}
a1d2ff9b 31Release: 1
3899c70b
JK
32License: GPL v2
33Group: Development/Languages/Java
9910e19d 34Source0: %{name}-jdk8u%{ver_u}-b%{ver_b}.tar.bz2
93ccf536 35# Source0-md5: 12c37c3002601a22d3738fbfc7ce7fc4
9910e19d 36Source1: %{name}-corba-jdk8u%{ver_u}-b%{ver_b}.tar.bz2
93ccf536 37# Source1-md5: 04527579bbf4d1d62174e580c73b37f4
9910e19d 38Source2: %{name}-hotspot-jdk8u%{ver_u}-b%{ver_b}.tar.bz2
93ccf536 39# Source2-md5: 9af1f1d01de54a7f1ee775747e97f603
9910e19d 40Source3: %{name}-jaxp-jdk8u%{ver_u}-b%{ver_b}.tar.bz2
93ccf536 41# Source3-md5: 462b944cbf7f082ded61dc4e4437a23c
9910e19d 42Source4: %{name}-jaxws-jdk8u%{ver_u}-b%{ver_b}.tar.bz2
93ccf536 43# Source4-md5: 8e387a76f8d7c13cc3cb28efa400a134
9910e19d 44Source5: %{name}-jdk-jdk8u%{ver_u}-b%{ver_b}.tar.bz2
93ccf536 45# Source5-md5: 4a9c93dfef91c94779dd7606df04116e
9910e19d 46Source6: %{name}-langtools-jdk8u%{ver_u}-b%{ver_b}.tar.bz2
93ccf536 47# Source6-md5: 5f6e4140c3ac0b76f1841a8adcaf416a
9910e19d 48Source7: %{name}-nashorn-jdk8u%{ver_u}-b%{ver_b}.tar.bz2
93ccf536 49# Source7-md5: dca7539d79ca8ff2695fab7dcd260971
3899c70b 50Source10: make-cacerts.sh
5b4e4f20
JK
51Patch0: adjust-mflags.patch
52Patch1: format_strings.patch
d12f28e3 53Patch2: CompileDemos.patch
ce94f011 54Patch3: libpath.patch
991454fa
JK
55Patch4: system-libjpeg.patch
56Patch5: system-libpng.patch
57Patch6: system-lcms.patch
58Patch7: system-pcsclite.patch
b2950e84 59URL: http://openjdk.java.net/
9910e19d 60BuildRequires: /usr/bin/jar
b2950e84
JK
61BuildRequires: alsa-lib-devel
62BuildRequires: ant
63BuildRequires: autoconf
64BuildRequires: bash
65%{?with_cacerts:BuildRequires: ca-certificates-update}
66BuildRequires: cups-devel
b2950e84
JK
67BuildRequires: freetype-devel >= 2.3
68BuildRequires: gawk
665079f5 69BuildRequires: giflib-devel >= 5.1
b2950e84 70BuildRequires: glibc-misc
83cf7429 71%{?buildrequires_jdk}
991454fa 72BuildRequires: lcms2-devel
3899c70b 73BuildRequires: libjpeg-devel
991454fa 74BuildRequires: libpng-devel
3899c70b 75BuildRequires: lsb-release
991454fa 76BuildRequires: pcsc-lite-devel
3899c70b
JK
77BuildRequires: pkgconfig
78BuildRequires: rpmbuild(macros) >= 1.557
3899c70b
JK
79BuildRequires: unzip
80BuildRequires: util-linux
81BuildRequires: xorg-lib-libX11-devel
82BuildRequires: xorg-lib-libXinerama-devel
83BuildRequires: xorg-lib-libXp-devel
84BuildRequires: xorg-lib-libXrender-devel
85BuildRequires: xorg-lib-libXt-devel
86BuildRequires: xorg-lib-libXtst-devel
87BuildRequires: xorg-proto-printproto-devel
88BuildRequires: xorg-proto-xproto-devel
89BuildRequires: zip
90BuildRequires: zlib-devel
91Requires: %{name}-appletviewer = %{version}-%{release}
92Requires: %{name}-jdk = %{version}-%{release}
93Suggests: %{name}-jre-X11
94Suggests: icedtea-web
95Obsoletes: icedtea6
96Obsoletes: icedtea7
3899c70b
JK
97Obsoletes: java-gcj-compat
98Obsoletes: java-gcj-compat-devel
99Obsoletes: java-sun
100Obsoletes: java-sun-demos
101Obsoletes: java-sun-jre
9910e19d 102Obsoletes: java-sun-jre-X11
3899c70b
JK
103Obsoletes: java-sun-jre-alsa
104Obsoletes: java-sun-jre-jdbc
3899c70b 105Obsoletes: java-sun-tools
9910e19d
JK
106Obsoletes: java5-sun
107Obsoletes: java5-sun-jre
108Obsoletes: java5-sun-jre-X11
109Obsoletes: java5-sun-jre-jdbc
110Obsoletes: java5-sun-tools
3899c70b
JK
111Obsoletes: oracle-java7
112Obsoletes: oracle-java7-jre
9910e19d 113Obsoletes: oracle-java7-jre-X11
3899c70b
JK
114Obsoletes: oracle-java7-jre-alsa
115Obsoletes: oracle-java7-jre-jdbc
3899c70b
JK
116Obsoletes: oracle-java7-tools
117BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
118
119%define dstreldir %{name}-%{version}
120%define dstdir %{_jvmdir}/%{dstreldir}
121%define jrereldir %{dstreldir}/jre
122%define jredir %{_jvmdir}/%{jrereldir}
123%define jvmjardir %{_jvmjardir}/%{name}-%{version}
124
125%ifarch %{x8664}
126%define jre_arch amd64
127%endif
128%ifarch %{ix86}
129%define jre_arch i386
130%endif
131%ifarch x32
132%define jre_arch x32
133%endif
134
135# to break artificial subpackage dependency loops
136%define _noautoreq 'libmawt.so' java\\\\(ClassDataVersion\\\\)
137
138%description
139Open-source implementation of the Java Platform, Standard Edition.
140
141This is a meta-package which provides, by its dependencies, all the
142OpenJDK components including the OpenJDK, Java 8 developement kit and
143runtime environment.
144
145%description -l pl.UTF-8
146Wolnoźródłowa implementacja Java 8 SE.
147
148To jest meta-pakiet, który, za pośrednictwem zależności, dostarcza
149wszystkie komponenty OpenJDK, w tym środowisko programistyczne
150(OpenJDK) i uruchomieniowe (JRE).
151
152%package jdk
153Summary: OpenJDK - software development kit
154Summary(pl.UTF-8): OpenJDK - środowisko programistyczne
155Group: Development/Languages/Java
156Requires: %{name}-jar = %{version}-%{release}
157Requires: %{name}-jdk-base = %{version}-%{release}
158Requires: %{name}-jre = %{version}-%{release}
d8978afb
JK
159Provides: j2sdk = %{_jdkversion}
160Provides: jdk = %{_jdkversion}
3899c70b
JK
161Obsoletes: blackdown-java-sdk
162Obsoletes: ibm-java
163Obsoletes: icedtea6-jdk
164Obsoletes: icedtea7-jdk
165Obsoletes: java-blackdown
166Obsoletes: java-gcj-compat-devel
167Obsoletes: java-sun
168Obsoletes: java5-sun
3899c70b
JK
169Obsoletes: jdk
170Obsoletes: kaffe
9910e19d 171Obsoletes: oracle-java7
3899c70b
JK
172
173%description jdk
174This package symlinks OpenJDK development tools provided by
175%{name}-jdk-base to system-wide directories like %{_bindir}, making
176OpenJDK the default JDK.
177
178%description jdk -l pl.UTF-8
179Ten pakiet tworzy symboliczne dowiązania do narzędzi programistycznych
180OpenJDK, dostarczanych przez pakiet %{name}-jdk-base, w standardowych
181systemowych ścieżkach takich jak %{_bindir}, sprawiając tym samym, że
182OpenJDK staje się domyślnym JDK w systemie.
183
184%package jdk-base
185Summary: OpenJDK - software development kit
186Summary(pl.UTF-8): Kod OpenJDK - środowisko programistyczne
187Group: Development/Languages/Java
188Requires: %{name}-jre-base = %{version}-%{release}
83279899 189Requires: jpackage-utils >= 0:1.7.5-7
3899c70b
JK
190Provides: jdk(%{name})
191
192%description jdk-base
193OpenJDK development tools built using free software only.
194
195%description jdk-base -l pl.UTF-8
196OpenJDK skompilowane wyłącznie przy użyciu wolnego oprogramowania.
197
198%package jre
199Summary: OpenJDK - runtime environment
200Summary(pl.UTF-8): OpenJDK - środowisko uruchomieniowe
201Group: Development/Languages/Java
202Requires: %{name}-jre-base = %{version}-%{release}
203Requires: nss >= 1:3.13.4
204# Require zoneinfo data provided by java-tzdata subpackage.
205Requires: java-tzdata
206Provides: java
207Provides: java(ClassDataVersion) = %{_classdataversion}
208Provides: java(jaas) = %{version}
209Provides: java(jaf) = 1.1.1
210Provides: java(jaxp) = 1.3
211Provides: java(jaxp_parser_impl)
212Provides: java(jce) = %{version}
213Provides: java(jdbc-stdext) = %{version}
214Provides: java(jdbc-stdext) = 3.0
215Provides: java(jmx) = 1.4
216Provides: java(jndi) = %{version}
217Provides: java(jsse) = %{version}
218Provides: java1.4
d8978afb 219Provides: jre = %{_jdkversion}
3899c70b
JK
220Obsoletes: icedtea6-jre
221Obsoletes: icedtea7-jre
222Obsoletes: java(jaas)
223Obsoletes: java(jaf)
224Obsoletes: java(jaxp)
225Obsoletes: java(jce)
226Obsoletes: java(jdbc-stdext)
227Obsoletes: java(jdbc-stdext)
228Obsoletes: java(jmx)
229Obsoletes: java(jndi)
230Obsoletes: java(jsse)
231Obsoletes: java-gcj-compat
232Obsoletes: java-sun-jre
233Obsoletes: java5-sun-jre
b2950e84 234Obsoletes: jre
9910e19d 235Obsoletes: oracle-java7-jre
3899c70b
JK
236
237%description jre
238This package symlinks OpenJDK runtime environment tools provided by
239%{name}-jre-base to system-wide directories like %{_bindir}, making
240OpenJDK the default JRE.
241
242%description jre -l pl.UTF-8
243Ten pakiet tworzy symboliczne dowiązania do środowiska
244uruchomieniowego OpenJDK, dostarczanych przez pakiet %{name}-jre-base,
245w standardowych systemowych ścieżkach takich jak %{_bindir},
246sprawiając tym samym, że OpenJDK staje się domyślnym JRE w systemie.
247
248%package jre-X11
249Summary: OpenJDK - runtime environment - X11 support
250Summary(pl.UTF-8): OpenJDK - środowisko uruchomieniowe - obsługa X11
251Group: Development/Languages/Java
252Requires: %{name}-jre = %{version}-%{release}
253Requires: %{name}-jre-base-X11 = %{version}-%{release}
d8978afb 254Provides: jre-X11 = %{_jdkversion}
3899c70b
JK
255Obsoletes: icedtea6-jre-X11
256Obsoletes: icedtea7-jre-X11
257Obsoletes: java-sun-jre-X11
258Obsoletes: oracle-java7-jre-X11
259
260%description jre-X11
261X11 support for OpenJDK runtime environment built using free software
262only.
263
264%description jre-X11 -l pl.UTF-8
265Biblioteki X11 dla środowiska OpenJDK zbudowany wyłocznie przy uzyciu
266wolnego oprogramowania.
267
268%package jre-base
269Summary: OpenJDK - runtime environment
270Summary(pl.UTF-8): OpenJDK - środowisko uruchomieniowe
271Group: Development/Languages/Java
83279899 272Requires: jpackage-utils >= 0:1.7.5-7
3899c70b
JK
273Provides: jre(%{name})
274
275%description jre-base
276OpenJDK runtime environment built using free software only.
277
278%description jre-base -l pl.UTF-8
279Środowisko uruchomieniowe OpenJDK zbudowany wyłącznie przy użyciu
280wolnego oprogramowania.
281
282%package jre-base-X11
283Summary: OpenJDK - runtime environment - X11 support
284Summary(pl.UTF-8): OpenJDK - środowisko uruchomieniowe - obsługa X11
285Group: Development/Languages/Java
286Requires: %{name}-jre-base = %{version}-%{release}
287Requires: %{name}-jre-base-freetype = %{version}-%{release}
288
289%description jre-base-X11
290X11 support for OpenJDK runtime environment built using free software
291only.
292
293%description jre-base-X11 -l pl.UTF-8
294Biblioteki X11 dla środowiska OpenJDK zbudowany wyłocznie przy uzyciu
295wolnego oprogramowania.
296
297%package jre-base-alsa
298Summary: OpenJDK - runtime environment - ALSA support
299Summary(pl.UTF-8): OpenJDK - środowisko uruchomieniowe - obsługa ALSA
300Group: Development/Languages/Java
301Requires: %{name}-jre-base = %{version}-%{release}
302
303%description jre-base-alsa
304ALSA sound support for OpenJDK runtime environment build using free
305software only.
306
307%description jre-base-alsa -l pl.UTF-8
308Biblioteki ALSA rozszerzające środowisko OpenJDK o obsługę dźwięku
309zbudowane przy uzyciu wyłącznie wolnego oprogramowania.
310
311%package jre-base-freetype
312Summary: OpenJDK - runtime environment - font support
313Summary(pl.UTF-8): OpenJDK - środowisko uruchomieniowe - obsługa fontów
314Group: Development/Languages/Java
315Requires: %{name}-jre-base = %{version}-%{release}
316
317%description jre-base-freetype
318Font handling library for OpenJDK runtime environment built using free
319software only.
320
321%description jre-base-freetype -l pl.UTF-8
322Biblioteki obsługi czcionek dla OpenJDK zbudowane wyłącznie przy
323użyciu wolnego oprogramowania.
324
325%package jre-base-gtk
326Summary: OpenJDK - runtime environment - GTK support
327Summary(pl.UTF-8): OpenJDK - środowisko uruchomieniowe - obsługa GTK
328Group: Development/Languages/Java
329Requires: %{name}-jre-base = %{version}-%{release}
330
331%description jre-base-gtk
332GTK support for OpenJDK runtime environment.
333
334%description jre-base-gtk -l pl.UTF-8
335Biblioteki GTK dla OpenJDK.
336
337%package jar
338Summary: OpenJDK - JAR tool
339Summary(pl.UTF-8): OpenJDK - narzędzie JAR
340Group: Development/Languages/Java
341Requires: %{name}-jdk-base = %{version}-%{release}
342Provides: jar
343Obsoletes: fastjar
344Obsoletes: icedtea6-jar
345Obsoletes: icedtea7-jar
346Obsoletes: jar
347
348%description jar
349JAR tool from OpenJDK built using free software only.
350
351JAR is an archiver used to merge Java classes into a single library.
352
353%description jar -l pl.UTF-8
354Narzędzie jar z OpenJDK zbudowane przy uzyciu wyłącznie wolnego
355oprogramowania.
356
357JAR jest narzędziem pozwalającym wykonywać podstawowe operacje na
358archiwach javy .jar takie jak na przykład tworzenie lub rozpakowywanie
359archiwów.
360
361%package appletviewer
362Summary: OpenJDK - appletviewer tool
363Summary(pl.UTF-8): OpenJDK - narzędzie appletviewer
364Group: Development/Languages/Java
365Requires: %{name}-jdk-base = %{version}-%{release}
366Requires: %{name}-jre-X11 = %{version}-%{release}
367Obsoletes: icedtea6-appletviewer
368Obsoletes: icedtea7-appletviewer
369Obsoletes: java-sun-appletviewer
370Obsoletes: oracle-java7-appletviewer
371
372%description appletviewer
373Appletviewer from OpenJDK build using free software only.
374
375%description appletviewer -l pl.UTF-8
376Appletviewer pozwala uruchamiać aplety javy niezależnie od
377przeglądarki www. Ten appletviewer pochodzi z zestawu narzędzi OpenJDK
378i został zbudowany wyłącznie przy użyciu wolnego oprogramowania.
379
380%package jdk-sources
381Summary: OpenJDK - sources
382Summary(pl.UTF-8): OpenJDK - kod źródłowy
383Group: Documentation
384%if "%{_rpmversion}" >= "5"
385BuildArch: noarch
386%endif
387
388%description jdk-sources
389Source code for the OpenJDK development kit and Java standard library.
390
391%description jdk-sources -l pl.UTF-8
392Kod źródłowy narzędzi programistycznych OpenJDK oraz standardowej
393biblioteki Javy.
394
395%package examples
396Summary: OpenJDK - examples
397Summary(pl.UTF-8): OpenJDK - przykłady
398Group: Documentation
399%if "%{_rpmversion}" >= "5"
400BuildArch: noarch
401%endif
402
403%description examples
404Code examples for OpenJDK.
405
406%description examples -l pl.UTF-8
407Przykłady dla OpenJDK.
408
409%prep
d8978afb 410%setup -qn jdk8u-jdk8u%{ver_u}-b%{ver_b} -a1 -a2 -a3 -a4 -a5 -a6 -a7
3899c70b 411
d8978afb 412for d in *-jdk8u*-b* ; do
d12f28e3 413 mv "$d" "${d%%-jdk8u*-b*}"
3899c70b
JK
414done
415
5b4e4f20
JK
416%patch0 -p1
417%patch1 -p1
d12f28e3 418%patch2 -p1
ce94f011 419%patch3 -p1
991454fa
JK
420%patch4 -p1
421%patch5 -p1
422%patch6 -p1
423%patch7 -p1
5b4e4f20 424
3899c70b
JK
425%build
426# Make sure we have /proc mounted - otherwise idlc will fail later.
427if [ ! -f /proc/self/stat ]; then
428 echo "You need to have /proc mounted in order to build this package!"
429 exit 1
430fi
431
991454fa 432cd common/autoconf
bd96d31d 433rm generated-configure.sh
991454fa
JK
434%{__autoconf} -o generated-configure.sh
435cd ../..
436
3899c70b 437mkdir -p build-bin
b3255d96
JK
438
439# use the specified %%use_jdk
d12f28e3
JK
440export JAVA_HOME=%{java_home}
441export PATH="$JAVA_HOME/bin:$PATH"
b3255d96
JK
442
443# unset CLASSPATH to be safe, gnustep puts garbage there, which openjdk hates
444unset CLASSPATH
445
d12f28e3 446export SHELL=/bin/bash
3899c70b 447
5b4e4f20
JK
448chmod a+x configure
449
2dab85d0 450# disable-debug-symbols so openjdk debuginfo handling won't conflict with ours
5b4e4f20 451%configure \
bd96d31d
JK
452%ifarch x32
453 --with-jvm-variants=zero \
454%endif
5b4e4f20
JK
455 --with-extra-cflags="%{rpmcflags}" \
456 --with-extra-cxxflags="%{rpmcxxflags}" \
457 --with-extra-ldflags="%{rpmldflags}" \
2dab85d0 458 --disable-debug-symbols \
665079f5 459 --with-giflib=system \
991454fa
JK
460 --with-libjpeg=system \
461 --with-libpng=system \
462 --with-lcms=system \
463 --with-libpcsclite=system \
5b4e4f20
JK
464 --with-zlib=system
465
466specdir="$(dirname build/*-release/spec.gmk)"
467cat > $specdir/custom-spec.gmk <<EOF
2dab85d0 468# OpenJDK build system depends on bash
5b4e4f20
JK
469SHELL=/bin/bash
470EOF
2dab85d0 471[ -L tmp-bin ] || ln -s "$specdir/jdk/bin" tmp-bin
5b4e4f20 472
d12f28e3 473%{__make} all \
a8a946e3 474 -j1 JOBS=%{__jobs} \
2dab85d0
JK
475 LOG=debug \
476 # these are normally set when --disable-debug-symbols is not used \
477 LIBMANAGEMENT_OPTIMIZATION=LOW \
478 LIBHPROF_OPTIMIZATION=LOW \
479 LIBVERIFY_OPTIMIZATION=LOW
3899c70b 480
d12f28e3 481export PATH="$(pwd)/build-bin:$PATH"
3899c70b
JK
482%{?with_cacerts:%{__sh} %{SOURCE10}}
483
484%install
485rm -rf $RPM_BUILD_ROOT
486install -d $RPM_BUILD_ROOT{%{_bindir},%{dstdir},%{_mandir}/ja} \
487 $RPM_BUILD_ROOT{%{jvmjardir},%{_examplesdir}/%{name}-%{version},%{_javasrcdir}} \
488 $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
489
490# install the 'JDK image', it contains the JRE too
d12f28e3 491cp -a build/*-release/images/j2sdk-image/* $RPM_BUILD_ROOT%{dstdir}
3899c70b
JK
492
493# convenience symlinks without version number
494ln -s %{dstreldir} $RPM_BUILD_ROOT%{_jvmdir}/%{name}
495ln -s %{jrereldir} $RPM_BUILD_ROOT%{_jvmdir}/%{name}-jre
496
497ln -s %{dstreldir} $RPM_BUILD_ROOT%{_jvmdir}/java
498
9910e19d 499# move JDK sources and demo to %{_prefix}/src
3899c70b
JK
500mv $RPM_BUILD_ROOT%{dstdir}/demo $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
501mv $RPM_BUILD_ROOT%{dstdir}/sample $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
502mv $RPM_BUILD_ROOT%{dstdir}/src.zip $RPM_BUILD_ROOT%{_javasrcdir}/%{name}-jdk.zip
503
504# move manual pages to its place
505mv $RPM_BUILD_ROOT%{dstdir}/man/ja_JP.UTF-8/man1 $RPM_BUILD_ROOT%{_mandir}/ja/man1
506rmdir $RPM_BUILD_ROOT%{dstdir}/man/ja_JP.UTF-8
507rm $RPM_BUILD_ROOT%{dstdir}/man/ja
508mv $RPM_BUILD_ROOT%{dstdir}/man/man1 $RPM_BUILD_ROOT%{_mandir}/man1
509rmdir $RPM_BUILD_ROOT%{dstdir}/man
510
511# replace duplicates with symlinks, link to %{_bindir}
512for path in $RPM_BUILD_ROOT%{dstdir}/bin/*; do
513 filename=$(basename $path)
514 if diff -q "$path" "$RPM_BUILD_ROOT%{jredir}/bin/$filename" > /dev/null; then
515 ln -sf "../jre/bin/$filename" "$path"
516 ln -sf "%{jredir}/bin/$filename" $RPM_BUILD_ROOT%{_bindir}
517 else
518 ln -sf "%{dstdir}/bin/$filename" $RPM_BUILD_ROOT%{_bindir}
519 fi
520done
521ln -sf ../jre/lib/jexec $RPM_BUILD_ROOT%{dstdir}/lib/jexec
522
9910e19d 523# keep configuration in %{_sysconfdir} (not all *.properties go there)
3899c70b
JK
524for config in management security content-types.properties \
525 logging.properties net.properties sound.properties; do
526
527 mv $RPM_BUILD_ROOT%{jredir}/lib/$config $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/$config
528 ln -s %{_sysconfdir}/%{name}/$config $RPM_BUILD_ROOT%{jredir}/lib/$config
529done
530
531ln -sf %{jredir}/lib/jsse.jar $RPM_BUILD_ROOT%{jvmjardir}/jsse.jar
532ln -sf %{jredir}/lib/jsse.jar $RPM_BUILD_ROOT%{jvmjardir}/jcert.jar
533ln -sf %{jredir}/lib/jsse.jar $RPM_BUILD_ROOT%{jvmjardir}/jnet.jar
534ln -sf %{jredir}/lib/jce.jar $RPM_BUILD_ROOT%{jvmjardir}/jce.jar
535for f in jndi jndi-ldap jndi-cos jndi-rmi jaas jdbc-stdext jdbc-stdext-3.0 \
536 sasl jaxp_parser_impl jaxp_transform_impl jaxp jmx activation xml-commons-apis \
537 jndi-dns jndi-rmi; do
538 ln -sf %{jredir}/lib/rt.jar $RPM_BUILD_ROOT%{jvmjardir}/$f.jar
539done
540
541# some apps (like opera) looks for it in different place
542ln -s server/libjvm.so $RPM_BUILD_ROOT%{jredir}/lib/%{jre_arch}/libjvm.so
543
3899c70b
JK
544%{__rm} $RPM_BUILD_ROOT%{dstdir}/{,jre/}{ASSEMBLY_EXCEPTION,LICENSE,THIRD_PARTY_README}
545
546%{?with_cacerts:install cacerts $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/security}
547
548%clean
549rm -rf $RPM_BUILD_ROOT
550
551%files
552%defattr(644,root,root,755)
553%doc THIRD_PARTY_README ASSEMBLY_EXCEPTION
554
555%files jdk
556%defattr(644,root,root,755)
3899c70b
JK
557%attr(755,root,root) %{_bindir}/extcheck
558%attr(755,root,root) %{_bindir}/idlj
559%attr(755,root,root) %{_bindir}/jarsigner
560%attr(755,root,root) %{_bindir}/java-rmi.cgi
561%attr(755,root,root) %{_bindir}/javac
562%attr(755,root,root) %{_bindir}/javadoc
563%attr(755,root,root) %{_bindir}/javah
564%attr(755,root,root) %{_bindir}/javap
565%attr(755,root,root) %{_bindir}/jcmd
566%attr(755,root,root) %{_bindir}/jconsole
567%attr(755,root,root) %{_bindir}/jdb
d12f28e3 568%attr(755,root,root) %{_bindir}/jdeps
3899c70b
JK
569%attr(755,root,root) %{_bindir}/jhat
570%attr(755,root,root) %{_bindir}/jinfo
571%attr(755,root,root) %{_bindir}/jmap
572%attr(755,root,root) %{_bindir}/jps
573%attr(755,root,root) %{_bindir}/jrunscript
574%attr(755,root,root) %{_bindir}/jsadebugd
575%attr(755,root,root) %{_bindir}/jstack
576%attr(755,root,root) %{_bindir}/jstat
577%attr(755,root,root) %{_bindir}/jstatd
578%attr(755,root,root) %{_bindir}/native2ascii
579%attr(755,root,root) %{_bindir}/rmic
580%attr(755,root,root) %{_bindir}/schemagen
581%attr(755,root,root) %{_bindir}/serialver
582%attr(755,root,root) %{_bindir}/wsgen
583%attr(755,root,root) %{_bindir}/wsimport
584%attr(755,root,root) %{_bindir}/xjc
585%{_jvmdir}/java
3899c70b
JK
586%{_mandir}/man1/extcheck.1*
587%{_mandir}/man1/idlj.1*
588%{_mandir}/man1/jarsigner.1*
589%{_mandir}/man1/javac.1*
590%{_mandir}/man1/javadoc.1*
591%{_mandir}/man1/javah.1*
592%{_mandir}/man1/javap.1*
593%{_mandir}/man1/jcmd.1*
594%{_mandir}/man1/jconsole.1*
595%{_mandir}/man1/jdb.1*
d12f28e3 596%{_mandir}/man1/jdeps.1*
3899c70b
JK
597%{_mandir}/man1/jhat.1*
598%{_mandir}/man1/jinfo.1*
599%{_mandir}/man1/jmap.1*
600%{_mandir}/man1/jps.1*
601%{_mandir}/man1/jrunscript.1*
602%{_mandir}/man1/jsadebugd.1*
603%{_mandir}/man1/jstack.1*
604%{_mandir}/man1/jstat.1*
605%{_mandir}/man1/jstatd.1*
606%{_mandir}/man1/native2ascii.1*
607%{_mandir}/man1/schemagen.1*
608%{_mandir}/man1/serialver.1*
609%{_mandir}/man1/rmic.1*
610%{_mandir}/man1/wsgen.1*
611%{_mandir}/man1/wsimport.1*
612%{_mandir}/man1/xjc.1*
3899c70b
JK
613%lang(ja) %{_mandir}/ja/man1/extcheck.1*
614%lang(ja) %{_mandir}/ja/man1/idlj.1*
615%lang(ja) %{_mandir}/ja/man1/jarsigner.1*
616%lang(ja) %{_mandir}/ja/man1/javac.1*
617%lang(ja) %{_mandir}/ja/man1/javadoc.1*
618%lang(ja) %{_mandir}/ja/man1/javah.1*
619%lang(ja) %{_mandir}/ja/man1/javap.1*
620%lang(ja) %{_mandir}/ja/man1/jcmd.1*
621%lang(ja) %{_mandir}/ja/man1/jconsole.1*
622%lang(ja) %{_mandir}/ja/man1/jdb.1*
d12f28e3 623%lang(ja) %{_mandir}/ja/man1/jdeps.1*
3899c70b
JK
624%lang(ja) %{_mandir}/ja/man1/jhat.1*
625%lang(ja) %{_mandir}/ja/man1/jinfo.1*
626%lang(ja) %{_mandir}/ja/man1/jmap.1*
627%lang(ja) %{_mandir}/ja/man1/jps.1*
628%lang(ja) %{_mandir}/ja/man1/jrunscript.1*
629%lang(ja) %{_mandir}/ja/man1/jsadebugd.1*
630%lang(ja) %{_mandir}/ja/man1/jstack.1*
631%lang(ja) %{_mandir}/ja/man1/jstat.1*
632%lang(ja) %{_mandir}/ja/man1/jstatd.1*
633%lang(ja) %{_mandir}/ja/man1/native2ascii.1*
634%lang(ja) %{_mandir}/ja/man1/schemagen.1*
635%lang(ja) %{_mandir}/ja/man1/serialver.1*
636%lang(ja) %{_mandir}/ja/man1/rmic.1*
637%lang(ja) %{_mandir}/ja/man1/wsgen.1*
638%lang(ja) %{_mandir}/ja/man1/wsimport.1*
639%lang(ja) %{_mandir}/ja/man1/xjc.1*
640
641%files jdk-base
642%defattr(644,root,root,755)
d12f28e3
JK
643%doc build/*-release/images/j2sdk-image/THIRD_PARTY_README
644%doc build/*-release/images/j2sdk-image/ASSEMBLY_EXCEPTION
3899c70b
JK
645%dir %{dstdir}
646%{_jvmdir}/%{name}
647%attr(755,root,root) %{dstdir}/bin/appletviewer
3899c70b
JK
648%attr(755,root,root) %{dstdir}/bin/extcheck
649%attr(755,root,root) %{dstdir}/bin/idlj
650%attr(755,root,root) %{dstdir}/bin/jar
651%attr(755,root,root) %{dstdir}/bin/jarsigner
652%attr(755,root,root) %{dstdir}/bin/java-rmi.cgi
653%attr(755,root,root) %{dstdir}/bin/javac
654%attr(755,root,root) %{dstdir}/bin/javadoc
655%attr(755,root,root) %{dstdir}/bin/javah
656%attr(755,root,root) %{dstdir}/bin/javap
657%attr(755,root,root) %{dstdir}/bin/jconsole
658%attr(755,root,root) %{dstdir}/bin/jcmd
659%attr(755,root,root) %{dstdir}/bin/jdb
d12f28e3 660%attr(755,root,root) %{dstdir}/bin/jdeps
3899c70b
JK
661%attr(755,root,root) %{dstdir}/bin/jhat
662%attr(755,root,root) %{dstdir}/bin/jinfo
663%attr(755,root,root) %{dstdir}/bin/jmap
664%attr(755,root,root) %{dstdir}/bin/jps
665%attr(755,root,root) %{dstdir}/bin/jrunscript
666%attr(755,root,root) %{dstdir}/bin/jsadebugd
667%attr(755,root,root) %{dstdir}/bin/jstack
668%attr(755,root,root) %{dstdir}/bin/jstat
669%attr(755,root,root) %{dstdir}/bin/jstatd
670%attr(755,root,root) %{dstdir}/bin/native2ascii
671%attr(755,root,root) %{dstdir}/bin/rmic
672%attr(755,root,root) %{dstdir}/bin/schemagen
673%attr(755,root,root) %{dstdir}/bin/serialver
674%attr(755,root,root) %{dstdir}/bin/wsgen
675%attr(755,root,root) %{dstdir}/bin/wsimport
676%attr(755,root,root) %{dstdir}/bin/xjc
677%{dstdir}/include
678%dir %{dstdir}/lib
679%{dstdir}/lib/ct.sym
680%{dstdir}/lib/dt.jar
681%{dstdir}/lib/ir.idl
682%{dstdir}/lib/jconsole.jar
683%attr(755,root,root) %{dstdir}/lib/jexec
684%{dstdir}/lib/orb.idl
685%ifnarch x32
686%{dstdir}/lib/sa-jdi.jar
687%endif
688%{dstdir}/lib/tools.jar
689%dir %{dstdir}/lib/%{jre_arch}
690%dir %{dstdir}/lib/%{jre_arch}/jli
691%attr(755,root,root) %{dstdir}/lib/%{jre_arch}/jli/*.so
3899c70b
JK
692
693%files jre
694%defattr(644,root,root,755)
695%attr(755,root,root) %{_bindir}/java
d12f28e3 696%attr(755,root,root) %{_bindir}/jjs
3899c70b
JK
697%attr(755,root,root) %{_bindir}/keytool
698%attr(755,root,root) %{_bindir}/orbd
699%attr(755,root,root) %{_bindir}/pack200
700%attr(755,root,root) %{_bindir}/rmid
701%attr(755,root,root) %{_bindir}/rmiregistry
702%attr(755,root,root) %{_bindir}/servertool
703%attr(755,root,root) %{_bindir}/tnameserv
704%attr(755,root,root) %{_bindir}/unpack200
705%{_mandir}/man1/java.1*
d12f28e3 706%{_mandir}/man1/jjs.1*
3899c70b
JK
707%{_mandir}/man1/keytool.1*
708%{_mandir}/man1/orbd.1*
709%{_mandir}/man1/pack200.1*
710%{_mandir}/man1/rmid.1*
711%{_mandir}/man1/rmiregistry.1*
712%{_mandir}/man1/servertool.1*
713%{_mandir}/man1/tnameserv.1*
714%{_mandir}/man1/unpack200.1*
715%lang(ja) %{_mandir}/ja/man1/java.1*
d12f28e3 716%lang(ja) %{_mandir}/ja/man1/jjs.1*
3899c70b
JK
717%lang(ja) %{_mandir}/ja/man1/keytool.1*
718%lang(ja) %{_mandir}/ja/man1/orbd.1*
719%lang(ja) %{_mandir}/ja/man1/pack200.1*
720%lang(ja) %{_mandir}/ja/man1/rmid.1*
721%lang(ja) %{_mandir}/ja/man1/rmiregistry.1*
722%lang(ja) %{_mandir}/ja/man1/servertool.1*
723%lang(ja) %{_mandir}/ja/man1/tnameserv.1*
724%lang(ja) %{_mandir}/ja/man1/unpack200.1*
725
726%files jre-base
727%defattr(644,root,root,755)
39213195
JK
728%doc THIRD_PARTY_README
729%doc ASSEMBLY_EXCEPTION
3899c70b
JK
730%dir %{_sysconfdir}/%{name}
731%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*
732%dir %{dstdir}
733%{dstdir}/release
734%dir %{jredir}
735%{_jvmdir}/%{name}-jre
736%dir %{jredir}/bin
737%dir %{dstdir}/bin
738%attr(755,root,root) %{jredir}/bin/java
739%attr(755,root,root) %{dstdir}/bin/java
d12f28e3
JK
740%attr(755,root,root) %{jredir}/bin/jjs
741%attr(755,root,root) %{dstdir}/bin/jjs
3899c70b
JK
742%attr(755,root,root) %{jredir}/bin/keytool
743%attr(755,root,root) %{dstdir}/bin/keytool
744%attr(755,root,root) %{jredir}/bin/orbd
745%attr(755,root,root) %{dstdir}/bin/orbd
746%attr(755,root,root) %{jredir}/bin/pack200
747%attr(755,root,root) %{dstdir}/bin/pack200
748%attr(755,root,root) %{jredir}/bin/rmid
749%attr(755,root,root) %{dstdir}/bin/rmid
750%attr(755,root,root) %{jredir}/bin/rmiregistry
751%attr(755,root,root) %{dstdir}/bin/rmiregistry
752%attr(755,root,root) %{jredir}/bin/servertool
753%attr(755,root,root) %{dstdir}/bin/servertool
754%attr(755,root,root) %{jredir}/bin/tnameserv
755%attr(755,root,root) %{dstdir}/bin/tnameserv
756%attr(755,root,root) %{jredir}/bin/unpack200
757%attr(755,root,root) %{dstdir}/bin/unpack200
758%dir %{jredir}/lib
759%dir %{jredir}/lib/applet
760%{jredir}/lib/cmm
761%{jredir}/lib/ext
762%dir %{jredir}/lib/%{jre_arch}
3899c70b
JK
763%dir %{jredir}/lib/%{jre_arch}/jli
764%attr(755,root,root) %{jredir}/lib/%{jre_arch}/jli/*.so
765%dir %{jredir}/lib/%{jre_arch}/server
766%{jredir}/lib/%{jre_arch}/server/Xusage.txt
3899c70b
JK
767%attr(755,root,root) %{jredir}/lib/%{jre_arch}/server/*.so
768%{jredir}/lib/%{jre_arch}/jvm.cfg
769%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libattach.so
770%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libawt.so
d12f28e3 771%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libawt_headless.so
3899c70b
JK
772%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libdt_socket.so
773%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libhprof.so
774%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libinstrument.so
775%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libj2gss.so
3899c70b
JK
776%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libj2pcsc.so
777%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libj2pkcs11.so
778%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjaas_unix.so
779%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjava.so
d12f28e3
JK
780%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libsctp.so
781%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libsunec.so
3899c70b 782%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjava_crw_demo.so
991454fa
JK
783%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjavajpeg.so
784%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjavalcms.so
3899c70b
JK
785%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjdwp.so
786%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjsdt.so
787%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjsig.so
788%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjsound.so
789%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjvm.so
790%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libmanagement.so
791%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libmlib_image.so
792%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libnet.so
793%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libnio.so
794%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libnpt.so
795%ifnarch x32
796%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libsaproc.so
797%endif
798%{?with_sunec:%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libsunec.so}
799%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libunpack.so
800%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libverify.so
801%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libzip.so
802%{jredir}/lib/images
803%{jredir}/lib/management
804%{jredir}/lib/security
3899c70b
JK
805%if %{with webstart}
806%{jredir}/lib/about.jar
807%{jredir}/lib/about.jnlp
808%endif
809%{jredir}/lib/calendars.properties
810%{jredir}/lib/charsets.jar
811%{jredir}/lib/classlist
812%{jredir}/lib/content-types.properties
813%{jredir}/lib/currency.data
814%{jredir}/lib/flavormap.properties
d12f28e3 815%{jredir}/lib/hijrah-config-umalqura.properties
3899c70b
JK
816%{jredir}/lib/jce.jar
817%attr(755, root, root) %{jredir}/lib/jexec
818%{jredir}/lib/jsse.jar
819%{jredir}/lib/jvm.hprof.txt
820%{jredir}/lib/logging.properties
821%{jredir}/lib/management-agent.jar
822%{jredir}/lib/meta-index
823%{jredir}/lib/net.properties
824%{jredir}/lib/psfont.properties.ja
825%{jredir}/lib/psfontj2d.properties
826%{jredir}/lib/resources.jar
3899c70b
JK
827%{jredir}/lib/rt.jar
828%{jredir}/lib/sound.properties
d12f28e3 829%{jredir}/lib/tzdb.dat
3899c70b
JK
830%{jvmjardir}
831
832%files jre-X11
833%defattr(644,root,root,755)
834%attr(755,root,root) %{_bindir}/policytool
835%{_mandir}/man1/policytool.1*
836%lang(ja) %{_mandir}/ja/man1/policytool.1*
837
838%files jre-base-X11
839%defattr(644,root,root,755)
840%attr(755,root,root) %{jredir}/bin/policytool
841%attr(755,root,root) %{dstdir}/bin/policytool
3899c70b 842%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libsplashscreen.so
d12f28e3
JK
843%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libawt_xawt.so
844%attr(755,root,root) %{dstdir}/lib/%{jre_arch}/libjawt.so
51f128fd 845%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjawt.so
3899c70b
JK
846
847%files jre-base-alsa
848%defattr(644,root,root,755)
849%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjsoundalsa.so
850
851%files jre-base-freetype
852%defattr(644,root,root,755)
853%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libfontmanager.so
854
d12f28e3 855%if 0
3899c70b
JK
856%files jre-base-gtk
857%defattr(644,root,root,755)
858%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjavagtk.so
d12f28e3 859%endif
3899c70b
JK
860
861%files jar
862%defattr(644,root,root,755)
863%attr(755,root,root) %{_bindir}/jar
864%{_mandir}/man1/jar.1*
865%lang(ja) %{_mandir}/ja/man1/jar.1*
866
867%files appletviewer
868%defattr(644,root,root,755)
869%attr(755,root,root) %{_bindir}/appletviewer
870%{_mandir}/man1/appletviewer.1*
871%lang(ja) %{_mandir}/ja/man1/appletviewer.1*
872
873%files jdk-sources
874%defattr(644,root,root,755)
875%{_javasrcdir}/%{name}-jdk.zip
876
877%files examples
878%defattr(644,root,root,755)
879%{_examplesdir}/%{name}-%{version}
This page took 0.67056 seconds and 4 git commands to generate.