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