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