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