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