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