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