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