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