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