5fdfbe2139abf2f834f37d4d5e99dfceb2cae7a1
[packages/openjdk9.git] / openjdk8.spec
1 #
2 # TODO:
3 #       - use other system libs (libsctp?)
4 #       - include icedtea-sound?
5 #       - consider zeroshark (LLVM-based JIT) for x32
6
7 %bcond_with bootstrap   # build a bootstrap version, using icedtea6
8 %bcond_without cacerts  # don't include the default CA certificates
9
10 %if %{with bootstrap}
11 %define         use_jdk icedtea7
12 %else
13 %define         use_jdk openjdk8
14 %endif
15
16 # class data version seen with file(1) that this jvm is able to load
17 %define         _classdataversion 52.0
18 # JDK/JRE version, as returned with `java -version`, '_' replaced with '.'
19 %define         _jdkversion 1.8.0.internal
20
21 %define ver_u   66
22 %define ver_b   02
23 Summary:        Open-source implementation of the Java Platform, Standard Edition
24 Summary(pl.UTF-8):      Wolnoźródłowa implementacja Java 8 SE
25 Name:           openjdk8
26 Version:        8u%{ver_u}.b%{ver_b}
27 Release:        0.1
28 License:        GPL v2
29 Group:          Development/Languages/Java
30 Source0:        %{name}-jdk8u%{ver_u}-b%{ver_b}.tar.bz2
31 # Source0-md5:  1d115662e175470270e89a4da8e0fce2
32 Source1:        %{name}-corba-jdk8u%{ver_u}-b%{ver_b}.tar.bz2
33 # Source1-md5:  e14d8f51b9ca30d798094a2867f3f5d0
34 Source2:        %{name}-hotspot-jdk8u%{ver_u}-b%{ver_b}.tar.bz2
35 # Source2-md5:  b49a7b7f2db5b07306b7b5739e87ccc0
36 Source3:        %{name}-jaxp-jdk8u%{ver_u}-b%{ver_b}.tar.bz2
37 # Source3-md5:  6bd5ae187272a209439d1a95ac6c9025
38 Source4:        %{name}-jaxws-jdk8u%{ver_u}-b%{ver_b}.tar.bz2
39 # Source4-md5:  15e6a93009bdc73194e7118988d5ab8d
40 Source5:        %{name}-jdk-jdk8u%{ver_u}-b%{ver_b}.tar.bz2
41 # Source5-md5:  74f2cf3815659b83993c4187e7fc4f6b
42 Source6:        %{name}-langtools-jdk8u%{ver_u}-b%{ver_b}.tar.bz2
43 # Source6-md5:  de5c9b5fdbcd75028b71ed667d4b99d2
44 Source7:        %{name}-nashorn-jdk8u%{ver_u}-b%{ver_b}.tar.bz2
45 # Source7-md5:  7da4e88349cfc45ee9726eaa4386be03
46 Source10:       make-cacerts.sh
47 Patch0:         adjust-mflags.patch
48 Patch1:         format_strings.patch
49 Patch2:         CompileDemos.patch
50 Patch3:         libpath.patch
51 Patch4:         system-libjpeg.patch
52 Patch5:         system-libpng.patch
53 Patch6:         system-lcms.patch
54 Patch7:         system-pcsclite.patch
55 Patch8:         x32.patch
56 Patch9:         current_stack_pointer.patch
57 URL:            http://openjdk.java.net/
58 BuildRequires:  /usr/bin/jar
59 BuildRequires:  alsa-lib-devel
60 BuildRequires:  ant
61 BuildRequires:  autoconf
62 BuildRequires:  bash
63 %{?with_cacerts:BuildRequires:  ca-certificates-update}
64 BuildRequires:  cups-devel
65 BuildRequires:  freetype-devel >= 2.3
66 BuildRequires:  gawk
67 BuildRequires:  giflib-devel >= 5.1
68 BuildRequires:  glibc-misc
69 %{?buildrequires_jdk}
70 BuildRequires:  lcms2-devel
71 BuildRequires:  libjpeg-devel
72 BuildRequires:  libpng-devel
73 BuildRequires:  lsb-release
74 BuildRequires:  pcsc-lite-devel
75 BuildRequires:  pkgconfig
76 BuildRequires:  rpmbuild(macros) >= 1.557
77 BuildRequires:  unzip
78 BuildRequires:  util-linux
79 BuildRequires:  xorg-lib-libX11-devel
80 BuildRequires:  xorg-lib-libXinerama-devel
81 BuildRequires:  xorg-lib-libXp-devel
82 BuildRequires:  xorg-lib-libXrender-devel
83 BuildRequires:  xorg-lib-libXt-devel
84 BuildRequires:  xorg-lib-libXtst-devel
85 BuildRequires:  xorg-proto-printproto-devel
86 BuildRequires:  xorg-proto-xproto-devel
87 BuildRequires:  zip
88 BuildRequires:  zlib-devel
89 Requires:       %{name}-appletviewer = %{version}-%{release}
90 Requires:       %{name}-jdk = %{version}-%{release}
91 Suggests:       %{name}-jre-X11
92 Suggests:       icedtea-web
93 Obsoletes:      icedtea6
94 Obsoletes:      icedtea7
95 Obsoletes:      java-gcj-compat
96 Obsoletes:      java-gcj-compat-devel
97 Obsoletes:      java-sun
98 Obsoletes:      java-sun-demos
99 Obsoletes:      java-sun-jre
100 Obsoletes:      java-sun-jre-X11
101 Obsoletes:      java-sun-jre-alsa
102 Obsoletes:      java-sun-jre-jdbc
103 Obsoletes:      java-sun-tools
104 Obsoletes:      java5-sun
105 Obsoletes:      java5-sun-jre
106 Obsoletes:      java5-sun-jre-X11
107 Obsoletes:      java5-sun-jre-jdbc
108 Obsoletes:      java5-sun-tools
109 Obsoletes:      oracle-java7
110 Obsoletes:      oracle-java7-jre
111 Obsoletes:      oracle-java7-jre-X11
112 Obsoletes:      oracle-java7-jre-alsa
113 Obsoletes:      oracle-java7-jre-jdbc
114 Obsoletes:      oracle-java7-tools
115 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
116
117 %define         dstreldir       %{name}-%{version}
118 %define         dstdir          %{_jvmdir}/%{dstreldir}
119 %define         jrereldir       %{dstreldir}/jre
120 %define         jredir          %{_jvmdir}/%{jrereldir}
121 %define         jvmjardir       %{_jvmjardir}/%{name}-%{version}
122
123 %ifarch %{x8664}
124 %define         jre_arch        amd64
125 %endif
126 %ifarch %{ix86}
127 %define         jre_arch        i386
128 %endif
129 %ifarch x32
130 %define         jre_arch        x32
131 %endif
132
133 # to break artificial subpackage dependency loops
134 %define         _noautoreq      'libmawt.so' java\\\\(ClassDataVersion\\\\)
135
136 %description
137 Open-source implementation of the Java Platform, Standard Edition.
138
139 This is a meta-package which provides, by its dependencies, all the
140 OpenJDK components including the OpenJDK, Java 8 developement kit and
141 runtime environment.
142
143 %description -l pl.UTF-8
144 Wolnoźródłowa implementacja Java 8 SE.
145
146 To jest meta-pakiet, który, za pośrednictwem zależności, dostarcza
147 wszystkie komponenty OpenJDK, w tym środowisko programistyczne
148 (OpenJDK) i uruchomieniowe (JRE).
149
150 %package jdk
151 Summary:        OpenJDK - software development kit
152 Summary(pl.UTF-8):      OpenJDK - środowisko programistyczne
153 Group:          Development/Languages/Java
154 Requires:       %{name}-jar = %{version}-%{release}
155 Requires:       %{name}-jdk-base = %{version}-%{release}
156 Requires:       %{name}-jre = %{version}-%{release}
157 Provides:       j2sdk = %{_jdkversion}
158 Provides:       jdk = %{_jdkversion}
159 Obsoletes:      blackdown-java-sdk
160 Obsoletes:      ibm-java
161 Obsoletes:      icedtea6-jdk
162 Obsoletes:      icedtea7-jdk
163 Obsoletes:      java-blackdown
164 Obsoletes:      java-gcj-compat-devel
165 Obsoletes:      java-sun
166 Obsoletes:      java5-sun
167 Obsoletes:      jdk
168 Obsoletes:      kaffe
169 Obsoletes:      oracle-java7
170
171 %description jdk
172 This package symlinks OpenJDK development tools provided by
173 %{name}-jdk-base to system-wide directories like %{_bindir}, making
174 OpenJDK the default JDK.
175
176 %description jdk -l pl.UTF-8
177 Ten pakiet tworzy symboliczne dowiązania do narzędzi programistycznych
178 OpenJDK, dostarczanych przez pakiet %{name}-jdk-base, w standardowych
179 systemowych ścieżkach takich jak %{_bindir}, sprawiając tym samym, że
180 OpenJDK staje się domyślnym JDK w systemie.
181
182 %package jdk-base
183 Summary:        OpenJDK - software development kit
184 Summary(pl.UTF-8):      Kod OpenJDK - środowisko programistyczne
185 Group:          Development/Languages/Java
186 Requires:       %{name}-jre-base = %{version}-%{release}
187 Requires:       jpackage-utils >= 0:1.7.5-4
188 Provides:       jdk(%{name})
189
190 %description jdk-base
191 OpenJDK development tools built using free software only.
192
193 %description jdk-base -l pl.UTF-8
194 OpenJDK skompilowane wyłącznie przy użyciu wolnego oprogramowania.
195
196 %package jre
197 Summary:        OpenJDK - runtime environment
198 Summary(pl.UTF-8):      OpenJDK - środowisko uruchomieniowe
199 Group:          Development/Languages/Java
200 Requires:       %{name}-jre-base = %{version}-%{release}
201 Requires:       nss >= 1:3.13.4
202 # Require zoneinfo data provided by java-tzdata subpackage.
203 Requires:       java-tzdata
204 Provides:       java
205 Provides:       java(ClassDataVersion) = %{_classdataversion}
206 Provides:       java(jaas) = %{version}
207 Provides:       java(jaf) = 1.1.1
208 Provides:       java(jaxp) = 1.3
209 Provides:       java(jaxp_parser_impl)
210 Provides:       java(jce) = %{version}
211 Provides:       java(jdbc-stdext) = %{version}
212 Provides:       java(jdbc-stdext) = 3.0
213 Provides:       java(jmx) = 1.4
214 Provides:       java(jndi) = %{version}
215 Provides:       java(jsse) = %{version}
216 Provides:       java1.4
217 Provides:       jre = %{_jdkversion}
218 Obsoletes:      icedtea6-jre
219 Obsoletes:      icedtea7-jre
220 Obsoletes:      java(jaas)
221 Obsoletes:      java(jaf)
222 Obsoletes:      java(jaxp)
223 Obsoletes:      java(jce)
224 Obsoletes:      java(jdbc-stdext)
225 Obsoletes:      java(jdbc-stdext)
226 Obsoletes:      java(jmx)
227 Obsoletes:      java(jndi)
228 Obsoletes:      java(jsse)
229 Obsoletes:      java-gcj-compat
230 Obsoletes:      java-sun-jre
231 Obsoletes:      java5-sun-jre
232 Obsoletes:      jre
233 Obsoletes:      oracle-java7-jre
234
235 %description jre
236 This package symlinks OpenJDK runtime environment tools provided by
237 %{name}-jre-base to system-wide directories like %{_bindir}, making
238 OpenJDK the default JRE.
239
240 %description jre -l pl.UTF-8
241 Ten pakiet tworzy symboliczne dowiązania do środowiska
242 uruchomieniowego OpenJDK, dostarczanych przez pakiet %{name}-jre-base,
243 w standardowych systemowych ścieżkach takich jak %{_bindir},
244 sprawiając tym samym, że OpenJDK staje się domyślnym JRE w systemie.
245
246 %package jre-X11
247 Summary:        OpenJDK - runtime environment - X11 support
248 Summary(pl.UTF-8):      OpenJDK - środowisko uruchomieniowe - obsługa X11
249 Group:          Development/Languages/Java
250 Requires:       %{name}-jre = %{version}-%{release}
251 Requires:       %{name}-jre-base-X11 = %{version}-%{release}
252 Provides:       jre-X11 = %{_jdkversion}
253 Obsoletes:      icedtea6-jre-X11
254 Obsoletes:      icedtea7-jre-X11
255 Obsoletes:      java-sun-jre-X11
256 Obsoletes:      oracle-java7-jre-X11
257
258 %description jre-X11
259 X11 support for OpenJDK runtime environment built using free software
260 only.
261
262 %description jre-X11 -l pl.UTF-8
263 Biblioteki X11 dla środowiska OpenJDK zbudowany wyłocznie przy uzyciu
264 wolnego oprogramowania.
265
266 %package jre-base
267 Summary:        OpenJDK - runtime environment
268 Summary(pl.UTF-8):      OpenJDK - środowisko uruchomieniowe
269 Group:          Development/Languages/Java
270 Requires:       jpackage-utils >= 0:1.7.5-4
271 Provides:       jre(%{name})
272
273 %description jre-base
274 OpenJDK runtime environment built using free software only.
275
276 %description jre-base -l pl.UTF-8
277 Środowisko uruchomieniowe OpenJDK zbudowany wyłącznie przy użyciu
278 wolnego oprogramowania.
279
280 %package jre-base-X11
281 Summary:        OpenJDK - runtime environment - X11 support
282 Summary(pl.UTF-8):      OpenJDK - środowisko uruchomieniowe - obsługa X11
283 Group:          Development/Languages/Java
284 Requires:       %{name}-jre-base = %{version}-%{release}
285 Requires:       %{name}-jre-base-freetype = %{version}-%{release}
286
287 %description jre-base-X11
288 X11 support for OpenJDK runtime environment built using free software
289 only.
290
291 %description jre-base-X11 -l pl.UTF-8
292 Biblioteki X11 dla środowiska OpenJDK zbudowany wyłocznie przy uzyciu
293 wolnego oprogramowania.
294
295 %package jre-base-alsa
296 Summary:        OpenJDK - runtime environment - ALSA support
297 Summary(pl.UTF-8):      OpenJDK - środowisko uruchomieniowe - obsługa ALSA
298 Group:          Development/Languages/Java
299 Requires:       %{name}-jre-base = %{version}-%{release}
300
301 %description jre-base-alsa
302 ALSA sound support for OpenJDK runtime environment build using free
303 software only.
304
305 %description jre-base-alsa -l pl.UTF-8
306 Biblioteki ALSA rozszerzające środowisko OpenJDK o obsługę dźwięku
307 zbudowane przy uzyciu wyłącznie wolnego oprogramowania.
308
309 %package jre-base-freetype
310 Summary:        OpenJDK - runtime environment - font support
311 Summary(pl.UTF-8):      OpenJDK - środowisko uruchomieniowe - obsługa fontów
312 Group:          Development/Languages/Java
313 Requires:       %{name}-jre-base = %{version}-%{release}
314
315 %description jre-base-freetype
316 Font handling library for OpenJDK runtime environment built using free
317 software only.
318
319 %description jre-base-freetype -l pl.UTF-8
320 Biblioteki obsługi czcionek dla OpenJDK zbudowane wyłącznie przy
321 użyciu wolnego oprogramowania.
322
323 %package jre-base-gtk
324 Summary:        OpenJDK - runtime environment - GTK support
325 Summary(pl.UTF-8):      OpenJDK - środowisko uruchomieniowe - obsługa GTK
326 Group:          Development/Languages/Java
327 Requires:       %{name}-jre-base = %{version}-%{release}
328
329 %description jre-base-gtk
330 GTK support for OpenJDK runtime environment.
331
332 %description jre-base-gtk -l pl.UTF-8
333 Biblioteki GTK dla OpenJDK.
334
335 %package jar
336 Summary:        OpenJDK - JAR tool
337 Summary(pl.UTF-8):      OpenJDK - narzędzie JAR
338 Group:          Development/Languages/Java
339 Requires:       %{name}-jdk-base = %{version}-%{release}
340 Provides:       jar
341 Obsoletes:      fastjar
342 Obsoletes:      icedtea6-jar
343 Obsoletes:      icedtea7-jar
344 Obsoletes:      jar
345
346 %description jar
347 JAR tool from OpenJDK built using free software only.
348
349 JAR is an archiver used to merge Java classes into a single library.
350
351 %description jar -l pl.UTF-8
352 Narzędzie jar z OpenJDK zbudowane przy uzyciu wyłącznie wolnego
353 oprogramowania.
354
355 JAR jest narzędziem pozwalającym wykonywać podstawowe operacje na
356 archiwach javy .jar takie jak na przykład tworzenie lub rozpakowywanie
357 archiwów.
358
359 %package appletviewer
360 Summary:        OpenJDK - appletviewer tool
361 Summary(pl.UTF-8):      OpenJDK - narzędzie appletviewer
362 Group:          Development/Languages/Java
363 Requires:       %{name}-jdk-base = %{version}-%{release}
364 Requires:       %{name}-jre-X11 = %{version}-%{release}
365 Obsoletes:      icedtea6-appletviewer
366 Obsoletes:      icedtea7-appletviewer
367 Obsoletes:      java-sun-appletviewer
368 Obsoletes:      oracle-java7-appletviewer
369
370 %description appletviewer
371 Appletviewer from OpenJDK build using free software only.
372
373 %description appletviewer -l pl.UTF-8
374 Appletviewer pozwala uruchamiać aplety javy niezależnie od
375 przeglądarki www. Ten appletviewer pochodzi z zestawu narzędzi OpenJDK
376 i został zbudowany wyłącznie przy użyciu wolnego oprogramowania.
377
378 %package jdk-sources
379 Summary:        OpenJDK - sources
380 Summary(pl.UTF-8):      OpenJDK - kod źródłowy
381 Group:          Documentation
382 %if "%{_rpmversion}" >= "5"
383 BuildArch:      noarch
384 %endif
385
386 %description jdk-sources
387 Source code for the OpenJDK development kit and Java standard library.
388
389 %description jdk-sources -l pl.UTF-8
390 Kod źródłowy narzędzi programistycznych OpenJDK oraz standardowej
391 biblioteki Javy.
392
393 %package examples
394 Summary:        OpenJDK - examples
395 Summary(pl.UTF-8):      OpenJDK - przykłady
396 Group:          Documentation
397 %if "%{_rpmversion}" >= "5"
398 BuildArch:      noarch
399 %endif
400
401 %description examples
402 Code examples for OpenJDK.
403
404 %description examples -l pl.UTF-8
405 Przykłady dla OpenJDK.
406
407 %prep
408 %setup -qn jdk8u-jdk8u%{ver_u}-b%{ver_b} -a1 -a2 -a3 -a4 -a5 -a6 -a7
409
410 for d in *-jdk8u*-b* ; do
411         mv "$d" "${d%%-jdk8u*-b*}"
412 done
413
414 %patch0 -p1
415 %patch1 -p1
416 %patch2 -p1
417 %patch3 -p1
418 %patch4 -p1
419 %patch5 -p1
420 %patch6 -p1
421 %patch7 -p1
422 %patch8 -p1
423 %patch9 -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}/libjawt.so
786 %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjdwp.so
787 %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjsdt.so
788 %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjsig.so
789 %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjsound.so
790 %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjvm.so
791 %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libmanagement.so
792 %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libmlib_image.so
793 %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libnet.so
794 %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libnio.so
795 %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libnpt.so
796 %ifnarch x32
797 %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libsaproc.so
798 %endif
799 %{?with_sunec:%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libsunec.so}
800 %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libunpack.so
801 %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libverify.so
802 %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libzip.so
803 %{jredir}/lib/images
804 %{jredir}/lib/management
805 %{jredir}/lib/security
806 %if %{with webstart}
807 %{jredir}/lib/about.jar
808 %{jredir}/lib/about.jnlp
809 %endif
810 %{jredir}/lib/calendars.properties
811 %{jredir}/lib/charsets.jar
812 %{jredir}/lib/classlist
813 %{jredir}/lib/content-types.properties
814 %{jredir}/lib/currency.data
815 %{jredir}/lib/flavormap.properties
816 %{jredir}/lib/hijrah-config-umalqura.properties
817 %{jredir}/lib/jce.jar
818 %attr(755, root, root) %{jredir}/lib/jexec
819 %{jredir}/lib/jsse.jar
820 %{jredir}/lib/jvm.hprof.txt
821 %{jredir}/lib/logging.properties
822 %{jredir}/lib/management-agent.jar
823 %{jredir}/lib/meta-index
824 %{jredir}/lib/net.properties
825 %{jredir}/lib/psfont.properties.ja
826 %{jredir}/lib/psfontj2d.properties
827 %{jredir}/lib/resources.jar
828 %{jredir}/lib/rt.jar
829 %{jredir}/lib/sound.properties
830 %{jredir}/lib/tzdb.dat
831 %{jvmjardir}
832
833 %files jre-X11
834 %defattr(644,root,root,755)
835 %attr(755,root,root) %{_bindir}/policytool
836 %{_mandir}/man1/policytool.1*
837 %lang(ja) %{_mandir}/ja/man1/policytool.1*
838
839 %files jre-base-X11
840 %defattr(644,root,root,755)
841 %attr(755,root,root) %{jredir}/bin/policytool
842 %attr(755,root,root) %{dstdir}/bin/policytool
843 %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libsplashscreen.so
844 %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libawt_xawt.so
845 %attr(755,root,root) %{dstdir}/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.261126 seconds and 2 git commands to generate.