]>
Commit | Line | Data |
---|---|---|
2692550d 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} | |
2692550d | 5 | %define use_jdk icedtea8 |
3899c70b | 6 | %else |
2692550d JP |
7 | %define use_jdk openjdk9 |
8 | %endif | |
9 | ||
10 | %ifarch %{x8664} | |
11 | %define with_aot 1 | |
3899c70b JK |
12 | %endif |
13 | ||
74861363 JP |
14 | %ifarch x32 |
15 | %define with_zero 1 | |
16 | %endif | |
17 | ||
3899c70b | 18 | # class data version seen with file(1) that this jvm is able to load |
2692550d JP |
19 | %define _classdataversion 53.0 |
20 | ||
21 | %define ver_u 9.0.4 | |
22 | %define ver_b 12 | |
23 | ||
d8978afb | 24 | # JDK/JRE version, as returned with `java -version`, '_' replaced with '.' |
2692550d | 25 | %define _jdkversion %{ver_u} |
3899c70b | 26 | |
83cf7429 | 27 | Summary: Open-source implementation of the Java Platform, Standard Edition |
2692550d JP |
28 | Summary(pl.UTF-8): Wolnoźródłowa implementacja Java 9 SE |
29 | Name: openjdk9 | |
30 | Version: %{ver_u}.%{ver_b} | |
76fd6e23 | 31 | Release: 2 |
3899c70b JK |
32 | License: GPL v2 |
33 | Group: Development/Languages/Java | |
2692550d JP |
34 | Source0: https://hg.openjdk.java.net/jdk-updates/jdk9u/archive/jdk-%{ver_u}+%{ver_b}.tar.bz2?/%{name}-%{version}.tar.bz2 |
35 | # Source0-md5: f71280d31603efeffdadea56fab8436e | |
36 | Source1: https://hg.openjdk.java.net/jdk-updates/jdk9u/corba/archive/jdk-%{ver_u}+%{ver_b}.tar.bz2?/%{name}-corba-%{version}.tar.bz2 | |
37 | # Source1-md5: 2bc0a490f71eaa17fcae9387b354ccfd | |
38 | Source2: https://hg.openjdk.java.net/jdk-updates/jdk9u/hotspot/archive/jdk-%{ver_u}+%{ver_b}.tar.bz2?/%{name}-hotspot-%{version}.tar.bz2 | |
39 | # Source2-md5: 37ff0144a673417c793d282d12aba6a1 | |
40 | Source3: https://hg.openjdk.java.net/jdk-updates/jdk9u/jaxp/archive/jdk-%{ver_u}+%{ver_b}.tar.bz2?/%{name}-jaxp-%{version}.tar.bz2 | |
41 | # Source3-md5: c6c4ee8ef80f10fc4fbc9d151436c89a | |
42 | Source4: https://hg.openjdk.java.net/jdk-updates/jdk9u/jaxws/archive/jdk-%{ver_u}+%{ver_b}.tar.bz2?/%{name}-jaxws-%{version}.tar.bz2 | |
43 | # Source4-md5: 3cf0375c3bba7d028c8408e41bbbb352 | |
44 | Source5: https://hg.openjdk.java.net/jdk-updates/jdk9u/jdk/archive/jdk-%{ver_u}+%{ver_b}.tar.bz2?/%{name}-jdk-%{version}.tar.bz2 | |
45 | # Source5-md5: 74d33ad39f5b67596c5269585811cfab | |
46 | Source6: https://hg.openjdk.java.net/jdk-updates/jdk9u/langtools/archive/jdk-%{ver_u}+%{ver_b}.tar.bz2?/%{name}-langtools-%{version}.tar.bz2 | |
47 | # Source6-md5: 95d7011a050602218b5400c632339e2c | |
48 | Source7: https://hg.openjdk.java.net/jdk-updates/jdk9u/nashorn/archive/jdk-%{ver_u}+%{ver_b}.tar.bz2?/%{name}-nashorn-%{version}.tar.bz2 | |
49 | # Source7-md5: 5fbaceceb82449806263ba99188b7139 | |
3899c70b | 50 | Source10: make-cacerts.sh |
2692550d JP |
51 | Patch0: libpath.patch |
52 | Patch1: make-4.3.patch | |
53 | Patch2: x32.patch | |
54 | Patch3: aarch64.patch | |
76fd6e23 | 55 | Patch4: default-assumemp.patch |
b2950e84 | 56 | URL: http://openjdk.java.net/ |
9910e19d | 57 | BuildRequires: /usr/bin/jar |
b2950e84 JK |
58 | BuildRequires: alsa-lib-devel |
59 | BuildRequires: ant | |
60 | BuildRequires: autoconf | |
61 | BuildRequires: bash | |
62 | %{?with_cacerts:BuildRequires: ca-certificates-update} | |
63 | BuildRequires: cups-devel | |
2692550d | 64 | BuildRequires: elfutils-devel |
b2950e84 JK |
65 | BuildRequires: freetype-devel >= 2.3 |
66 | BuildRequires: gawk | |
665079f5 | 67 | BuildRequires: giflib-devel >= 5.1 |
b2950e84 | 68 | BuildRequires: glibc-misc |
83cf7429 | 69 | %{?buildrequires_jdk} |
991454fa | 70 | BuildRequires: lcms2-devel |
3899c70b | 71 | BuildRequires: libjpeg-devel |
991454fa | 72 | BuildRequires: libpng-devel |
3899c70b | 73 | BuildRequires: lsb-release |
991454fa | 74 | BuildRequires: pcsc-lite-devel |
3899c70b JK |
75 | BuildRequires: pkgconfig |
76 | BuildRequires: rpmbuild(macros) >= 1.557 | |
3899c70b JK |
77 | BuildRequires: unzip |
78 | BuildRequires: util-linux | |
79 | BuildRequires: xorg-lib-libX11-devel | |
80 | BuildRequires: xorg-lib-libXinerama-devel | |
81 | BuildRequires: xorg-lib-libXp-devel | |
82 | BuildRequires: xorg-lib-libXrender-devel | |
83 | BuildRequires: xorg-lib-libXt-devel | |
84 | BuildRequires: xorg-lib-libXtst-devel | |
85 | BuildRequires: xorg-proto-printproto-devel | |
86 | BuildRequires: xorg-proto-xproto-devel | |
87 | BuildRequires: zip | |
88 | BuildRequires: zlib-devel | |
89 | Requires: %{name}-appletviewer = %{version}-%{release} | |
90 | Requires: %{name}-jdk = %{version}-%{release} | |
91 | Suggests: %{name}-jre-X11 | |
92 | Suggests: icedtea-web | |
93 | Obsoletes: icedtea6 | |
94 | Obsoletes: icedtea7 | |
3899c70b JK |
95 | Obsoletes: java-gcj-compat |
96 | Obsoletes: java-gcj-compat-devel | |
97 | Obsoletes: java-sun | |
98 | Obsoletes: java-sun-demos | |
99 | Obsoletes: java-sun-jre | |
9910e19d | 100 | Obsoletes: java-sun-jre-X11 |
3899c70b JK |
101 | Obsoletes: java-sun-jre-alsa |
102 | Obsoletes: java-sun-jre-jdbc | |
3899c70b | 103 | Obsoletes: java-sun-tools |
9910e19d JK |
104 | Obsoletes: java5-sun |
105 | Obsoletes: java5-sun-jre | |
106 | Obsoletes: java5-sun-jre-X11 | |
107 | Obsoletes: java5-sun-jre-jdbc | |
108 | Obsoletes: java5-sun-tools | |
3899c70b JK |
109 | Obsoletes: oracle-java7 |
110 | Obsoletes: oracle-java7-jre | |
9910e19d | 111 | Obsoletes: oracle-java7-jre-X11 |
3899c70b JK |
112 | Obsoletes: oracle-java7-jre-alsa |
113 | Obsoletes: oracle-java7-jre-jdbc | |
3899c70b JK |
114 | Obsoletes: oracle-java7-tools |
115 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
116 | ||
117 | %define dstreldir %{name}-%{version} | |
118 | %define dstdir %{_jvmdir}/%{dstreldir} | |
3899c70b JK |
119 | %define jvmjardir %{_jvmjardir}/%{name}-%{version} |
120 | ||
3899c70b JK |
121 | # to break artificial subpackage dependency loops |
122 | %define _noautoreq 'libmawt.so' java\\\\(ClassDataVersion\\\\) | |
123 | ||
2692550d JP |
124 | # openjdk build system handles _FORTIFY_SOURCE internally |
125 | %undefine _fortify_cflags | |
126 | ||
3899c70b JK |
127 | %description |
128 | Open-source implementation of the Java Platform, Standard Edition. | |
129 | ||
130 | This is a meta-package which provides, by its dependencies, all the | |
131 | OpenJDK components including the OpenJDK, Java 8 developement kit and | |
132 | runtime environment. | |
133 | ||
134 | %description -l pl.UTF-8 | |
135 | Wolnoźródłowa implementacja Java 8 SE. | |
136 | ||
137 | To jest meta-pakiet, który, za pośrednictwem zależności, dostarcza | |
138 | wszystkie komponenty OpenJDK, w tym środowisko programistyczne | |
139 | (OpenJDK) i uruchomieniowe (JRE). | |
140 | ||
141 | %package jdk | |
142 | Summary: OpenJDK - software development kit | |
143 | Summary(pl.UTF-8): OpenJDK - środowisko programistyczne | |
144 | Group: Development/Languages/Java | |
145 | Requires: %{name}-jar = %{version}-%{release} | |
146 | Requires: %{name}-jdk-base = %{version}-%{release} | |
147 | Requires: %{name}-jre = %{version}-%{release} | |
d8978afb JK |
148 | Provides: j2sdk = %{_jdkversion} |
149 | Provides: jdk = %{_jdkversion} | |
3899c70b JK |
150 | Obsoletes: blackdown-java-sdk |
151 | Obsoletes: ibm-java | |
152 | Obsoletes: icedtea6-jdk | |
153 | Obsoletes: icedtea7-jdk | |
154 | Obsoletes: java-blackdown | |
155 | Obsoletes: java-gcj-compat-devel | |
156 | Obsoletes: java-sun | |
157 | Obsoletes: java5-sun | |
3899c70b JK |
158 | Obsoletes: jdk |
159 | Obsoletes: kaffe | |
9910e19d | 160 | Obsoletes: oracle-java7 |
3899c70b JK |
161 | |
162 | %description jdk | |
163 | This package symlinks OpenJDK development tools provided by | |
164 | %{name}-jdk-base to system-wide directories like %{_bindir}, making | |
165 | OpenJDK the default JDK. | |
166 | ||
167 | %description jdk -l pl.UTF-8 | |
168 | Ten pakiet tworzy symboliczne dowiązania do narzędzi programistycznych | |
169 | OpenJDK, dostarczanych przez pakiet %{name}-jdk-base, w standardowych | |
170 | systemowych ścieżkach takich jak %{_bindir}, sprawiając tym samym, że | |
171 | OpenJDK staje się domyślnym JDK w systemie. | |
172 | ||
173 | %package jdk-base | |
174 | Summary: OpenJDK - software development kit | |
175 | Summary(pl.UTF-8): Kod OpenJDK - środowisko programistyczne | |
176 | Group: Development/Languages/Java | |
177 | Requires: %{name}-jre-base = %{version}-%{release} | |
2692550d | 178 | Requires: jpackage-utils >= 0:1.7.5-8 |
3899c70b JK |
179 | Provides: jdk(%{name}) |
180 | ||
181 | %description jdk-base | |
182 | OpenJDK development tools built using free software only. | |
183 | ||
184 | %description jdk-base -l pl.UTF-8 | |
185 | OpenJDK skompilowane wyłącznie przy użyciu wolnego oprogramowania. | |
186 | ||
187 | %package jre | |
188 | Summary: OpenJDK - runtime environment | |
189 | Summary(pl.UTF-8): OpenJDK - środowisko uruchomieniowe | |
190 | Group: Development/Languages/Java | |
191 | Requires: %{name}-jre-base = %{version}-%{release} | |
192 | Requires: nss >= 1:3.13.4 | |
193 | # Require zoneinfo data provided by java-tzdata subpackage. | |
194 | Requires: java-tzdata | |
195 | Provides: java | |
196 | Provides: java(ClassDataVersion) = %{_classdataversion} | |
197 | Provides: java(jaas) = %{version} | |
198 | Provides: java(jaf) = 1.1.1 | |
199 | Provides: java(jaxp) = 1.3 | |
200 | Provides: java(jaxp_parser_impl) | |
201 | Provides: java(jce) = %{version} | |
202 | Provides: java(jdbc-stdext) = %{version} | |
203 | Provides: java(jdbc-stdext) = 3.0 | |
204 | Provides: java(jmx) = 1.4 | |
205 | Provides: java(jndi) = %{version} | |
206 | Provides: java(jsse) = %{version} | |
207 | Provides: java1.4 | |
d8978afb | 208 | Provides: jre = %{_jdkversion} |
3899c70b JK |
209 | Obsoletes: icedtea6-jre |
210 | Obsoletes: icedtea7-jre | |
76fd6e23 AM |
211 | Obsoletes: icedtea8-jre |
212 | Obsoletes: jaas | |
213 | Obsoletes: jaf | |
214 | Obsoletes: java5-sun-jre | |
3899c70b | 215 | Obsoletes: java-gcj-compat |
76fd6e23 AM |
216 | Obsoletes: java-jaxp |
217 | Obsoletes: java-jdbc-stdext | |
3899c70b | 218 | Obsoletes: java-sun-jre |
76fd6e23 AM |
219 | Obsoletes: jce |
220 | Obsoletes: jdbc-stdext | |
221 | Obsoletes: jmx | |
222 | Obsoletes: jndi | |
b2950e84 | 223 | Obsoletes: jre |
76fd6e23 | 224 | Obsoletes: jsse |
9910e19d | 225 | Obsoletes: oracle-java7-jre |
3899c70b JK |
226 | |
227 | %description jre | |
228 | This package symlinks OpenJDK runtime environment tools provided by | |
229 | %{name}-jre-base to system-wide directories like %{_bindir}, making | |
230 | OpenJDK the default JRE. | |
231 | ||
232 | %description jre -l pl.UTF-8 | |
233 | Ten pakiet tworzy symboliczne dowiązania do środowiska | |
234 | uruchomieniowego OpenJDK, dostarczanych przez pakiet %{name}-jre-base, | |
235 | w standardowych systemowych ścieżkach takich jak %{_bindir}, | |
236 | sprawiając tym samym, że OpenJDK staje się domyślnym JRE w systemie. | |
237 | ||
238 | %package jre-X11 | |
239 | Summary: OpenJDK - runtime environment - X11 support | |
240 | Summary(pl.UTF-8): OpenJDK - środowisko uruchomieniowe - obsługa X11 | |
241 | Group: Development/Languages/Java | |
242 | Requires: %{name}-jre = %{version}-%{release} | |
243 | Requires: %{name}-jre-base-X11 = %{version}-%{release} | |
d8978afb | 244 | Provides: jre-X11 = %{_jdkversion} |
3899c70b JK |
245 | Obsoletes: icedtea6-jre-X11 |
246 | Obsoletes: icedtea7-jre-X11 | |
247 | Obsoletes: java-sun-jre-X11 | |
248 | Obsoletes: oracle-java7-jre-X11 | |
249 | ||
250 | %description jre-X11 | |
251 | X11 support for OpenJDK runtime environment built using free software | |
252 | only. | |
253 | ||
254 | %description jre-X11 -l pl.UTF-8 | |
255 | Biblioteki X11 dla środowiska OpenJDK zbudowany wyłocznie przy uzyciu | |
256 | wolnego oprogramowania. | |
257 | ||
258 | %package jre-base | |
259 | Summary: OpenJDK - runtime environment | |
260 | Summary(pl.UTF-8): OpenJDK - środowisko uruchomieniowe | |
261 | Group: Development/Languages/Java | |
2692550d | 262 | Requires: jpackage-utils >= 0:1.7.5-8 |
3899c70b JK |
263 | Provides: jre(%{name}) |
264 | ||
265 | %description jre-base | |
266 | OpenJDK runtime environment built using free software only. | |
267 | ||
268 | %description jre-base -l pl.UTF-8 | |
269 | Środowisko uruchomieniowe OpenJDK zbudowany wyłącznie przy użyciu | |
270 | wolnego oprogramowania. | |
271 | ||
272 | %package jre-base-X11 | |
273 | Summary: OpenJDK - runtime environment - X11 support | |
274 | Summary(pl.UTF-8): OpenJDK - środowisko uruchomieniowe - obsługa X11 | |
275 | Group: Development/Languages/Java | |
276 | Requires: %{name}-jre-base = %{version}-%{release} | |
277 | Requires: %{name}-jre-base-freetype = %{version}-%{release} | |
278 | ||
279 | %description jre-base-X11 | |
280 | X11 support for OpenJDK runtime environment built using free software | |
281 | only. | |
282 | ||
283 | %description jre-base-X11 -l pl.UTF-8 | |
284 | Biblioteki X11 dla środowiska OpenJDK zbudowany wyłocznie przy uzyciu | |
285 | wolnego oprogramowania. | |
286 | ||
287 | %package jre-base-alsa | |
288 | Summary: OpenJDK - runtime environment - ALSA support | |
289 | Summary(pl.UTF-8): OpenJDK - środowisko uruchomieniowe - obsługa ALSA | |
290 | Group: Development/Languages/Java | |
291 | Requires: %{name}-jre-base = %{version}-%{release} | |
292 | ||
293 | %description jre-base-alsa | |
294 | ALSA sound support for OpenJDK runtime environment build using free | |
295 | software only. | |
296 | ||
297 | %description jre-base-alsa -l pl.UTF-8 | |
298 | Biblioteki ALSA rozszerzające środowisko OpenJDK o obsługę dźwięku | |
299 | zbudowane przy uzyciu wyłącznie wolnego oprogramowania. | |
300 | ||
301 | %package jre-base-freetype | |
302 | Summary: OpenJDK - runtime environment - font support | |
303 | Summary(pl.UTF-8): OpenJDK - środowisko uruchomieniowe - obsługa fontów | |
304 | Group: Development/Languages/Java | |
305 | Requires: %{name}-jre-base = %{version}-%{release} | |
306 | ||
307 | %description jre-base-freetype | |
308 | Font handling library for OpenJDK runtime environment built using free | |
309 | software only. | |
310 | ||
311 | %description jre-base-freetype -l pl.UTF-8 | |
312 | Biblioteki obsługi czcionek dla OpenJDK zbudowane wyłącznie przy | |
313 | użyciu wolnego oprogramowania. | |
314 | ||
315 | %package jre-base-gtk | |
316 | Summary: OpenJDK - runtime environment - GTK support | |
317 | Summary(pl.UTF-8): OpenJDK - środowisko uruchomieniowe - obsługa GTK | |
318 | Group: Development/Languages/Java | |
319 | Requires: %{name}-jre-base = %{version}-%{release} | |
320 | ||
321 | %description jre-base-gtk | |
322 | GTK support for OpenJDK runtime environment. | |
323 | ||
324 | %description jre-base-gtk -l pl.UTF-8 | |
325 | Biblioteki GTK dla OpenJDK. | |
326 | ||
327 | %package jar | |
328 | Summary: OpenJDK - JAR tool | |
329 | Summary(pl.UTF-8): OpenJDK - narzędzie JAR | |
330 | Group: Development/Languages/Java | |
331 | Requires: %{name}-jdk-base = %{version}-%{release} | |
332 | Provides: jar | |
333 | Obsoletes: fastjar | |
334 | Obsoletes: icedtea6-jar | |
335 | Obsoletes: icedtea7-jar | |
336 | Obsoletes: jar | |
337 | ||
338 | %description jar | |
339 | JAR tool from OpenJDK built using free software only. | |
340 | ||
341 | JAR is an archiver used to merge Java classes into a single library. | |
342 | ||
343 | %description jar -l pl.UTF-8 | |
344 | Narzędzie jar z OpenJDK zbudowane przy uzyciu wyłącznie wolnego | |
345 | oprogramowania. | |
346 | ||
347 | JAR jest narzędziem pozwalającym wykonywać podstawowe operacje na | |
348 | archiwach javy .jar takie jak na przykład tworzenie lub rozpakowywanie | |
349 | archiwów. | |
350 | ||
351 | %package appletviewer | |
352 | Summary: OpenJDK - appletviewer tool | |
353 | Summary(pl.UTF-8): OpenJDK - narzędzie appletviewer | |
354 | Group: Development/Languages/Java | |
355 | Requires: %{name}-jdk-base = %{version}-%{release} | |
356 | Requires: %{name}-jre-X11 = %{version}-%{release} | |
357 | Obsoletes: icedtea6-appletviewer | |
358 | Obsoletes: icedtea7-appletviewer | |
359 | Obsoletes: java-sun-appletviewer | |
360 | Obsoletes: oracle-java7-appletviewer | |
361 | ||
362 | %description appletviewer | |
363 | Appletviewer from OpenJDK build using free software only. | |
364 | ||
365 | %description appletviewer -l pl.UTF-8 | |
366 | Appletviewer pozwala uruchamiać aplety javy niezależnie od | |
367 | przeglądarki www. Ten appletviewer pochodzi z zestawu narzędzi OpenJDK | |
368 | i został zbudowany wyłącznie przy użyciu wolnego oprogramowania. | |
369 | ||
370 | %package jdk-sources | |
371 | Summary: OpenJDK - sources | |
372 | Summary(pl.UTF-8): OpenJDK - kod źródłowy | |
373 | Group: Documentation | |
3899c70b | 374 | BuildArch: noarch |
3899c70b JK |
375 | |
376 | %description jdk-sources | |
377 | Source code for the OpenJDK development kit and Java standard library. | |
378 | ||
379 | %description jdk-sources -l pl.UTF-8 | |
380 | Kod źródłowy narzędzi programistycznych OpenJDK oraz standardowej | |
381 | biblioteki Javy. | |
382 | ||
383 | %package examples | |
384 | Summary: OpenJDK - examples | |
385 | Summary(pl.UTF-8): OpenJDK - przykłady | |
386 | Group: Documentation | |
3899c70b | 387 | BuildArch: noarch |
3899c70b JK |
388 | |
389 | %description examples | |
390 | Code examples for OpenJDK. | |
391 | ||
392 | %description examples -l pl.UTF-8 | |
393 | Przykłady dla OpenJDK. | |
394 | ||
395 | %prep | |
2692550d | 396 | %setup -qn jdk9u-jdk-%{ver_u}+%{ver_b} -a1 -a2 -a3 -a4 -a5 -a6 -a7 |
3899c70b | 397 | |
2692550d JP |
398 | for d in *-jdk-%{ver_u}+%{ver_b}* ; do |
399 | mv "$d" "${d%%-jdk-%{ver_u}+%{ver_b}}" | |
3899c70b JK |
400 | done |
401 | ||
5b4e4f20 JK |
402 | %patch0 -p1 |
403 | %patch1 -p1 | |
d12f28e3 | 404 | %patch2 -p1 |
2692550d | 405 | %ifarch aarch64 |
ce94f011 | 406 | %patch3 -p1 |
2692550d | 407 | %endif |
76fd6e23 | 408 | %patch4 -p1 |
5b4e4f20 | 409 | |
3899c70b JK |
410 | %build |
411 | # Make sure we have /proc mounted - otherwise idlc will fail later. | |
412 | if [ ! -f /proc/self/stat ]; then | |
413 | echo "You need to have /proc mounted in order to build this package!" | |
414 | exit 1 | |
415 | fi | |
416 | ||
991454fa | 417 | cd common/autoconf |
bd96d31d | 418 | rm generated-configure.sh |
991454fa JK |
419 | %{__autoconf} -o generated-configure.sh |
420 | cd ../.. | |
421 | ||
3899c70b | 422 | mkdir -p build-bin |
b3255d96 | 423 | |
b3255d96 JK |
424 | # unset CLASSPATH to be safe, gnustep puts garbage there, which openjdk hates |
425 | unset CLASSPATH | |
426 | ||
d12f28e3 | 427 | export SHELL=/bin/bash |
3899c70b | 428 | |
5b4e4f20 JK |
429 | chmod a+x configure |
430 | ||
2dab85d0 | 431 | # disable-debug-symbols so openjdk debuginfo handling won't conflict with ours |
5b4e4f20 | 432 | %configure \ |
74861363 | 433 | %{?with_zero:--with-jvm-variants=zero} \ |
2692550d JP |
434 | --with-boot-jdk="%{java_home}" \ |
435 | --with-extra-cflags="%{rpmcppflags} %{rpmcflags} -fcommon -fno-tree-dse" \ | |
436 | --with-extra-cxxflags="%{rpmcppflags} %{rpmcxxflags} -fcommon -fno-tree-dse" \ | |
5b4e4f20 | 437 | --with-extra-ldflags="%{rpmldflags}" \ |
2692550d | 438 | --with-native-debug-symbols=none \ |
c0e7c813 | 439 | --disable-full-docs \ |
2692550d JP |
440 | --disable-javac-server \ |
441 | --disable-hotspot-gtest \ | |
442 | --disable-warnings-as-errors \ | |
443 | --with-jobs="%{__jobs}" \ | |
665079f5 | 444 | --with-giflib=system \ |
991454fa JK |
445 | --with-libjpeg=system \ |
446 | --with-libpng=system \ | |
447 | --with-lcms=system \ | |
2692550d JP |
448 | --with-zlib=system \ |
449 | --with-version-pre="" \ | |
450 | --with-version-opt="" \ | |
451 | --with-version-build="%{release}" | |
5b4e4f20 JK |
452 | |
453 | specdir="$(dirname build/*-release/spec.gmk)" | |
454 | cat > $specdir/custom-spec.gmk <<EOF | |
2dab85d0 | 455 | # OpenJDK build system depends on bash |
5b4e4f20 JK |
456 | SHELL=/bin/bash |
457 | EOF | |
2dab85d0 | 458 | [ -L tmp-bin ] || ln -s "$specdir/jdk/bin" tmp-bin |
5b4e4f20 | 459 | |
2692550d | 460 | %{__make} -j1 all \ |
2dab85d0 JK |
461 | LOG=debug \ |
462 | # these are normally set when --disable-debug-symbols is not used \ | |
463 | LIBMANAGEMENT_OPTIMIZATION=LOW \ | |
464 | LIBHPROF_OPTIMIZATION=LOW \ | |
465 | LIBVERIFY_OPTIMIZATION=LOW | |
3899c70b | 466 | |
052665c9 JK |
467 | # smoke test |
468 | tmp-bin/java -version | |
469 | ||
d12f28e3 | 470 | export PATH="$(pwd)/build-bin:$PATH" |
3899c70b JK |
471 | %{?with_cacerts:%{__sh} %{SOURCE10}} |
472 | ||
473 | %install | |
474 | rm -rf $RPM_BUILD_ROOT | |
475 | install -d $RPM_BUILD_ROOT{%{_bindir},%{dstdir},%{_mandir}/ja} \ | |
476 | $RPM_BUILD_ROOT{%{jvmjardir},%{_examplesdir}/%{name}-%{version},%{_javasrcdir}} \ | |
477 | $RPM_BUILD_ROOT%{_sysconfdir}/%{name} | |
478 | ||
479 | # install the 'JDK image', it contains the JRE too | |
2692550d JP |
480 | cp -a build/*-release/images/jdk/* $RPM_BUILD_ROOT%{dstdir} |
481 | ||
482 | find $RPM_BUILD_ROOT%{dstdir} -name '*.diz' -delete | |
3899c70b JK |
483 | |
484 | # convenience symlinks without version number | |
485 | ln -s %{dstreldir} $RPM_BUILD_ROOT%{_jvmdir}/%{name} | |
2692550d | 486 | ln -s %{dstreldir} $RPM_BUILD_ROOT%{_jvmdir}/%{name}-jre |
3899c70b JK |
487 | |
488 | ln -s %{dstreldir} $RPM_BUILD_ROOT%{_jvmdir}/java | |
489 | ||
9910e19d | 490 | # move JDK sources and demo to %{_prefix}/src |
3899c70b | 491 | mv $RPM_BUILD_ROOT%{dstdir}/demo $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
2692550d | 492 | mv $RPM_BUILD_ROOT%{dstdir}/lib/src.zip $RPM_BUILD_ROOT%{_javasrcdir}/%{name}-jdk.zip |
3899c70b JK |
493 | |
494 | # move manual pages to its place | |
495 | mv $RPM_BUILD_ROOT%{dstdir}/man/ja_JP.UTF-8/man1 $RPM_BUILD_ROOT%{_mandir}/ja/man1 | |
496 | rmdir $RPM_BUILD_ROOT%{dstdir}/man/ja_JP.UTF-8 | |
497 | rm $RPM_BUILD_ROOT%{dstdir}/man/ja | |
498 | mv $RPM_BUILD_ROOT%{dstdir}/man/man1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
499 | rmdir $RPM_BUILD_ROOT%{dstdir}/man | |
500 | ||
501 | # replace duplicates with symlinks, link to %{_bindir} | |
502 | for path in $RPM_BUILD_ROOT%{dstdir}/bin/*; do | |
503 | filename=$(basename $path) | |
2692550d | 504 | ln -sf "%{dstdir}/bin/$filename" $RPM_BUILD_ROOT%{_bindir} |
3899c70b | 505 | done |
3899c70b | 506 | |
9910e19d | 507 | # keep configuration in %{_sysconfdir} (not all *.properties go there) |
2692550d | 508 | for config in management security \ |
3899c70b JK |
509 | logging.properties net.properties sound.properties; do |
510 | ||
2692550d JP |
511 | mv $RPM_BUILD_ROOT%{dstdir}/conf/$config $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/$config |
512 | ln -s %{_sysconfdir}/%{name}/$config $RPM_BUILD_ROOT%{dstdir}/conf/$config | |
3899c70b JK |
513 | done |
514 | ||
3899c70b JK |
515 | %{?with_cacerts:install cacerts $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/security} |
516 | ||
517 | %clean | |
518 | rm -rf $RPM_BUILD_ROOT | |
519 | ||
520 | %files | |
521 | %defattr(644,root,root,755) | |
3899c70b JK |
522 | |
523 | %files jdk | |
524 | %defattr(644,root,root,755) | |
2692550d | 525 | %{?with_aot:%attr(755,root,root) %{_bindir}/jaotc} |
3899c70b | 526 | %attr(755,root,root) %{_bindir}/jarsigner |
3899c70b JK |
527 | %attr(755,root,root) %{_bindir}/javac |
528 | %attr(755,root,root) %{_bindir}/javadoc | |
529 | %attr(755,root,root) %{_bindir}/javah | |
530 | %attr(755,root,root) %{_bindir}/javap | |
531 | %attr(755,root,root) %{_bindir}/jcmd | |
532 | %attr(755,root,root) %{_bindir}/jconsole | |
533 | %attr(755,root,root) %{_bindir}/jdb | |
2692550d | 534 | %attr(755,root,root) %{_bindir}/jdeprscan |
d12f28e3 | 535 | %attr(755,root,root) %{_bindir}/jdeps |
74861363 | 536 | %{!?with_zero:%attr(755,root,root) %{_bindir}/jhsdb} |
2692550d | 537 | %attr(755,root,root) %{_bindir}/jimage |
3899c70b | 538 | %attr(755,root,root) %{_bindir}/jinfo |
2692550d | 539 | %attr(755,root,root) %{_bindir}/jlink |
3899c70b | 540 | %attr(755,root,root) %{_bindir}/jmap |
2692550d | 541 | %attr(755,root,root) %{_bindir}/jmod |
3899c70b | 542 | %attr(755,root,root) %{_bindir}/jps |
2692550d | 543 | %attr(755,root,root) %{_bindir}/jshell |
3899c70b JK |
544 | %attr(755,root,root) %{_bindir}/jstack |
545 | %attr(755,root,root) %{_bindir}/jstat | |
546 | %attr(755,root,root) %{_bindir}/jstatd | |
3899c70b JK |
547 | %attr(755,root,root) %{_bindir}/rmic |
548 | %attr(755,root,root) %{_bindir}/schemagen | |
549 | %attr(755,root,root) %{_bindir}/serialver | |
550 | %attr(755,root,root) %{_bindir}/wsgen | |
551 | %attr(755,root,root) %{_bindir}/wsimport | |
552 | %attr(755,root,root) %{_bindir}/xjc | |
553 | %{_jvmdir}/java | |
3899c70b JK |
554 | %{_mandir}/man1/jarsigner.1* |
555 | %{_mandir}/man1/javac.1* | |
556 | %{_mandir}/man1/javadoc.1* | |
557 | %{_mandir}/man1/javah.1* | |
558 | %{_mandir}/man1/javap.1* | |
559 | %{_mandir}/man1/jcmd.1* | |
560 | %{_mandir}/man1/jconsole.1* | |
561 | %{_mandir}/man1/jdb.1* | |
d12f28e3 | 562 | %{_mandir}/man1/jdeps.1* |
3899c70b JK |
563 | %{_mandir}/man1/jinfo.1* |
564 | %{_mandir}/man1/jmap.1* | |
565 | %{_mandir}/man1/jps.1* | |
3899c70b JK |
566 | %{_mandir}/man1/jstack.1* |
567 | %{_mandir}/man1/jstat.1* | |
568 | %{_mandir}/man1/jstatd.1* | |
3899c70b JK |
569 | %{_mandir}/man1/schemagen.1* |
570 | %{_mandir}/man1/serialver.1* | |
571 | %{_mandir}/man1/rmic.1* | |
572 | %{_mandir}/man1/wsgen.1* | |
573 | %{_mandir}/man1/wsimport.1* | |
574 | %{_mandir}/man1/xjc.1* | |
3899c70b JK |
575 | %lang(ja) %{_mandir}/ja/man1/jarsigner.1* |
576 | %lang(ja) %{_mandir}/ja/man1/javac.1* | |
577 | %lang(ja) %{_mandir}/ja/man1/javadoc.1* | |
578 | %lang(ja) %{_mandir}/ja/man1/javah.1* | |
579 | %lang(ja) %{_mandir}/ja/man1/javap.1* | |
580 | %lang(ja) %{_mandir}/ja/man1/jcmd.1* | |
581 | %lang(ja) %{_mandir}/ja/man1/jconsole.1* | |
582 | %lang(ja) %{_mandir}/ja/man1/jdb.1* | |
d12f28e3 | 583 | %lang(ja) %{_mandir}/ja/man1/jdeps.1* |
3899c70b JK |
584 | %lang(ja) %{_mandir}/ja/man1/jinfo.1* |
585 | %lang(ja) %{_mandir}/ja/man1/jmap.1* | |
586 | %lang(ja) %{_mandir}/ja/man1/jps.1* | |
3899c70b JK |
587 | %lang(ja) %{_mandir}/ja/man1/jstack.1* |
588 | %lang(ja) %{_mandir}/ja/man1/jstat.1* | |
589 | %lang(ja) %{_mandir}/ja/man1/jstatd.1* | |
3899c70b JK |
590 | %lang(ja) %{_mandir}/ja/man1/schemagen.1* |
591 | %lang(ja) %{_mandir}/ja/man1/serialver.1* | |
592 | %lang(ja) %{_mandir}/ja/man1/rmic.1* | |
593 | %lang(ja) %{_mandir}/ja/man1/wsgen.1* | |
594 | %lang(ja) %{_mandir}/ja/man1/wsimport.1* | |
595 | %lang(ja) %{_mandir}/ja/man1/xjc.1* | |
596 | ||
597 | %files jdk-base | |
598 | %defattr(644,root,root,755) | |
3899c70b JK |
599 | %dir %{dstdir} |
600 | %{_jvmdir}/%{name} | |
601 | %attr(755,root,root) %{dstdir}/bin/appletviewer | |
2692550d | 602 | %{?with_aot:%attr(755,root,root) %{dstdir}/bin/jaotc} |
3899c70b JK |
603 | %attr(755,root,root) %{dstdir}/bin/jar |
604 | %attr(755,root,root) %{dstdir}/bin/jarsigner | |
3899c70b JK |
605 | %attr(755,root,root) %{dstdir}/bin/javac |
606 | %attr(755,root,root) %{dstdir}/bin/javadoc | |
607 | %attr(755,root,root) %{dstdir}/bin/javah | |
608 | %attr(755,root,root) %{dstdir}/bin/javap | |
609 | %attr(755,root,root) %{dstdir}/bin/jconsole | |
610 | %attr(755,root,root) %{dstdir}/bin/jcmd | |
611 | %attr(755,root,root) %{dstdir}/bin/jdb | |
2692550d | 612 | %attr(755,root,root) %{dstdir}/bin/jdeprscan |
d12f28e3 | 613 | %attr(755,root,root) %{dstdir}/bin/jdeps |
74861363 | 614 | %{!?with_zero:%attr(755,root,root) %{dstdir}/bin/jhsdb} |
2692550d | 615 | %attr(755,root,root) %{dstdir}/bin/jimage |
3899c70b | 616 | %attr(755,root,root) %{dstdir}/bin/jinfo |
2692550d | 617 | %attr(755,root,root) %{dstdir}/bin/jlink |
3899c70b | 618 | %attr(755,root,root) %{dstdir}/bin/jmap |
2692550d | 619 | %attr(755,root,root) %{dstdir}/bin/jmod |
3899c70b | 620 | %attr(755,root,root) %{dstdir}/bin/jps |
2692550d | 621 | %attr(755,root,root) %{dstdir}/bin/jshell |
3899c70b JK |
622 | %attr(755,root,root) %{dstdir}/bin/jstack |
623 | %attr(755,root,root) %{dstdir}/bin/jstat | |
624 | %attr(755,root,root) %{dstdir}/bin/jstatd | |
3899c70b JK |
625 | %attr(755,root,root) %{dstdir}/bin/rmic |
626 | %attr(755,root,root) %{dstdir}/bin/schemagen | |
627 | %attr(755,root,root) %{dstdir}/bin/serialver | |
628 | %attr(755,root,root) %{dstdir}/bin/wsgen | |
629 | %attr(755,root,root) %{dstdir}/bin/wsimport | |
630 | %attr(755,root,root) %{dstdir}/bin/xjc | |
631 | %{dstdir}/include | |
2692550d JP |
632 | %{dstdir}/jmods |
633 | %{?with_aot:%attr(755,root,root) %{dstdir}/lib/libjelfshim.so} | |
3899c70b | 634 | %{dstdir}/lib/ct.sym |
3899c70b JK |
635 | |
636 | %files jre | |
637 | %defattr(644,root,root,755) | |
2692550d | 638 | %attr(755,root,root) %{_bindir}/idlj |
3899c70b | 639 | %attr(755,root,root) %{_bindir}/java |
d12f28e3 | 640 | %attr(755,root,root) %{_bindir}/jjs |
2692550d | 641 | %attr(755,root,root) %{_bindir}/jrunscript |
3899c70b JK |
642 | %attr(755,root,root) %{_bindir}/keytool |
643 | %attr(755,root,root) %{_bindir}/orbd | |
644 | %attr(755,root,root) %{_bindir}/pack200 | |
645 | %attr(755,root,root) %{_bindir}/rmid | |
646 | %attr(755,root,root) %{_bindir}/rmiregistry | |
647 | %attr(755,root,root) %{_bindir}/servertool | |
648 | %attr(755,root,root) %{_bindir}/tnameserv | |
649 | %attr(755,root,root) %{_bindir}/unpack200 | |
2692550d | 650 | %{_mandir}/man1/idlj.1* |
3899c70b | 651 | %{_mandir}/man1/java.1* |
d12f28e3 | 652 | %{_mandir}/man1/jjs.1* |
2692550d | 653 | %{_mandir}/man1/jrunscript.1* |
3899c70b JK |
654 | %{_mandir}/man1/keytool.1* |
655 | %{_mandir}/man1/orbd.1* | |
656 | %{_mandir}/man1/pack200.1* | |
657 | %{_mandir}/man1/rmid.1* | |
658 | %{_mandir}/man1/rmiregistry.1* | |
659 | %{_mandir}/man1/servertool.1* | |
660 | %{_mandir}/man1/tnameserv.1* | |
661 | %{_mandir}/man1/unpack200.1* | |
2692550d | 662 | %lang(ja) %{_mandir}/ja/man1/idlj.1* |
3899c70b | 663 | %lang(ja) %{_mandir}/ja/man1/java.1* |
d12f28e3 | 664 | %lang(ja) %{_mandir}/ja/man1/jjs.1* |
2692550d | 665 | %lang(ja) %{_mandir}/ja/man1/jrunscript.1* |
3899c70b JK |
666 | %lang(ja) %{_mandir}/ja/man1/keytool.1* |
667 | %lang(ja) %{_mandir}/ja/man1/orbd.1* | |
668 | %lang(ja) %{_mandir}/ja/man1/pack200.1* | |
669 | %lang(ja) %{_mandir}/ja/man1/rmid.1* | |
670 | %lang(ja) %{_mandir}/ja/man1/rmiregistry.1* | |
671 | %lang(ja) %{_mandir}/ja/man1/servertool.1* | |
672 | %lang(ja) %{_mandir}/ja/man1/tnameserv.1* | |
673 | %lang(ja) %{_mandir}/ja/man1/unpack200.1* | |
674 | ||
675 | %files jre-base | |
676 | %defattr(644,root,root,755) | |
3899c70b JK |
677 | %dir %{_sysconfdir}/%{name} |
678 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/* | |
679 | %dir %{dstdir} | |
680 | %{dstdir}/release | |
3899c70b | 681 | %{_jvmdir}/%{name}-jre |
3899c70b | 682 | %dir %{dstdir}/bin |
2692550d | 683 | %attr(755,root,root) %{dstdir}/bin/idlj |
3899c70b | 684 | %attr(755,root,root) %{dstdir}/bin/java |
d12f28e3 | 685 | %attr(755,root,root) %{dstdir}/bin/jjs |
2692550d | 686 | %attr(755,root,root) %{dstdir}/bin/jrunscript |
3899c70b | 687 | %attr(755,root,root) %{dstdir}/bin/keytool |
3899c70b | 688 | %attr(755,root,root) %{dstdir}/bin/orbd |
3899c70b | 689 | %attr(755,root,root) %{dstdir}/bin/pack200 |
3899c70b | 690 | %attr(755,root,root) %{dstdir}/bin/rmid |
3899c70b | 691 | %attr(755,root,root) %{dstdir}/bin/rmiregistry |
3899c70b | 692 | %attr(755,root,root) %{dstdir}/bin/servertool |
3899c70b | 693 | %attr(755,root,root) %{dstdir}/bin/tnameserv |
3899c70b | 694 | %attr(755,root,root) %{dstdir}/bin/unpack200 |
2692550d JP |
695 | %{dstdir}/conf |
696 | %{dstdir}/legal | |
697 | %dir %{dstdir}/lib | |
698 | %dir %{dstdir}/lib/jli | |
699 | %attr(755,root,root) %{dstdir}/lib/jli/libjli.so | |
700 | %{dstdir}/lib/security | |
701 | %dir %{dstdir}/lib/server | |
702 | %attr(755,root,root) %{dstdir}/lib/server/*.so | |
703 | %{dstdir}/lib/server/Xusage.txt | |
161e81b6 | 704 | %{!?with_zero:%{dstdir}/lib/classlist} |
2692550d JP |
705 | %{dstdir}/lib/jrt-fs.jar |
706 | %{dstdir}/lib/jvm.cfg | |
707 | %attr(755,root,root) %{dstdir}/lib/libattach.so | |
708 | %attr(755,root,root) %{dstdir}/lib/libawt.so | |
709 | %attr(755,root,root) %{dstdir}/lib/libawt_headless.so | |
710 | %attr(755,root,root) %{dstdir}/lib/libdt_socket.so | |
711 | %attr(755,root,root) %{dstdir}/lib/libinstrument.so | |
712 | %attr(755,root,root) %{dstdir}/lib/libj2gss.so | |
713 | %attr(755,root,root) %{dstdir}/lib/libj2pcsc.so | |
714 | %attr(755,root,root) %{dstdir}/lib/libj2pkcs11.so | |
715 | %attr(755,root,root) %{dstdir}/lib/libjaas_unix.so | |
716 | %attr(755,root,root) %{dstdir}/lib/libjava.so | |
717 | %attr(755,root,root) %{dstdir}/lib/libjimage.so | |
718 | %attr(755,root,root) %{dstdir}/lib/liblcms.so | |
719 | %attr(755,root,root) %{dstdir}/lib/libmanagement_agent.so | |
720 | %attr(755,root,root) %{dstdir}/lib/libmanagement_ext.so | |
721 | %attr(755,root,root) %{dstdir}/lib/libprefs.so | |
722 | %attr(755,root,root) %{dstdir}/lib/librmi.so | |
723 | %attr(755,root,root) %{dstdir}/lib/libsctp.so | |
724 | %attr(755,root,root) %{dstdir}/lib/libsunec.so | |
725 | %attr(755,root,root) %{dstdir}/lib/libjavajpeg.so | |
726 | %attr(755,root,root) %{dstdir}/lib/libjdwp.so | |
727 | %attr(755,root,root) %{dstdir}/lib/libjsig.so | |
728 | %attr(755,root,root) %{dstdir}/lib/libjsound.so | |
729 | %attr(755,root,root) %{dstdir}/lib/libmanagement.so | |
730 | %attr(755,root,root) %{dstdir}/lib/libmlib_image.so | |
731 | %attr(755,root,root) %{dstdir}/lib/libnet.so | |
732 | %attr(755,root,root) %{dstdir}/lib/libnio.so | |
74861363 | 733 | %{!?with_zero:%attr(755,root,root) %{dstdir}/lib/libsaproc.so} |
2692550d JP |
734 | %{?with_sunec:%attr(755,root,root) %{dstdir}/lib/libsunec.so} |
735 | %attr(755,root,root) %{dstdir}/lib/libunpack.so | |
736 | %attr(755,root,root) %{dstdir}/lib/libverify.so | |
737 | %attr(755,root,root) %{dstdir}/lib/libzip.so | |
738 | %attr(755,root,root) %{dstdir}/lib/jexec | |
739 | %{dstdir}/lib/modules | |
740 | %{dstdir}/lib/psfont.properties.ja | |
741 | %{dstdir}/lib/psfontj2d.properties | |
742 | %{dstdir}/lib/tzdb.dat | |
3899c70b JK |
743 | %{jvmjardir} |
744 | ||
745 | %files jre-X11 | |
746 | %defattr(644,root,root,755) | |
747 | %attr(755,root,root) %{_bindir}/policytool | |
748 | %{_mandir}/man1/policytool.1* | |
749 | %lang(ja) %{_mandir}/ja/man1/policytool.1* | |
750 | ||
751 | %files jre-base-X11 | |
752 | %defattr(644,root,root,755) | |
3899c70b | 753 | %attr(755,root,root) %{dstdir}/bin/policytool |
2692550d JP |
754 | %attr(755,root,root) %{dstdir}/lib/libsplashscreen.so |
755 | %attr(755,root,root) %{dstdir}/lib/libawt_xawt.so | |
756 | %attr(755,root,root) %{dstdir}/lib/libjawt.so | |
3899c70b JK |
757 | |
758 | %files jre-base-alsa | |
759 | %defattr(644,root,root,755) | |
2692550d | 760 | %attr(755,root,root) %{dstdir}/lib/libjsoundalsa.so |
3899c70b JK |
761 | |
762 | %files jre-base-freetype | |
763 | %defattr(644,root,root,755) | |
2692550d | 764 | %attr(755,root,root) %{dstdir}/lib/libfontmanager.so |
3899c70b JK |
765 | |
766 | %files jar | |
767 | %defattr(644,root,root,755) | |
768 | %attr(755,root,root) %{_bindir}/jar | |
769 | %{_mandir}/man1/jar.1* | |
770 | %lang(ja) %{_mandir}/ja/man1/jar.1* | |
771 | ||
772 | %files appletviewer | |
773 | %defattr(644,root,root,755) | |
774 | %attr(755,root,root) %{_bindir}/appletviewer | |
775 | %{_mandir}/man1/appletviewer.1* | |
776 | %lang(ja) %{_mandir}/ja/man1/appletviewer.1* | |
777 | ||
778 | %files jdk-sources | |
779 | %defattr(644,root,root,755) | |
780 | %{_javasrcdir}/%{name}-jdk.zip | |
781 | ||
782 | %files examples | |
783 | %defattr(644,root,root,755) | |
784 | %{_examplesdir}/%{name}-%{version} |