]>
Commit | Line | Data |
---|---|---|
1 | # | |
2 | # IMPORTANT: | |
3 | # when upgrading remember to redownload all sources from the upstream | |
4 | # URLs and update MD5 sums, as there is no change in the file names | |
5 | # and distfiles would provide outdated files | |
6 | # | |
7 | ||
8 | # TODO: | |
9 | # - install .ttf fonts (same as in sun-java-base-jre-X11 package) or configure | |
10 | # it to use system fonts (is it possible?). | |
11 | # - desktop files, icons, etc. Some of these are included in the source root dir | |
12 | # - maybe build Shark VM, at least on i486, as the zero-assembly VM is very slow | |
13 | # - pass %{rpmcflags} to build | |
14 | ||
15 | %bcond_with bootstrap # build a bootstrap version, using icedtea6 | |
16 | %bcond_without nss # don't use NSS | |
17 | %bcond_without cacerts # don't include the default CA certificates | |
18 | %bcond_without systemtap # build without systemtap | |
19 | ||
20 | %if %{with bootstrap} | |
21 | %define use_jdk openjdk8 | |
22 | %else | |
23 | %define use_jdk icedtea8 | |
24 | %endif | |
25 | ||
26 | %ifarch %{ix86} %{x8664} sparc ppc64 ppc64le %{arm} aarch64 | |
27 | %define with_jfr 1 | |
28 | %endif | |
29 | ||
30 | # class data version seen with file(1) that this jvm is able to load | |
31 | %define _classdataversion 52.0 | |
32 | # JDK/JRE version, as returned with `java -version`, '_' replaced with '.' | |
33 | %define _jdkversion 1.8.0.282 | |
34 | ||
35 | Summary: OpenJDK and GNU Classpath code | |
36 | Summary(pl.UTF-8): Kod OpenJDK i GNU Classpath | |
37 | Name: icedtea8 | |
38 | Version: 3.18.0 | |
39 | Release: 1 | |
40 | License: GPL v2 | |
41 | Group: Development/Languages/Java | |
42 | Source0: http://icedtea.wildebeest.org/download/source/icedtea-%{version}.tar.gz | |
43 | # Source0-md5: f084fd2621a37e37d50edbd2e0b8607b | |
44 | Source1: http://icedtea.wildebeest.org/download/drops/icedtea8/%{version}/openjdk.tar.xz | |
45 | # Source1-md5: c7966d7f6901eb75716dc88e34f0814e | |
46 | Source2: http://icedtea.wildebeest.org/download/drops/icedtea8/%{version}/corba.tar.xz | |
47 | # Source2-md5: 2ef6a9aaf4e7e4652cc16f9f5a57c23c | |
48 | Source3: http://icedtea.wildebeest.org/download/drops/icedtea8/%{version}/jaxp.tar.xz | |
49 | # Source3-md5: f80bfbd61f71539d137e29c823f81508 | |
50 | Source4: http://icedtea.wildebeest.org/download/drops/icedtea8/%{version}/jaxws.tar.xz | |
51 | # Source4-md5: be8a3478a5f6d7243502ae937d74c03a | |
52 | Source5: http://icedtea.wildebeest.org/download/drops/icedtea8/%{version}/jdk.tar.xz | |
53 | # Source5-md5: dcd65f07528613c306b2e5e1f8a636f5 | |
54 | Source6: http://icedtea.wildebeest.org/download/drops/icedtea8/%{version}/langtools.tar.xz | |
55 | # Source6-md5: d6845aea4d53715567048480c74c5ed4 | |
56 | Source7: http://icedtea.wildebeest.org/download/drops/icedtea8/%{version}/hotspot.tar.xz | |
57 | # Source7-md5: 427f066f565586acca57714afe94acfa | |
58 | Source8: http://icedtea.wildebeest.org/download/drops/icedtea8/%{version}/aarch32.tar.xz | |
59 | # Source8-md5: 322e7a0fdae5bbe347fd0daf56d2bf0d | |
60 | Source9: http://icedtea.wildebeest.org/download/drops/icedtea8/%{version}/nashorn.tar.xz | |
61 | # Source9-md5: 62af347471160c94d386cbb6411747cb | |
62 | Source10: make-cacerts.sh | |
63 | # 0-99 patches for the IcedTea files | |
64 | Patch0: %{name}-x32-ac.patch | |
65 | Patch1: %{name}-heimdal.patch | |
66 | # 100-... patches applied to the extracted sources | |
67 | Patch100: %{name}-libpath.patch | |
68 | Patch101: %{name}-x32.patch | |
69 | Patch102: openjdk-heimdal.patch | |
70 | Patch103: atomic.patch | |
71 | URL: http://icedtea.classpath.org/wiki/Main_Page | |
72 | BuildRequires: alsa-lib-devel | |
73 | BuildRequires: ant | |
74 | BuildRequires: autoconf | |
75 | BuildRequires: automake >= 1:1.9 | |
76 | BuildRequires: bash | |
77 | %{?with_cacerts:BuildRequires: ca-certificates-update} | |
78 | BuildRequires: cups-devel | |
79 | BuildRequires: /usr/bin/jar | |
80 | BuildRequires: fontconfig-devel | |
81 | BuildRequires: freetype-devel >= 2.3 | |
82 | BuildRequires: gawk | |
83 | BuildRequires: giflib-devel >= 5.1 | |
84 | BuildRequires: glib2-devel | |
85 | BuildRequires: glibc-misc | |
86 | BuildRequires: gtk+2-devel | |
87 | BuildRequires: heimdal-devel | |
88 | BuildRequires: java-rhino | |
89 | BuildRequires: java-xalan | |
90 | %buildrequires_jdk | |
91 | BuildRequires: lcms2-devel | |
92 | %ifarch %{arm} | |
93 | BuildRequires: libatomic-devel | |
94 | %endif | |
95 | BuildRequires: libffi-devel | |
96 | BuildRequires: libjpeg-devel >= 6b | |
97 | BuildRequires: libpng-devel | |
98 | BuildRequires: libsctp-devel | |
99 | BuildRequires: libstdc++-static | |
100 | BuildRequires: lsb-release | |
101 | %{?with_nss:BuildRequires: nss-devel >= 1:3.17.2-5} | |
102 | BuildRequires: pcsc-lite-devel | |
103 | BuildRequires: pkgconfig | |
104 | BuildRequires: rpmbuild(macros) >= 1.557 | |
105 | %{?with_systemtap:BuildRequires: systemtap-sdt-devel >= 3.2} | |
106 | BuildRequires: tar >= 1:1.22 | |
107 | BuildRequires: unzip | |
108 | BuildRequires: util-linux | |
109 | BuildRequires: xorg-lib-libX11-devel | |
110 | BuildRequires: xorg-lib-libXau-devel | |
111 | BuildRequires: xorg-lib-libXcomposite-devel | |
112 | BuildRequires: xorg-lib-libXdmcp-devel | |
113 | BuildRequires: xorg-lib-libXext-devel | |
114 | BuildRequires: xorg-lib-libXi-devel | |
115 | BuildRequires: xorg-lib-libXinerama-devel | |
116 | BuildRequires: xorg-lib-libXp-devel | |
117 | BuildRequires: xorg-lib-libXrender-devel | |
118 | BuildRequires: xorg-lib-libXt-devel | |
119 | BuildRequires: xorg-lib-libXtst-devel | |
120 | BuildRequires: xorg-proto-printproto-devel | |
121 | BuildRequires: xorg-proto-xproto-devel | |
122 | BuildRequires: xz | |
123 | BuildRequires: zip | |
124 | BuildRequires: zlib-devel | |
125 | Requires: %{name}-appletviewer = %{version}-%{release} | |
126 | Requires: %{name}-jdk = %{version}-%{release} | |
127 | Suggests: %{name}-jre-X11 | |
128 | Suggests: icedtea-web | |
129 | Obsoletes: icedtea6 | |
130 | Obsoletes: icedtea7 | |
131 | Obsoletes: java5-sun | |
132 | Obsoletes: java5-sun-jre | |
133 | Obsoletes: java5-sun-jre-jdbc | |
134 | Obsoletes: java5-sun-jre-X11 | |
135 | Obsoletes: java5-sun-tools | |
136 | Obsoletes: java-gcj-compat | |
137 | Obsoletes: java-gcj-compat-devel | |
138 | Obsoletes: java-sun | |
139 | Obsoletes: java-sun-demos | |
140 | Obsoletes: java-sun-jre | |
141 | Obsoletes: java-sun-jre-alsa | |
142 | Obsoletes: java-sun-jre-jdbc | |
143 | Obsoletes: java-sun-jre-X11 | |
144 | Obsoletes: java-sun-tools | |
145 | Obsoletes: openjdk8 | |
146 | Obsoletes: oracle-java7 | |
147 | Obsoletes: oracle-java7-jre | |
148 | Obsoletes: oracle-java7-jre-alsa | |
149 | Obsoletes: oracle-java7-jre-jdbc | |
150 | Obsoletes: oracle-java7-jre-X11 | |
151 | Obsoletes: oracle-java7-tools | |
152 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
153 | ||
154 | %define dstreldir %{name}-%{version} | |
155 | %define dstdir %{_jvmdir}/%{dstreldir} | |
156 | %define jrereldir %{dstreldir}/jre | |
157 | %define jredir %{_jvmdir}/%{jrereldir} | |
158 | %define jvmjardir %{_jvmjardir}/%{name}-%{version} | |
159 | ||
160 | %ifarch %{x8664} | |
161 | %define jre_arch amd64 | |
162 | %endif | |
163 | %ifarch %{ix86} | |
164 | %define jre_arch i386 | |
165 | %endif | |
166 | %ifarch x32 | |
167 | %define jre_arch x32 | |
168 | %endif | |
169 | %ifarch aarch64 | |
170 | %define jre_arch aarch64 | |
171 | %endif | |
172 | %ifarch %{arm} | |
173 | %define jre_arch aarch32 | |
174 | %endif | |
175 | ||
176 | %ifarch %{arm} | |
177 | %define jvm_type client | |
178 | %else | |
179 | %define jvm_type server | |
180 | %endif | |
181 | ||
182 | # to break artificial subpackage dependency loops | |
183 | %define _noautoreq 'libmawt.so' java\\\\(ClassDataVersion\\\\) | |
184 | ||
185 | %description | |
186 | The IcedTea project provides a harness to build the source code from | |
187 | http://openjdk.java.net/ using Free Software build tools and provides | |
188 | replacements libraries for the binary plugs with code from the GNU | |
189 | Classpath project. | |
190 | ||
191 | This is a meta-package which provides, by its dependencies, all the | |
192 | IcedTea6 components including the OpenJDK, Java 6 developement kit and | |
193 | runtime environment. | |
194 | ||
195 | %description -l pl.UTF-8 | |
196 | Projekt IcedTea daje możliwość kompilacji kodu źródłowego z | |
197 | http://openjdk.java.net/ przy użyciu wolnodostępnych narzędzi oraz | |
198 | dostarcza zamienniki biblioteczne binarnych wtyczek pochodzące z | |
199 | projektu GNU Classpath. | |
200 | ||
201 | To jest meta-pakiet, który, za pośrednictwem zależności, dostarcza | |
202 | wszystkie komponenty IcedTea7, w tym środowisko programistyczne | |
203 | (OpenJDK) i uruchomieniowe (JRE). | |
204 | ||
205 | %package jdk | |
206 | Summary: OpenJDK and GNU Classpath code - software development kit | |
207 | Summary(pl.UTF-8): Kod OpenJDK i GNU Classpath - środowisko programistyczne | |
208 | Group: Development/Languages/Java | |
209 | Requires: %{name}-jar = %{version}-%{release} | |
210 | Requires: %{name}-jdk-base = %{version}-%{release} | |
211 | Requires: %{name}-jre = %{version}-%{release} | |
212 | Provides: j2sdk = %{_jdkversion} | |
213 | Provides: jdk = %{_jdkversion} | |
214 | Obsoletes: blackdown-java-sdk | |
215 | Obsoletes: ibm-java | |
216 | Obsoletes: icedtea6-jdk | |
217 | Obsoletes: icedtea7-jdk | |
218 | Obsoletes: java-blackdown | |
219 | Obsoletes: java-gcj-compat-devel | |
220 | Obsoletes: java-sun | |
221 | Obsoletes: java5-sun | |
222 | Obsoletes: openjdk8-jdk | |
223 | Obsoletes: oracle-java7 | |
224 | Obsoletes: jdk | |
225 | Obsoletes: kaffe | |
226 | ||
227 | %description jdk | |
228 | This package symlinks OpenJDK development tools provided by | |
229 | %{name}-jdk-base to system-wide directories like %{_bindir}, making | |
230 | IcedTea6 default JDK. | |
231 | ||
232 | %description jdk -l pl.UTF-8 | |
233 | Ten pakiet tworzy symboliczne dowiązania do narzędzi programistycznych | |
234 | OpenJDK, dostarczanych przez pakiet %{name}-jdk-base, w standardowych | |
235 | systemowych ścieżkach takich jak %{_bindir}, sprawiając tym samym, że | |
236 | IcedTea6 staje się domyślnym JDK w systemie. | |
237 | ||
238 | %package jdk-base | |
239 | Summary: OpenJDK and GNU Classpath code - software development kit | |
240 | Summary(pl.UTF-8): Kod OpenJDK i GNU Classpath - środowisko programistyczne | |
241 | Group: Development/Languages/Java | |
242 | Requires: %{name}-jre-base = %{version}-%{release} | |
243 | Requires: jpackage-utils >= 0:1.7.5-4 | |
244 | Provides: jdk(%{name}) | |
245 | ||
246 | %description jdk-base | |
247 | OpenJDK development tools built using free software only. | |
248 | ||
249 | %description jdk-base -l pl.UTF-8 | |
250 | OpenJDK skompilowane wyłącznie przy użyciu wolnego oprogramowania. | |
251 | ||
252 | %package jre | |
253 | Summary: OpenJDK and GNU Classpath code - runtime environment | |
254 | Summary(pl.UTF-8): Kod OpenJDK i GNU Classpath - środowisko uruchomieniowe | |
255 | Group: Development/Languages/Java | |
256 | Requires: %{name}-jre-base = %{version}-%{release} | |
257 | Requires: nss >= 1:3.13.4 | |
258 | # Require zoneinfo data provided by java-tzdata subpackage. | |
259 | Requires: java-tzdata | |
260 | Provides: java | |
261 | Provides: java(ClassDataVersion) = %{_classdataversion} | |
262 | Provides: java(jaas) = %{version} | |
263 | Provides: java(jaf) = 1.1.1 | |
264 | Provides: java(jaxp) = 1.3 | |
265 | Provides: java(jaxp_parser_impl) | |
266 | Provides: java(jce) = %{version} | |
267 | Provides: java(jdbc-stdext) = %{version} | |
268 | Provides: java(jdbc-stdext) = 3.0 | |
269 | Provides: java(jmx) = 1.4 | |
270 | Provides: java(jndi) = %{version} | |
271 | Provides: java(jsse) = %{version} | |
272 | Provides: java1.4 | |
273 | Provides: jre = %{_jdkversion} | |
274 | Obsoletes: icedtea6-jre | |
275 | Obsoletes: icedtea7-jre | |
276 | Obsoletes: java(jaas) | |
277 | Obsoletes: java(jaf) | |
278 | Obsoletes: java(jaxp) | |
279 | Obsoletes: java(jce) | |
280 | Obsoletes: java(jdbc-stdext) | |
281 | Obsoletes: java(jdbc-stdext) | |
282 | Obsoletes: java(jmx) | |
283 | Obsoletes: java(jndi) | |
284 | Obsoletes: java(jsse) | |
285 | Obsoletes: java-gcj-compat | |
286 | Obsoletes: java-sun-jre | |
287 | Obsoletes: java5-sun-jre | |
288 | Obsoletes: openjdk8-jre | |
289 | Obsoletes: oracle-java7-jre | |
290 | Obsoletes: jre | |
291 | ||
292 | %description jre | |
293 | This package symlinks OpenJDK runtime environment tools provided by | |
294 | %{name}-jre-base to system-wide directories like %{_bindir}, making | |
295 | IcedTea6 default JRE. | |
296 | ||
297 | %description jre -l pl.UTF-8 | |
298 | Ten pakiet tworzy symboliczne dowiązania do środowiska | |
299 | uruchomieniowego OpenJDK, dostarczanych przez pakiet %{name}-jre-base, | |
300 | w standardowych systemowych ścieżkach takich jak %{_bindir}, | |
301 | sprawiając tym samym, że IcedTea7 staje się domyślnym JRE w systemie. | |
302 | ||
303 | %package jre-X11 | |
304 | Summary: IcedTea7 OpenJDK - runtime environment - X11 support | |
305 | Summary(pl.UTF-8): IcedTea7 OpenJDK - środowisko uruchomieniowe - obsługa X11 | |
306 | Group: Development/Languages/Java | |
307 | Requires: %{name}-jre = %{version}-%{release} | |
308 | Requires: %{name}-jre-base-X11 = %{version}-%{release} | |
309 | Provides: jre-X11 = %{_jdkversion} | |
310 | Obsoletes: icedtea6-jre-X11 | |
311 | Obsoletes: java-sun-jre-X11 | |
312 | Obsoletes: openjdk8-jre-X11 | |
313 | Obsoletes: oracle-java7-jre-X11 | |
314 | ||
315 | %description jre-X11 | |
316 | X11 support for OpenJDK runtime environment built using free software | |
317 | only. | |
318 | ||
319 | %description jre-X11 -l pl.UTF-8 | |
320 | Biblioteki X11 dla środowiska OpenJDK zbudowany wyłocznie przy uzyciu | |
321 | wolnego oprogramowania. | |
322 | ||
323 | %package jre-base | |
324 | Summary: OpenJDK and GNU Classpath code - runtime environment | |
325 | Summary(pl.UTF-8): Kod OpenJDK i GNU Classpath - środowisko uruchomieniowe | |
326 | Group: Development/Languages/Java | |
327 | Requires: jpackage-utils >= 0:1.7.5-4 | |
328 | Provides: jre(%{name}) | |
329 | Provides: jre-base = %{_jdkversion} | |
330 | ||
331 | %description jre-base | |
332 | OpenJDK runtime environment built using free software only. | |
333 | ||
334 | %description jre-base -l pl.UTF-8 | |
335 | Środowisko uruchomieniowe OpenJDK zbudowany wyłącznie przy użyciu | |
336 | wolnego oprogramowania. | |
337 | ||
338 | %package jre-base-X11 | |
339 | Summary: IcedTea7 OpenJDK - runtime environment - X11 support | |
340 | Summary(pl.UTF-8): IcedTea7 OpenJDK - środowisko uruchomieniowe - obsługa X11 | |
341 | Group: Development/Languages/Java | |
342 | Requires: %{name}-jre-base = %{version}-%{release} | |
343 | Requires: %{name}-jre-base-freetype = %{version}-%{release} | |
344 | Provides: jre-base-X11 = %{_jdkversion} | |
345 | ||
346 | %description jre-base-X11 | |
347 | X11 support for OpenJDK runtime environment built using free software | |
348 | only. | |
349 | ||
350 | %description jre-base-X11 -l pl.UTF-8 | |
351 | Biblioteki X11 dla środowiska OpenJDK zbudowany wyłocznie przy uzyciu | |
352 | wolnego oprogramowania. | |
353 | ||
354 | %package jre-base-alsa | |
355 | Summary: IcedTea7 OpenJDK - runtime environment - ALSA support | |
356 | Summary(pl.UTF-8): IcedTea7 OpenJDK - środowisko uruchomieniowe - obsługa ALSA | |
357 | Group: Development/Languages/Java | |
358 | Requires: %{name}-jre-base = %{version}-%{release} | |
359 | ||
360 | %description jre-base-alsa | |
361 | ALSA sound support for OpenJDK runtime environment build using free | |
362 | software only. | |
363 | ||
364 | %description jre-base-alsa -l pl.UTF-8 | |
365 | Biblioteki ALSA rozszerzające środowisko OpenJDK o obsługę dźwięku | |
366 | zbudowane przy uzyciu wyłącznie wolnego oprogramowania. | |
367 | ||
368 | %package jre-base-freetype | |
369 | Summary: IcedTea7 OpenJDK - runtime environment - font support | |
370 | Summary(pl.UTF-8): IcedTea7 OpenJDK - środowisko uruchomieniowe - obsługa fontów | |
371 | Group: Development/Languages/Java | |
372 | Requires: %{name}-jre-base = %{version}-%{release} | |
373 | ||
374 | %description jre-base-freetype | |
375 | Font handling library for OpenJDK runtime environment built using free | |
376 | software only. | |
377 | ||
378 | %description jre-base-freetype -l pl.UTF-8 | |
379 | Biblioteki obsługi czcionek dla OpenJDK zbudowane wyłącznie przy | |
380 | użyciu wolnego oprogramowania. | |
381 | ||
382 | %package jre-base-gtk | |
383 | Summary: IcedTea7 OpenJDK - runtime environment - GTK support | |
384 | Summary(pl.UTF-8): IcedTea7 OpenJDK - środowisko uruchomieniowe - obsługa GTK | |
385 | Group: Development/Languages/Java | |
386 | Requires: %{name}-jre-base = %{version}-%{release} | |
387 | ||
388 | %description jre-base-gtk | |
389 | GTK support for OpenJDK runtime environment. | |
390 | ||
391 | %description jre-base-gtk -l pl.UTF-8 | |
392 | Biblioteki GTK dla OpenJDK. | |
393 | ||
394 | %package jar | |
395 | Summary: OpenJDK and GNU Classpath code - JAR tool | |
396 | Summary(pl.UTF-8): Kod OpenJDK i GNU Classpath - narzędzie JAR | |
397 | Group: Development/Languages/Java | |
398 | Requires: %{name}-jdk-base = %{version}-%{release} | |
399 | Provides: jar | |
400 | Obsoletes: fastjar | |
401 | Obsoletes: icedtea6-jar | |
402 | Obsoletes: icedtea7-jar | |
403 | Obsoletes: openjdk8-jar | |
404 | Obsoletes: jar | |
405 | ||
406 | %description jar | |
407 | JAR tool from OpenJDK built using free software only. | |
408 | ||
409 | JAR is an archiver used to merge Java classes into a single library. | |
410 | ||
411 | %description jar -l pl.UTF-8 | |
412 | Narzędzie jar z OpenJDK zbudowane przy uzyciu wyłącznie wolnego | |
413 | oprogramowania. | |
414 | ||
415 | JAR jest narzędziem pozwalającym wykonywać podstawowe operacje na | |
416 | archiwach javy .jar takie jak na przykład tworzenie lub rozpakowywanie | |
417 | archiwów. | |
418 | ||
419 | %package appletviewer | |
420 | Summary: OpenJDK and GNU Classpath code - appletviewer tool | |
421 | Summary(pl.UTF-8): Kod OpenJDK i GNU Classpath - narzędzie appletviewer | |
422 | Group: Development/Languages/Java | |
423 | Requires: %{name}-jdk-base = %{version}-%{release} | |
424 | Requires: %{name}-jre-X11 = %{version}-%{release} | |
425 | Obsoletes: icedtea6-appletviewer | |
426 | Obsoletes: icedtea7-appletviewer | |
427 | Obsoletes: java-sun-appletviewer | |
428 | Obsoletes: openjdk8-appletviewer | |
429 | Obsoletes: oracle-java7-appletviewer | |
430 | ||
431 | %description appletviewer | |
432 | Appletviewer from OpenJDK build using free software only. | |
433 | ||
434 | %description appletviewer -l pl.UTF-8 | |
435 | Appletviewer pozwala uruchamiać aplety javy niezależnie od | |
436 | przeglądarki www. Ten appletviewer pochodzi z zestawu narzędzi OpenJDK | |
437 | i został zbudowany wyłącznie przy użyciu wolnego oprogramowania. | |
438 | ||
439 | %package jdk-sources | |
440 | Summary: OpenJDK and GNU Classpath code - sources | |
441 | Summary(pl.UTF-8): Kod OpenJDK i GNU Classpath - kod źródłowy | |
442 | Group: Documentation | |
443 | %if "%{_rpmversion}" >= "5" | |
444 | BuildArch: noarch | |
445 | %endif | |
446 | ||
447 | %description jdk-sources | |
448 | Source code for the OpenJDK development kit and Java standard library. | |
449 | ||
450 | %description jdk-sources -l pl.UTF-8 | |
451 | Kod źródłowy narzędzi programistycznych OpenJDK oraz standardowej | |
452 | biblioteki Javy. | |
453 | ||
454 | %package examples | |
455 | Summary: OpenJDK and GNU Classpath code - examples | |
456 | Summary(pl.UTF-8): Kod OpenJDK i GNU Classpath - przykłady | |
457 | Group: Documentation | |
458 | %if "%{_rpmversion}" >= "5" | |
459 | BuildArch: noarch | |
460 | %endif | |
461 | ||
462 | %description examples | |
463 | Code examples for OpenJDK. | |
464 | ||
465 | %description examples -l pl.UTF-8 | |
466 | Przykłady dla OpenJDK. | |
467 | ||
468 | %prep | |
469 | %setup -qn icedtea-%{version} | |
470 | %patch0 -p1 | |
471 | %patch1 -p1 | |
472 | ||
473 | # patches to applied to the extracted sources | |
474 | install -d pld-patches | |
475 | cp -p %{PATCH100} pld-patches | |
476 | %ifarch x32 | |
477 | cp -p %{PATCH101} pld-patches | |
478 | %endif | |
479 | cp -p %{PATCH102} pld-patches | |
480 | cp -p %{PATCH103} pld-patches | |
481 | ||
482 | # let the build system extract the sources where it wants them | |
483 | install -d drops | |
484 | ln -s %{SOURCE1} openjdk.tar.xz | |
485 | ln -s %{SOURCE2} corba.tar.xz | |
486 | ln -s %{SOURCE3} jaxp.tar.xz | |
487 | ln -s %{SOURCE4} jaxws.tar.xz | |
488 | ln -s %{SOURCE5} jdk.tar.xz | |
489 | ln -s %{SOURCE6} langtools.tar.xz | |
490 | %ifarch %{arm} | |
491 | ln -s %{SOURCE8} hotspot.tar.xz | |
492 | %else | |
493 | ln -s %{SOURCE7} hotspot.tar.xz | |
494 | %endif | |
495 | ln -s %{SOURCE9} nashorn.tar.xz | |
496 | ||
497 | %build | |
498 | # Make sure we have /proc mounted - otherwise idlc will fail later. | |
499 | if [ ! -f /proc/self/stat ]; then | |
500 | echo "You need to have /proc mounted in order to build this package!" | |
501 | exit 1 | |
502 | fi | |
503 | ||
504 | unset JAVA_HOME | |
505 | ||
506 | mkdir -p build-bin | |
507 | export PATH="$(pwd)/build-bin:$PATH" | |
508 | ||
509 | # our /usr/bin/ant is quite broken and won't run properly | |
510 | # in the bootstrap JDK environment prepared by IcedTea build process | |
511 | cat >>build-bin/ant <<'EOF' | |
512 | #!/bin/sh | |
513 | ||
514 | exec java \ | |
515 | -classpath /usr/share/java/ant-launcher.jar \ | |
516 | -Dant.home=/usr/share/ant \ | |
517 | -Dant.lib=/usr/share/ant/lib \ | |
518 | org.apache.tools.ant.launch.Launcher \ | |
519 | "$@" | |
520 | EOF | |
521 | chmod a+x build-bin/ant | |
522 | ||
523 | %{__aclocal} | |
524 | %{__autoconf} | |
525 | %{__automake} | |
526 | ||
527 | # NOTE: the weird '--disable-bootstrap' is how it is supposed to be | |
528 | # http://icedtea.classpath.org/wiki/CommonIssues#IcedTea7_building_on_systems_with_JDK_5_or_JDK_6 | |
529 | %configure \ | |
530 | WGET=%{_bindir}/wget \ | |
531 | %ifarch x32 | |
532 | --enable-zero \ | |
533 | %endif | |
534 | --disable-downloading \ | |
535 | --with-jdk-home=%{java_home} \ | |
536 | --disable-bootstrap \ | |
537 | --enable-improved-font-rendering \ | |
538 | %{__enable_disable jfr} \ | |
539 | --enable-system-kerberos \ | |
540 | --enable-system-pcsc \ | |
541 | --enable-system-sctp \ | |
542 | --%{!?with_nss:dis}%{?with_nss:en}able-nss | |
543 | ||
544 | %{__make} extract \ | |
545 | SHELL=/bin/bash \ | |
546 | DISTRIBUTION_PATCHES="$(echo pld-patches/*.patch)" | |
547 | ||
548 | %{__make} patch \ | |
549 | SHELL=/bin/bash \ | |
550 | DISTRIBUTION_PATCHES="$(echo pld-patches/*.patch)" | |
551 | ||
552 | # break here to prepare openjdk patches | |
553 | #exit 1 | |
554 | ||
555 | cd openjdk/common/autoconf | |
556 | sh autogen.sh | |
557 | cd ../../.. | |
558 | ||
559 | %{__make} -j1 \ | |
560 | SHELL=/bin/bash \ | |
561 | DISABLE_HOTSPOT_OS_VERSION_CHECK=ok \ | |
562 | DISTRIBUTION_PATCHES="$(echo pld-patches/*.patch)" \ | |
563 | PRINTF=/bin/printf \ | |
564 | MAX_VM_MEMORY=1024 | |
565 | ||
566 | # smoke test | |
567 | openjdk.build/jdk/bin/java -version | |
568 | ||
569 | %{?with_cacerts:%{__sh} %{SOURCE10}} | |
570 | ||
571 | # _jdkversion check | |
572 | JDKVER=$(openjdk.build/jdk/bin/java -version 2>&1 | gawk -F'"' '/openjdk version/ { s=$2; gsub("_", ".", s); print s; } ') | |
573 | if [ "$JDKVER" != "%{_jdkversion}" ]; then | |
574 | echo "Please update _jdkversion macro to $JDKVER" >&2 | |
575 | exit 1 | |
576 | fi | |
577 | ||
578 | %install | |
579 | rm -rf $RPM_BUILD_ROOT | |
580 | ||
581 | install -d $RPM_BUILD_ROOT{%{_bindir},%{dstdir},%{_mandir}/ja} \ | |
582 | $RPM_BUILD_ROOT{%{jvmjardir},%{_examplesdir}/%{name}-%{version},%{_javasrcdir}} \ | |
583 | $RPM_BUILD_ROOT%{_sysconfdir}/%{name} | |
584 | ||
585 | # install the 'JDK image', it contains the JRE too | |
586 | cp -a openjdk.build/images/j2sdk-image/* $RPM_BUILD_ROOT%{dstdir} | |
587 | ||
588 | # convenience symlinks without version number | |
589 | ln -s %{dstreldir} $RPM_BUILD_ROOT%{_jvmdir}/%{name} | |
590 | ln -s %{jrereldir} $RPM_BUILD_ROOT%{_jvmdir}/%{name}-jre | |
591 | ||
592 | ln -s %{dstreldir} $RPM_BUILD_ROOT%{_jvmdir}/java | |
593 | ||
594 | # move JDK sources and demo to /usr/src | |
595 | mv $RPM_BUILD_ROOT%{dstdir}/demo $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
596 | mv $RPM_BUILD_ROOT%{dstdir}/sample $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
597 | mv $RPM_BUILD_ROOT%{dstdir}/src.zip $RPM_BUILD_ROOT%{_javasrcdir}/%{name}-jdk.zip | |
598 | ||
599 | # move manual pages to its place | |
600 | mv $RPM_BUILD_ROOT%{dstdir}/man/ja_JP.UTF-8/man1 $RPM_BUILD_ROOT%{_mandir}/ja/man1 | |
601 | rmdir $RPM_BUILD_ROOT%{dstdir}/man/ja_JP.UTF-8 | |
602 | rm $RPM_BUILD_ROOT%{dstdir}/man/ja | |
603 | mv $RPM_BUILD_ROOT%{dstdir}/man/man1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
604 | rmdir $RPM_BUILD_ROOT%{dstdir}/man | |
605 | ||
606 | # replace duplicates with symlinks, link to %{_bindir} | |
607 | for path in $RPM_BUILD_ROOT%{dstdir}/bin/*; do | |
608 | filename=$(basename $path) | |
609 | if diff -q "$path" "$RPM_BUILD_ROOT%{jredir}/bin/$filename" > /dev/null; then | |
610 | ln -sf "../jre/bin/$filename" "$path" | |
611 | ln -sf "%{jredir}/bin/$filename" $RPM_BUILD_ROOT%{_bindir} | |
612 | else | |
613 | ln -sf "%{dstdir}/bin/$filename" $RPM_BUILD_ROOT%{_bindir} | |
614 | fi | |
615 | done | |
616 | ln -sf ../jre/lib/jexec $RPM_BUILD_ROOT%{dstdir}/lib/jexec | |
617 | ||
618 | # keep configuration in /etc (not all *.properties go there) | |
619 | for config in management security content-types.properties \ | |
620 | logging.properties net.properties sound.properties; do | |
621 | ||
622 | mv $RPM_BUILD_ROOT%{jredir}/lib/$config $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/$config | |
623 | ln -s %{_sysconfdir}/%{name}/$config $RPM_BUILD_ROOT%{jredir}/lib/$config | |
624 | done | |
625 | ||
626 | ln -sf %{jredir}/lib/jsse.jar $RPM_BUILD_ROOT%{jvmjardir}/jsse.jar | |
627 | ln -sf %{jredir}/lib/jsse.jar $RPM_BUILD_ROOT%{jvmjardir}/jcert.jar | |
628 | ln -sf %{jredir}/lib/jsse.jar $RPM_BUILD_ROOT%{jvmjardir}/jnet.jar | |
629 | ln -sf %{jredir}/lib/jce.jar $RPM_BUILD_ROOT%{jvmjardir}/jce.jar | |
630 | for f in jndi jndi-ldap jndi-cos jndi-rmi jaas jdbc-stdext jdbc-stdext-3.0 \ | |
631 | sasl jaxp_parser_impl jaxp_transform_impl jaxp jmx activation xml-commons-apis \ | |
632 | jndi-dns jndi-rmi; do | |
633 | ln -sf %{jredir}/lib/rt.jar $RPM_BUILD_ROOT%{jvmjardir}/$f.jar | |
634 | done | |
635 | ||
636 | # some apps (like opera) looks for it in different place | |
637 | ln -s %{jvm_type}/libjvm.so $RPM_BUILD_ROOT%{jredir}/lib/%{jre_arch}/libjvm.so | |
638 | ||
639 | %{__rm} $RPM_BUILD_ROOT%{dstdir}/{,jre/}{ASSEMBLY_EXCEPTION,LICENSE,THIRD_PARTY_README} | |
640 | ||
641 | %{?with_cacerts:install cacerts $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/security} | |
642 | ||
643 | %clean | |
644 | rm -rf $RPM_BUILD_ROOT | |
645 | ||
646 | %files | |
647 | %defattr(644,root,root,755) | |
648 | %doc AUTHORS ChangeLog HACKING NEWS README | |
649 | ||
650 | %files jdk | |
651 | %defattr(644,root,root,755) | |
652 | %attr(755,root,root) %{_bindir}/extcheck | |
653 | %attr(755,root,root) %{_bindir}/idlj | |
654 | %attr(755,root,root) %{_bindir}/jarsigner | |
655 | %attr(755,root,root) %{_bindir}/java-rmi.cgi | |
656 | %attr(755,root,root) %{_bindir}/javac | |
657 | %attr(755,root,root) %{_bindir}/javadoc | |
658 | %attr(755,root,root) %{_bindir}/javah | |
659 | %attr(755,root,root) %{_bindir}/javap | |
660 | %attr(755,root,root) %{_bindir}/jcmd | |
661 | %attr(755,root,root) %{_bindir}/jconsole | |
662 | %attr(755,root,root) %{_bindir}/jdb | |
663 | %attr(755,root,root) %{_bindir}/jdeps | |
664 | %attr(755,root,root) %{_bindir}/jhat | |
665 | %attr(755,root,root) %{_bindir}/jinfo | |
666 | %attr(755,root,root) %{_bindir}/jjs | |
667 | %attr(755,root,root) %{_bindir}/jmap | |
668 | %attr(755,root,root) %{_bindir}/jps | |
669 | %attr(755,root,root) %{_bindir}/jrunscript | |
670 | %attr(755,root,root) %{_bindir}/jsadebugd | |
671 | %attr(755,root,root) %{_bindir}/jstack | |
672 | %attr(755,root,root) %{_bindir}/jstat | |
673 | %attr(755,root,root) %{_bindir}/jstatd | |
674 | %attr(755,root,root) %{_bindir}/native2ascii | |
675 | %attr(755,root,root) %{_bindir}/rmic | |
676 | %attr(755,root,root) %{_bindir}/schemagen | |
677 | %attr(755,root,root) %{_bindir}/serialver | |
678 | %attr(755,root,root) %{_bindir}/wsgen | |
679 | %attr(755,root,root) %{_bindir}/wsimport | |
680 | %attr(755,root,root) %{_bindir}/xjc | |
681 | %{_mandir}/man1/extcheck.1* | |
682 | %{_mandir}/man1/idlj.1* | |
683 | %{_mandir}/man1/jarsigner.1* | |
684 | %{_mandir}/man1/javac.1* | |
685 | %{_mandir}/man1/javadoc.1* | |
686 | %{_mandir}/man1/javah.1* | |
687 | %{_mandir}/man1/javap.1* | |
688 | %{_mandir}/man1/jcmd.1* | |
689 | %{_mandir}/man1/jconsole.1* | |
690 | %{_mandir}/man1/jdb.1* | |
691 | %{_mandir}/man1/jdeps.1* | |
692 | %{_mandir}/man1/jhat.1* | |
693 | %{_mandir}/man1/jinfo.1* | |
694 | %{_mandir}/man1/jjs.1* | |
695 | %{_mandir}/man1/jmap.1* | |
696 | %{_mandir}/man1/jps.1* | |
697 | %{_mandir}/man1/jrunscript.1* | |
698 | %{_mandir}/man1/jsadebugd.1* | |
699 | %{_mandir}/man1/jstack.1* | |
700 | %{_mandir}/man1/jstat.1* | |
701 | %{_mandir}/man1/jstatd.1* | |
702 | %{_mandir}/man1/native2ascii.1* | |
703 | %{_mandir}/man1/schemagen.1* | |
704 | %{_mandir}/man1/serialver.1* | |
705 | %{_mandir}/man1/rmic.1* | |
706 | %{_mandir}/man1/wsgen.1* | |
707 | %{_mandir}/man1/wsimport.1* | |
708 | %{_mandir}/man1/xjc.1* | |
709 | %lang(ja) %{_mandir}/ja/man1/extcheck.1* | |
710 | %lang(ja) %{_mandir}/ja/man1/idlj.1* | |
711 | %lang(ja) %{_mandir}/ja/man1/jarsigner.1* | |
712 | %lang(ja) %{_mandir}/ja/man1/javac.1* | |
713 | %lang(ja) %{_mandir}/ja/man1/javadoc.1* | |
714 | %lang(ja) %{_mandir}/ja/man1/javah.1* | |
715 | %lang(ja) %{_mandir}/ja/man1/javap.1* | |
716 | %lang(ja) %{_mandir}/ja/man1/jcmd.1* | |
717 | %lang(ja) %{_mandir}/ja/man1/jconsole.1* | |
718 | %lang(ja) %{_mandir}/ja/man1/jdb.1* | |
719 | %lang(ja) %{_mandir}/ja/man1/jdeps.1* | |
720 | %lang(ja) %{_mandir}/ja/man1/jhat.1* | |
721 | %lang(ja) %{_mandir}/ja/man1/jinfo.1* | |
722 | %lang(ja) %{_mandir}/ja/man1/jjs.1* | |
723 | %lang(ja) %{_mandir}/ja/man1/jmap.1* | |
724 | %lang(ja) %{_mandir}/ja/man1/jps.1* | |
725 | %lang(ja) %{_mandir}/ja/man1/jrunscript.1* | |
726 | %lang(ja) %{_mandir}/ja/man1/jsadebugd.1* | |
727 | %lang(ja) %{_mandir}/ja/man1/jstack.1* | |
728 | %lang(ja) %{_mandir}/ja/man1/jstat.1* | |
729 | %lang(ja) %{_mandir}/ja/man1/jstatd.1* | |
730 | %lang(ja) %{_mandir}/ja/man1/native2ascii.1* | |
731 | %lang(ja) %{_mandir}/ja/man1/schemagen.1* | |
732 | %lang(ja) %{_mandir}/ja/man1/serialver.1* | |
733 | %lang(ja) %{_mandir}/ja/man1/rmic.1* | |
734 | %lang(ja) %{_mandir}/ja/man1/wsgen.1* | |
735 | %lang(ja) %{_mandir}/ja/man1/wsimport.1* | |
736 | %lang(ja) %{_mandir}/ja/man1/xjc.1* | |
737 | ||
738 | %files jdk-base | |
739 | %defattr(644,root,root,755) | |
740 | %doc openjdk.build/images/j2sdk-image/THIRD_PARTY_README | |
741 | %doc openjdk.build/images/j2sdk-image/ASSEMBLY_EXCEPTION | |
742 | %dir %{dstdir} | |
743 | %{_jvmdir}/%{name} | |
744 | %dir %{dstdir}/bin | |
745 | %attr(755,root,root) %{dstdir}/bin/appletviewer | |
746 | %attr(755,root,root) %{dstdir}/bin/extcheck | |
747 | %attr(755,root,root) %{dstdir}/bin/idlj | |
748 | %attr(755,root,root) %{dstdir}/bin/jar | |
749 | %attr(755,root,root) %{dstdir}/bin/jarsigner | |
750 | %attr(755,root,root) %{dstdir}/bin/java-rmi.cgi | |
751 | %attr(755,root,root) %{dstdir}/bin/javac | |
752 | %attr(755,root,root) %{dstdir}/bin/javadoc | |
753 | %attr(755,root,root) %{dstdir}/bin/javah | |
754 | %attr(755,root,root) %{dstdir}/bin/javap | |
755 | %attr(755,root,root) %{dstdir}/bin/jconsole | |
756 | %attr(755,root,root) %{dstdir}/bin/jcmd | |
757 | %attr(755,root,root) %{dstdir}/bin/jdb | |
758 | %attr(755,root,root) %{dstdir}/bin/jdeps | |
759 | %attr(755,root,root) %{dstdir}/bin/jhat | |
760 | %attr(755,root,root) %{dstdir}/bin/jinfo | |
761 | %attr(755,root,root) %{dstdir}/bin/jmap | |
762 | %attr(755,root,root) %{dstdir}/bin/jps | |
763 | %attr(755,root,root) %{dstdir}/bin/jrunscript | |
764 | %attr(755,root,root) %{dstdir}/bin/jsadebugd | |
765 | %attr(755,root,root) %{dstdir}/bin/jstack | |
766 | %attr(755,root,root) %{dstdir}/bin/jstat | |
767 | %attr(755,root,root) %{dstdir}/bin/jstatd | |
768 | %attr(755,root,root) %{dstdir}/bin/native2ascii | |
769 | %attr(755,root,root) %{dstdir}/bin/rmic | |
770 | %attr(755,root,root) %{dstdir}/bin/schemagen | |
771 | %attr(755,root,root) %{dstdir}/bin/serialver | |
772 | %attr(755,root,root) %{dstdir}/bin/wsgen | |
773 | %attr(755,root,root) %{dstdir}/bin/wsimport | |
774 | %attr(755,root,root) %{dstdir}/bin/xjc | |
775 | %{dstdir}/include | |
776 | %dir %{dstdir}/lib | |
777 | %{dstdir}/lib/ct.sym | |
778 | %{dstdir}/lib/dt.jar | |
779 | %{dstdir}/lib/ir.idl | |
780 | %{dstdir}/lib/jconsole.jar | |
781 | %attr(755,root,root) %{dstdir}/lib/jexec | |
782 | %{dstdir}/lib/orb.idl | |
783 | %ifnarch %{arm} x32 | |
784 | %{dstdir}/lib/sa-jdi.jar | |
785 | %endif | |
786 | %{dstdir}/lib/tools.jar | |
787 | %dir %{dstdir}/lib/%{jre_arch} | |
788 | %dir %{dstdir}/lib/%{jre_arch}/jli | |
789 | %attr(755,root,root) %{dstdir}/lib/%{jre_arch}/jli/*.so | |
790 | %{?with_systemtap:%{dstdir}/tapset} | |
791 | ||
792 | %files jre | |
793 | %defattr(644,root,root,755) | |
794 | %attr(755,root,root) %{_bindir}/clhsdb | |
795 | %attr(755,root,root) %{_bindir}/java | |
796 | %{?with_jfr:%attr(755,root,root) %{_bindir}/jfr} | |
797 | %attr(755,root,root) %{_bindir}/keytool | |
798 | %attr(755,root,root) %{_bindir}/orbd | |
799 | %attr(755,root,root) %{_bindir}/pack200 | |
800 | %attr(755,root,root) %{_bindir}/rmid | |
801 | %attr(755,root,root) %{_bindir}/rmiregistry | |
802 | %attr(755,root,root) %{_bindir}/servertool | |
803 | %attr(755,root,root) %{_bindir}/tnameserv | |
804 | %attr(755,root,root) %{_bindir}/unpack200 | |
805 | %{_mandir}/man1/java.1* | |
806 | %{_mandir}/man1/keytool.1* | |
807 | %{_mandir}/man1/orbd.1* | |
808 | %{_mandir}/man1/pack200.1* | |
809 | %{_mandir}/man1/rmid.1* | |
810 | %{_mandir}/man1/rmiregistry.1* | |
811 | %{_mandir}/man1/servertool.1* | |
812 | %{_mandir}/man1/tnameserv.1* | |
813 | %{_mandir}/man1/unpack200.1* | |
814 | %lang(ja) %{_mandir}/ja/man1/java.1* | |
815 | %lang(ja) %{_mandir}/ja/man1/keytool.1* | |
816 | %lang(ja) %{_mandir}/ja/man1/orbd.1* | |
817 | %lang(ja) %{_mandir}/ja/man1/pack200.1* | |
818 | %lang(ja) %{_mandir}/ja/man1/rmid.1* | |
819 | %lang(ja) %{_mandir}/ja/man1/rmiregistry.1* | |
820 | %lang(ja) %{_mandir}/ja/man1/servertool.1* | |
821 | %lang(ja) %{_mandir}/ja/man1/tnameserv.1* | |
822 | %lang(ja) %{_mandir}/ja/man1/unpack200.1* | |
823 | %{_jvmdir}/java | |
824 | ||
825 | %files jre-base | |
826 | %defattr(644,root,root,755) | |
827 | %doc openjdk.build/images/j2sdk-image/THIRD_PARTY_README | |
828 | %doc openjdk.build/images/j2sdk-image/ASSEMBLY_EXCEPTION | |
829 | %dir %{_sysconfdir}/%{name} | |
830 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/* | |
831 | %dir %{dstdir} | |
832 | %{dstdir}/release | |
833 | %dir %{jredir} | |
834 | %{_jvmdir}/%{name}-jre | |
835 | %dir %{jredir}/bin | |
836 | %dir %{dstdir}/bin | |
837 | %attr(755,root,root) %{dstdir}/bin/clhsdb | |
838 | %attr(755,root,root) %{jredir}/bin/java | |
839 | %attr(755,root,root) %{dstdir}/bin/java | |
840 | %{?with_jfr:%attr(755,root,root) %{dstdir}/bin/jfr} | |
841 | %attr(755,root,root) %{jredir}/bin/jjs | |
842 | %attr(755,root,root) %{dstdir}/bin/jjs | |
843 | %attr(755,root,root) %{jredir}/bin/keytool | |
844 | %attr(755,root,root) %{dstdir}/bin/keytool | |
845 | %attr(755,root,root) %{jredir}/bin/orbd | |
846 | %attr(755,root,root) %{dstdir}/bin/orbd | |
847 | %attr(755,root,root) %{jredir}/bin/pack200 | |
848 | %attr(755,root,root) %{dstdir}/bin/pack200 | |
849 | %attr(755,root,root) %{jredir}/bin/rmid | |
850 | %attr(755,root,root) %{dstdir}/bin/rmid | |
851 | %attr(755,root,root) %{jredir}/bin/rmiregistry | |
852 | %attr(755,root,root) %{dstdir}/bin/rmiregistry | |
853 | %attr(755,root,root) %{jredir}/bin/servertool | |
854 | %attr(755,root,root) %{dstdir}/bin/servertool | |
855 | %attr(755,root,root) %{jredir}/bin/tnameserv | |
856 | %attr(755,root,root) %{dstdir}/bin/tnameserv | |
857 | %attr(755,root,root) %{jredir}/bin/unpack200 | |
858 | %attr(755,root,root) %{dstdir}/bin/unpack200 | |
859 | %dir %{jredir}/lib | |
860 | %dir %{jredir}/lib/applet | |
861 | %{jredir}/lib/cmm | |
862 | %{jredir}/lib/ext | |
863 | %if %{with jfr} | |
864 | %{jredir}/lib/jfr.jar | |
865 | %dir %{jredir}/lib/jfr | |
866 | %{jredir}/lib/jfr/*.jfc | |
867 | %endif | |
868 | %dir %{jredir}/lib/%{jre_arch} | |
869 | %dir %{jredir}/lib/%{jre_arch}/jli | |
870 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/jli/*.so | |
871 | %dir %{jredir}/lib/%{jre_arch}/%{jvm_type} | |
872 | %{jredir}/lib/%{jre_arch}/%{jvm_type}/Xusage.txt | |
873 | %ifnarch x32 | |
874 | %{jredir}/lib/%{jre_arch}/%{jvm_type}/classes.jsa | |
875 | %endif | |
876 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/%{jvm_type}/*.so | |
877 | %{jredir}/lib/%{jre_arch}/jvm.cfg | |
878 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libattach.so | |
879 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libawt.so | |
880 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libawt_headless.so | |
881 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libdt_socket.so | |
882 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libhprof.so | |
883 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libinstrument.so | |
884 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libj2gss.so | |
885 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libj2krb5.so | |
886 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libj2pcsc.so | |
887 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libj2pkcs11.so | |
888 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libj2sctp.so | |
889 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjaas_unix.so | |
890 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjava.so | |
891 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjavajpeg.so | |
892 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjavalcms.so | |
893 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjava_crw_demo.so | |
894 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjdwp.so | |
895 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjsdt.so | |
896 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjsig.so | |
897 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjsound.so | |
898 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjvm.so | |
899 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libmanagement.so | |
900 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libmlib_image.so | |
901 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libnet.so | |
902 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libnio.so | |
903 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libnpt.so | |
904 | %ifnarch %{arm} x32 | |
905 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libsaproc.so | |
906 | %endif | |
907 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libsunec.so | |
908 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libunpack.so | |
909 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libverify.so | |
910 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libzip.so | |
911 | %{jredir}/lib/images | |
912 | %{jredir}/lib/management | |
913 | %{jredir}/lib/security | |
914 | %{jredir}/lib/hijrah-config-umalqura.properties | |
915 | %{jredir}/lib/tzdb.dat | |
916 | %{jredir}/lib/tz.properties | |
917 | ||
918 | %if %{with webstart} | |
919 | %{jredir}/lib/about.jar | |
920 | %{jredir}/lib/about.jnlp | |
921 | %endif | |
922 | %{jredir}/lib/calendars.properties | |
923 | %{jredir}/lib/charsets.jar | |
924 | %{jredir}/lib/classlist | |
925 | %{jredir}/lib/content-types.properties | |
926 | %{jredir}/lib/currency.data | |
927 | %{jredir}/lib/flavormap.properties | |
928 | %{jredir}/lib/jce.jar | |
929 | %attr(755, root, root) %{jredir}/lib/jexec | |
930 | %{jredir}/lib/jsse.jar | |
931 | %{jredir}/lib/jvm.hprof.txt | |
932 | %{jredir}/lib/logging.properties | |
933 | %{jredir}/lib/management-agent.jar | |
934 | %{jredir}/lib/meta-index | |
935 | %{jredir}/lib/net.properties | |
936 | %{jredir}/lib/psfont.properties.ja | |
937 | %{jredir}/lib/psfontj2d.properties | |
938 | %{jredir}/lib/resources.jar | |
939 | %{jredir}/lib/rt.jar | |
940 | %{jredir}/lib/sound.properties | |
941 | %{jvmjardir} | |
942 | ||
943 | %files jre-X11 | |
944 | %defattr(644,root,root,755) | |
945 | %attr(755,root,root) %{_bindir}/hsdb | |
946 | %attr(755,root,root) %{_bindir}/policytool | |
947 | %{_mandir}/man1/policytool.1* | |
948 | %lang(ja) %{_mandir}/ja/man1/policytool.1* | |
949 | ||
950 | %files jre-base-X11 | |
951 | %defattr(644,root,root,755) | |
952 | %attr(755,root,root) %{dstdir}/bin/hsdb | |
953 | %attr(755,root,root) %{jredir}/bin/policytool | |
954 | %attr(755,root,root) %{dstdir}/bin/policytool | |
955 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libawt_xawt.so | |
956 | %attr(755,root,root) %{dstdir}/lib/%{jre_arch}/libjawt.so | |
957 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjawt.so | |
958 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libsplashscreen.so | |
959 | ||
960 | %files jre-base-alsa | |
961 | %defattr(644,root,root,755) | |
962 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjsoundalsa.so | |
963 | ||
964 | %files jre-base-freetype | |
965 | %defattr(644,root,root,755) | |
966 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libfontmanager.so | |
967 | ||
968 | %files jre-base-gtk | |
969 | %defattr(644,root,root,755) | |
970 | ||
971 | %files jar | |
972 | %defattr(644,root,root,755) | |
973 | %attr(755,root,root) %{_bindir}/jar | |
974 | %{_mandir}/man1/jar.1* | |
975 | %lang(ja) %{_mandir}/ja/man1/jar.1* | |
976 | ||
977 | %files appletviewer | |
978 | %defattr(644,root,root,755) | |
979 | %attr(755,root,root) %{_bindir}/appletviewer | |
980 | %{_mandir}/man1/appletviewer.1* | |
981 | %lang(ja) %{_mandir}/ja/man1/appletviewer.1* | |
982 | ||
983 | %files jdk-sources | |
984 | %defattr(644,root,root,755) | |
985 | %{_javasrcdir}/%{name}-jdk.zip | |
986 | ||
987 | %files examples | |
988 | %defattr(644,root,root,755) | |
989 | %{_examplesdir}/%{name}-%{version} |