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