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