]>
Commit | Line | Data |
---|---|---|
3899c70b JK |
1 | # |
2 | # TODO: | |
3899c70b | 3 | # - fix BuildRequires |
5b4e4f20 | 4 | # - fix build with system giflib |
991454fa | 5 | # - use other system libs (libsctp?) |
d12f28e3 JK |
6 | # - build alternative VM for x32 |
7 | # - include icedtea-sound? | |
8 | # - port PLD-specific changes from icedtea7? | |
9 | # - '*** WARNING: no sources found for ...' | |
3899c70b JK |
10 | |
11 | %bcond_with bootstrap # build a bootstrap version, using icedtea6 | |
12 | %bcond_without cacerts # don't include the default CA certificates | |
13 | ||
14 | %if %{with bootstrap} | |
15 | %define use_jdk icedtea7 | |
16 | %else | |
17 | %define use_jdk openjdk8 | |
18 | %endif | |
19 | ||
20 | # class data version seen with file(1) that this jvm is able to load | |
c5052a68 | 21 | %define _classdataversion 52.0 |
d8978afb | 22 | # JDK/JRE version, as returned with `java -version`, '_' replaced with '.' |
c5052a68 | 23 | %define _jdkversion 1.8.0.internal |
3899c70b JK |
24 | |
25 | Summary: Open-source implementation of the Java Platform, Standard Edition | |
26 | Summary(pl.UTF-8): Wolnoźródłowa implementacja Java 8 SE | |
27 | Name: openjdk8 | |
d8978afb JK |
28 | %define ver_u 66 |
29 | %define ver_b 02 | |
30 | Version: 8u%{ver_u}.b%{ver_b} | |
3899c70b JK |
31 | Release: 0.1 |
32 | License: GPL v2 | |
33 | Group: Development/Languages/Java | |
d8978afb | 34 | Source0: openjdk8-jdk8u%{ver_u}-b%{ver_b}.tar.bz2 |
c5052a68 | 35 | # Source0-md5: 1d115662e175470270e89a4da8e0fce2 |
d8978afb | 36 | Source1: openjdk8-corba-jdk8u%{ver_u}-b%{ver_b}.tar.bz2 |
c5052a68 | 37 | # Source1-md5: e14d8f51b9ca30d798094a2867f3f5d0 |
d8978afb | 38 | Source2: openjdk8-hotspot-jdk8u%{ver_u}-b%{ver_b}.tar.bz2 |
c5052a68 | 39 | # Source2-md5: b49a7b7f2db5b07306b7b5739e87ccc0 |
d8978afb | 40 | Source3: openjdk8-jaxp-jdk8u%{ver_u}-b%{ver_b}.tar.bz2 |
c5052a68 | 41 | # Source3-md5: 6bd5ae187272a209439d1a95ac6c9025 |
d8978afb | 42 | Source4: openjdk8-jaxws-jdk8u%{ver_u}-b%{ver_b}.tar.bz2 |
7c01df73 | 43 | # Source4-md5: 15e6a93009bdc73194e7118988d5ab8d |
d8978afb | 44 | Source5: openjdk8-jdk-jdk8u%{ver_u}-b%{ver_b}.tar.bz2 |
c5052a68 | 45 | # Source5-md5: 74f2cf3815659b83993c4187e7fc4f6b |
d8978afb | 46 | Source6: openjdk8-langtools-jdk8u%{ver_u}-b%{ver_b}.tar.bz2 |
c5052a68 | 47 | # Source6-md5: de5c9b5fdbcd75028b71ed667d4b99d2 |
d8978afb | 48 | Source7: openjdk8-nashorn-jdk8u%{ver_u}-b%{ver_b}.tar.bz2 |
c5052a68 | 49 | # Source7-md5: 7da4e88349cfc45ee9726eaa4386be03 |
3899c70b | 50 | Source10: make-cacerts.sh |
5b4e4f20 JK |
51 | Patch0: adjust-mflags.patch |
52 | Patch1: format_strings.patch | |
d12f28e3 | 53 | Patch2: CompileDemos.patch |
ce94f011 | 54 | Patch3: libpath.patch |
991454fa JK |
55 | Patch4: system-libjpeg.patch |
56 | Patch5: system-libpng.patch | |
57 | Patch6: system-lcms.patch | |
58 | Patch7: system-pcsclite.patch | |
3899c70b JK |
59 | URL: http://openjdk.java.net/ |
60 | BuildRequires: alsa-lib-devel | |
61 | BuildRequires: ant | |
62 | BuildRequires: autoconf | |
3899c70b JK |
63 | BuildRequires: bash |
64 | %{?with_cacerts:BuildRequires: ca-certificates-update} | |
65 | BuildRequires: cups-devel | |
66 | BuildRequires: /usr/bin/jar | |
67 | BuildRequires: freetype-devel >= 2.3 | |
68 | BuildRequires: gawk | |
5b4e4f20 | 69 | #BuildRequires: giflib-devel >= 5.1 |
3899c70b | 70 | BuildRequires: glibc-misc |
3899c70b | 71 | %buildrequires_jdk |
991454fa | 72 | BuildRequires: lcms2-devel |
3899c70b | 73 | BuildRequires: libjpeg-devel |
991454fa | 74 | BuildRequires: libpng-devel |
3899c70b | 75 | BuildRequires: lsb-release |
991454fa | 76 | BuildRequires: pcsc-lite-devel |
3899c70b JK |
77 | BuildRequires: pkgconfig |
78 | BuildRequires: rpmbuild(macros) >= 1.557 | |
3899c70b JK |
79 | BuildRequires: unzip |
80 | BuildRequires: util-linux | |
81 | BuildRequires: xorg-lib-libX11-devel | |
82 | BuildRequires: xorg-lib-libXinerama-devel | |
83 | BuildRequires: xorg-lib-libXp-devel | |
84 | BuildRequires: xorg-lib-libXrender-devel | |
85 | BuildRequires: xorg-lib-libXt-devel | |
86 | BuildRequires: xorg-lib-libXtst-devel | |
87 | BuildRequires: xorg-proto-printproto-devel | |
88 | BuildRequires: xorg-proto-xproto-devel | |
89 | BuildRequires: zip | |
90 | BuildRequires: zlib-devel | |
91 | Requires: %{name}-appletviewer = %{version}-%{release} | |
92 | Requires: %{name}-jdk = %{version}-%{release} | |
93 | Suggests: %{name}-jre-X11 | |
94 | Suggests: icedtea-web | |
95 | Obsoletes: icedtea6 | |
96 | Obsoletes: icedtea7 | |
97 | Obsoletes: java5-sun | |
98 | Obsoletes: java5-sun-jre | |
99 | Obsoletes: java5-sun-jre-jdbc | |
100 | Obsoletes: java5-sun-jre-X11 | |
101 | Obsoletes: java5-sun-tools | |
102 | Obsoletes: java-gcj-compat | |
103 | Obsoletes: java-gcj-compat-devel | |
104 | Obsoletes: java-sun | |
105 | Obsoletes: java-sun-demos | |
106 | Obsoletes: java-sun-jre | |
107 | Obsoletes: java-sun-jre-alsa | |
108 | Obsoletes: java-sun-jre-jdbc | |
109 | Obsoletes: java-sun-jre-X11 | |
110 | Obsoletes: java-sun-tools | |
111 | Obsoletes: oracle-java7 | |
112 | Obsoletes: oracle-java7-jre | |
113 | Obsoletes: oracle-java7-jre-alsa | |
114 | Obsoletes: oracle-java7-jre-jdbc | |
115 | Obsoletes: oracle-java7-jre-X11 | |
116 | Obsoletes: oracle-java7-tools | |
117 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
118 | ||
119 | %define dstreldir %{name}-%{version} | |
120 | %define dstdir %{_jvmdir}/%{dstreldir} | |
121 | %define jrereldir %{dstreldir}/jre | |
122 | %define jredir %{_jvmdir}/%{jrereldir} | |
123 | %define jvmjardir %{_jvmjardir}/%{name}-%{version} | |
124 | ||
125 | %ifarch %{x8664} | |
126 | %define jre_arch amd64 | |
127 | %endif | |
128 | %ifarch %{ix86} | |
129 | %define jre_arch i386 | |
130 | %endif | |
131 | %ifarch x32 | |
132 | %define jre_arch x32 | |
133 | %endif | |
134 | ||
135 | # to break artificial subpackage dependency loops | |
136 | %define _noautoreq 'libmawt.so' java\\\\(ClassDataVersion\\\\) | |
137 | ||
138 | %description | |
139 | Open-source implementation of the Java Platform, Standard Edition. | |
140 | ||
141 | This is a meta-package which provides, by its dependencies, all the | |
142 | OpenJDK components including the OpenJDK, Java 8 developement kit and | |
143 | runtime environment. | |
144 | ||
145 | %description -l pl.UTF-8 | |
146 | Wolnoźródłowa implementacja Java 8 SE. | |
147 | ||
148 | To jest meta-pakiet, który, za pośrednictwem zależności, dostarcza | |
149 | wszystkie komponenty OpenJDK, w tym środowisko programistyczne | |
150 | (OpenJDK) i uruchomieniowe (JRE). | |
151 | ||
152 | %package jdk | |
153 | Summary: OpenJDK - software development kit | |
154 | Summary(pl.UTF-8): OpenJDK - środowisko programistyczne | |
155 | Group: Development/Languages/Java | |
156 | Requires: %{name}-jar = %{version}-%{release} | |
157 | Requires: %{name}-jdk-base = %{version}-%{release} | |
158 | Requires: %{name}-jre = %{version}-%{release} | |
d8978afb JK |
159 | Provides: j2sdk = %{_jdkversion} |
160 | Provides: jdk = %{_jdkversion} | |
3899c70b JK |
161 | Obsoletes: blackdown-java-sdk |
162 | Obsoletes: ibm-java | |
163 | Obsoletes: icedtea6-jdk | |
164 | Obsoletes: icedtea7-jdk | |
165 | Obsoletes: java-blackdown | |
166 | Obsoletes: java-gcj-compat-devel | |
167 | Obsoletes: java-sun | |
168 | Obsoletes: java5-sun | |
169 | Obsoletes: oracle-java7 | |
170 | Obsoletes: jdk | |
171 | Obsoletes: kaffe | |
172 | ||
173 | %description jdk | |
174 | This package symlinks OpenJDK development tools provided by | |
175 | %{name}-jdk-base to system-wide directories like %{_bindir}, making | |
176 | OpenJDK the default JDK. | |
177 | ||
178 | %description jdk -l pl.UTF-8 | |
179 | Ten pakiet tworzy symboliczne dowiązania do narzędzi programistycznych | |
180 | OpenJDK, dostarczanych przez pakiet %{name}-jdk-base, w standardowych | |
181 | systemowych ścieżkach takich jak %{_bindir}, sprawiając tym samym, że | |
182 | OpenJDK staje się domyślnym JDK w systemie. | |
183 | ||
184 | %package jdk-base | |
185 | Summary: OpenJDK - software development kit | |
186 | Summary(pl.UTF-8): Kod OpenJDK - środowisko programistyczne | |
187 | Group: Development/Languages/Java | |
188 | Requires: %{name}-jre-base = %{version}-%{release} | |
189 | Requires: jpackage-utils >= 0:1.7.5-4 | |
190 | Provides: jdk(%{name}) | |
191 | ||
192 | %description jdk-base | |
193 | OpenJDK development tools built using free software only. | |
194 | ||
195 | %description jdk-base -l pl.UTF-8 | |
196 | OpenJDK skompilowane wyłącznie przy użyciu wolnego oprogramowania. | |
197 | ||
198 | %package jre | |
199 | Summary: OpenJDK - runtime environment | |
200 | Summary(pl.UTF-8): OpenJDK - środowisko uruchomieniowe | |
201 | Group: Development/Languages/Java | |
202 | Requires: %{name}-jre-base = %{version}-%{release} | |
203 | Requires: nss >= 1:3.13.4 | |
204 | # Require zoneinfo data provided by java-tzdata subpackage. | |
205 | Requires: java-tzdata | |
206 | Provides: java | |
207 | Provides: java(ClassDataVersion) = %{_classdataversion} | |
208 | Provides: java(jaas) = %{version} | |
209 | Provides: java(jaf) = 1.1.1 | |
210 | Provides: java(jaxp) = 1.3 | |
211 | Provides: java(jaxp_parser_impl) | |
212 | Provides: java(jce) = %{version} | |
213 | Provides: java(jdbc-stdext) = %{version} | |
214 | Provides: java(jdbc-stdext) = 3.0 | |
215 | Provides: java(jmx) = 1.4 | |
216 | Provides: java(jndi) = %{version} | |
217 | Provides: java(jsse) = %{version} | |
218 | Provides: java1.4 | |
d8978afb | 219 | Provides: jre = %{_jdkversion} |
3899c70b JK |
220 | Obsoletes: icedtea6-jre |
221 | Obsoletes: icedtea7-jre | |
222 | Obsoletes: java(jaas) | |
223 | Obsoletes: java(jaf) | |
224 | Obsoletes: java(jaxp) | |
225 | Obsoletes: java(jce) | |
226 | Obsoletes: java(jdbc-stdext) | |
227 | Obsoletes: java(jdbc-stdext) | |
228 | Obsoletes: java(jmx) | |
229 | Obsoletes: java(jndi) | |
230 | Obsoletes: java(jsse) | |
231 | Obsoletes: java-gcj-compat | |
232 | Obsoletes: java-sun-jre | |
233 | Obsoletes: java5-sun-jre | |
234 | Obsoletes: oracle-java7-jre | |
235 | Obsoletes: jre | |
236 | ||
237 | %description jre | |
238 | This package symlinks OpenJDK runtime environment tools provided by | |
239 | %{name}-jre-base to system-wide directories like %{_bindir}, making | |
240 | OpenJDK the default JRE. | |
241 | ||
242 | %description jre -l pl.UTF-8 | |
243 | Ten pakiet tworzy symboliczne dowiązania do środowiska | |
244 | uruchomieniowego OpenJDK, dostarczanych przez pakiet %{name}-jre-base, | |
245 | w standardowych systemowych ścieżkach takich jak %{_bindir}, | |
246 | sprawiając tym samym, że OpenJDK staje się domyślnym JRE w systemie. | |
247 | ||
248 | %package jre-X11 | |
249 | Summary: OpenJDK - runtime environment - X11 support | |
250 | Summary(pl.UTF-8): OpenJDK - środowisko uruchomieniowe - obsługa X11 | |
251 | Group: Development/Languages/Java | |
252 | Requires: %{name}-jre = %{version}-%{release} | |
253 | Requires: %{name}-jre-base-X11 = %{version}-%{release} | |
d8978afb | 254 | Provides: jre-X11 = %{_jdkversion} |
3899c70b JK |
255 | Obsoletes: icedtea6-jre-X11 |
256 | Obsoletes: icedtea7-jre-X11 | |
257 | Obsoletes: java-sun-jre-X11 | |
258 | Obsoletes: oracle-java7-jre-X11 | |
259 | ||
260 | %description jre-X11 | |
261 | X11 support for OpenJDK runtime environment built using free software | |
262 | only. | |
263 | ||
264 | %description jre-X11 -l pl.UTF-8 | |
265 | Biblioteki X11 dla środowiska OpenJDK zbudowany wyłocznie przy uzyciu | |
266 | wolnego oprogramowania. | |
267 | ||
268 | %package jre-base | |
269 | Summary: OpenJDK - runtime environment | |
270 | Summary(pl.UTF-8): OpenJDK - środowisko uruchomieniowe | |
271 | Group: Development/Languages/Java | |
272 | Requires: jpackage-utils >= 0:1.7.5-4 | |
273 | Provides: jre(%{name}) | |
274 | ||
275 | %description jre-base | |
276 | OpenJDK runtime environment built using free software only. | |
277 | ||
278 | %description jre-base -l pl.UTF-8 | |
279 | Środowisko uruchomieniowe OpenJDK zbudowany wyłącznie przy użyciu | |
280 | wolnego oprogramowania. | |
281 | ||
282 | %package jre-base-X11 | |
283 | Summary: OpenJDK - runtime environment - X11 support | |
284 | Summary(pl.UTF-8): OpenJDK - środowisko uruchomieniowe - obsługa X11 | |
285 | Group: Development/Languages/Java | |
286 | Requires: %{name}-jre-base = %{version}-%{release} | |
287 | Requires: %{name}-jre-base-freetype = %{version}-%{release} | |
288 | ||
289 | %description jre-base-X11 | |
290 | X11 support for OpenJDK runtime environment built using free software | |
291 | only. | |
292 | ||
293 | %description jre-base-X11 -l pl.UTF-8 | |
294 | Biblioteki X11 dla środowiska OpenJDK zbudowany wyłocznie przy uzyciu | |
295 | wolnego oprogramowania. | |
296 | ||
297 | %package jre-base-alsa | |
298 | Summary: OpenJDK - runtime environment - ALSA support | |
299 | Summary(pl.UTF-8): OpenJDK - środowisko uruchomieniowe - obsługa ALSA | |
300 | Group: Development/Languages/Java | |
301 | Requires: %{name}-jre-base = %{version}-%{release} | |
302 | ||
303 | %description jre-base-alsa | |
304 | ALSA sound support for OpenJDK runtime environment build using free | |
305 | software only. | |
306 | ||
307 | %description jre-base-alsa -l pl.UTF-8 | |
308 | Biblioteki ALSA rozszerzające środowisko OpenJDK o obsługę dźwięku | |
309 | zbudowane przy uzyciu wyłącznie wolnego oprogramowania. | |
310 | ||
311 | %package jre-base-freetype | |
312 | Summary: OpenJDK - runtime environment - font support | |
313 | Summary(pl.UTF-8): OpenJDK - środowisko uruchomieniowe - obsługa fontów | |
314 | Group: Development/Languages/Java | |
315 | Requires: %{name}-jre-base = %{version}-%{release} | |
316 | ||
317 | %description jre-base-freetype | |
318 | Font handling library for OpenJDK runtime environment built using free | |
319 | software only. | |
320 | ||
321 | %description jre-base-freetype -l pl.UTF-8 | |
322 | Biblioteki obsługi czcionek dla OpenJDK zbudowane wyłącznie przy | |
323 | użyciu wolnego oprogramowania. | |
324 | ||
325 | %package jre-base-gtk | |
326 | Summary: OpenJDK - runtime environment - GTK support | |
327 | Summary(pl.UTF-8): OpenJDK - środowisko uruchomieniowe - obsługa GTK | |
328 | Group: Development/Languages/Java | |
329 | Requires: %{name}-jre-base = %{version}-%{release} | |
330 | ||
331 | %description jre-base-gtk | |
332 | GTK support for OpenJDK runtime environment. | |
333 | ||
334 | %description jre-base-gtk -l pl.UTF-8 | |
335 | Biblioteki GTK dla OpenJDK. | |
336 | ||
337 | %package jar | |
338 | Summary: OpenJDK - JAR tool | |
339 | Summary(pl.UTF-8): OpenJDK - narzędzie JAR | |
340 | Group: Development/Languages/Java | |
341 | Requires: %{name}-jdk-base = %{version}-%{release} | |
342 | Provides: jar | |
343 | Obsoletes: fastjar | |
344 | Obsoletes: icedtea6-jar | |
345 | Obsoletes: icedtea7-jar | |
346 | Obsoletes: jar | |
347 | ||
348 | %description jar | |
349 | JAR tool from OpenJDK built using free software only. | |
350 | ||
351 | JAR is an archiver used to merge Java classes into a single library. | |
352 | ||
353 | %description jar -l pl.UTF-8 | |
354 | Narzędzie jar z OpenJDK zbudowane przy uzyciu wyłącznie wolnego | |
355 | oprogramowania. | |
356 | ||
357 | JAR jest narzędziem pozwalającym wykonywać podstawowe operacje na | |
358 | archiwach javy .jar takie jak na przykład tworzenie lub rozpakowywanie | |
359 | archiwów. | |
360 | ||
361 | %package appletviewer | |
362 | Summary: OpenJDK - appletviewer tool | |
363 | Summary(pl.UTF-8): OpenJDK - narzędzie appletviewer | |
364 | Group: Development/Languages/Java | |
365 | Requires: %{name}-jdk-base = %{version}-%{release} | |
366 | Requires: %{name}-jre-X11 = %{version}-%{release} | |
367 | Obsoletes: icedtea6-appletviewer | |
368 | Obsoletes: icedtea7-appletviewer | |
369 | Obsoletes: java-sun-appletviewer | |
370 | Obsoletes: oracle-java7-appletviewer | |
371 | ||
372 | %description appletviewer | |
373 | Appletviewer from OpenJDK build using free software only. | |
374 | ||
375 | %description appletviewer -l pl.UTF-8 | |
376 | Appletviewer pozwala uruchamiać aplety javy niezależnie od | |
377 | przeglądarki www. Ten appletviewer pochodzi z zestawu narzędzi OpenJDK | |
378 | i został zbudowany wyłącznie przy użyciu wolnego oprogramowania. | |
379 | ||
380 | %package jdk-sources | |
381 | Summary: OpenJDK - sources | |
382 | Summary(pl.UTF-8): OpenJDK - kod źródłowy | |
383 | Group: Documentation | |
384 | %if "%{_rpmversion}" >= "5" | |
385 | BuildArch: noarch | |
386 | %endif | |
387 | ||
388 | %description jdk-sources | |
389 | Source code for the OpenJDK development kit and Java standard library. | |
390 | ||
391 | %description jdk-sources -l pl.UTF-8 | |
392 | Kod źródłowy narzędzi programistycznych OpenJDK oraz standardowej | |
393 | biblioteki Javy. | |
394 | ||
395 | %package examples | |
396 | Summary: OpenJDK - examples | |
397 | Summary(pl.UTF-8): OpenJDK - przykłady | |
398 | Group: Documentation | |
399 | %if "%{_rpmversion}" >= "5" | |
400 | BuildArch: noarch | |
401 | %endif | |
402 | ||
403 | %description examples | |
404 | Code examples for OpenJDK. | |
405 | ||
406 | %description examples -l pl.UTF-8 | |
407 | Przykłady dla OpenJDK. | |
408 | ||
409 | %prep | |
d8978afb | 410 | %setup -qn jdk8u-jdk8u%{ver_u}-b%{ver_b} -a1 -a2 -a3 -a4 -a5 -a6 -a7 |
3899c70b | 411 | |
d8978afb | 412 | for d in *-jdk8u*-b* ; do |
d12f28e3 | 413 | mv "$d" "${d%%-jdk8u*-b*}" |
3899c70b JK |
414 | done |
415 | ||
5b4e4f20 JK |
416 | %patch0 -p1 |
417 | %patch1 -p1 | |
d12f28e3 | 418 | %patch2 -p1 |
ce94f011 | 419 | %patch3 -p1 |
991454fa JK |
420 | %patch4 -p1 |
421 | %patch5 -p1 | |
422 | %patch6 -p1 | |
423 | %patch7 -p1 | |
5b4e4f20 | 424 | |
3899c70b JK |
425 | %build |
426 | # Make sure we have /proc mounted - otherwise idlc will fail later. | |
427 | if [ ! -f /proc/self/stat ]; then | |
428 | echo "You need to have /proc mounted in order to build this package!" | |
429 | exit 1 | |
430 | fi | |
431 | ||
991454fa JK |
432 | cd common/autoconf |
433 | %{__autoconf} -o generated-configure.sh | |
434 | cd ../.. | |
435 | ||
3899c70b | 436 | mkdir -p build-bin |
d12f28e3 JK |
437 | export JAVA_HOME=%{java_home} |
438 | export PATH="$JAVA_HOME/bin:$PATH" | |
439 | export SHELL=/bin/bash | |
3899c70b | 440 | |
5b4e4f20 JK |
441 | chmod a+x configure |
442 | ||
443 | %configure \ | |
444 | --with-extra-cflags="%{rpmcflags}" \ | |
445 | --with-extra-cxxflags="%{rpmcxxflags}" \ | |
446 | --with-extra-ldflags="%{rpmldflags}" \ | |
447 | --with-giflib=bundled \ | |
991454fa JK |
448 | --with-libjpeg=system \ |
449 | --with-libpng=system \ | |
450 | --with-lcms=system \ | |
451 | --with-libpcsclite=system \ | |
5b4e4f20 JK |
452 | --with-zlib=system |
453 | ||
454 | specdir="$(dirname build/*-release/spec.gmk)" | |
455 | cat > $specdir/custom-spec.gmk <<EOF | |
456 | SHELL=/bin/bash | |
457 | EOF | |
458 | [ -d tmp-bin ] || ln -s "$specdir/jdk/bin" tmp-bin | |
459 | ||
d12f28e3 | 460 | %{__make} all \ |
5b4e4f20 | 461 | LOG=debug |
3899c70b | 462 | |
d12f28e3 | 463 | export PATH="$(pwd)/build-bin:$PATH" |
3899c70b JK |
464 | %{?with_cacerts:%{__sh} %{SOURCE10}} |
465 | ||
466 | %install | |
467 | rm -rf $RPM_BUILD_ROOT | |
468 | install -d $RPM_BUILD_ROOT{%{_bindir},%{dstdir},%{_mandir}/ja} \ | |
469 | $RPM_BUILD_ROOT{%{jvmjardir},%{_examplesdir}/%{name}-%{version},%{_javasrcdir}} \ | |
470 | $RPM_BUILD_ROOT%{_sysconfdir}/%{name} | |
471 | ||
472 | # install the 'JDK image', it contains the JRE too | |
d12f28e3 | 473 | cp -a build/*-release/images/j2sdk-image/* $RPM_BUILD_ROOT%{dstdir} |
3899c70b JK |
474 | |
475 | # convenience symlinks without version number | |
476 | ln -s %{dstreldir} $RPM_BUILD_ROOT%{_jvmdir}/%{name} | |
477 | ln -s %{jrereldir} $RPM_BUILD_ROOT%{_jvmdir}/%{name}-jre | |
478 | ||
479 | ln -s %{dstreldir} $RPM_BUILD_ROOT%{_jvmdir}/java | |
480 | ||
481 | # move JDK sources and demo to /usr/src | |
482 | mv $RPM_BUILD_ROOT%{dstdir}/demo $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
483 | mv $RPM_BUILD_ROOT%{dstdir}/sample $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
484 | mv $RPM_BUILD_ROOT%{dstdir}/src.zip $RPM_BUILD_ROOT%{_javasrcdir}/%{name}-jdk.zip | |
485 | ||
486 | # move manual pages to its place | |
487 | mv $RPM_BUILD_ROOT%{dstdir}/man/ja_JP.UTF-8/man1 $RPM_BUILD_ROOT%{_mandir}/ja/man1 | |
488 | rmdir $RPM_BUILD_ROOT%{dstdir}/man/ja_JP.UTF-8 | |
489 | rm $RPM_BUILD_ROOT%{dstdir}/man/ja | |
490 | mv $RPM_BUILD_ROOT%{dstdir}/man/man1 $RPM_BUILD_ROOT%{_mandir}/man1 | |
491 | rmdir $RPM_BUILD_ROOT%{dstdir}/man | |
492 | ||
493 | # replace duplicates with symlinks, link to %{_bindir} | |
494 | for path in $RPM_BUILD_ROOT%{dstdir}/bin/*; do | |
495 | filename=$(basename $path) | |
496 | if diff -q "$path" "$RPM_BUILD_ROOT%{jredir}/bin/$filename" > /dev/null; then | |
497 | ln -sf "../jre/bin/$filename" "$path" | |
498 | ln -sf "%{jredir}/bin/$filename" $RPM_BUILD_ROOT%{_bindir} | |
499 | else | |
500 | ln -sf "%{dstdir}/bin/$filename" $RPM_BUILD_ROOT%{_bindir} | |
501 | fi | |
502 | done | |
503 | ln -sf ../jre/lib/jexec $RPM_BUILD_ROOT%{dstdir}/lib/jexec | |
504 | ||
505 | # keep configuration in /etc (not all *.properties go there) | |
506 | for config in management security content-types.properties \ | |
507 | logging.properties net.properties sound.properties; do | |
508 | ||
509 | mv $RPM_BUILD_ROOT%{jredir}/lib/$config $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/$config | |
510 | ln -s %{_sysconfdir}/%{name}/$config $RPM_BUILD_ROOT%{jredir}/lib/$config | |
511 | done | |
512 | ||
513 | ln -sf %{jredir}/lib/jsse.jar $RPM_BUILD_ROOT%{jvmjardir}/jsse.jar | |
514 | ln -sf %{jredir}/lib/jsse.jar $RPM_BUILD_ROOT%{jvmjardir}/jcert.jar | |
515 | ln -sf %{jredir}/lib/jsse.jar $RPM_BUILD_ROOT%{jvmjardir}/jnet.jar | |
516 | ln -sf %{jredir}/lib/jce.jar $RPM_BUILD_ROOT%{jvmjardir}/jce.jar | |
517 | for f in jndi jndi-ldap jndi-cos jndi-rmi jaas jdbc-stdext jdbc-stdext-3.0 \ | |
518 | sasl jaxp_parser_impl jaxp_transform_impl jaxp jmx activation xml-commons-apis \ | |
519 | jndi-dns jndi-rmi; do | |
520 | ln -sf %{jredir}/lib/rt.jar $RPM_BUILD_ROOT%{jvmjardir}/$f.jar | |
521 | done | |
522 | ||
523 | # some apps (like opera) looks for it in different place | |
524 | ln -s server/libjvm.so $RPM_BUILD_ROOT%{jredir}/lib/%{jre_arch}/libjvm.so | |
525 | ||
3899c70b JK |
526 | %{__rm} $RPM_BUILD_ROOT%{dstdir}/{,jre/}{ASSEMBLY_EXCEPTION,LICENSE,THIRD_PARTY_README} |
527 | ||
528 | %{?with_cacerts:install cacerts $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/security} | |
529 | ||
530 | %clean | |
531 | rm -rf $RPM_BUILD_ROOT | |
532 | ||
533 | %files | |
534 | %defattr(644,root,root,755) | |
535 | %doc THIRD_PARTY_README ASSEMBLY_EXCEPTION | |
536 | ||
537 | %files jdk | |
538 | %defattr(644,root,root,755) | |
3899c70b JK |
539 | %attr(755,root,root) %{_bindir}/extcheck |
540 | %attr(755,root,root) %{_bindir}/idlj | |
541 | %attr(755,root,root) %{_bindir}/jarsigner | |
542 | %attr(755,root,root) %{_bindir}/java-rmi.cgi | |
543 | %attr(755,root,root) %{_bindir}/javac | |
544 | %attr(755,root,root) %{_bindir}/javadoc | |
545 | %attr(755,root,root) %{_bindir}/javah | |
546 | %attr(755,root,root) %{_bindir}/javap | |
547 | %attr(755,root,root) %{_bindir}/jcmd | |
548 | %attr(755,root,root) %{_bindir}/jconsole | |
549 | %attr(755,root,root) %{_bindir}/jdb | |
d12f28e3 | 550 | %attr(755,root,root) %{_bindir}/jdeps |
3899c70b JK |
551 | %attr(755,root,root) %{_bindir}/jhat |
552 | %attr(755,root,root) %{_bindir}/jinfo | |
553 | %attr(755,root,root) %{_bindir}/jmap | |
554 | %attr(755,root,root) %{_bindir}/jps | |
555 | %attr(755,root,root) %{_bindir}/jrunscript | |
556 | %attr(755,root,root) %{_bindir}/jsadebugd | |
557 | %attr(755,root,root) %{_bindir}/jstack | |
558 | %attr(755,root,root) %{_bindir}/jstat | |
559 | %attr(755,root,root) %{_bindir}/jstatd | |
560 | %attr(755,root,root) %{_bindir}/native2ascii | |
561 | %attr(755,root,root) %{_bindir}/rmic | |
562 | %attr(755,root,root) %{_bindir}/schemagen | |
563 | %attr(755,root,root) %{_bindir}/serialver | |
564 | %attr(755,root,root) %{_bindir}/wsgen | |
565 | %attr(755,root,root) %{_bindir}/wsimport | |
566 | %attr(755,root,root) %{_bindir}/xjc | |
567 | %{_jvmdir}/java | |
3899c70b JK |
568 | %{_mandir}/man1/extcheck.1* |
569 | %{_mandir}/man1/idlj.1* | |
570 | %{_mandir}/man1/jarsigner.1* | |
571 | %{_mandir}/man1/javac.1* | |
572 | %{_mandir}/man1/javadoc.1* | |
573 | %{_mandir}/man1/javah.1* | |
574 | %{_mandir}/man1/javap.1* | |
575 | %{_mandir}/man1/jcmd.1* | |
576 | %{_mandir}/man1/jconsole.1* | |
577 | %{_mandir}/man1/jdb.1* | |
d12f28e3 | 578 | %{_mandir}/man1/jdeps.1* |
3899c70b JK |
579 | %{_mandir}/man1/jhat.1* |
580 | %{_mandir}/man1/jinfo.1* | |
581 | %{_mandir}/man1/jmap.1* | |
582 | %{_mandir}/man1/jps.1* | |
583 | %{_mandir}/man1/jrunscript.1* | |
584 | %{_mandir}/man1/jsadebugd.1* | |
585 | %{_mandir}/man1/jstack.1* | |
586 | %{_mandir}/man1/jstat.1* | |
587 | %{_mandir}/man1/jstatd.1* | |
588 | %{_mandir}/man1/native2ascii.1* | |
589 | %{_mandir}/man1/schemagen.1* | |
590 | %{_mandir}/man1/serialver.1* | |
591 | %{_mandir}/man1/rmic.1* | |
592 | %{_mandir}/man1/wsgen.1* | |
593 | %{_mandir}/man1/wsimport.1* | |
594 | %{_mandir}/man1/xjc.1* | |
3899c70b JK |
595 | %lang(ja) %{_mandir}/ja/man1/extcheck.1* |
596 | %lang(ja) %{_mandir}/ja/man1/idlj.1* | |
597 | %lang(ja) %{_mandir}/ja/man1/jarsigner.1* | |
598 | %lang(ja) %{_mandir}/ja/man1/javac.1* | |
599 | %lang(ja) %{_mandir}/ja/man1/javadoc.1* | |
600 | %lang(ja) %{_mandir}/ja/man1/javah.1* | |
601 | %lang(ja) %{_mandir}/ja/man1/javap.1* | |
602 | %lang(ja) %{_mandir}/ja/man1/jcmd.1* | |
603 | %lang(ja) %{_mandir}/ja/man1/jconsole.1* | |
604 | %lang(ja) %{_mandir}/ja/man1/jdb.1* | |
d12f28e3 | 605 | %lang(ja) %{_mandir}/ja/man1/jdeps.1* |
3899c70b JK |
606 | %lang(ja) %{_mandir}/ja/man1/jhat.1* |
607 | %lang(ja) %{_mandir}/ja/man1/jinfo.1* | |
608 | %lang(ja) %{_mandir}/ja/man1/jmap.1* | |
609 | %lang(ja) %{_mandir}/ja/man1/jps.1* | |
610 | %lang(ja) %{_mandir}/ja/man1/jrunscript.1* | |
611 | %lang(ja) %{_mandir}/ja/man1/jsadebugd.1* | |
612 | %lang(ja) %{_mandir}/ja/man1/jstack.1* | |
613 | %lang(ja) %{_mandir}/ja/man1/jstat.1* | |
614 | %lang(ja) %{_mandir}/ja/man1/jstatd.1* | |
615 | %lang(ja) %{_mandir}/ja/man1/native2ascii.1* | |
616 | %lang(ja) %{_mandir}/ja/man1/schemagen.1* | |
617 | %lang(ja) %{_mandir}/ja/man1/serialver.1* | |
618 | %lang(ja) %{_mandir}/ja/man1/rmic.1* | |
619 | %lang(ja) %{_mandir}/ja/man1/wsgen.1* | |
620 | %lang(ja) %{_mandir}/ja/man1/wsimport.1* | |
621 | %lang(ja) %{_mandir}/ja/man1/xjc.1* | |
622 | ||
623 | %files jdk-base | |
624 | %defattr(644,root,root,755) | |
d12f28e3 JK |
625 | %doc build/*-release/images/j2sdk-image/THIRD_PARTY_README |
626 | %doc build/*-release/images/j2sdk-image/ASSEMBLY_EXCEPTION | |
3899c70b JK |
627 | %dir %{dstdir} |
628 | %{_jvmdir}/%{name} | |
629 | %attr(755,root,root) %{dstdir}/bin/appletviewer | |
3899c70b JK |
630 | %attr(755,root,root) %{dstdir}/bin/extcheck |
631 | %attr(755,root,root) %{dstdir}/bin/idlj | |
632 | %attr(755,root,root) %{dstdir}/bin/jar | |
633 | %attr(755,root,root) %{dstdir}/bin/jarsigner | |
634 | %attr(755,root,root) %{dstdir}/bin/java-rmi.cgi | |
635 | %attr(755,root,root) %{dstdir}/bin/javac | |
636 | %attr(755,root,root) %{dstdir}/bin/javadoc | |
637 | %attr(755,root,root) %{dstdir}/bin/javah | |
638 | %attr(755,root,root) %{dstdir}/bin/javap | |
639 | %attr(755,root,root) %{dstdir}/bin/jconsole | |
640 | %attr(755,root,root) %{dstdir}/bin/jcmd | |
641 | %attr(755,root,root) %{dstdir}/bin/jdb | |
d12f28e3 | 642 | %attr(755,root,root) %{dstdir}/bin/jdeps |
3899c70b JK |
643 | %attr(755,root,root) %{dstdir}/bin/jhat |
644 | %attr(755,root,root) %{dstdir}/bin/jinfo | |
645 | %attr(755,root,root) %{dstdir}/bin/jmap | |
646 | %attr(755,root,root) %{dstdir}/bin/jps | |
647 | %attr(755,root,root) %{dstdir}/bin/jrunscript | |
648 | %attr(755,root,root) %{dstdir}/bin/jsadebugd | |
649 | %attr(755,root,root) %{dstdir}/bin/jstack | |
650 | %attr(755,root,root) %{dstdir}/bin/jstat | |
651 | %attr(755,root,root) %{dstdir}/bin/jstatd | |
652 | %attr(755,root,root) %{dstdir}/bin/native2ascii | |
653 | %attr(755,root,root) %{dstdir}/bin/rmic | |
654 | %attr(755,root,root) %{dstdir}/bin/schemagen | |
655 | %attr(755,root,root) %{dstdir}/bin/serialver | |
656 | %attr(755,root,root) %{dstdir}/bin/wsgen | |
657 | %attr(755,root,root) %{dstdir}/bin/wsimport | |
658 | %attr(755,root,root) %{dstdir}/bin/xjc | |
659 | %{dstdir}/include | |
660 | %dir %{dstdir}/lib | |
661 | %{dstdir}/lib/ct.sym | |
662 | %{dstdir}/lib/dt.jar | |
663 | %{dstdir}/lib/ir.idl | |
664 | %{dstdir}/lib/jconsole.jar | |
665 | %attr(755,root,root) %{dstdir}/lib/jexec | |
666 | %{dstdir}/lib/orb.idl | |
667 | %ifnarch x32 | |
668 | %{dstdir}/lib/sa-jdi.jar | |
669 | %endif | |
670 | %{dstdir}/lib/tools.jar | |
671 | %dir %{dstdir}/lib/%{jre_arch} | |
672 | %dir %{dstdir}/lib/%{jre_arch}/jli | |
673 | %attr(755,root,root) %{dstdir}/lib/%{jre_arch}/jli/*.so | |
3899c70b JK |
674 | |
675 | %files jre | |
676 | %defattr(644,root,root,755) | |
677 | %attr(755,root,root) %{_bindir}/java | |
d12f28e3 | 678 | %attr(755,root,root) %{_bindir}/jjs |
3899c70b JK |
679 | %attr(755,root,root) %{_bindir}/keytool |
680 | %attr(755,root,root) %{_bindir}/orbd | |
681 | %attr(755,root,root) %{_bindir}/pack200 | |
682 | %attr(755,root,root) %{_bindir}/rmid | |
683 | %attr(755,root,root) %{_bindir}/rmiregistry | |
684 | %attr(755,root,root) %{_bindir}/servertool | |
685 | %attr(755,root,root) %{_bindir}/tnameserv | |
686 | %attr(755,root,root) %{_bindir}/unpack200 | |
687 | %{_mandir}/man1/java.1* | |
d12f28e3 | 688 | %{_mandir}/man1/jjs.1* |
3899c70b JK |
689 | %{_mandir}/man1/keytool.1* |
690 | %{_mandir}/man1/orbd.1* | |
691 | %{_mandir}/man1/pack200.1* | |
692 | %{_mandir}/man1/rmid.1* | |
693 | %{_mandir}/man1/rmiregistry.1* | |
694 | %{_mandir}/man1/servertool.1* | |
695 | %{_mandir}/man1/tnameserv.1* | |
696 | %{_mandir}/man1/unpack200.1* | |
697 | %lang(ja) %{_mandir}/ja/man1/java.1* | |
d12f28e3 | 698 | %lang(ja) %{_mandir}/ja/man1/jjs.1* |
3899c70b JK |
699 | %lang(ja) %{_mandir}/ja/man1/keytool.1* |
700 | %lang(ja) %{_mandir}/ja/man1/orbd.1* | |
701 | %lang(ja) %{_mandir}/ja/man1/pack200.1* | |
702 | %lang(ja) %{_mandir}/ja/man1/rmid.1* | |
703 | %lang(ja) %{_mandir}/ja/man1/rmiregistry.1* | |
704 | %lang(ja) %{_mandir}/ja/man1/servertool.1* | |
705 | %lang(ja) %{_mandir}/ja/man1/tnameserv.1* | |
706 | %lang(ja) %{_mandir}/ja/man1/unpack200.1* | |
707 | ||
708 | %files jre-base | |
709 | %defattr(644,root,root,755) | |
710 | %doc openjdk.build/j2sdk-image/THIRD_PARTY_README | |
711 | %doc openjdk.build/j2sdk-image/ASSEMBLY_EXCEPTION | |
712 | %dir %{_sysconfdir}/%{name} | |
713 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/* | |
714 | %dir %{dstdir} | |
715 | %{dstdir}/release | |
716 | %dir %{jredir} | |
717 | %{_jvmdir}/%{name}-jre | |
718 | %dir %{jredir}/bin | |
719 | %dir %{dstdir}/bin | |
720 | %attr(755,root,root) %{jredir}/bin/java | |
721 | %attr(755,root,root) %{dstdir}/bin/java | |
d12f28e3 JK |
722 | %attr(755,root,root) %{jredir}/bin/jjs |
723 | %attr(755,root,root) %{dstdir}/bin/jjs | |
3899c70b JK |
724 | %attr(755,root,root) %{jredir}/bin/keytool |
725 | %attr(755,root,root) %{dstdir}/bin/keytool | |
726 | %attr(755,root,root) %{jredir}/bin/orbd | |
727 | %attr(755,root,root) %{dstdir}/bin/orbd | |
728 | %attr(755,root,root) %{jredir}/bin/pack200 | |
729 | %attr(755,root,root) %{dstdir}/bin/pack200 | |
730 | %attr(755,root,root) %{jredir}/bin/rmid | |
731 | %attr(755,root,root) %{dstdir}/bin/rmid | |
732 | %attr(755,root,root) %{jredir}/bin/rmiregistry | |
733 | %attr(755,root,root) %{dstdir}/bin/rmiregistry | |
734 | %attr(755,root,root) %{jredir}/bin/servertool | |
735 | %attr(755,root,root) %{dstdir}/bin/servertool | |
736 | %attr(755,root,root) %{jredir}/bin/tnameserv | |
737 | %attr(755,root,root) %{dstdir}/bin/tnameserv | |
738 | %attr(755,root,root) %{jredir}/bin/unpack200 | |
739 | %attr(755,root,root) %{dstdir}/bin/unpack200 | |
740 | %dir %{jredir}/lib | |
741 | %dir %{jredir}/lib/applet | |
742 | %{jredir}/lib/cmm | |
743 | %{jredir}/lib/ext | |
744 | %dir %{jredir}/lib/%{jre_arch} | |
745 | %ifnarch %{x8664} x32 | |
746 | %dir %{jredir}/lib/%{jre_arch}/client | |
747 | %{jredir}/lib/%{jre_arch}/client/Xusage.txt | |
748 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/client/*.so | |
749 | %endif | |
3899c70b JK |
750 | %dir %{jredir}/lib/%{jre_arch}/jli |
751 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/jli/*.so | |
d12f28e3 | 752 | %{jredir}/lib/%{jre_arch}/jli/*.diz |
3899c70b JK |
753 | %dir %{jredir}/lib/%{jre_arch}/server |
754 | %{jredir}/lib/%{jre_arch}/server/Xusage.txt | |
3899c70b | 755 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/server/*.so |
d12f28e3 | 756 | %{jredir}/lib/%{jre_arch}/server/*.diz |
3899c70b JK |
757 | %{jredir}/lib/%{jre_arch}/jvm.cfg |
758 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libattach.so | |
759 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libawt.so | |
d12f28e3 | 760 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libawt_headless.so |
3899c70b JK |
761 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libdt_socket.so |
762 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libhprof.so | |
763 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libinstrument.so | |
764 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libj2gss.so | |
3899c70b JK |
765 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libj2pcsc.so |
766 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libj2pkcs11.so | |
767 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjaas_unix.so | |
768 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjava.so | |
d12f28e3 JK |
769 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libsctp.so |
770 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libsunec.so | |
3899c70b | 771 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjava_crw_demo.so |
991454fa JK |
772 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjavajpeg.so |
773 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjavalcms.so | |
3899c70b JK |
774 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjawt.so |
775 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjdwp.so | |
776 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjsdt.so | |
777 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjsig.so | |
778 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjsound.so | |
779 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjvm.so | |
780 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libmanagement.so | |
781 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libmlib_image.so | |
782 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libnet.so | |
783 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libnio.so | |
784 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libnpt.so | |
785 | %ifnarch x32 | |
786 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libsaproc.so | |
787 | %endif | |
788 | %{?with_sunec:%attr(755,root,root) %{jredir}/lib/%{jre_arch}/libsunec.so} | |
789 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libunpack.so | |
790 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libverify.so | |
791 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libzip.so | |
d12f28e3 | 792 | %{jredir}/lib/%{jre_arch}/*.diz |
3899c70b JK |
793 | %{jredir}/lib/images |
794 | %{jredir}/lib/management | |
795 | %{jredir}/lib/security | |
3899c70b JK |
796 | %if %{with webstart} |
797 | %{jredir}/lib/about.jar | |
798 | %{jredir}/lib/about.jnlp | |
799 | %endif | |
800 | %{jredir}/lib/calendars.properties | |
801 | %{jredir}/lib/charsets.jar | |
802 | %{jredir}/lib/classlist | |
803 | %{jredir}/lib/content-types.properties | |
804 | %{jredir}/lib/currency.data | |
805 | %{jredir}/lib/flavormap.properties | |
d12f28e3 | 806 | %{jredir}/lib/hijrah-config-umalqura.properties |
3899c70b JK |
807 | %{jredir}/lib/jce.jar |
808 | %attr(755, root, root) %{jredir}/lib/jexec | |
809 | %{jredir}/lib/jsse.jar | |
810 | %{jredir}/lib/jvm.hprof.txt | |
811 | %{jredir}/lib/logging.properties | |
812 | %{jredir}/lib/management-agent.jar | |
813 | %{jredir}/lib/meta-index | |
814 | %{jredir}/lib/net.properties | |
815 | %{jredir}/lib/psfont.properties.ja | |
816 | %{jredir}/lib/psfontj2d.properties | |
817 | %{jredir}/lib/resources.jar | |
3899c70b JK |
818 | %{jredir}/lib/rt.jar |
819 | %{jredir}/lib/sound.properties | |
d12f28e3 JK |
820 | %{jredir}/lib/tzdb.dat |
821 | %{jredir}/lib/*.diz | |
3899c70b JK |
822 | %{jvmjardir} |
823 | ||
824 | %files jre-X11 | |
825 | %defattr(644,root,root,755) | |
826 | %attr(755,root,root) %{_bindir}/policytool | |
827 | %{_mandir}/man1/policytool.1* | |
828 | %lang(ja) %{_mandir}/ja/man1/policytool.1* | |
829 | ||
830 | %files jre-base-X11 | |
831 | %defattr(644,root,root,755) | |
832 | %attr(755,root,root) %{jredir}/bin/policytool | |
833 | %attr(755,root,root) %{dstdir}/bin/policytool | |
3899c70b | 834 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libsplashscreen.so |
d12f28e3 JK |
835 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libawt_xawt.so |
836 | %attr(755,root,root) %{dstdir}/lib/%{jre_arch}/libjawt.so | |
3899c70b JK |
837 | |
838 | %files jre-base-alsa | |
839 | %defattr(644,root,root,755) | |
840 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjsoundalsa.so | |
841 | ||
842 | %files jre-base-freetype | |
843 | %defattr(644,root,root,755) | |
844 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libfontmanager.so | |
845 | ||
d12f28e3 | 846 | %if 0 |
3899c70b JK |
847 | %files jre-base-gtk |
848 | %defattr(644,root,root,755) | |
849 | %attr(755,root,root) %{jredir}/lib/%{jre_arch}/libjavagtk.so | |
d12f28e3 | 850 | %endif |
3899c70b JK |
851 | |
852 | %files jar | |
853 | %defattr(644,root,root,755) | |
854 | %attr(755,root,root) %{_bindir}/jar | |
855 | %{_mandir}/man1/jar.1* | |
856 | %lang(ja) %{_mandir}/ja/man1/jar.1* | |
857 | ||
858 | %files appletviewer | |
859 | %defattr(644,root,root,755) | |
860 | %attr(755,root,root) %{_bindir}/appletviewer | |
861 | %{_mandir}/man1/appletviewer.1* | |
862 | %lang(ja) %{_mandir}/ja/man1/appletviewer.1* | |
863 | ||
864 | %files jdk-sources | |
865 | %defattr(644,root,root,755) | |
866 | %{_javasrcdir}/%{name}-jdk.zip | |
867 | ||
868 | %files examples | |
869 | %defattr(644,root,root,755) | |
870 | %{_examplesdir}/%{name}-%{version} |