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