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