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