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