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