- unconditional noarch subpackages
[packages/openjdk9.git] / openjdk9.spec
CommitLineData
2692550d
JP
1%bcond_with bootstrap # build a bootstrap version, using icedtea6
2%bcond_without cacerts # don't include the default CA certificates
3899c70b
JK
3
4%if %{with bootstrap}
2692550d 5%define use_jdk icedtea8
3899c70b 6%else
2692550d
JP
7%define use_jdk openjdk9
8%endif
9
10%ifarch %{x8664}
11%define with_aot 1
3899c70b
JK
12%endif
13
74861363
JP
14%ifarch x32
15%define with_zero 1
16%endif
17
3899c70b 18# class data version seen with file(1) that this jvm is able to load
2692550d
JP
19%define _classdataversion 53.0
20
21%define ver_u 9.0.4
22%define ver_b 12
23
d8978afb 24# JDK/JRE version, as returned with `java -version`, '_' replaced with '.'
2692550d 25%define _jdkversion %{ver_u}
3899c70b 26
83cf7429 27Summary: Open-source implementation of the Java Platform, Standard Edition
2692550d
JP
28Summary(pl.UTF-8): Wolnoźródłowa implementacja Java 9 SE
29Name: openjdk9
30Version: %{ver_u}.%{ver_b}
31Release: 1
3899c70b
JK
32License: GPL v2
33Group: Development/Languages/Java
2692550d
JP
34Source0: https://hg.openjdk.java.net/jdk-updates/jdk9u/archive/jdk-%{ver_u}+%{ver_b}.tar.bz2?/%{name}-%{version}.tar.bz2
35# Source0-md5: f71280d31603efeffdadea56fab8436e
36Source1: https://hg.openjdk.java.net/jdk-updates/jdk9u/corba/archive/jdk-%{ver_u}+%{ver_b}.tar.bz2?/%{name}-corba-%{version}.tar.bz2
37# Source1-md5: 2bc0a490f71eaa17fcae9387b354ccfd
38Source2: https://hg.openjdk.java.net/jdk-updates/jdk9u/hotspot/archive/jdk-%{ver_u}+%{ver_b}.tar.bz2?/%{name}-hotspot-%{version}.tar.bz2
39# Source2-md5: 37ff0144a673417c793d282d12aba6a1
40Source3: https://hg.openjdk.java.net/jdk-updates/jdk9u/jaxp/archive/jdk-%{ver_u}+%{ver_b}.tar.bz2?/%{name}-jaxp-%{version}.tar.bz2
41# Source3-md5: c6c4ee8ef80f10fc4fbc9d151436c89a
42Source4: https://hg.openjdk.java.net/jdk-updates/jdk9u/jaxws/archive/jdk-%{ver_u}+%{ver_b}.tar.bz2?/%{name}-jaxws-%{version}.tar.bz2
43# Source4-md5: 3cf0375c3bba7d028c8408e41bbbb352
44Source5: https://hg.openjdk.java.net/jdk-updates/jdk9u/jdk/archive/jdk-%{ver_u}+%{ver_b}.tar.bz2?/%{name}-jdk-%{version}.tar.bz2
45# Source5-md5: 74d33ad39f5b67596c5269585811cfab
46Source6: https://hg.openjdk.java.net/jdk-updates/jdk9u/langtools/archive/jdk-%{ver_u}+%{ver_b}.tar.bz2?/%{name}-langtools-%{version}.tar.bz2
47# Source6-md5: 95d7011a050602218b5400c632339e2c
48Source7: https://hg.openjdk.java.net/jdk-updates/jdk9u/nashorn/archive/jdk-%{ver_u}+%{ver_b}.tar.bz2?/%{name}-nashorn-%{version}.tar.bz2
49# Source7-md5: 5fbaceceb82449806263ba99188b7139
3899c70b 50Source10: make-cacerts.sh
2692550d
JP
51Patch0: libpath.patch
52Patch1: make-4.3.patch
53Patch2: x32.patch
54Patch3: aarch64.patch
b2950e84 55URL: http://openjdk.java.net/
9910e19d 56BuildRequires: /usr/bin/jar
b2950e84
JK
57BuildRequires: alsa-lib-devel
58BuildRequires: ant
59BuildRequires: autoconf
60BuildRequires: bash
61%{?with_cacerts:BuildRequires: ca-certificates-update}
62BuildRequires: cups-devel
2692550d 63BuildRequires: elfutils-devel
b2950e84
JK
64BuildRequires: freetype-devel >= 2.3
65BuildRequires: gawk
665079f5 66BuildRequires: giflib-devel >= 5.1
b2950e84 67BuildRequires: glibc-misc
83cf7429 68%{?buildrequires_jdk}
991454fa 69BuildRequires: lcms2-devel
3899c70b 70BuildRequires: libjpeg-devel
991454fa 71BuildRequires: libpng-devel
3899c70b 72BuildRequires: lsb-release
991454fa 73BuildRequires: pcsc-lite-devel
3899c70b
JK
74BuildRequires: pkgconfig
75BuildRequires: rpmbuild(macros) >= 1.557
3899c70b
JK
76BuildRequires: unzip
77BuildRequires: util-linux
78BuildRequires: xorg-lib-libX11-devel
79BuildRequires: xorg-lib-libXinerama-devel
80BuildRequires: xorg-lib-libXp-devel
81BuildRequires: xorg-lib-libXrender-devel
82BuildRequires: xorg-lib-libXt-devel
83BuildRequires: xorg-lib-libXtst-devel
84BuildRequires: xorg-proto-printproto-devel
85BuildRequires: xorg-proto-xproto-devel
86BuildRequires: zip
87BuildRequires: zlib-devel
88Requires: %{name}-appletviewer = %{version}-%{release}
89Requires: %{name}-jdk = %{version}-%{release}
90Suggests: %{name}-jre-X11
91Suggests: icedtea-web
92Obsoletes: icedtea6
93Obsoletes: icedtea7
3899c70b
JK
94Obsoletes: java-gcj-compat
95Obsoletes: java-gcj-compat-devel
96Obsoletes: java-sun
97Obsoletes: java-sun-demos
98Obsoletes: java-sun-jre
9910e19d 99Obsoletes: java-sun-jre-X11
3899c70b
JK
100Obsoletes: java-sun-jre-alsa
101Obsoletes: java-sun-jre-jdbc
3899c70b 102Obsoletes: java-sun-tools
9910e19d
JK
103Obsoletes: java5-sun
104Obsoletes: java5-sun-jre
105Obsoletes: java5-sun-jre-X11
106Obsoletes: java5-sun-jre-jdbc
107Obsoletes: java5-sun-tools
3899c70b
JK
108Obsoletes: oracle-java7
109Obsoletes: oracle-java7-jre
9910e19d 110Obsoletes: oracle-java7-jre-X11
3899c70b
JK
111Obsoletes: oracle-java7-jre-alsa
112Obsoletes: oracle-java7-jre-jdbc
3899c70b
JK
113Obsoletes: oracle-java7-tools
114BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
115
116%define dstreldir %{name}-%{version}
117%define dstdir %{_jvmdir}/%{dstreldir}
3899c70b
JK
118%define jvmjardir %{_jvmjardir}/%{name}-%{version}
119
3899c70b
JK
120# to break artificial subpackage dependency loops
121%define _noautoreq 'libmawt.so' java\\\\(ClassDataVersion\\\\)
122
2692550d
JP
123# openjdk build system handles _FORTIFY_SOURCE internally
124%undefine _fortify_cflags
125
3899c70b
JK
126%description
127Open-source implementation of the Java Platform, Standard Edition.
128
129This is a meta-package which provides, by its dependencies, all the
130OpenJDK components including the OpenJDK, Java 8 developement kit and
131runtime environment.
132
133%description -l pl.UTF-8
134Wolnoźródłowa implementacja Java 8 SE.
135
136To jest meta-pakiet, który, za pośrednictwem zależności, dostarcza
137wszystkie komponenty OpenJDK, w tym środowisko programistyczne
138(OpenJDK) i uruchomieniowe (JRE).
139
140%package jdk
141Summary: OpenJDK - software development kit
142Summary(pl.UTF-8): OpenJDK - środowisko programistyczne
143Group: Development/Languages/Java
144Requires: %{name}-jar = %{version}-%{release}
145Requires: %{name}-jdk-base = %{version}-%{release}
146Requires: %{name}-jre = %{version}-%{release}
d8978afb
JK
147Provides: j2sdk = %{_jdkversion}
148Provides: jdk = %{_jdkversion}
3899c70b
JK
149Obsoletes: blackdown-java-sdk
150Obsoletes: ibm-java
151Obsoletes: icedtea6-jdk
152Obsoletes: icedtea7-jdk
153Obsoletes: java-blackdown
154Obsoletes: java-gcj-compat-devel
155Obsoletes: java-sun
156Obsoletes: java5-sun
3899c70b
JK
157Obsoletes: jdk
158Obsoletes: kaffe
9910e19d 159Obsoletes: oracle-java7
3899c70b
JK
160
161%description jdk
162This package symlinks OpenJDK development tools provided by
163%{name}-jdk-base to system-wide directories like %{_bindir}, making
164OpenJDK the default JDK.
165
166%description jdk -l pl.UTF-8
167Ten pakiet tworzy symboliczne dowiązania do narzędzi programistycznych
168OpenJDK, dostarczanych przez pakiet %{name}-jdk-base, w standardowych
169systemowych ścieżkach takich jak %{_bindir}, sprawiając tym samym, że
170OpenJDK staje się domyślnym JDK w systemie.
171
172%package jdk-base
173Summary: OpenJDK - software development kit
174Summary(pl.UTF-8): Kod OpenJDK - środowisko programistyczne
175Group: Development/Languages/Java
176Requires: %{name}-jre-base = %{version}-%{release}
2692550d 177Requires: jpackage-utils >= 0:1.7.5-8
3899c70b
JK
178Provides: jdk(%{name})
179
180%description jdk-base
181OpenJDK development tools built using free software only.
182
183%description jdk-base -l pl.UTF-8
184OpenJDK skompilowane wyłącznie przy użyciu wolnego oprogramowania.
185
186%package jre
187Summary: OpenJDK - runtime environment
188Summary(pl.UTF-8): OpenJDK - środowisko uruchomieniowe
189Group: Development/Languages/Java
190Requires: %{name}-jre-base = %{version}-%{release}
191Requires: nss >= 1:3.13.4
192# Require zoneinfo data provided by java-tzdata subpackage.
193Requires: java-tzdata
194Provides: java
195Provides: java(ClassDataVersion) = %{_classdataversion}
196Provides: java(jaas) = %{version}
197Provides: java(jaf) = 1.1.1
198Provides: java(jaxp) = 1.3
199Provides: java(jaxp_parser_impl)
200Provides: java(jce) = %{version}
201Provides: java(jdbc-stdext) = %{version}
202Provides: java(jdbc-stdext) = 3.0
203Provides: java(jmx) = 1.4
204Provides: java(jndi) = %{version}
205Provides: java(jsse) = %{version}
206Provides: java1.4
d8978afb 207Provides: jre = %{_jdkversion}
3899c70b
JK
208Obsoletes: icedtea6-jre
209Obsoletes: icedtea7-jre
210Obsoletes: java(jaas)
211Obsoletes: java(jaf)
212Obsoletes: java(jaxp)
213Obsoletes: java(jce)
214Obsoletes: java(jdbc-stdext)
215Obsoletes: java(jdbc-stdext)
216Obsoletes: java(jmx)
217Obsoletes: java(jndi)
218Obsoletes: java(jsse)
219Obsoletes: java-gcj-compat
220Obsoletes: java-sun-jre
221Obsoletes: java5-sun-jre
b2950e84 222Obsoletes: jre
9910e19d 223Obsoletes: oracle-java7-jre
3899c70b
JK
224
225%description jre
226This package symlinks OpenJDK runtime environment tools provided by
227%{name}-jre-base to system-wide directories like %{_bindir}, making
228OpenJDK the default JRE.
229
230%description jre -l pl.UTF-8
231Ten pakiet tworzy symboliczne dowiązania do środowiska
232uruchomieniowego OpenJDK, dostarczanych przez pakiet %{name}-jre-base,
233w standardowych systemowych ścieżkach takich jak %{_bindir},
234sprawiając tym samym, że OpenJDK staje się domyślnym JRE w systemie.
235
236%package jre-X11
237Summary: OpenJDK - runtime environment - X11 support
238Summary(pl.UTF-8): OpenJDK - środowisko uruchomieniowe - obsługa X11
239Group: Development/Languages/Java
240Requires: %{name}-jre = %{version}-%{release}
241Requires: %{name}-jre-base-X11 = %{version}-%{release}
d8978afb 242Provides: jre-X11 = %{_jdkversion}
3899c70b
JK
243Obsoletes: icedtea6-jre-X11
244Obsoletes: icedtea7-jre-X11
245Obsoletes: java-sun-jre-X11
246Obsoletes: oracle-java7-jre-X11
247
248%description jre-X11
249X11 support for OpenJDK runtime environment built using free software
250only.
251
252%description jre-X11 -l pl.UTF-8
253Biblioteki X11 dla środowiska OpenJDK zbudowany wyłocznie przy uzyciu
254wolnego oprogramowania.
255
256%package jre-base
257Summary: OpenJDK - runtime environment
258Summary(pl.UTF-8): OpenJDK - środowisko uruchomieniowe
259Group: Development/Languages/Java
2692550d 260Requires: jpackage-utils >= 0:1.7.5-8
3899c70b
JK
261Provides: jre(%{name})
262
263%description jre-base
264OpenJDK runtime environment built using free software only.
265
266%description jre-base -l pl.UTF-8
267Środowisko uruchomieniowe OpenJDK zbudowany wyłącznie przy użyciu
268wolnego oprogramowania.
269
270%package jre-base-X11
271Summary: OpenJDK - runtime environment - X11 support
272Summary(pl.UTF-8): OpenJDK - środowisko uruchomieniowe - obsługa X11
273Group: Development/Languages/Java
274Requires: %{name}-jre-base = %{version}-%{release}
275Requires: %{name}-jre-base-freetype = %{version}-%{release}
276
277%description jre-base-X11
278X11 support for OpenJDK runtime environment built using free software
279only.
280
281%description jre-base-X11 -l pl.UTF-8
282Biblioteki X11 dla środowiska OpenJDK zbudowany wyłocznie przy uzyciu
283wolnego oprogramowania.
284
285%package jre-base-alsa
286Summary: OpenJDK - runtime environment - ALSA support
287Summary(pl.UTF-8): OpenJDK - środowisko uruchomieniowe - obsługa ALSA
288Group: Development/Languages/Java
289Requires: %{name}-jre-base = %{version}-%{release}
290
291%description jre-base-alsa
292ALSA sound support for OpenJDK runtime environment build using free
293software only.
294
295%description jre-base-alsa -l pl.UTF-8
296Biblioteki ALSA rozszerzające środowisko OpenJDK o obsługę dźwięku
297zbudowane przy uzyciu wyłącznie wolnego oprogramowania.
298
299%package jre-base-freetype
300Summary: OpenJDK - runtime environment - font support
301Summary(pl.UTF-8): OpenJDK - środowisko uruchomieniowe - obsługa fontów
302Group: Development/Languages/Java
303Requires: %{name}-jre-base = %{version}-%{release}
304
305%description jre-base-freetype
306Font handling library for OpenJDK runtime environment built using free
307software only.
308
309%description jre-base-freetype -l pl.UTF-8
310Biblioteki obsługi czcionek dla OpenJDK zbudowane wyłącznie przy
311użyciu wolnego oprogramowania.
312
313%package jre-base-gtk
314Summary: OpenJDK - runtime environment - GTK support
315Summary(pl.UTF-8): OpenJDK - środowisko uruchomieniowe - obsługa GTK
316Group: Development/Languages/Java
317Requires: %{name}-jre-base = %{version}-%{release}
318
319%description jre-base-gtk
320GTK support for OpenJDK runtime environment.
321
322%description jre-base-gtk -l pl.UTF-8
323Biblioteki GTK dla OpenJDK.
324
325%package jar
326Summary: OpenJDK - JAR tool
327Summary(pl.UTF-8): OpenJDK - narzędzie JAR
328Group: Development/Languages/Java
329Requires: %{name}-jdk-base = %{version}-%{release}
330Provides: jar
331Obsoletes: fastjar
332Obsoletes: icedtea6-jar
333Obsoletes: icedtea7-jar
334Obsoletes: jar
335
336%description jar
337JAR tool from OpenJDK built using free software only.
338
339JAR is an archiver used to merge Java classes into a single library.
340
341%description jar -l pl.UTF-8
342Narzędzie jar z OpenJDK zbudowane przy uzyciu wyłącznie wolnego
343oprogramowania.
344
345JAR jest narzędziem pozwalającym wykonywać podstawowe operacje na
346archiwach javy .jar takie jak na przykład tworzenie lub rozpakowywanie
347archiwów.
348
349%package appletviewer
350Summary: OpenJDK - appletviewer tool
351Summary(pl.UTF-8): OpenJDK - narzędzie appletviewer
352Group: Development/Languages/Java
353Requires: %{name}-jdk-base = %{version}-%{release}
354Requires: %{name}-jre-X11 = %{version}-%{release}
355Obsoletes: icedtea6-appletviewer
356Obsoletes: icedtea7-appletviewer
357Obsoletes: java-sun-appletviewer
358Obsoletes: oracle-java7-appletviewer
359
360%description appletviewer
361Appletviewer from OpenJDK build using free software only.
362
363%description appletviewer -l pl.UTF-8
364Appletviewer pozwala uruchamiać aplety javy niezależnie od
365przeglądarki www. Ten appletviewer pochodzi z zestawu narzędzi OpenJDK
366i został zbudowany wyłącznie przy użyciu wolnego oprogramowania.
367
368%package jdk-sources
369Summary: OpenJDK - sources
370Summary(pl.UTF-8): OpenJDK - kod źródłowy
371Group: Documentation
3899c70b 372BuildArch: noarch
3899c70b
JK
373
374%description jdk-sources
375Source code for the OpenJDK development kit and Java standard library.
376
377%description jdk-sources -l pl.UTF-8
378Kod źródłowy narzędzi programistycznych OpenJDK oraz standardowej
379biblioteki Javy.
380
381%package examples
382Summary: OpenJDK - examples
383Summary(pl.UTF-8): OpenJDK - przykłady
384Group: Documentation
3899c70b 385BuildArch: noarch
3899c70b
JK
386
387%description examples
388Code examples for OpenJDK.
389
390%description examples -l pl.UTF-8
391Przykłady dla OpenJDK.
392
393%prep
2692550d 394%setup -qn jdk9u-jdk-%{ver_u}+%{ver_b} -a1 -a2 -a3 -a4 -a5 -a6 -a7
3899c70b 395
2692550d
JP
396for d in *-jdk-%{ver_u}+%{ver_b}* ; do
397 mv "$d" "${d%%-jdk-%{ver_u}+%{ver_b}}"
3899c70b
JK
398done
399
5b4e4f20
JK
400%patch0 -p1
401%patch1 -p1
d12f28e3 402%patch2 -p1
2692550d 403%ifarch aarch64
ce94f011 404%patch3 -p1
2692550d 405%endif
5b4e4f20 406
3899c70b
JK
407%build
408# Make sure we have /proc mounted - otherwise idlc will fail later.
409if [ ! -f /proc/self/stat ]; then
410 echo "You need to have /proc mounted in order to build this package!"
411 exit 1
412fi
413
991454fa 414cd common/autoconf
bd96d31d 415rm generated-configure.sh
991454fa
JK
416%{__autoconf} -o generated-configure.sh
417cd ../..
418
3899c70b 419mkdir -p build-bin
b3255d96 420
b3255d96
JK
421# unset CLASSPATH to be safe, gnustep puts garbage there, which openjdk hates
422unset CLASSPATH
423
d12f28e3 424export SHELL=/bin/bash
3899c70b 425
5b4e4f20
JK
426chmod a+x configure
427
2dab85d0 428# disable-debug-symbols so openjdk debuginfo handling won't conflict with ours
5b4e4f20 429%configure \
74861363 430 %{?with_zero:--with-jvm-variants=zero} \
2692550d
JP
431 --with-boot-jdk="%{java_home}" \
432 --with-extra-cflags="%{rpmcppflags} %{rpmcflags} -fcommon -fno-tree-dse" \
433 --with-extra-cxxflags="%{rpmcppflags} %{rpmcxxflags} -fcommon -fno-tree-dse" \
5b4e4f20 434 --with-extra-ldflags="%{rpmldflags}" \
2692550d 435 --with-native-debug-symbols=none \
c0e7c813 436 --disable-full-docs \
2692550d
JP
437 --disable-javac-server \
438 --disable-hotspot-gtest \
439 --disable-warnings-as-errors \
440 --with-jobs="%{__jobs}" \
665079f5 441 --with-giflib=system \
991454fa
JK
442 --with-libjpeg=system \
443 --with-libpng=system \
444 --with-lcms=system \
2692550d
JP
445 --with-zlib=system \
446 --with-version-pre="" \
447 --with-version-opt="" \
448 --with-version-build="%{release}"
5b4e4f20
JK
449
450specdir="$(dirname build/*-release/spec.gmk)"
451cat > $specdir/custom-spec.gmk <<EOF
2dab85d0 452# OpenJDK build system depends on bash
5b4e4f20
JK
453SHELL=/bin/bash
454EOF
2dab85d0 455[ -L tmp-bin ] || ln -s "$specdir/jdk/bin" tmp-bin
5b4e4f20 456
2692550d 457%{__make} -j1 all \
2dab85d0
JK
458 LOG=debug \
459 # these are normally set when --disable-debug-symbols is not used \
460 LIBMANAGEMENT_OPTIMIZATION=LOW \
461 LIBHPROF_OPTIMIZATION=LOW \
462 LIBVERIFY_OPTIMIZATION=LOW
3899c70b 463
052665c9
JK
464# smoke test
465tmp-bin/java -version
466
d12f28e3 467export PATH="$(pwd)/build-bin:$PATH"
3899c70b
JK
468%{?with_cacerts:%{__sh} %{SOURCE10}}
469
470%install
471rm -rf $RPM_BUILD_ROOT
472install -d $RPM_BUILD_ROOT{%{_bindir},%{dstdir},%{_mandir}/ja} \
473 $RPM_BUILD_ROOT{%{jvmjardir},%{_examplesdir}/%{name}-%{version},%{_javasrcdir}} \
474 $RPM_BUILD_ROOT%{_sysconfdir}/%{name}
475
476# install the 'JDK image', it contains the JRE too
2692550d
JP
477cp -a build/*-release/images/jdk/* $RPM_BUILD_ROOT%{dstdir}
478
479find $RPM_BUILD_ROOT%{dstdir} -name '*.diz' -delete
3899c70b
JK
480
481# convenience symlinks without version number
482ln -s %{dstreldir} $RPM_BUILD_ROOT%{_jvmdir}/%{name}
2692550d 483ln -s %{dstreldir} $RPM_BUILD_ROOT%{_jvmdir}/%{name}-jre
3899c70b
JK
484
485ln -s %{dstreldir} $RPM_BUILD_ROOT%{_jvmdir}/java
486
9910e19d 487# move JDK sources and demo to %{_prefix}/src
3899c70b 488mv $RPM_BUILD_ROOT%{dstdir}/demo $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
2692550d 489mv $RPM_BUILD_ROOT%{dstdir}/lib/src.zip $RPM_BUILD_ROOT%{_javasrcdir}/%{name}-jdk.zip
3899c70b
JK
490
491# move manual pages to its place
492mv $RPM_BUILD_ROOT%{dstdir}/man/ja_JP.UTF-8/man1 $RPM_BUILD_ROOT%{_mandir}/ja/man1
493rmdir $RPM_BUILD_ROOT%{dstdir}/man/ja_JP.UTF-8
494rm $RPM_BUILD_ROOT%{dstdir}/man/ja
495mv $RPM_BUILD_ROOT%{dstdir}/man/man1 $RPM_BUILD_ROOT%{_mandir}/man1
496rmdir $RPM_BUILD_ROOT%{dstdir}/man
497
498# replace duplicates with symlinks, link to %{_bindir}
499for path in $RPM_BUILD_ROOT%{dstdir}/bin/*; do
500 filename=$(basename $path)
2692550d 501 ln -sf "%{dstdir}/bin/$filename" $RPM_BUILD_ROOT%{_bindir}
3899c70b 502done
3899c70b 503
9910e19d 504# keep configuration in %{_sysconfdir} (not all *.properties go there)
2692550d 505for config in management security \
3899c70b
JK
506 logging.properties net.properties sound.properties; do
507
2692550d
JP
508 mv $RPM_BUILD_ROOT%{dstdir}/conf/$config $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/$config
509 ln -s %{_sysconfdir}/%{name}/$config $RPM_BUILD_ROOT%{dstdir}/conf/$config
3899c70b
JK
510done
511
3899c70b
JK
512%{?with_cacerts:install cacerts $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/security}
513
514%clean
515rm -rf $RPM_BUILD_ROOT
516
517%files
518%defattr(644,root,root,755)
3899c70b
JK
519
520%files jdk
521%defattr(644,root,root,755)
2692550d 522%{?with_aot:%attr(755,root,root) %{_bindir}/jaotc}
3899c70b 523%attr(755,root,root) %{_bindir}/jarsigner
3899c70b
JK
524%attr(755,root,root) %{_bindir}/javac
525%attr(755,root,root) %{_bindir}/javadoc
526%attr(755,root,root) %{_bindir}/javah
527%attr(755,root,root) %{_bindir}/javap
528%attr(755,root,root) %{_bindir}/jcmd
529%attr(755,root,root) %{_bindir}/jconsole
530%attr(755,root,root) %{_bindir}/jdb
2692550d 531%attr(755,root,root) %{_bindir}/jdeprscan
d12f28e3 532%attr(755,root,root) %{_bindir}/jdeps
74861363 533%{!?with_zero:%attr(755,root,root) %{_bindir}/jhsdb}
2692550d 534%attr(755,root,root) %{_bindir}/jimage
3899c70b 535%attr(755,root,root) %{_bindir}/jinfo
2692550d 536%attr(755,root,root) %{_bindir}/jlink
3899c70b 537%attr(755,root,root) %{_bindir}/jmap
2692550d 538%attr(755,root,root) %{_bindir}/jmod
3899c70b 539%attr(755,root,root) %{_bindir}/jps
2692550d 540%attr(755,root,root) %{_bindir}/jshell
3899c70b
JK
541%attr(755,root,root) %{_bindir}/jstack
542%attr(755,root,root) %{_bindir}/jstat
543%attr(755,root,root) %{_bindir}/jstatd
3899c70b
JK
544%attr(755,root,root) %{_bindir}/rmic
545%attr(755,root,root) %{_bindir}/schemagen
546%attr(755,root,root) %{_bindir}/serialver
547%attr(755,root,root) %{_bindir}/wsgen
548%attr(755,root,root) %{_bindir}/wsimport
549%attr(755,root,root) %{_bindir}/xjc
550%{_jvmdir}/java
3899c70b
JK
551%{_mandir}/man1/jarsigner.1*
552%{_mandir}/man1/javac.1*
553%{_mandir}/man1/javadoc.1*
554%{_mandir}/man1/javah.1*
555%{_mandir}/man1/javap.1*
556%{_mandir}/man1/jcmd.1*
557%{_mandir}/man1/jconsole.1*
558%{_mandir}/man1/jdb.1*
d12f28e3 559%{_mandir}/man1/jdeps.1*
3899c70b
JK
560%{_mandir}/man1/jinfo.1*
561%{_mandir}/man1/jmap.1*
562%{_mandir}/man1/jps.1*
3899c70b
JK
563%{_mandir}/man1/jstack.1*
564%{_mandir}/man1/jstat.1*
565%{_mandir}/man1/jstatd.1*
3899c70b
JK
566%{_mandir}/man1/schemagen.1*
567%{_mandir}/man1/serialver.1*
568%{_mandir}/man1/rmic.1*
569%{_mandir}/man1/wsgen.1*
570%{_mandir}/man1/wsimport.1*
571%{_mandir}/man1/xjc.1*
3899c70b
JK
572%lang(ja) %{_mandir}/ja/man1/jarsigner.1*
573%lang(ja) %{_mandir}/ja/man1/javac.1*
574%lang(ja) %{_mandir}/ja/man1/javadoc.1*
575%lang(ja) %{_mandir}/ja/man1/javah.1*
576%lang(ja) %{_mandir}/ja/man1/javap.1*
577%lang(ja) %{_mandir}/ja/man1/jcmd.1*
578%lang(ja) %{_mandir}/ja/man1/jconsole.1*
579%lang(ja) %{_mandir}/ja/man1/jdb.1*
d12f28e3 580%lang(ja) %{_mandir}/ja/man1/jdeps.1*
3899c70b
JK
581%lang(ja) %{_mandir}/ja/man1/jinfo.1*
582%lang(ja) %{_mandir}/ja/man1/jmap.1*
583%lang(ja) %{_mandir}/ja/man1/jps.1*
3899c70b
JK
584%lang(ja) %{_mandir}/ja/man1/jstack.1*
585%lang(ja) %{_mandir}/ja/man1/jstat.1*
586%lang(ja) %{_mandir}/ja/man1/jstatd.1*
3899c70b
JK
587%lang(ja) %{_mandir}/ja/man1/schemagen.1*
588%lang(ja) %{_mandir}/ja/man1/serialver.1*
589%lang(ja) %{_mandir}/ja/man1/rmic.1*
590%lang(ja) %{_mandir}/ja/man1/wsgen.1*
591%lang(ja) %{_mandir}/ja/man1/wsimport.1*
592%lang(ja) %{_mandir}/ja/man1/xjc.1*
593
594%files jdk-base
595%defattr(644,root,root,755)
3899c70b
JK
596%dir %{dstdir}
597%{_jvmdir}/%{name}
598%attr(755,root,root) %{dstdir}/bin/appletviewer
2692550d 599%{?with_aot:%attr(755,root,root) %{dstdir}/bin/jaotc}
3899c70b
JK
600%attr(755,root,root) %{dstdir}/bin/jar
601%attr(755,root,root) %{dstdir}/bin/jarsigner
3899c70b
JK
602%attr(755,root,root) %{dstdir}/bin/javac
603%attr(755,root,root) %{dstdir}/bin/javadoc
604%attr(755,root,root) %{dstdir}/bin/javah
605%attr(755,root,root) %{dstdir}/bin/javap
606%attr(755,root,root) %{dstdir}/bin/jconsole
607%attr(755,root,root) %{dstdir}/bin/jcmd
608%attr(755,root,root) %{dstdir}/bin/jdb
2692550d 609%attr(755,root,root) %{dstdir}/bin/jdeprscan
d12f28e3 610%attr(755,root,root) %{dstdir}/bin/jdeps
74861363 611%{!?with_zero:%attr(755,root,root) %{dstdir}/bin/jhsdb}
2692550d 612%attr(755,root,root) %{dstdir}/bin/jimage
3899c70b 613%attr(755,root,root) %{dstdir}/bin/jinfo
2692550d 614%attr(755,root,root) %{dstdir}/bin/jlink
3899c70b 615%attr(755,root,root) %{dstdir}/bin/jmap
2692550d 616%attr(755,root,root) %{dstdir}/bin/jmod
3899c70b 617%attr(755,root,root) %{dstdir}/bin/jps
2692550d 618%attr(755,root,root) %{dstdir}/bin/jshell
3899c70b
JK
619%attr(755,root,root) %{dstdir}/bin/jstack
620%attr(755,root,root) %{dstdir}/bin/jstat
621%attr(755,root,root) %{dstdir}/bin/jstatd
3899c70b
JK
622%attr(755,root,root) %{dstdir}/bin/rmic
623%attr(755,root,root) %{dstdir}/bin/schemagen
624%attr(755,root,root) %{dstdir}/bin/serialver
625%attr(755,root,root) %{dstdir}/bin/wsgen
626%attr(755,root,root) %{dstdir}/bin/wsimport
627%attr(755,root,root) %{dstdir}/bin/xjc
628%{dstdir}/include
2692550d
JP
629%{dstdir}/jmods
630%{?with_aot:%attr(755,root,root) %{dstdir}/lib/libjelfshim.so}
3899c70b 631%{dstdir}/lib/ct.sym
3899c70b
JK
632
633%files jre
634%defattr(644,root,root,755)
2692550d 635%attr(755,root,root) %{_bindir}/idlj
3899c70b 636%attr(755,root,root) %{_bindir}/java
d12f28e3 637%attr(755,root,root) %{_bindir}/jjs
2692550d 638%attr(755,root,root) %{_bindir}/jrunscript
3899c70b
JK
639%attr(755,root,root) %{_bindir}/keytool
640%attr(755,root,root) %{_bindir}/orbd
641%attr(755,root,root) %{_bindir}/pack200
642%attr(755,root,root) %{_bindir}/rmid
643%attr(755,root,root) %{_bindir}/rmiregistry
644%attr(755,root,root) %{_bindir}/servertool
645%attr(755,root,root) %{_bindir}/tnameserv
646%attr(755,root,root) %{_bindir}/unpack200
2692550d 647%{_mandir}/man1/idlj.1*
3899c70b 648%{_mandir}/man1/java.1*
d12f28e3 649%{_mandir}/man1/jjs.1*
2692550d 650%{_mandir}/man1/jrunscript.1*
3899c70b
JK
651%{_mandir}/man1/keytool.1*
652%{_mandir}/man1/orbd.1*
653%{_mandir}/man1/pack200.1*
654%{_mandir}/man1/rmid.1*
655%{_mandir}/man1/rmiregistry.1*
656%{_mandir}/man1/servertool.1*
657%{_mandir}/man1/tnameserv.1*
658%{_mandir}/man1/unpack200.1*
2692550d 659%lang(ja) %{_mandir}/ja/man1/idlj.1*
3899c70b 660%lang(ja) %{_mandir}/ja/man1/java.1*
d12f28e3 661%lang(ja) %{_mandir}/ja/man1/jjs.1*
2692550d 662%lang(ja) %{_mandir}/ja/man1/jrunscript.1*
3899c70b
JK
663%lang(ja) %{_mandir}/ja/man1/keytool.1*
664%lang(ja) %{_mandir}/ja/man1/orbd.1*
665%lang(ja) %{_mandir}/ja/man1/pack200.1*
666%lang(ja) %{_mandir}/ja/man1/rmid.1*
667%lang(ja) %{_mandir}/ja/man1/rmiregistry.1*
668%lang(ja) %{_mandir}/ja/man1/servertool.1*
669%lang(ja) %{_mandir}/ja/man1/tnameserv.1*
670%lang(ja) %{_mandir}/ja/man1/unpack200.1*
671
672%files jre-base
673%defattr(644,root,root,755)
3899c70b
JK
674%dir %{_sysconfdir}/%{name}
675%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/*
676%dir %{dstdir}
677%{dstdir}/release
3899c70b 678%{_jvmdir}/%{name}-jre
3899c70b 679%dir %{dstdir}/bin
2692550d 680%attr(755,root,root) %{dstdir}/bin/idlj
3899c70b 681%attr(755,root,root) %{dstdir}/bin/java
d12f28e3 682%attr(755,root,root) %{dstdir}/bin/jjs
2692550d 683%attr(755,root,root) %{dstdir}/bin/jrunscript
3899c70b 684%attr(755,root,root) %{dstdir}/bin/keytool
3899c70b 685%attr(755,root,root) %{dstdir}/bin/orbd
3899c70b 686%attr(755,root,root) %{dstdir}/bin/pack200
3899c70b 687%attr(755,root,root) %{dstdir}/bin/rmid
3899c70b 688%attr(755,root,root) %{dstdir}/bin/rmiregistry
3899c70b 689%attr(755,root,root) %{dstdir}/bin/servertool
3899c70b 690%attr(755,root,root) %{dstdir}/bin/tnameserv
3899c70b 691%attr(755,root,root) %{dstdir}/bin/unpack200
2692550d
JP
692%{dstdir}/conf
693%{dstdir}/legal
694%dir %{dstdir}/lib
695%dir %{dstdir}/lib/jli
696%attr(755,root,root) %{dstdir}/lib/jli/libjli.so
697%{dstdir}/lib/security
698%dir %{dstdir}/lib/server
699%attr(755,root,root) %{dstdir}/lib/server/*.so
700%{dstdir}/lib/server/Xusage.txt
161e81b6 701%{!?with_zero:%{dstdir}/lib/classlist}
2692550d
JP
702%{dstdir}/lib/jrt-fs.jar
703%{dstdir}/lib/jvm.cfg
704%attr(755,root,root) %{dstdir}/lib/libattach.so
705%attr(755,root,root) %{dstdir}/lib/libawt.so
706%attr(755,root,root) %{dstdir}/lib/libawt_headless.so
707%attr(755,root,root) %{dstdir}/lib/libdt_socket.so
708%attr(755,root,root) %{dstdir}/lib/libinstrument.so
709%attr(755,root,root) %{dstdir}/lib/libj2gss.so
710%attr(755,root,root) %{dstdir}/lib/libj2pcsc.so
711%attr(755,root,root) %{dstdir}/lib/libj2pkcs11.so
712%attr(755,root,root) %{dstdir}/lib/libjaas_unix.so
713%attr(755,root,root) %{dstdir}/lib/libjava.so
714%attr(755,root,root) %{dstdir}/lib/libjimage.so
715%attr(755,root,root) %{dstdir}/lib/liblcms.so
716%attr(755,root,root) %{dstdir}/lib/libmanagement_agent.so
717%attr(755,root,root) %{dstdir}/lib/libmanagement_ext.so
718%attr(755,root,root) %{dstdir}/lib/libprefs.so
719%attr(755,root,root) %{dstdir}/lib/librmi.so
720%attr(755,root,root) %{dstdir}/lib/libsctp.so
721%attr(755,root,root) %{dstdir}/lib/libsunec.so
722%attr(755,root,root) %{dstdir}/lib/libjavajpeg.so
723%attr(755,root,root) %{dstdir}/lib/libjdwp.so
724%attr(755,root,root) %{dstdir}/lib/libjsig.so
725%attr(755,root,root) %{dstdir}/lib/libjsound.so
726%attr(755,root,root) %{dstdir}/lib/libmanagement.so
727%attr(755,root,root) %{dstdir}/lib/libmlib_image.so
728%attr(755,root,root) %{dstdir}/lib/libnet.so
729%attr(755,root,root) %{dstdir}/lib/libnio.so
74861363 730%{!?with_zero:%attr(755,root,root) %{dstdir}/lib/libsaproc.so}
2692550d
JP
731%{?with_sunec:%attr(755,root,root) %{dstdir}/lib/libsunec.so}
732%attr(755,root,root) %{dstdir}/lib/libunpack.so
733%attr(755,root,root) %{dstdir}/lib/libverify.so
734%attr(755,root,root) %{dstdir}/lib/libzip.so
735%attr(755,root,root) %{dstdir}/lib/jexec
736%{dstdir}/lib/modules
737%{dstdir}/lib/psfont.properties.ja
738%{dstdir}/lib/psfontj2d.properties
739%{dstdir}/lib/tzdb.dat
3899c70b
JK
740%{jvmjardir}
741
742%files jre-X11
743%defattr(644,root,root,755)
744%attr(755,root,root) %{_bindir}/policytool
745%{_mandir}/man1/policytool.1*
746%lang(ja) %{_mandir}/ja/man1/policytool.1*
747
748%files jre-base-X11
749%defattr(644,root,root,755)
3899c70b 750%attr(755,root,root) %{dstdir}/bin/policytool
2692550d
JP
751%attr(755,root,root) %{dstdir}/lib/libsplashscreen.so
752%attr(755,root,root) %{dstdir}/lib/libawt_xawt.so
753%attr(755,root,root) %{dstdir}/lib/libjawt.so
3899c70b
JK
754
755%files jre-base-alsa
756%defattr(644,root,root,755)
2692550d 757%attr(755,root,root) %{dstdir}/lib/libjsoundalsa.so
3899c70b
JK
758
759%files jre-base-freetype
760%defattr(644,root,root,755)
2692550d 761%attr(755,root,root) %{dstdir}/lib/libfontmanager.so
3899c70b
JK
762
763%files jar
764%defattr(644,root,root,755)
765%attr(755,root,root) %{_bindir}/jar
766%{_mandir}/man1/jar.1*
767%lang(ja) %{_mandir}/ja/man1/jar.1*
768
769%files appletviewer
770%defattr(644,root,root,755)
771%attr(755,root,root) %{_bindir}/appletviewer
772%{_mandir}/man1/appletviewer.1*
773%lang(ja) %{_mandir}/ja/man1/appletviewer.1*
774
775%files jdk-sources
776%defattr(644,root,root,755)
777%{_javasrcdir}/%{name}-jdk.zip
778
779%files examples
780%defattr(644,root,root,755)
781%{_examplesdir}/%{name}-%{version}
This page took 0.316127 seconds and 4 git commands to generate.