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