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