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