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