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