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