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