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