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