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