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