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