Blame java-1.8.0-openjdk-aarch32.spec

a3989ce
# note, parametrised macros are order-senisitve (unlike not-parametrized) even with normal macros
a3989ce
# also necessary when passing it as parameter other macros. If not macro, then it is considered as switch
a3989ce
%global debug_suffix_unquoted -debug
a3989ce
# quoted one for shell operations
a3989ce
%global debug_suffix "%{debug_suffix_unquoted}"
a3989ce
%global normal_suffix ""
a3989ce
a3989ce
#if you wont only debug build, but providing java, build only normal build, but  set normalbuild_parameter
a3989ce
%global debugbuild_parameter  slowdebug
a3989ce
%global normalbuild_parameter release
a3989ce
%global debug_warning This package have full debug on. Install only in need, and remove asap.
a3989ce
%global debug_on with full debug on
a3989ce
%global for_debug for packages with debug on
a3989ce
a3989ce
# by default we build normal build always.
a3989ce
%global include_normal_build 1
a3989ce
%if %{include_normal_build}
a3989ce
%global build_loop1 %{normal_suffix}
a3989ce
%else
a3989ce
%global build_loop1 %{nil}
a3989ce
%endif
a3989ce
fb31125
%global aarch64         aarch64 arm64 armv8
fb31125
# sometimes we need to distinguish big and little endian PPC64
fb31125
%global ppc64le         ppc64le
fb31125
%global ppc64be         ppc64 ppc64p7
fb31125
%global multilib_arches %{power64} sparc64 x86_64
Alex Kashchenko fffdffb
%global jit_arches      %{ix86} x86_64 sparcv9 sparc64 %{aarch64} %{power64} %{arm}
fb31125
Alex Kashchenko fffdffb
# By default, we build a debug build during main build on JIT architectures
bee9265
# do not ever sync {arm}  to main packages, unles whole this package is merged.
Alex Kashchenko fffdffb
%ifarch %{jit_arches}
a3989ce
%global include_debug_build 1
a3989ce
%else
a3989ce
%global include_debug_build 0
a3989ce
%endif
a3989ce
Alex Kashchenko f7e4c1a
# On x86_64 and AArch64, we use the Shenandoah HotSpot
Alex Kashchenko f7e4c1a
%ifarch x86_64 %{aarch64}
Alex Kashchenko f7e4c1a
%global use_shenandoah_hotspot 1
Alex Kashchenko f7e4c1a
%else
Alex Kashchenko f7e4c1a
%global use_shenandoah_hotspot 0
Alex Kashchenko f7e4c1a
%endif
Alex Kashchenko f7e4c1a
a3989ce
%if %{include_debug_build}
a3989ce
%global build_loop2 %{debug_suffix}
a3989ce
%else
a3989ce
%global build_loop2 %{nil}
a3989ce
%endif
a3989ce
a3989ce
# if you disable both builds, then build fails
a3989ce
%global build_loop  %{build_loop1} %{build_loop2}
a3989ce
# note, that order  normal_suffix debug_suffix, in case of both enabled,
a3989ce
# is expected in one single case at the end of build
a3989ce
%global rev_build_loop  %{build_loop2} %{build_loop1}
a3989ce
Alex Kashchenko fffdffb
%ifarch %{jit_arches}
a3989ce
%global bootstrap_build 1
Alex Kashchenko fffdffb
%else
Alex Kashchenko f7e4c1a
%global bootstrap_build 1
Alex Kashchenko fffdffb
%endif
a3989ce
a3989ce
%if %{bootstrap_build}
a3989ce
%global targets bootcycle-images docs
a3989ce
%else
a3989ce
%global targets all
a3989ce
%endif
a3989ce
a3989ce
%ifnarch %{jit_arches}
a3989ce
# Disable hardened build on non-jit arches. Work-around for RHBZ#1290936.
a3989ce
%undefine _hardened_build
a3989ce
%global ourcppflags %{nil}
a3989ce
%global ourldflags %{nil}
a3989ce
%else
a3989ce
%ifarch %{aarch64}
a3989ce
# Disable hardened build on AArch64 as it didn't bootcycle
a3989ce
%undefine _hardened_build
a3989ce
%global ourcppflags "-fstack-protector-strong"
a3989ce
%global ourldflags %{nil}
a3989ce
%else
a3989ce
# Filter out flags from the optflags macro that cause problems with the OpenJDK build
a3989ce
# We filter out -O flags so that the optimisation of HotSpot is not lowered from O3 to O2
a3989ce
# We filter out -Wall which will otherwise cause HotSpot to produce hundreds of thousands of warnings (100+mb logs)
a3989ce
# We replace it with -Wformat (required by -Werror=format-security) and -Wno-cpp to avoid FORTIFY_SOURCE warnings
a3989ce
# We filter out -fexceptions as the HotSpot build explicitly does -fno-exceptions and it's otherwise the default for C++
a3989ce
%global ourflags %(echo %optflags | sed -e 's|-Wall|-Wformat -Wno-cpp|' | sed -r -e 's|-O[0-9]*||')
a3989ce
%global ourcppflags %(echo %ourflags | sed -e 's|-fexceptions||')
a3989ce
%global ourldflags %{__global_ldflags}
a3989ce
%endif
a3989ce
%endif
Alex Kashchenko 2fc5977
%ifarch %{arm}
Alex Kashchenko 2fc5977
# Disable hardened build on aarch32. Work-around for RHBZ#1290936.
Alex Kashchenko 2fc5977
%undefine _hardened_build
Alex Kashchenko 2fc5977
%global ourcppflags %{nil}
Alex Kashchenko 2fc5977
%global ourldflags %{nil}
Alex Kashchenko 2fc5977
%endif
a3989ce
a3989ce
# With diabled nss is NSS deactivated, so in NSS_LIBDIR can be wrong path
a3989ce
# the initialisation must be here. LAter the pkg-connfig have bugy behaviour
a3989ce
#looks liekopenjdk RPM specific bug
a3989ce
# Always set this so the nss.cfg file is not broken
a3989ce
%global NSS_LIBDIR %(pkg-config --variable=libdir nss)
a3989ce
%global NSS_LIBS %(pkg-config --libs nss)
a3989ce
%global NSS_CFLAGS %(pkg-config --cflags nss-softokn)
akashche 02bc7e2
# see https://bugzilla.redhat.com/show_bug.cgi?id=1332456
akashche 02bc7e2
%global NSSSOFTOKN_BUILDTIME_NUMBER %(pkg-config --modversion nss-softokn || : )
akashche 02bc7e2
%global NSS_BUILDTIME_NUMBER %(pkg-config --modversion nss || : )
akashche 02bc7e2
#this is worakround for processing of requires during srpm creation
akashche 02bc7e2
%global NSSSOFTOKN_BUILDTIME_VERSION %(if [ "x%{NSSSOFTOKN_BUILDTIME_NUMBER}" == "x" ] ; then echo "" ;else echo ">= %{NSSSOFTOKN_BUILDTIME_NUMBER}" ;fi)
akashche 02bc7e2
%global NSS_BUILDTIME_VERSION %(if [ "x%{NSS_BUILDTIME_NUMBER}" == "x" ] ; then echo "" ;else echo ">= %{NSS_BUILDTIME_NUMBER}" ;fi)
a3989ce
92bdec1
a3989ce
# fix for https://bugzilla.redhat.com/show_bug.cgi?id=1111349
a3989ce
%global _privatelibs libmawt[.]so.*
a3989ce
%global __provides_exclude ^(%{_privatelibs})$
a3989ce
%global __requires_exclude ^(%{_privatelibs})$
a3989ce
Alex Kashchenko f7e4c1a
# In some cases, the arch used by the JDK does
Alex Kashchenko f7e4c1a
# not match _arch.
Alex Kashchenko f7e4c1a
# Also, in some cases, the machine name used by SystemTap
Alex Kashchenko f7e4c1a
# does not match that given by _build_cpu
a3989ce
%ifarch x86_64
a3989ce
%global archinstall amd64
Alex Kashchenko f7e4c1a
%global stapinstall x86_64
a3989ce
%endif
a3989ce
%ifarch ppc
a3989ce
%global archinstall ppc
Alex Kashchenko f7e4c1a
%global stapinstall powerpc
a3989ce
%endif
a3989ce
%ifarch %{ppc64be}
a3989ce
%global archinstall ppc64
Alex Kashchenko f7e4c1a
%global stapinstall powerpc
a3989ce
%endif
a3989ce
%ifarch %{ppc64le}
a3989ce
%global archinstall ppc64le
Alex Kashchenko f7e4c1a
%global stapinstall powerpc
a3989ce
%endif
a3989ce
%ifarch %{ix86}
a3989ce
%global archinstall i386
Alex Kashchenko f7e4c1a
%global stapinstall i386
a3989ce
%endif
a3989ce
%ifarch ia64
a3989ce
%global archinstall ia64
Alex Kashchenko f7e4c1a
%global stapinstall ia64
a3989ce
%endif
a3989ce
%ifarch s390
a3989ce
%global archinstall s390
Alex Kashchenko f7e4c1a
%global stapinstall s390
a3989ce
%endif
a3989ce
%ifarch s390x
a3989ce
%global archinstall s390x
Alex Kashchenko f7e4c1a
%global stapinstall s390
a3989ce
%endif
a3989ce
%ifarch %{arm}
a3989ce
%global archinstall arm
Alex Kashchenko f7e4c1a
%global stapinstall arm
a3989ce
%endif
a3989ce
%ifarch %{aarch64}
a3989ce
%global archinstall aarch64
Alex Kashchenko f7e4c1a
%global stapinstall arm64
a3989ce
%endif
a3989ce
# 32 bit sparc, optimized for v9
a3989ce
%ifarch sparcv9
a3989ce
%global archinstall sparc
Alex Kashchenko f7e4c1a
%global stapinstall %{_build_cpu}
a3989ce
%endif
a3989ce
# 64 bit sparc
a3989ce
%ifarch sparc64
a3989ce
%global archinstall sparcv9
Alex Kashchenko f7e4c1a
%global stapinstall %{_build_cpu}
a3989ce
%endif
a3989ce
%ifnarch %{jit_arches}
a3989ce
%global archinstall %{_arch}
a3989ce
%endif
a3989ce
Alex Kashchenko f7e4c1a
%ifarch %{jit_arches}
Alex Kashchenko f7e4c1a
%global with_systemtap 0
Alex Kashchenko f7e4c1a
%else
a3989ce
%global with_systemtap 0
Alex Kashchenko f7e4c1a
%endif
a3989ce
Alex Kashchenko 3bf5379
%ifarch %{ix86} x86_64
Alex Kashchenko 3bf5379
%global with_openjfx_binding 0
Alex Kashchenko 3bf5379
%global openjfx_path %{_jvmdir}/openjfx
Alex Kashchenko 3bf5379
# links src directories
Alex Kashchenko 3bf5379
%global jfx_jre_libs_dir %{openjfx_path}/rt/lib
Alex Kashchenko 3bf5379
%global jfx_jre_native_dir %{jfx_jre_libs_dir}/%{archinstall}
Alex Kashchenko 3bf5379
%global jfx_sdk_libs_dir %{openjfx_path}/lib
Alex Kashchenko 3bf5379
%global jfx_sdk_bins_dir %{openjfx_path}/bin
Alex Kashchenko 3bf5379
%global jfx_jre_exts_dir %{jfx_jre_libs_dir}/ext
Alex Kashchenko 3bf5379
# links src files
Alex Kashchenko 3bf5379
# maybe depend on jfx and generate the lists in build time? Yes, bad idea to inlcude cyclic depndenci, but this list is aweful
Alex Kashchenko 3bf5379
%global jfx_jre_libs jfxswt.jar javafx.properties
Alex Kashchenko 3bf5379
%global jfx_jre_native libprism_es2.so libprism_common.so libjavafx_font.so libdecora_sse.so libjavafx_font_freetype.so libprism_sw.so libjavafx_font_pango.so libglass.so libjavafx_iio.so
Alex Kashchenko 3bf5379
%global jfx_sdk_libs javafx-mx.jar packager.jar ant-javafx.jar
Alex Kashchenko 3bf5379
%global jfx_sdk_bins javafxpackager javapackager
Alex Kashchenko 3bf5379
%global jfx_jre_exts jfxrt.jar
Alex Kashchenko 3bf5379
%else
Alex Kashchenko 3bf5379
%global with_openjfx_binding 0
Alex Kashchenko 3bf5379
%endif
Alex Kashchenko 3bf5379
a3989ce
# Convert an absolute path to a relative path.  Each symbolic link is
a3989ce
# specified relative to the directory in which it is installed so that
a3989ce
# it will resolve properly within chrooted installations.
a3989ce
%global script 'use File::Spec; print File::Spec->abs2rel($ARGV[0], $ARGV[1])'
a3989ce
%global abs2rel %{__perl} -e %{script}
a3989ce
a3989ce
a3989ce
# Standard JPackage naming and versioning defines.
a3989ce
%global origin          openjdk
a3989ce
# note, following three variables are sedded from update_sources if used correctly. Hardcode them rather there.
a3989ce
%global project         aarch32-port
a3989ce
%global repo            jdk8u
Alex Kashchenko 36b8ffd
%global revision        jdk8u152-b17-aarch32-171102
a3989ce
# eg # jdk8u60-b27 -> jdk8u60 or # aarch64-jdk8u60-b27 -> aarch64-jdk8u60  (dont forget spec escape % by %%)
a3989ce
%global whole_update    %(VERSION=%{revision}; echo ${VERSION%%-*})
a3989ce
# eg  jdk8u60 -> 60 or aarch64-jdk8u60 -> 60
a3989ce
%global updatever       %(VERSION=%{whole_update}; echo ${VERSION##*u} | sed s/-.*//)
a3989ce
# eg jdk8u60-b27 -> b27
a3989ce
%global buildver        %(VERSION=%{revision}; echo ${VERSION##*-})
a3989ce
# priority must be 7 digits in total. The expression is workarounding tip
akashche 02bc7e2
%global priority        %(TIP=1800%{updatever};  echo ${TIP/tip/999})
a3989ce
a3989ce
%global javaver         1.8.0
a3989ce
a3989ce
# parametrized macros are order-sensitive
a3989ce
%global fullversion     %{name}-%{version}-%{release}
a3989ce
#images stub
a3989ce
%global j2sdkimage       j2sdk-image
a3989ce
# output dir stub
Alex Kashchenko 8e3a1b6
%define buildoutputdir() %{expand:openjdk/build/jdk8.build%{?1}}
a3989ce
#we can copy the javadoc to not arched dir, or made it not noarch
Alex Kashchenko 8e3a1b6
%define uniquejavadocdir()    %{expand:%{fullversion}%{?1}}
a3989ce
#main id and dir of this jdk
Alex Kashchenko 8e3a1b6
%define uniquesuffix()        %{expand:%{fullversion}.%{_arch}%{?1}}
a3989ce
a3989ce
# Standard JPackage directories and symbolic links.
Alex Kashchenko 8e3a1b6
%define sdkdir()        %{expand:%{uniquesuffix -- %{?1}}}
Alex Kashchenko 8e3a1b6
%define jrelnk()        %{expand:jre-%{javaver}-%{origin}-%{version}-%{release}.%{_arch}%{?1}}
a3989ce
Alex Kashchenko 8e3a1b6
%define jredir()        %{expand:%{sdkdir -- %{?1}}/jre}
Alex Kashchenko 8e3a1b6
%define sdkbindir()     %{expand:%{_jvmdir}/%{sdkdir -- %{?1}}/bin}
Alex Kashchenko 8e3a1b6
%define jrebindir()     %{expand:%{_jvmdir}/%{jredir -- %{?1}}/bin}
a3989ce
a3989ce
%global rpm_state_dir %{_localstatedir}/lib/rpm-state/
a3989ce
a3989ce
%if %{with_systemtap}
a3989ce
# Where to install systemtap tapset (links)
a3989ce
# We would like these to be in a package specific subdir,
a3989ce
# but currently systemtap doesn't support that, so we have to
a3989ce
# use the root tapset dir for now. To distinquish between 64
a3989ce
# and 32 bit architectures we place the tapsets under the arch
a3989ce
# specific dir (note that systemtap will only pickup the tapset
a3989ce
# for the primary arch for now). Systemtap uses the machine name
a3989ce
# aka build_cpu as architecture specific directory name.
a3989ce
%global tapsetroot /usr/share/systemtap
Alex Kashchenko f7e4c1a
%global tapsetdir %{tapsetroot}/tapset/%{stapinstall}
a3989ce
%endif
a3989ce
a3989ce
# not-duplicated scriplets for normal/debug packages
a3989ce
%global update_desktop_icons /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
a3989ce
Alex Kashchenko 5c8049f
Alex Kashchenko 8e3a1b6
%define post_script() %{expand:
a3989ce
update-desktop-database %{_datadir}/applications &> /dev/null || :
a3989ce
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
a3989ce
exit 0
a3989ce
}
a3989ce
a3989ce
Alex Kashchenko 8e3a1b6
%define post_headless() %{expand:
a3989ce
%ifarch %{jit_arches}
a3989ce
# MetaspaceShared::generate_vtable_methods not implemented for PPC JIT
a3989ce
%ifnarch %{power64}
Alex Kashchenko fffdffb
%ifnarch %{arm}
a3989ce
#see https://bugzilla.redhat.com/show_bug.cgi?id=513605
Alex Kashchenko 8e3a1b6
%{jrebindir -- %{?1}}/java -Xshare:dump >/dev/null 2>/dev/null
a3989ce
%endif
a3989ce
%endif
Alex Kashchenko fffdffb
%endif
a3989ce
a3989ce
PRIORITY=%{priority}
Alex Kashchenko 8e3a1b6
if [ "%{?1}" == %{debug_suffix} ]; then
a3989ce
  let PRIORITY=PRIORITY-1
a3989ce
fi
a3989ce
a3989ce
ext=.gz
a3989ce
alternatives \\
Alex Kashchenko 8e3a1b6
  --install %{_bindir}/java java %{jrebindir -- %{?1}}/java $PRIORITY  --family %{name}.%{_arch} \\
Alex Kashchenko 8e3a1b6
  --slave %{_jvmdir}/jre jre %{_jvmdir}/%{jredir -- %{?1}} \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/jjs jjs %{jrebindir -- %{?1}}/jjs \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/keytool keytool %{jrebindir -- %{?1}}/keytool \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/orbd orbd %{jrebindir -- %{?1}}/orbd \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/pack200 pack200 %{jrebindir -- %{?1}}/pack200 \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/rmid rmid %{jrebindir -- %{?1}}/rmid \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/rmiregistry rmiregistry %{jrebindir -- %{?1}}/rmiregistry \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/servertool servertool %{jrebindir -- %{?1}}/servertool \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/tnameserv tnameserv %{jrebindir -- %{?1}}/tnameserv \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/policytool policytool %{jrebindir -- %{?1}}/policytool \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/unpack200 unpack200 %{jrebindir -- %{?1}}/unpack200 \\
a3989ce
  --slave %{_mandir}/man1/java.1$ext java.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/java-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/jjs.1$ext jjs.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/jjs-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/keytool.1$ext keytool.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/keytool-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/orbd.1$ext orbd.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/orbd-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/pack200.1$ext pack200.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/pack200-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/rmid.1$ext rmid.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/rmid-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/rmiregistry.1$ext rmiregistry.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/rmiregistry-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/servertool.1$ext servertool.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/servertool-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/tnameserv.1$ext tnameserv.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/tnameserv-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/policytool.1$ext policytool.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/policytool-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/unpack200.1$ext unpack200.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/unpack200-%{uniquesuffix -- %{?1}}.1$ext
a3989ce
a3989ce
for X in %{origin} %{javaver} ; do
Alex Kashchenko 8e3a1b6
  alternatives --install %{_jvmdir}/jre-"$X" jre_"$X" %{_jvmdir}/%{jredir -- %{?1}} $PRIORITY --family %{name}.%{_arch}
a3989ce
done
a3989ce
Alex Kashchenko 8e3a1b6
update-alternatives --install %{_jvmdir}/jre-%{javaver}-%{origin} jre_%{javaver}_%{origin} %{_jvmdir}/%{jrelnk -- %{?1}} $PRIORITY  --family %{name}.%{_arch}
Alex Kashchenko 7bbcf47
a3989ce
a3989ce
update-desktop-database %{_datadir}/applications &> /dev/null || :
a3989ce
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
Alex Kashchenko f7e4c1a
Alex Kashchenko f7e4c1a
# see pretrans where this file is declared
Alex Kashchenko f7e4c1a
# also see that pretrans is only for nondebug
Alex Kashchenko 8e3a1b6
if [ ! "%{?1}" == %{debug_suffix} ]; then
Alex Kashchenko f7e4c1a
  if [ -f %{_libexecdir}/copy_jdk_configs_fixFiles.sh ] ; then
Alex Kashchenko 8e3a1b6
    sh  %{_libexecdir}/copy_jdk_configs_fixFiles.sh %{rpm_state_dir}/%{name}.%{_arch}  %{_jvmdir}/%{sdkdir -- %{?1}}
Alex Kashchenko f7e4c1a
  fi
Alex Kashchenko f7e4c1a
fi
Alex Kashchenko f7e4c1a
a3989ce
exit 0
a3989ce
}
a3989ce
Alex Kashchenko 8e3a1b6
%define postun_script() %{expand:
a3989ce
update-desktop-database %{_datadir}/applications &> /dev/null || :
a3989ce
if [ $1 -eq 0 ] ; then
a3989ce
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
a3989ce
    %{update_desktop_icons}
a3989ce
fi
a3989ce
exit 0
a3989ce
}
a3989ce
a3989ce
Alex Kashchenko 8e3a1b6
%define postun_headless() %{expand:
Alex Kashchenko 8e3a1b6
  alternatives --remove java %{jrebindir -- %{?1}}/java
Alex Kashchenko 8e3a1b6
  alternatives --remove jre_%{origin} %{_jvmdir}/%{jredir -- %{?1}}
Alex Kashchenko 8e3a1b6
  alternatives --remove jre_%{javaver} %{_jvmdir}/%{jredir -- %{?1}}
Alex Kashchenko 8e3a1b6
  alternatives --remove jre_%{javaver}_%{origin} %{_jvmdir}/%{jrelnk -- %{?1}}
a3989ce
}
a3989ce
Alex Kashchenko 8e3a1b6
%define posttrans_script() %{expand:
a3989ce
%{update_desktop_icons}
a3989ce
}
a3989ce
Alex Kashchenko 8e3a1b6
%define post_devel() %{expand:
a3989ce
a3989ce
PRIORITY=%{priority}
Alex Kashchenko 8e3a1b6
if [ "%{?1}" == %{debug_suffix} ]; then
a3989ce
  let PRIORITY=PRIORITY-1
a3989ce
fi
a3989ce
a3989ce
ext=.gz
a3989ce
alternatives \\
Alex Kashchenko 8e3a1b6
  --install %{_bindir}/javac javac %{sdkbindir -- %{?1}}/javac $PRIORITY  --family %{name}.%{_arch} \\
Alex Kashchenko 8e3a1b6
  --slave %{_jvmdir}/java java_sdk %{_jvmdir}/%{sdkdir -- %{?1}} \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/appletviewer appletviewer %{sdkbindir -- %{?1}}/appletviewer \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/extcheck extcheck %{sdkbindir -- %{?1}}/extcheck \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/idlj idlj %{sdkbindir -- %{?1}}/idlj \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/jar jar %{sdkbindir -- %{?1}}/jar \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/jarsigner jarsigner %{sdkbindir -- %{?1}}/jarsigner \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/javadoc javadoc %{sdkbindir -- %{?1}}/javadoc \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/javah javah %{sdkbindir -- %{?1}}/javah \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/javap javap %{sdkbindir -- %{?1}}/javap \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/jcmd jcmd %{sdkbindir -- %{?1}}/jcmd \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/jconsole jconsole %{sdkbindir -- %{?1}}/jconsole \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/jdb jdb %{sdkbindir -- %{?1}}/jdb \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/jdeps jdeps %{sdkbindir -- %{?1}}/jdeps \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/jhat jhat %{sdkbindir -- %{?1}}/jhat \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/jinfo jinfo %{sdkbindir -- %{?1}}/jinfo \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/jmap jmap %{sdkbindir -- %{?1}}/jmap \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/jps jps %{sdkbindir -- %{?1}}/jps \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/jrunscript jrunscript %{sdkbindir -- %{?1}}/jrunscript \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/jsadebugd jsadebugd %{sdkbindir -- %{?1}}/jsadebugd \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/jstack jstack %{sdkbindir -- %{?1}}/jstack \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/jstat jstat %{sdkbindir -- %{?1}}/jstat \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/jstatd jstatd %{sdkbindir -- %{?1}}/jstatd \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/native2ascii native2ascii %{sdkbindir -- %{?1}}/native2ascii \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/rmic rmic %{sdkbindir -- %{?1}}/rmic \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/schemagen schemagen %{sdkbindir -- %{?1}}/schemagen \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/serialver serialver %{sdkbindir -- %{?1}}/serialver \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/wsgen wsgen %{sdkbindir -- %{?1}}/wsgen \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/wsimport wsimport %{sdkbindir -- %{?1}}/wsimport \\
Alex Kashchenko 8e3a1b6
  --slave %{_bindir}/xjc xjc %{sdkbindir -- %{?1}}/xjc \\
a3989ce
  --slave %{_mandir}/man1/appletviewer.1$ext appletviewer.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/appletviewer-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/extcheck.1$ext extcheck.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/extcheck-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/idlj.1$ext idlj.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/idlj-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/jar.1$ext jar.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/jar-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/jarsigner.1$ext jarsigner.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/jarsigner-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/javac.1$ext javac.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/javac-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/javadoc.1$ext javadoc.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/javadoc-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/javah.1$ext javah.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/javah-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/javap.1$ext javap.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/javap-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/jcmd.1$ext jcmd.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/jcmd-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/jconsole.1$ext jconsole.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/jconsole-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/jdb.1$ext jdb.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/jdb-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/jdeps.1$ext jdeps.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/jdeps-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/jhat.1$ext jhat.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/jhat-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/jinfo.1$ext jinfo.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/jinfo-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/jmap.1$ext jmap.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/jmap-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/jps.1$ext jps.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/jps-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/jrunscript.1$ext jrunscript.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/jrunscript-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/jsadebugd.1$ext jsadebugd.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/jsadebugd-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/jstack.1$ext jstack.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/jstack-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/jstat.1$ext jstat.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/jstat-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/jstatd.1$ext jstatd.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/jstatd-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/native2ascii.1$ext native2ascii.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/native2ascii-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/rmic.1$ext rmic.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/rmic-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/schemagen.1$ext schemagen.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/schemagen-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/serialver.1$ext serialver.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/serialver-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/wsgen.1$ext wsgen.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/wsgen-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/wsimport.1$ext wsimport.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/wsimport-%{uniquesuffix -- %{?1}}.1$ext \\
a3989ce
  --slave %{_mandir}/man1/xjc.1$ext xjc.1$ext \\
Alex Kashchenko 8e3a1b6
  %{_mandir}/man1/xjc-%{uniquesuffix -- %{?1}}.1$ext
a3989ce
a3989ce
for X in %{origin} %{javaver} ; do
Alex Kashchenko 8e3a1b6
  alternatives \\
Alex Kashchenko 8e3a1b6
    --install %{_jvmdir}/java-"$X" java_sdk_"$X" %{_jvmdir}/%{sdkdir -- %{?1}} $PRIORITY  --family %{name}.%{_arch}
a3989ce
done
a3989ce
Alex Kashchenko 8e3a1b6
update-alternatives --install %{_jvmdir}/java-%{javaver}-%{origin} java_sdk_%{javaver}_%{origin} %{_jvmdir}/%{sdkdir -- %{?1}} $PRIORITY  --family %{name}.%{_arch} \\
a3989ce
a3989ce
update-desktop-database %{_datadir}/applications &> /dev/null || :
a3989ce
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
a3989ce
a3989ce
exit 0
a3989ce
}
a3989ce
Alex Kashchenko 8e3a1b6
%define postun_devel() %{expand:
Alex Kashchenko 8e3a1b6
  alternatives --remove javac %{sdkbindir -- %{?1}}/javac
Alex Kashchenko 8e3a1b6
  alternatives --remove java_sdk_%{origin} %{_jvmdir}/%{sdkdir -- %{?1}}
Alex Kashchenko 8e3a1b6
  alternatives --remove java_sdk_%{javaver} %{_jvmdir}/%{sdkdir -- %{?1}}
Alex Kashchenko 8e3a1b6
  alternatives --remove java_sdk_%{javaver}_%{origin} %{_jvmdir}/%{sdkdir -- %{?1}}
a3989ce
a3989ce
update-desktop-database %{_datadir}/applications &> /dev/null || :
a3989ce
a3989ce
if [ $1 -eq 0 ] ; then
a3989ce
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
a3989ce
    %{update_desktop_icons}
a3989ce
fi
a3989ce
exit 0
a3989ce
}
a3989ce
Alex Kashchenko 8e3a1b6
%define posttrans_devel() %{expand:
a3989ce
%{update_desktop_icons}
a3989ce
}
a3989ce
Alex Kashchenko 8e3a1b6
%define post_javadoc() %{expand:
a3989ce
a3989ce
PRIORITY=%{priority}
Alex Kashchenko 8e3a1b6
if [ "%{?1}" == %{debug_suffix} ]; then
a3989ce
  let PRIORITY=PRIORITY-1
a3989ce
fi
a3989ce
a3989ce
alternatives \\
Alex Kashchenko 8e3a1b6
  --install %{_javadocdir}/java javadocdir %{_javadocdir}/%{uniquejavadocdir -- %{?1}}/api \\
Alex Kashchenko 5c8049f
  $PRIORITY  --family %{name}
a3989ce
exit 0
a3989ce
}
a3989ce
Alex Kashchenko 8e3a1b6
%define postun_javadoc() %{expand:
Alex Kashchenko 8e3a1b6
  alternatives --remove javadocdir %{_javadocdir}/%{uniquejavadocdir -- %{?1}}/api
a3989ce
exit 0
a3989ce
}
a3989ce
Alex Kashchenko 8e3a1b6
%define post_javadoc_zip() %{expand:
92bdec1
92bdec1
PRIORITY=%{priority}
Alex Kashchenko 8e3a1b6
if [ "%{?1}" == %{debug_suffix} ]; then
92bdec1
  let PRIORITY=PRIORITY-1
92bdec1
fi
92bdec1
92bdec1
alternatives \\
Alex Kashchenko 8e3a1b6
  --install %{_javadocdir}/java-zip javadoczip %{_javadocdir}/%{uniquejavadocdir -- %{?1}}.zip \\
92bdec1
  $PRIORITY  --family %{name}
92bdec1
exit 0
92bdec1
}
92bdec1
Alex Kashchenko 8e3a1b6
%define postun_javadoc_zip() %{expand:
Alex Kashchenko 8e3a1b6
  alternatives --remove javadoczip %{_javadocdir}/%{uniquejavadocdir -- %{?1}}.zip
92bdec1
exit 0
92bdec1
}
92bdec1
Alex Kashchenko 8e3a1b6
%define files_jre() %{expand:
a3989ce
%{_datadir}/icons/hicolor/*x*/apps/java-%{javaver}.png
Alex Kashchenko 8e3a1b6
%{_datadir}/applications/*policytool%{?1}.desktop
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/jre/lib/%{archinstall}/libjsoundalsa.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/jre/lib/%{archinstall}/libsplashscreen.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/jre/lib/%{archinstall}/libawt_xawt.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/jre/lib/%{archinstall}/libjawt.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/jre/lib/aarch32/libjsoundalsa.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/jre/lib/aarch32/libsplashscreen.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/jre/lib/aarch32/libawt_xawt.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/jre/lib/aarch32/libjawt.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/jre/bin/policytool
a3989ce
}
a3989ce
a3989ce
Alex Kashchenko 8e3a1b6
%define files_jre_headless() %{expand:
a3989ce
%defattr(-,root,root,-)
Alex Kashchenko 8e3a1b6
%license %{buildoutputdir -- %{?1}}/images/%{j2sdkimage}/jre/ASSEMBLY_EXCEPTION
Alex Kashchenko 8e3a1b6
%license %{buildoutputdir -- %{?1}}/images/%{j2sdkimage}/jre/LICENSE
Alex Kashchenko 8e3a1b6
%license %{buildoutputdir -- %{?1}}/images/%{j2sdkimage}/jre/THIRD_PARTY_README
Alex Kashchenko 8e3a1b6
%dir %{_jvmdir}/%{sdkdir -- %{?1}}
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jrelnk -- %{?1}}
a3989ce
%{_jvmprivdir}/*
Alex Kashchenko 8e3a1b6
%dir %{_jvmdir}/%{jredir -- %{?1}}/lib/security
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/security/cacerts
Alex Kashchenko 8e3a1b6
%dir %{_jvmdir}/%{jredir -- %{?1}}
Alex Kashchenko 8e3a1b6
%dir %{_jvmdir}/%{jredir -- %{?1}}/bin
Alex Kashchenko 8e3a1b6
%dir %{_jvmdir}/%{jredir -- %{?1}}/lib
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/bin/java
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/bin/jjs
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/bin/keytool
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/bin/orbd
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/bin/pack200
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/bin/rmid
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/bin/rmiregistry
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/bin/servertool
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/bin/tnameserv
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/bin/unpack200
Alex Kashchenko 36b8ffd
%config(noreplace) %{_jvmdir}/%{jredir -- %{?1}}/lib/security/policy/unlimited/US_export_policy.jar
Alex Kashchenko 36b8ffd
%config(noreplace) %{_jvmdir}/%{jredir -- %{?1}}/lib/security/policy/unlimited/local_policy.jar
Alex Kashchenko 36b8ffd
%config(noreplace) %{_jvmdir}/%{jredir -- %{?1}}/lib/security/policy/limited/US_export_policy.jar
Alex Kashchenko 36b8ffd
%config(noreplace) %{_jvmdir}/%{jredir -- %{?1}}/lib/security/policy/limited/local_policy.jar
Alex Kashchenko 8e3a1b6
%config(noreplace) %{_jvmdir}/%{jredir -- %{?1}}/lib/security/java.policy
Alex Kashchenko 8e3a1b6
%config(noreplace) %{_jvmdir}/%{jredir -- %{?1}}/lib/security/java.security
Alex Kashchenko 8e3a1b6
%config(noreplace) %{_jvmdir}/%{jredir -- %{?1}}/lib/security/blacklisted.certs
Alex Kashchenko 8e3a1b6
%config(noreplace) %{_jvmdir}/%{jredir -- %{?1}}/lib/logging.properties
Alex Kashchenko 8e3a1b6
%config(noreplace) %{_jvmdir}/%{jredir -- %{?1}}/lib/calendars.properties
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/java-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/jjs-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/keytool-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/orbd-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/pack200-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/rmid-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/rmiregistry-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/servertool-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/tnameserv-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/unpack200-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/policytool-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%config(noreplace) %{_jvmdir}/%{jredir -- %{?1}}/lib/security/nss.cfg
a3989ce
%ifarch %{jit_arches}
a3989ce
%ifnarch %{power64}
Alex Kashchenko 8e3a1b6
%attr(664, root, root) %ghost %{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/server/classes.jsa
Alex Kashchenko 8e3a1b6
%attr(664, root, root) %ghost %{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/client/classes.jsa
Alex Kashchenko 8e3a1b6
%endif
Alex Kashchenko 8e3a1b6
%endif
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/server/
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/client/
Alex Kashchenko 8e3a1b6
%dir %{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}
Alex Kashchenko 8e3a1b6
%dir %{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/jli
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/jli/libjli.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/jvm.cfg
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libattach.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libawt.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libawt_headless.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libdt_socket.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libfontmanager.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libhprof.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libinstrument.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libj2gss.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libj2pcsc.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libj2pkcs11.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libjaas_unix.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libjava.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libjava_crw_demo.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libjavajpeg.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libjdwp.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libjsdt.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libjsig.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libjsound.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/liblcms.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libmanagement.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libmlib_image.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libnet.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libnio.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libnpt.so
Alex Kashchenko 8e3a1b6
%ifarch x86_64  %{ix86} %{aarch64}
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libsaproc.so
Alex Kashchenko 8e3a1b6
%endif
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libsctp.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libsunec.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libunpack.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libverify.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libzip.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/aarch32/client/
Alex Kashchenko 8e3a1b6
%dir %{_jvmdir}/%{jredir -- %{?1}}/lib/aarch32
Alex Kashchenko 8e3a1b6
%dir %{_jvmdir}/%{jredir -- %{?1}}/lib/aarch32/jli
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/aarch32/jli/libjli.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/aarch32/jvm.cfg
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/aarch32/libattach.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/aarch32/libawt.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/aarch32/libawt_headless.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/aarch32/libdt_socket.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/aarch32/libfontmanager.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/aarch32/libhprof.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/aarch32/libinstrument.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/aarch32/libj2gss.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/aarch32/libj2pcsc.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/aarch32/libj2pkcs11.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/aarch32/libjaas_unix.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/aarch32/libjava.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/aarch32/libjava_crw_demo.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/aarch32/libjavajpeg.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/aarch32/libjdwp.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/aarch32/libjsdt.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/aarch32/libjsig.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/aarch32/libjsound.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/aarch32/liblcms.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/aarch32/libmanagement.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/aarch32/libmlib_image.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/aarch32/libnet.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/aarch32/libnio.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/aarch32/libnpt.so
Alex Kashchenko 8e3a1b6
%ifarch x86_64  %{ix86} %{aarch64}
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/aarch32/libsaproc.so
Alex Kashchenko 8e3a1b6
%endif
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/aarch32/libsctp.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/aarch32/libsunec.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/aarch32/libunpack.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/aarch32/libverify.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/aarch32/libzip.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/charsets.jar
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/classlist
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/content-types.properties
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/currency.data
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/flavormap.properties
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/hijrah-config-umalqura.properties
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/images/cursors/*
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/jce.jar
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/jexec
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/jsse.jar
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/jvm.hprof.txt
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/meta-index
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/net.properties
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/psfont.properties.ja
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/psfontj2d.properties
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/resources.jar
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/rt.jar
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/sound.properties
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/tzdb.dat
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/management-agent.jar
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/management/*
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/cmm/*
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/ext/*
Alex Kashchenko 8e3a1b6
%dir %{_jvmdir}/%{jredir -- %{?1}}/lib/images
Alex Kashchenko 8e3a1b6
%dir %{_jvmdir}/%{jredir -- %{?1}}/lib/images/cursors
Alex Kashchenko 8e3a1b6
%dir %{_jvmdir}/%{jredir -- %{?1}}/lib/management
Alex Kashchenko 8e3a1b6
%dir %{_jvmdir}/%{jredir -- %{?1}}/lib/cmm
Alex Kashchenko 8e3a1b6
%dir %{_jvmdir}/%{jredir -- %{?1}}/lib/ext
a3989ce
}
a3989ce
Alex Kashchenko 8e3a1b6
%define files_devel() %{expand:
a3989ce
%defattr(-,root,root,-)
Alex Kashchenko 8e3a1b6
%license %{buildoutputdir -- %{?1}}/images/%{j2sdkimage}/ASSEMBLY_EXCEPTION
Alex Kashchenko 8e3a1b6
%license %{buildoutputdir -- %{?1}}/images/%{j2sdkimage}/LICENSE
Alex Kashchenko 8e3a1b6
%license %{buildoutputdir -- %{?1}}/images/%{j2sdkimage}/THIRD_PARTY_README
Alex Kashchenko 8e3a1b6
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/bin
Alex Kashchenko 8e3a1b6
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/include
Alex Kashchenko 8e3a1b6
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/lib
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/appletviewer
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/extcheck
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/idlj
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jar
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jarsigner
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/java
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/javac
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/javadoc
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/javah
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/javap
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/java-rmi.cgi
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jcmd
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jconsole
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jdb
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jdeps
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jhat
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jinfo
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jjs
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jmap
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jps
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jrunscript
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jsadebugd
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jstack
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jstat
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jstatd
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/keytool
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/native2ascii
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/orbd
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/pack200
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/policytool
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/rmic
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/rmid
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/rmiregistry
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/schemagen
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/serialver
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/servertool
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/tnameserv
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/unpack200
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/wsgen
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/wsimport
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/xjc
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/include/*
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/%{archinstall}
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/aarch32
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/ct.sym
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/ir.idl
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/jconsole.jar
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/orb.idl
Alex Kashchenko 8e3a1b6
%ifarch x86_64  %{ix86}
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/sa-jdi.jar
Alex Kashchenko 8e3a1b6
%endif
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/dt.jar
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/jexec
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/tools.jar
Alex Kashchenko 8e3a1b6
%{_datadir}/applications/*jconsole%{?1}.desktop
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/appletviewer-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/extcheck-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/idlj-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/jar-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/jarsigner-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/javac-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/javadoc-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/javah-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/javap-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/jconsole-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/jcmd-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/jdb-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/jdeps-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/jhat-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/jinfo-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/jmap-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/jps-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/jrunscript-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/jsadebugd-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/jstack-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/jstat-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/jstatd-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/native2ascii-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/rmic-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/schemagen-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/serialver-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/wsgen-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/wsimport-%{uniquesuffix -- %{?1}}.1*
Alex Kashchenko 8e3a1b6
%{_mandir}/man1/xjc-%{uniquesuffix -- %{?1}}.1*
a3989ce
%if %{with_systemtap}
a3989ce
%dir %{tapsetroot}
a3989ce
%dir %{tapsetdir}
Alex Kashchenko 8e3a1b6
%{tapsetdir}/*%{version}-%{release}.%{_arch}%{?1}.stp
Alex Kashchenko 8e3a1b6
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/tapset
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/tapset/*.stp
a3989ce
%endif
a3989ce
}
a3989ce
Alex Kashchenko 8e3a1b6
%define files_demo() %{expand:
a3989ce
%defattr(-,root,root,-)
Alex Kashchenko 8e3a1b6
%license %{buildoutputdir -- %{?1}}/images/%{j2sdkimage}/jre/LICENSE
a3989ce
}
a3989ce
Alex Kashchenko 8e3a1b6
%define files_src() %{expand:
a3989ce
%defattr(-,root,root,-)
a3989ce
%doc README.src
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{sdkdir -- %{?1}}/src.zip
a3989ce
}
a3989ce
Alex Kashchenko 8e3a1b6
%define files_javadoc() %{expand:
a3989ce
%defattr(-,root,root,-)
Alex Kashchenko 8e3a1b6
%doc %{_javadocdir}/%{uniquejavadocdir -- %{?1}}
Alex Kashchenko 8e3a1b6
%license %{buildoutputdir -- %{?1}}/images/%{j2sdkimage}/jre/LICENSE
a3989ce
}
a3989ce
Alex Kashchenko 8e3a1b6
%define files_javadoc_zip() %{expand:
92bdec1
%defattr(-,root,root,-)
Alex Kashchenko 8e3a1b6
%doc %{_javadocdir}/%{uniquejavadocdir -- %{?1}}.zip
Alex Kashchenko 8e3a1b6
%license %{buildoutputdir -- %{?1}}/images/%{j2sdkimage}/jre/LICENSE
92bdec1
}
92bdec1
Alex Kashchenko 8e3a1b6
%define files_accessibility() %{expand:
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libatk-wrapper.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/aarch32/libatk-wrapper.so
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/ext/java-atk-wrapper.jar
Alex Kashchenko 8e3a1b6
%{_jvmdir}/%{jredir -- %{?1}}/lib/accessibility.properties
a3989ce
}
a3989ce
a3989ce
# not-duplicated requires/provides/obsolate for normal/debug packages
Alex Kashchenko 8e3a1b6
%define java_rpo() %{expand:
Alex Kashchenko 03a9057
Requires: fontconfig%{?_isa}
a3989ce
Requires: xorg-x11-fonts-Type1
a3989ce
a3989ce
# Requires rest of java
Alex Kashchenko 8e3a1b6
Requires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
Alex Kashchenko 8e3a1b6
OrderWithRequires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
a3989ce
a3989ce
a3989ce
# Standard JPackage base provides.
Alex Kashchenko 8e3a1b6
#Provides: jre-%{javaver}-%{origin}%{?1} = %{epoch}:%{version}-%{release}
Alex Kashchenko 8e3a1b6
#Provides: jre-%{origin}%{?1} = %{epoch}:%{version}-%{release}
Alex Kashchenko 8e3a1b6
#Provides: jre-%{javaver}%{?1} = %{epoch}:%{version}-%{release}
Alex Kashchenko 8e3a1b6
#Provides: java-%{javaver}%{?1} = %{epoch}:%{version}-%{release}
Alex Kashchenko 8e3a1b6
#Provides: jre = %{javaver}%{?1}
Alex Kashchenko 8e3a1b6
#Provides: java-%{origin}%{?1} = %{epoch}:%{version}-%{release}
Alex Kashchenko 8e3a1b6
#Provides: java%{?1} = %{epoch}:%{javaver}
a3989ce
# Standard JPackage extensions provides.
Alex Kashchenko 8e3a1b6
#Provides: java-fonts%{?1} = %{epoch}:%{version}
a3989ce
Alex Kashchenko 8e3a1b6
Obsoletes: java-1.7.0-openjdk%{?1}
Alex Kashchenko 8e3a1b6
Obsoletes: java-1.5.0-gcj%{?1}
a3989ce
Obsoletes: sinjdoc
a3989ce
}
a3989ce
Alex Kashchenko 8e3a1b6
%define java_headless_rpo() %{expand:
a3989ce
# Require /etc/pki/java/cacerts.
a3989ce
Requires: ca-certificates
a3989ce
# Require javapackages-tools for ownership of /usr/lib/jvm/
a3989ce
Requires: javapackages-tools
a3989ce
# Require zoneinfo data provided by tzdata-java subpackage.
a3989ce
Requires: tzdata-java >= 2015d
a3989ce
# libsctp.so.1 is being `dlopen`ed on demand
Alex Kashchenko 03a9057
Requires: lksctp-tools%{?_isa}
Alex Kashchenko fffdffb
# there is a need to depend on the exact version of NSS
Alex Kashchenko 03a9057
Requires: nss%{?_isa} %{NSS_BUILDTIME_VERSION}
Alex Kashchenko 03a9057
Requires: nss-softokn%{?_isa} %{NSSSOFTOKN_BUILDTIME_VERSION}
a3989ce
# tool to copy jdk's configs - should be Recommends only, but then only dnf/yum eforce it, not rpm transaction and so no configs are persisted when pure rpm -u is run. I t may be consiedered as regression
Alex Kashchenko 36b8ffd
Requires:	copy-jdk-configs >= 3.3
a3989ce
OrderWithRequires: copy-jdk-configs
a3989ce
# Post requires alternatives to install tool alternatives.
a3989ce
Requires(post):   %{_sbindir}/alternatives
a3989ce
# in version 1.7 and higher for --family switch
a3989ce
Requires(post):   chkconfig >= 1.7
a3989ce
# Postun requires alternatives to uninstall tool alternatives.
a3989ce
Requires(postun): %{_sbindir}/alternatives
a3989ce
# in version 1.7 and higher for --family switch
a3989ce
Requires(postun):   chkconfig >= 1.7
a3989ce
a3989ce
# Standard JPackage base provides.
Alex Kashchenko 8e3a1b6
#Provides: jre-%{javaver}-%{origin}-headless%{?1} = %{epoch}:%{version}-%{release}
Alex Kashchenko 8e3a1b6
#Provides: jre-%{origin}-headless%{?1} = %{epoch}:%{version}-%{release}
Alex Kashchenko 8e3a1b6
#Provides: jre-%{javaver}-headless%{?1} = %{epoch}:%{version}-%{release}
Alex Kashchenko 8e3a1b6
#Provides: java-%{javaver}-headless%{?1} = %{epoch}:%{version}-%{release}
Alex Kashchenko 8e3a1b6
#Provides: jre-headless%{?1} = %{epoch}:%{javaver}
Alex Kashchenko 8e3a1b6
#Provides: java-%{origin}-headless%{?1} = %{epoch}:%{version}-%{release}
Alex Kashchenko 8e3a1b6
#Provides: java-headless%{?1} = %{epoch}:%{javaver}
a3989ce
# Standard JPackage extensions provides.
Alex Kashchenko 8e3a1b6
#Provides: jndi%{?1} = %{epoch}:%{version}
Alex Kashchenko 8e3a1b6
#Provides: jndi-ldap%{?1} = %{epoch}:%{version}
Alex Kashchenko 8e3a1b6
#Provides: jndi-cos%{?1} = %{epoch}:%{version}
Alex Kashchenko 8e3a1b6
#Provides: jndi-rmi%{?1} = %{epoch}:%{version}
Alex Kashchenko 8e3a1b6
#Provides: jndi-dns%{?1} = %{epoch}:%{version}
Alex Kashchenko 8e3a1b6
#Provides: jaas%{?1} = %{epoch}:%{version}
Alex Kashchenko 8e3a1b6
#Provides: jsse%{?1} = %{epoch}:%{version}
Alex Kashchenko 8e3a1b6
#Provides: jce%{?1} = %{epoch}:%{version}
Alex Kashchenko 8e3a1b6
#Provides: jdbc-stdext%{?1} = 4.1
Alex Kashchenko 8e3a1b6
#Provides: java-sasl%{?1} = %{epoch}:%{version}
a3989ce
92bdec1
#https://bugzilla.redhat.com/show_bug.cgi?id=1312019
Alex Kashchenko 8e3a1b6
#Provides: /usr/bin/jjs
a3989ce
Alex Kashchenko 8e3a1b6
Obsoletes: java-1.7.0-openjdk-headless%{?1}
a3989ce
}
a3989ce
Alex Kashchenko 8e3a1b6
%define java_devel_rpo() %{expand:
a3989ce
# Require base package.
Alex Kashchenko 8e3a1b6
Requires:         %{name}%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
Alex Kashchenko 8e3a1b6
OrderWithRequires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
a3989ce
# Post requires alternatives to install tool alternatives.
a3989ce
Requires(post):   %{_sbindir}/alternatives
a3989ce
# in version 1.7 and higher for --family switch
a3989ce
Requires(post):   chkconfig >= 1.7
a3989ce
# Postun requires alternatives to uninstall tool alternatives.
a3989ce
Requires(postun): %{_sbindir}/alternatives
a3989ce
# in version 1.7 and higher for --family switch
a3989ce
Requires(postun):   chkconfig >= 1.7
a3989ce
a3989ce
# Standard JPackage devel provides.
Alex Kashchenko 8e3a1b6
#Provides: java-sdk-%{javaver}-%{origin}%{?1} = %{epoch}:%{version}
Alex Kashchenko 8e3a1b6
#Provides: java-sdk-%{javaver}%{?1} = %{epoch}:%{version}
Alex Kashchenko 8e3a1b6
#Provides: java-sdk-%{origin}%{?1} = %{epoch}:%{version}
Alex Kashchenko 8e3a1b6
#Provides: java-sdk%{?1} = %{epoch}:%{javaver}
Alex Kashchenko 8e3a1b6
#Provides: java-%{javaver}-devel%{?1} = %{epoch}:%{version}
Alex Kashchenko 8e3a1b6
#Provides: java-devel-%{origin}%{?1} = %{epoch}:%{version}
Alex Kashchenko 8e3a1b6
#Provides: java-devel%{?1} = %{epoch}:%{javaver}
Alex Kashchenko 8e3a1b6
Alex Kashchenko 8e3a1b6
Obsoletes: java-1.7.0-openjdk-devel%{?1}
Alex Kashchenko 8e3a1b6
Obsoletes: java-1.5.0-gcj-devel%{?1}
a3989ce
}
a3989ce
a3989ce
Alex Kashchenko 8e3a1b6
%define java_demo_rpo() %{expand:
Alex Kashchenko 8e3a1b6
Requires: %{name}%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
Alex Kashchenko 8e3a1b6
OrderWithRequires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
a3989ce
Alex Kashchenko 3bf5379
#Provides: java-%{javaver}-%{origin}-demo = %{epoch}:%{version}-%{release}
Alex Kashchenko 3bf5379
Alex Kashchenko 8e3a1b6
Obsoletes: java-1.7.0-openjdk-demo%{?1}
a3989ce
}
a3989ce
Alex Kashchenko 8e3a1b6
%define java_javadoc_rpo() %{expand:
Alex Kashchenko 8e3a1b6
OrderWithRequires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
a3989ce
# Post requires alternatives to install javadoc alternative.
a3989ce
Requires(post):   %{_sbindir}/alternatives
a3989ce
# in version 1.7 and higher for --family switch
a3989ce
Requires(post):   chkconfig >= 1.7
a3989ce
# Postun requires alternatives to uninstall javadoc alternative.
a3989ce
Requires(postun): %{_sbindir}/alternatives
a3989ce
# in version 1.7 and higher for --family switch
a3989ce
Requires(postun):   chkconfig >= 1.7
a3989ce
a3989ce
# Standard JPackage javadoc provides.
Alex Kashchenko 8e3a1b6
#Provides: java-javadoc%{?1} = %{epoch}:%{version}-%{release}
Alex Kashchenko 8e3a1b6
#Provides: java-%{javaver}-javadoc%{?1} = %{epoch}:%{version}-%{release}
Alex Kashchenko 3bf5379
#Provides: java-%{javaver}-%{origin}-javadoc = %{epoch}:%{version}-%{release}
a3989ce
Alex Kashchenko 8e3a1b6
Obsoletes: java-1.7.0-openjdk-javadoc%{?1}
a3989ce
a3989ce
}
a3989ce
Alex Kashchenko 8e3a1b6
%define java_src_rpo() %{expand:
Alex Kashchenko 8e3a1b6
Requires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
a3989ce
Alex Kashchenko 3bf5379
# Standard JPackage javadoc provides.
Alex Kashchenko 8e3a1b6
#Provides: java-src%{?1} = %{epoch}:%{version}-%{release}
Alex Kashchenko 8e3a1b6
#Provides: java-%{javaver}-src%{?1} = %{epoch}:%{version}-%{release}
Alex Kashchenko 3bf5379
#Provides: java-%{javaver}-%{origin}-src = %{epoch}:%{version}-%{release}
Alex Kashchenko 8e3a1b6
Obsoletes: java-1.7.0-openjdk-src%{?1}
a3989ce
}
a3989ce
Alex Kashchenko 8e3a1b6
%define java_accessibility_rpo() %{expand:
Alex Kashchenko f7e4c1a
Requires: java-atk-wrapper%{?_isa}
Alex Kashchenko 8e3a1b6
Requires: %{name}%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
Alex Kashchenko 8e3a1b6
OrderWithRequires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
a3989ce
Alex Kashchenko 8e3a1b6
#Provides: java-%{javaver}-%{origin}-accessibility = %{epoch}:%{version}-%{release}
Alex Kashchenko 3bf5379
Alex Kashchenko 8e3a1b6
Obsoletes: java-1.7.0-openjdk-accessibility%{?1}
a3989ce
}
a3989ce
a3989ce
# Prevent brp-java-repack-jars from being run.
a3989ce
%global __jar_repack 0
a3989ce
a3989ce
Name:    java-%{javaver}-%{origin}-aarch32
a3989ce
Version: %{javaver}.%{updatever}
2a04031
Release: 2.%{buildver}%{?dist}
a3989ce
# java-1.5.0-ibm from jpackage.org set Epoch to 1 for unknown reasons,
a3989ce
# and this change was brought into RHEL-4.  java-1.5.0-ibm packages
a3989ce
# also included the epoch in their virtual provides.  This created a
a3989ce
# situation where in-the-wild java-1.5.0-ibm packages provided "java =
a3989ce
# 1:1.5.0".  In RPM terms, "1.6.0 < 1:1.5.0" since 1.6.0 is
a3989ce
# interpreted as 0:1.6.0.  So the "java >= 1.6.0" requirement would be
a3989ce
# satisfied by the 1:1.5.0 packages.  Thus we need to set the epoch in
a3989ce
# JDK package >= 1.6.0 to 1, and packages referring to JDK virtual
a3989ce
# provides >= 1.6.0 must specify the epoch, "java >= 1:1.6.0".
a3989ce
a3989ce
Epoch:   1
a3989ce
Summary: OpenJDK Runtime Environment in a preview of the OpenJDK AArch32 project
a3989ce
Group:   Development/Languages
a3989ce
Alex Kashchenko 3bf5379
License:  ASL 1.1 and ASL 2.0 and GPL+ and GPLv2 and GPLv2 with exceptions and LGPL+ and LGPLv2 and MPLv1.0 and MPLv1.1 and Public Domain and W3C
a3989ce
URL:      http://openjdk.java.net/
a3989ce
Alex Kashchenko 3bf5379
# aarch64-port now contains integration forest of both aarch64 and normal jdk
Alex Kashchenko 3bf5379
# Source from upstream OpenJDK8 project. To regenerate, use
Alex Kashchenko 3bf5379
# VERSION=%%{revision} FILE_NAME_ROOT=%%{project}-%%{repo}-${VERSION}
Alex Kashchenko 3bf5379
# REPO_ROOT=<path to checked-out repository> generate_source_tarball.sh
Alex Kashchenko 3bf5379
# where the source is obtained from http://hg.openjdk.java.net/%%{project}/%%{repo}
a3989ce
Source0: %{project}-%{repo}-%{revision}.tar.xz
a3989ce
Alex Kashchenko 3bf5379
# Shenandoah HotSpot
Alex Kashchenko 3bf5379
#Source1: aarch64-port-jdk8u-shenandoah-aarch64-shenandoah-jdk8u141-b16.tar.xz
Alex Kashchenko 3bf5379
a3989ce
# Custom README for -src subpackage
a3989ce
Source2:  README.src
a3989ce
a3989ce
# Use 'generate_tarballs.sh' to generate the following tarballs
a3989ce
# They are based on code contained in the IcedTea7 project.
a3989ce
a3989ce
# Systemtap tapsets. Zipped up to keep it small.
Alex Kashchenko f7e4c1a
Source8: systemtap-tapset-3.4.0pre01.tar.xz
a3989ce
a3989ce
# Desktop files. Adapated from IcedTea.
a3989ce
Source9: jconsole.desktop.in
a3989ce
Source10: policytool.desktop.in
a3989ce
a3989ce
# nss configuration file
Alex Kashchenko f7e4c1a
Source11: nss.cfg.in
a3989ce
a3989ce
# Removed libraries that we link instead
a3989ce
Source12: java-1.8.0-openjdk-remove-intree-libraries.sh
a3989ce
a3989ce
# Ensure we aren't using the limited crypto policy
a3989ce
Source13: TestCryptoLevel.java
a3989ce
Alex Kashchenko 5c8049f
# Ensure ECDSA is working
Alex Kashchenko 5c8049f
Source14: TestECDSA.java
Alex Kashchenko 5c8049f
a3989ce
Source20: repackReproduciblePolycies.sh
a3989ce
a3989ce
# New versions of config files with aarch64 support. This is not upstream yet.
a3989ce
Source100: config.guess
a3989ce
Source101: config.sub
a3989ce
a3989ce
# RPM/distribution specific patches
a3989ce
a3989ce
# Accessibility patches
a3989ce
# Ignore AWTError when assistive technologies are loaded 
a3989ce
Patch1:   java-1.8.0-openjdk-accessible-toolkit.patch
a3989ce
# Restrict access to java-atk-wrapper classes
a3989ce
Patch3: java-atk-wrapper-security.patch
a3989ce
a3989ce
# Upstreamable patches
a3989ce
# PR2737: Allow multiple initialization of PKCS11 libraries
a3989ce
Patch5: multiple-pkcs11-library-init.patch
a3989ce
# PR2095, RH1163501: 2048-bit DH upper bound too small for Fedora infrastructure (sync with IcedTea 2.x)
a3989ce
Patch504: rh1163501.patch
a3989ce
# S4890063, PR2304, RH1214835: HPROF: default text truncated when using doe=n option
a3989ce
Patch511: rh1214835.patch
a3989ce
# Turn off strict overflow on IndicRearrangementProcessor{,2}.cpp following 8140543: Arrange font actions
a3989ce
Patch512: no_strict_overflow.patch
a3989ce
# Support for building the SunEC provider with the system NSS installation
a3989ce
# PR1983: Support using the system installation of NSS with the SunEC provider
a3989ce
# PR2127: SunEC provider crashes when built using system NSS
a3989ce
# PR2815: Race condition in SunEC provider with system NSS
akashche 02bc7e2
# PR2899: Don't use WithSeed versions of NSS functions as they don't fully process the seed
akashche 02bc7e2
# PR2934: SunEC provider throwing KeyException with current NSS
Alex Kashchenko 36b8ffd
# PR3479, RH1486025: ECC and NSS JVM crash
a3989ce
Patch513: pr1983-jdk.patch
a3989ce
Patch514: pr1983-root.patch
a3989ce
Patch515: pr2127.patch
a3989ce
Patch516: pr2815.patch
akashche 02bc7e2
Patch517: pr2899.patch
akashche 02bc7e2
Patch518: pr2934.patch
Alex Kashchenko 36b8ffd
Patch519: pr3479-rh1486025.patch
akashche 02bc7e2
# S8150954, RH1176206, PR2866: Taking screenshots on x11 composite desktop produces wrong result
akashche 02bc7e2
# In progress: http://mail.openjdk.java.net/pipermail/awt-dev/2016-March/010742.html
akashche 02bc7e2
Patch508: rh1176206-jdk.patch
akashche 02bc7e2
Patch509: rh1176206-root.patch
akashche 02bc7e2
# RH1337583, PR2974: PKCS#10 certificate requests now use CRLF line endings rather than system line endings
akashche 02bc7e2
Patch523: pr2974-rh1337583.patch
akashche 02bc7e2
# PR3083, RH1346460: Regression in SSL debug output without an ECC provider
akashche 02bc7e2
Patch528: pr3083-rh1346460.patch
Alex Kashchenko f7e4c1a
# Patches 204 and 205 stop the build adding .gnu_debuglink sections to unstripped files
Alex Kashchenko f7e4c1a
Patch204: hotspot-remove-debuglink.patch
Alex Kashchenko f7e4c1a
Patch205: dont-add-unnecessary-debug-links.patch
Alex Kashchenko f7e4c1a
# Enable debug information for assembly code files
Alex Kashchenko f7e4c1a
Patch206: hotspot-assembler-debuginfo.patch
Alex Kashchenko 36b8ffd
# 8188030, PR3459, RH1484079: AWT java apps fail to start when some minimal fonts are present
Alex Kashchenko 36b8ffd
Patch560: 8188030-pr3459-rh1484079.patch
a3989ce
Alex Kashchenko f7e4c1a
# Arch-specific upstreamable patches
Alex Kashchenko f7e4c1a
# PR2415: JVM -Xmx requirement is too high on s390
Alex Kashchenko 36b8ffd
#Patch100: %{name}-s390-java-opts.patch
Alex Kashchenko f7e4c1a
# Type fixing for s390
Alex Kashchenko 36b8ffd
#Patch102: %{name}-size_t.patch
Alex Kashchenko f7e4c1a
# Use "%z" for size_t on s390 as size_t != intptr_t
Alex Kashchenko f7e4c1a
#Patch103: s390-size_t_format_flags.patch
Alex Kashchenko f7e4c1a
Alex Kashchenko f7e4c1a
# Patches which need backporting to 8u
Alex Kashchenko f7e4c1a
# S8073139, RH1191652; fix name of ppc64le architecture
Alex Kashchenko 36b8ffd
#Patch601: %{name}-rh1191652-root.patch
Alex Kashchenko 36b8ffd
#Patch602: %{name}-rh1191652-jdk.patch
Alex Kashchenko 36b8ffd
#Patch603: %{name}-rh1191652-hotspot-aarch64.patch
a3989ce
# Include all sources in src.zip
a3989ce
Patch7: include-all-srcs.patch
a3989ce
# 8035341: Allow using a system installed libpng
a3989ce
Patch202: system-libpng.patch
a3989ce
# 8042159: Allow using a system-installed lcms2
a3989ce
Patch203: system-lcms.patch
a3989ce
# PR2462: Backport "8074839: Resolve disabled warnings for libunpack and the unpack200 binary"
a3989ce
# This fixes printf warnings that lead to build failure with -Werror=format-security from optflags
a3989ce
Patch502: pr2462.patch
a3989ce
# S8148351, PR2842: Only display resolved symlink for compiler, do not change path
a3989ce
Patch506: pr2842-01.patch
a3989ce
Patch507: pr2842-02.patch
akashche 02bc7e2
# S8154313: Generated javadoc scattered all over the place
akashche 02bc7e2
Patch400: 8154313.patch
akashche 02bc7e2
# S6260348, PR3066: GTK+ L&F JTextComponent not respecting desktop caret blink rate
akashche 02bc7e2
Patch526: 6260348-pr3066.patch
Alex Kashchenko f7e4c1a
# 8061305, PR3335, RH1423421: Javadoc crashes when method name ends with "Property"
Alex Kashchenko f7e4c1a
Patch538: 8061305-pr3335-rh1423421.patch
Alex Kashchenko 36b8ffd
Alex Kashchenko 36b8ffd
# Patches upstream and appearing in 8u151
Alex Kashchenko 36b8ffd
# 8075484, PR3473, RH1490713: SocketInputStream.socketRead0 can hang even with soTimeout set
Alex Kashchenko 36b8ffd
#Patch561: 8075484-pr3473-rh1490713.patch
Alex Kashchenko f7e4c1a
Alex Kashchenko f7e4c1a
# Patches upstream and appearing in 8u152
Alex Kashchenko f7e4c1a
# 8153711, PR3313, RH1284948: [REDO] JDWP: Memory Leak: GlobalRefs never deleted when processing invokeMethod command
Alex Kashchenko 36b8ffd
#Patch535: 8153711-pr3313-rh1284948.patch
Alex Kashchenko f7e4c1a
# 8162384, PR3122, RH1358661: Performance regression: bimorphic inlining may be bypassed by type speculation
Alex Kashchenko 36b8ffd
#Patch532: 8162384-pr3122-rh1358661.patch
Alex Kashchenko f7e4c1a
# 8173941, PR3326: SA does not work if executable is DSO
Alex Kashchenko 36b8ffd
#Patch547: 8173941-pr3326.patch
Alex Kashchenko 3bf5379
# 8175813, PR3394, RH1448880: PPC64: "mbind: Invalid argument" when -XX:+UseNUMA is used
Alex Kashchenko 3bf5379
#Patch550: 8175813-pr3394-rh1448880.patch
Alex Kashchenko 3bf5379
# 8175887, PR3415: C1 value numbering handling of Unsafe.get*Volatile is incorrect
Alex Kashchenko 36b8ffd
#Patch554: 8175887-pr3415.patch
a3989ce
Alex Kashchenko 8e3a1b6
# Patches upstream and appearing in 8u161
Alex Kashchenko 8e3a1b6
# 8164293, PR3412, RH1459641: HotSpot leaking memory in long-running requests
Alex Kashchenko 36b8ffd
#Patch555: 8164293-pr3412-rh1459641.patch
Alex Kashchenko 36b8ffd
 
Alex Kashchenko 36b8ffd
# Patches upstream and appearing in 8u162
Alex Kashchenko 36b8ffd
# 8181055, PR3394, RH1448880: PPC64: "mbind: Invalid argument" still seen after 8175813
Alex Kashchenko 36b8ffd
# Patch551: 8181055-pr3394-rh1448880.patch
Alex Kashchenko 36b8ffd
# 8181419, PR3413, RH1463144: Race in jdwp invoker handling may lead to crashes or invalid results
Alex Kashchenko 36b8ffd
# Patch553: 8181419-pr3413-rh1463144.patch
Alex Kashchenko 36b8ffd
# 8145913, PR3466, RH1498309: PPC64: add Montgomery multiply intrinsic
Alex Kashchenko 36b8ffd
# Patch556: 8145913-pr3466-rh1498309.patch
Alex Kashchenko 36b8ffd
# 8168318, PR3466, RH1498320: PPC64: Use cmpldi instead of li/cmpld
Alex Kashchenko 36b8ffd
# Patch557: 8168318-pr3466-rh1498320.patch
Alex Kashchenko 36b8ffd
# 8170328, PR3466, RH1498321: PPC64: Use andis instead of lis/and
Alex Kashchenko 36b8ffd
# Patch558: 8170328-pr3466-rh1498321.patch
Alex Kashchenko 36b8ffd
# 8181810, PR3466, RH1498319: PPC64: Leverage extrdi for bitfield extract
Alex Kashchenko 36b8ffd
# Patch559: 8181810-pr3466-rh1498319.patch
Alex Kashchenko 8e3a1b6
a3989ce
# Patches ineligible for 8u
a3989ce
# 8043805: Allow using a system-installed libjpeg
a3989ce
Patch201: system-libjpeg.patch
Alex Kashchenko f7e4c1a
# custom securities
Alex Kashchenko 03a9057
Patch207: PR3183.patch
Alex Kashchenko 36b8ffd
# ustreamed aarch64 fixes
Alex Kashchenko 7bbcf47
#Patch208: aarch64BuildFailure.patch
Alex Kashchenko 36b8ffd
#Patch209: 8035496-hotspot.patch
Alex Kashchenko 36b8ffd
#Patch210: suse_linuxfilestore.patch
a3989ce
a3989ce
# Local fixes
akashche 02bc7e2
# PR1834, RH1022017: Reduce curves reported by SSL to those in NSS
akashche 02bc7e2
Patch525: pr1834-rh1022017.patch
Alex Kashchenko f7e4c1a
# Turn on AssumeMP by default on RHEL systems
Alex Kashchenko f7e4c1a
#Patch534: always_assumemp.patch
Alex Kashchenko f7e4c1a
# PR2888: OpenJDK should check for system cacerts database (e.g. /etc/pki/java/cacerts)
Alex Kashchenko f7e4c1a
Patch539: pr2888.patch
a3989ce
a3989ce
# Non-OpenJDK fixes
Alex Kashchenko 3bf5379
Patch1000: enableCommentedOutSystemNss.patch
a3989ce
a3989ce
BuildRequires: autoconf
a3989ce
BuildRequires: automake
a3989ce
BuildRequires: alsa-lib-devel
a3989ce
BuildRequires: binutils
a3989ce
BuildRequires: cups-devel
a3989ce
BuildRequires: desktop-file-utils
Alex Kashchenko 03a9057
BuildRequires: elfutils
a3989ce
BuildRequires: fontconfig
a3989ce
BuildRequires: freetype-devel
a3989ce
BuildRequires: giflib-devel
a3989ce
BuildRequires: gcc-c++
Alex Kashchenko fffdffb
BuildRequires: gdb
a3989ce
BuildRequires: gtk2-devel
a3989ce
BuildRequires: lcms2-devel
a3989ce
BuildRequires: libjpeg-devel
a3989ce
BuildRequires: libpng-devel
a3989ce
BuildRequires: libxslt
a3989ce
BuildRequires: libX11-devel
a3989ce
BuildRequires: libXi-devel
a3989ce
BuildRequires: libXinerama-devel
a3989ce
BuildRequires: libXt-devel
a3989ce
BuildRequires: libXtst-devel
a3989ce
# Requirements for setting up the nss.cfg
a3989ce
BuildRequires: nss-devel
a3989ce
BuildRequires: pkgconfig
a3989ce
BuildRequires: xorg-x11-proto-devel
a3989ce
BuildRequires: zip
Alex Kashchenko 3bf5379
# Use OpenJDK 7 where available (on RHEL) to avoid
Alex Kashchenko 3bf5379
# having to use the rhel-7.x-java-unsafe-candidate hack
Alex Kashchenko 3bf5379
%if 0%{?rhel}
Alex Kashchenko 3bf5379
BuildRequires: java-1.7.0-openjdk-devel
Alex Kashchenko 3bf5379
%else
Alex Kashchenko 8e3a1b6
BuildRequires: java-1.8.0-openjdk-aarch32-devel
Alex Kashchenko 3bf5379
%endif
a3989ce
# Zero-assembler build requirement.
a3989ce
%ifnarch %{jit_arches}
a3989ce
BuildRequires: libffi-devel
a3989ce
%endif
a3989ce
BuildRequires: tzdata-java >= 2015d
a3989ce
# Earlier versions have a bug in tree vectorization on PPC
a3989ce
BuildRequires: gcc >= 4.8.3-8
a3989ce
# Build requirements for SunEC system NSS support
a3989ce
BuildRequires: nss-softokn-freebl-devel >= 3.16.1
a3989ce
a3989ce
%if %{with_systemtap}
a3989ce
BuildRequires: systemtap-sdt-devel
a3989ce
%endif
a3989ce
a3989ce
# this is built always, also during debug-only build
a3989ce
# when it is built in debug-only, then this package is just placeholder
a3989ce
%{java_rpo %{nil}}
a3989ce
a3989ce
ExclusiveArch: %{arm}
a3989ce
a3989ce
%description
Alex Kashchenko 3bf5379
A preview release of the upstream OpenJDK AArch32 porting project.
a3989ce
The OpenJDK runtime environment.
a3989ce
a3989ce
%if %{include_debug_build}
a3989ce
%package debug
a3989ce
Summary: OpenJDK Runtime Environment %{debug_on}
a3989ce
Group:   Development/Languages
a3989ce
Alex Kashchenko 8e3a1b6
%{java_rpo -- %{debug_suffix_unquoted}}
a3989ce
%description debug
a3989ce
The OpenJDK runtime environment.
a3989ce
%{debug_warning}
a3989ce
%endif
a3989ce
a3989ce
%if %{include_normal_build}
a3989ce
%package headless
a3989ce
Summary: OpenJDK Runtime Environment
a3989ce
Group:   Development/Languages
a3989ce
a3989ce
%{java_headless_rpo %{nil}}
a3989ce
a3989ce
%description headless
a3989ce
The OpenJDK runtime environment without audio and video support.
a3989ce
%endif
a3989ce
a3989ce
%if %{include_debug_build}
a3989ce
%package headless-debug
a3989ce
Summary: OpenJDK Runtime Environment %{debug_on}
a3989ce
Group:   Development/Languages
a3989ce
Alex Kashchenko 8e3a1b6
%{java_headless_rpo -- %{debug_suffix_unquoted}}
a3989ce
a3989ce
%description headless-debug
a3989ce
The OpenJDK runtime environment without audio and video support.
a3989ce
%{debug_warning}
a3989ce
%endif
a3989ce
a3989ce
%if %{include_normal_build}
a3989ce
%package devel
a3989ce
Summary: OpenJDK Development Environment
a3989ce
Group:   Development/Tools
a3989ce
a3989ce
%{java_devel_rpo %{nil}}
a3989ce
a3989ce
%description devel
a3989ce
The OpenJDK development tools.
a3989ce
%endif
a3989ce
a3989ce
%if %{include_debug_build}
a3989ce
%package devel-debug
a3989ce
Summary: OpenJDK Development Environment %{debug_on}
a3989ce
Group:   Development/Tools
a3989ce
Alex Kashchenko 8e3a1b6
%{java_devel_rpo -- %{debug_suffix_unquoted}}
a3989ce
a3989ce
%description devel-debug
a3989ce
The OpenJDK development tools.
a3989ce
%{debug_warning}
a3989ce
%endif
a3989ce
a3989ce
%if %{include_normal_build}
a3989ce
%package demo
a3989ce
Summary: OpenJDK Demos
a3989ce
Group:   Development/Languages
a3989ce
a3989ce
%{java_demo_rpo %{nil}}
a3989ce
a3989ce
%description demo
a3989ce
The OpenJDK demos.
a3989ce
%endif
a3989ce
a3989ce
%if %{include_debug_build}
a3989ce
%package demo-debug
a3989ce
Summary: OpenJDK Demos %{debug_on}
a3989ce
Group:   Development/Languages
a3989ce
Alex Kashchenko 8e3a1b6
%{java_demo_rpo -- %{debug_suffix_unquoted}}
a3989ce
a3989ce
%description demo-debug
a3989ce
The OpenJDK demos.
a3989ce
%{debug_warning}
a3989ce
%endif
a3989ce
a3989ce
%if %{include_normal_build}
a3989ce
%package src
a3989ce
Summary: OpenJDK Source Bundle
a3989ce
Group:   Development/Languages
a3989ce
a3989ce
%{java_src_rpo %{nil}}
a3989ce
a3989ce
%description src
a3989ce
The OpenJDK source bundle.
a3989ce
%endif
a3989ce
a3989ce
%if %{include_debug_build}
a3989ce
%package src-debug
a3989ce
Summary: OpenJDK Source Bundle %{for_debug}
a3989ce
Group:   Development/Languages
a3989ce
Alex Kashchenko 8e3a1b6
%{java_src_rpo -- %{debug_suffix_unquoted}}
a3989ce
a3989ce
%description src-debug
a3989ce
The OpenJDK source bundle %{for_debug}.
a3989ce
%endif
a3989ce
a3989ce
%if %{include_normal_build}
a3989ce
%package javadoc
a3989ce
Summary: OpenJDK API Documentation
a3989ce
Group:   Documentation
a3989ce
Requires: javapackages-tools
a3989ce
BuildArch: noarch
a3989ce
a3989ce
%{java_javadoc_rpo %{nil}}
a3989ce
a3989ce
%description javadoc
a3989ce
The OpenJDK API documentation.
a3989ce
%endif
a3989ce
92bdec1
%if %{include_normal_build}
92bdec1
%package javadoc-zip
92bdec1
Summary: OpenJDK API Documentation compressed in single archive
92bdec1
Group:   Documentation
92bdec1
Requires: javapackages-tools
92bdec1
BuildArch: noarch
92bdec1
92bdec1
%{java_javadoc_rpo %{nil}}
92bdec1
92bdec1
%description javadoc-zip
92bdec1
The OpenJDK API documentation compressed in single archive.
92bdec1
%endif
92bdec1
a3989ce
%if %{include_debug_build}
a3989ce
%package javadoc-debug
a3989ce
Summary: OpenJDK API Documentation %{for_debug}
a3989ce
Group:   Documentation
a3989ce
Requires: javapackages-tools
a3989ce
BuildArch: noarch
a3989ce
Alex Kashchenko 8e3a1b6
%{java_javadoc_rpo -- %{debug_suffix_unquoted}}
a3989ce
a3989ce
%description javadoc-debug
a3989ce
The OpenJDK API documentation %{for_debug}.
a3989ce
%endif
a3989ce
92bdec1
%if %{include_debug_build}
92bdec1
%package javadoc-zip-debug
92bdec1
Summary: OpenJDK API Documentation compressed in single archive %{for_debug}
92bdec1
Group:   Documentation
92bdec1
Requires: javapackages-tools
92bdec1
BuildArch: noarch
92bdec1
Alex Kashchenko 8e3a1b6
%{java_javadoc_rpo -- %{debug_suffix_unquoted}}
92bdec1
92bdec1
%description javadoc-zip-debug
92bdec1
The OpenJDK API documentation compressed in single archive %{for_debug}.
92bdec1
%endif
92bdec1
92bdec1
a3989ce
%if %{include_normal_build}
a3989ce
%package accessibility
a3989ce
Summary: OpenJDK accessibility connector
a3989ce
a3989ce
%{java_accessibility_rpo %{nil}}
a3989ce
a3989ce
%description accessibility
a3989ce
Enables accessibility support in OpenJDK by using java-atk-wrapper. This allows
a3989ce
compatible at-spi2 based accessibility programs to work for AWT and Swing-based
a3989ce
programs.
a3989ce
a3989ce
Please note, the java-atk-wrapper is still in beta, and OpenJDK itself is still
a3989ce
being tuned to be working with accessibility features. There are known issues
a3989ce
with accessibility on, so please do not install this package unless you really
a3989ce
need to.
a3989ce
%endif
a3989ce
a3989ce
%if %{include_debug_build}
a3989ce
%package accessibility-debug
a3989ce
Summary: OpenJDK accessibility connector %{for_debug}
a3989ce
Alex Kashchenko 8e3a1b6
%{java_accessibility_rpo -- %{debug_suffix_unquoted}}
a3989ce
a3989ce
%description accessibility-debug
a3989ce
See normal java-%{version}-openjdk-accessibility description.
a3989ce
%endif
a3989ce
Alex Kashchenko 3bf5379
Alex Kashchenko 3bf5379
%if %{with_openjfx_binding}
Alex Kashchenko 3bf5379
%package openjfx
Alex Kashchenko 3bf5379
Summary: OpenJDK x OpenJFX connector. This package adds symliks finishing Java FX integration to %{name}
Alex Kashchenko 3bf5379
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
Alex Kashchenko 3bf5379
Requires: openjfx%{?_isa}
Alex Kashchenko 3bf5379
Provides: javafx  = %{epoch}:%{version}-%{release}
Alex Kashchenko 3bf5379
%description openjfx
Alex Kashchenko 3bf5379
Set of links from OpenJDK (jre) to OpenJFX
Alex Kashchenko 3bf5379
Alex Kashchenko 3bf5379
%package openjfx-devel
Alex Kashchenko 3bf5379
Summary: OpenJDK x OpenJFX connector for FX developers. This package adds symliks finishing Java FX integration to %{name}-devel
Alex Kashchenko 3bf5379
Requires: %{name}-devel%{?_isa} = %{epoch}:%{version}-%{release}
Alex Kashchenko 3bf5379
Requires: openjfx-devel%{?_isa}
Alex Kashchenko 3bf5379
Provides: javafx-devel = %{epoch}:%{version}-%{release}
Alex Kashchenko 3bf5379
%description openjfx-devel
Alex Kashchenko 3bf5379
Set of links from OpenJDK (sdk) to OpenJFX
Alex Kashchenko 3bf5379
Alex Kashchenko 3bf5379
%if %{include_debug_build}
Alex Kashchenko 3bf5379
%package openjfx-debug
Alex Kashchenko 3bf5379
Summary: OpenJDK x OpenJFX connector %{for_debug}. his package adds symliks finishing Java FX integration to %{name}-debug
Alex Kashchenko 3bf5379
Requires: %{name}-debug%{?_isa} = %{epoch}:%{version}-%{release}
Alex Kashchenko 3bf5379
Requires: openjfx%{?_isa}
Alex Kashchenko 3bf5379
Provides: javafx-debug = %{epoch}:%{version}-%{release}
Alex Kashchenko 3bf5379
%description openjfx-debug
Alex Kashchenko 3bf5379
Set of links from OpenJDK-debug (jre) to normal OpenJFX. OpenJFX do not support debug buuilds of itself
Alex Kashchenko 3bf5379
Alex Kashchenko 3bf5379
%package openjfx-devel-debug
Alex Kashchenko 3bf5379
Summary: OpenJDK x OpenJFX connector for FX developers %{for_debug}. This package adds symliks finishing Java FX integration to %{name}-devel-debug
Alex Kashchenko 3bf5379
Requires: %{name}-devel-debug%{?_isa} = %{epoch}:%{version}-%{release}
Alex Kashchenko 3bf5379
Requires: openjfx-devel%{?_isa}
Alex Kashchenko 3bf5379
Provides: javafx-devel-debug = %{epoch}:%{version}-%{release}
Alex Kashchenko 3bf5379
%description openjfx-devel-debug
Alex Kashchenko 3bf5379
Set of links from OpenJDK-debug (sdk) to normal OpenJFX. OpenJFX do not support debug buuilds of itself
Alex Kashchenko 3bf5379
%endif
Alex Kashchenko 3bf5379
%endif
Alex Kashchenko 3bf5379
a3989ce
%prep
a3989ce
if [ %{include_normal_build} -eq 0 -o  %{include_normal_build} -eq 1 ] ; then
a3989ce
  echo "include_normal_build is %{include_normal_build}"
a3989ce
else
a3989ce
  echo "include_normal_build is %{include_normal_build}, thats invalid. Use 1 for yes or 0 for no"
a3989ce
  exit 11
a3989ce
fi
a3989ce
if [ %{include_debug_build} -eq 0 -o  %{include_debug_build} -eq 1 ] ; then
a3989ce
  echo "include_debug_build is %{include_debug_build}"
a3989ce
else
a3989ce
  echo "include_debug_build is %{include_debug_build}, thats invalid. Use 1 for yes or 0 for no"
a3989ce
  exit 12
a3989ce
fi
a3989ce
if [ %{include_debug_build} -eq 0 -a  %{include_normal_build} -eq 0 ] ; then
a3989ce
  echo "you have disabled both include_debug_build and include_debug_build. no go."
a3989ce
  exit 13
a3989ce
fi
a3989ce
%setup -q -c -n %{uniquesuffix ""} -T -a 0
a3989ce
# https://bugzilla.redhat.com/show_bug.cgi?id=1189084
a3989ce
prioritylength=`expr length %{priority}`
a3989ce
if [ $prioritylength -ne 7 ] ; then
a3989ce
 echo "priority must be 7 digits in total, violated"
a3989ce
 exit 14
a3989ce
fi
a3989ce
# For old patches
a3989ce
ln -s openjdk jdk8
Alex Kashchenko f7e4c1a
%if %{use_shenandoah_hotspot}
Alex Kashchenko f7e4c1a
# On Shenandoah-supported architectures, replace HotSpot with
Alex Kashchenko f7e4c1a
# the Shenandoah version
Alex Kashchenko f7e4c1a
pushd openjdk
Alex Kashchenko 3bf5379
tar -xf %{SOURCE1}
Alex Kashchenko f7e4c1a
rm -rf hotspot
Alex Kashchenko f7e4c1a
mv openjdk/hotspot .
Alex Kashchenko f7e4c1a
rm -rf openjdk
Alex Kashchenko f7e4c1a
popd
Alex Kashchenko f7e4c1a
%endif
a3989ce
a3989ce
cp %{SOURCE2} .
a3989ce
a3989ce
# replace outdated configure guess script
a3989ce
#
a3989ce
# the configure macro will do this too, but it also passes a few flags not
a3989ce
# supported by openjdk configure script
a3989ce
cp %{SOURCE100} openjdk/common/autoconf/build-aux/
a3989ce
cp %{SOURCE101} openjdk/common/autoconf/build-aux/
a3989ce
a3989ce
# OpenJDK patches
a3989ce
a3989ce
# Remove libraries that are linked
a3989ce
sh %{SOURCE12}
a3989ce
Alex Kashchenko f7e4c1a
# System library fixes
a3989ce
%patch201
a3989ce
%patch202
a3989ce
%patch203
Alex Kashchenko f7e4c1a
Alex Kashchenko f7e4c1a
# Debugging fixes
Alex Kashchenko 03a9057
%patch204
Alex Kashchenko 03a9057
%patch205
Alex Kashchenko 03a9057
%patch206
Alex Kashchenko 03a9057
%patch207
Alex Kashchenko 7bbcf47
#%patch208
Alex Kashchenko 36b8ffd
#%patch209
Alex Kashchenko 36b8ffd
#%patch210
a3989ce
a3989ce
%patch1
a3989ce
%patch3
a3989ce
%patch5
a3989ce
%patch7
a3989ce
Alex Kashchenko f7e4c1a
# s390 build fixes
Alex Kashchenko f7e4c1a
#%patch100
Alex Kashchenko f7e4c1a
#%patch102
Alex Kashchenko f7e4c1a
#%patch103
Alex Kashchenko f7e4c1a
Alex Kashchenko f7e4c1a
# ppc64le fixes
Alex Kashchenko f7e4c1a
Alex Kashchenko f7e4c1a
#%patch603
Alex Kashchenko f7e4c1a
#%patch601
Alex Kashchenko f7e4c1a
#%patch602
Alex Kashchenko f7e4c1a
Alex Kashchenko f7e4c1a
# Zero fixes.
Alex Kashchenko f7e4c1a
Alex Kashchenko f7e4c1a
# Upstreamable fixes
a3989ce
%patch502
a3989ce
%patch504
a3989ce
%patch506
a3989ce
%patch507
a3989ce
%patch508
a3989ce
%patch509
a3989ce
%patch511
a3989ce
%patch512
a3989ce
%patch513
a3989ce
%patch514
a3989ce
%patch515
a3989ce
%patch516
akashche 02bc7e2
%patch517
akashche 02bc7e2
%patch518
Alex Kashchenko 36b8ffd
%patch519
akashche 02bc7e2
%patch400
akashche 02bc7e2
%patch523
Alex Kashchenko f7e4c1a
%patch526
akashche 02bc7e2
%patch528
Alex Kashchenko 36b8ffd
#%patch532
Alex Kashchenko 36b8ffd
#%patch535
Alex Kashchenko f7e4c1a
%patch538
Alex Kashchenko 36b8ffd
#%patch547
Alex Kashchenko 3bf5379
#%patch550
Alex Kashchenko 3bf5379
#%patch551
Alex Kashchenko 36b8ffd
#%patch553
Alex Kashchenko 36b8ffd
#%patch555
Alex Kashchenko 36b8ffd
%patch560
Alex Kashchenko 36b8ffd
#%patch561
Alex Kashchenko 36b8ffd
Alex Kashchenko 36b8ffd
# PPC64 updates
Alex Kashchenko 36b8ffd
#%patch556
Alex Kashchenko 36b8ffd
#%patch557
Alex Kashchenko 36b8ffd
#%patch558
Alex Kashchenko 36b8ffd
#%patch559
Alex Kashchenko f7e4c1a
Alex Kashchenko f7e4c1a
# RPM-only fixes
Alex Kashchenko f7e4c1a
%patch525
Alex Kashchenko f7e4c1a
%patch539
a3989ce
Alex Kashchenko f7e4c1a
# RHEL-only patches
Alex Kashchenko 36b8ffd
%if ! 0%{?fedora} && 0%{?rhel} <= 7
Alex Kashchenko f7e4c1a
%patch534
Alex Kashchenko f7e4c1a
%endif
Alex Kashchenko ef6143b
Alex Kashchenko 8e3a1b6
# 8175887 was added to the Shenandoah HotSpot ahead of time
Alex Kashchenko 8e3a1b6
%if %{use_shenandoah_hotspot}
Alex Kashchenko 8e3a1b6
%else
Alex Kashchenko 36b8ffd
#%patch554
Alex Kashchenko 8e3a1b6
%endif
Alex Kashchenko 8e3a1b6
Alex Kashchenko 3bf5379
%patch1000
Alex Kashchenko 3bf5379
a3989ce
# Extract systemtap tapsets
a3989ce
%if %{with_systemtap}
92bdec1
tar -x -I xz -f %{SOURCE8}
a3989ce
%if %{include_debug_build}
a3989ce
cp -r tapset tapset%{debug_suffix}
a3989ce
%endif
a3989ce
a3989ce
a3989ce
for suffix in %{build_loop} ; do
a3989ce
  for file in "tapset"$suffix/*.in; do
a3989ce
    OUTPUT_FILE=`echo $file | sed -e s:%{javaver}\.stp\.in$:%{version}-%{release}.%{_arch}.stp:g`
Alex Kashchenko 8e3a1b6
    sed -e s:@ABS_SERVER_LIBJVM_SO@:%{_jvmdir}/%{sdkdir -- $suffix}/jre/lib/%{archinstall}/server/libjvm.so:g $file > $file.1
a3989ce
# TODO find out which architectures other than i686 have a client vm
a3989ce
%ifarch %{ix86}
Alex Kashchenko 8e3a1b6
    sed -e s:@ABS_CLIENT_LIBJVM_SO@:%{_jvmdir}/%{sdkdir -- $suffix}/jre/lib/%{archinstall}/client/libjvm.so:g $file.1 > $OUTPUT_FILE
a3989ce
%else
a3989ce
    sed -e '/@ABS_CLIENT_LIBJVM_SO@/d' $file.1 > $OUTPUT_FILE
a3989ce
%endif
Alex Kashchenko 8e3a1b6
    sed -i -e s:@ABS_JAVA_HOME_DIR@:%{_jvmdir}/%{sdkdir -- $suffix}:g $OUTPUT_FILE
a3989ce
    sed -i -e s:@INSTALL_ARCH_DIR@:%{archinstall}:g $OUTPUT_FILE
Alex Kashchenko 8e3a1b6
    sed -i -e s:@prefix@:%{_jvmdir}/%{sdkdir -- $suffix}/:g $OUTPUT_FILE
a3989ce
  done
a3989ce
done
a3989ce
# systemtap tapsets ends
a3989ce
%endif
a3989ce
a3989ce
# Prepare desktop files
a3989ce
for suffix in %{build_loop} ; do
a3989ce
for file in %{SOURCE9} %{SOURCE10} ; do
a3989ce
    FILE=`basename $file | sed -e s:\.in$::g`
a3989ce
    EXT="${FILE##*.}"
a3989ce
    NAME="${FILE%.*}"
a3989ce
    OUTPUT_FILE=$NAME$suffix.$EXT
Alex Kashchenko 8e3a1b6
    sed -e s:#JAVA_HOME#:%{sdkbindir -- $suffix}:g $file > $OUTPUT_FILE
Alex Kashchenko 8e3a1b6
    sed -i -e  s:#JRE_HOME#:%{jrebindir -- $suffix}:g $OUTPUT_FILE
a3989ce
    sed -i -e  s:#ARCH#:%{version}-%{release}.%{_arch}$suffix:g $OUTPUT_FILE
a3989ce
done
a3989ce
done
a3989ce
Alex Kashchenko f7e4c1a
# Setup nss.cfg
Alex Kashchenko f7e4c1a
sed -e s:@NSS_LIBDIR@:%{NSS_LIBDIR}:g %{SOURCE11} > nss.cfg
Alex Kashchenko 5c8049f
92bdec1
a3989ce
%build
a3989ce
# How many cpu's do we have?
a3989ce
export NUM_PROC=%(/usr/bin/getconf _NPROCESSORS_ONLN 2> /dev/null || :)
a3989ce
export NUM_PROC=${NUM_PROC:-1}
a3989ce
%if 0%{?_smp_ncpus_max}
a3989ce
# Honor %%_smp_ncpus_max
a3989ce
[ ${NUM_PROC} -gt %{?_smp_ncpus_max} ] && export NUM_PROC=%{?_smp_ncpus_max}
a3989ce
%endif
a3989ce
a3989ce
# Build IcedTea and OpenJDK.
a3989ce
%ifarch s390x sparc64 alpha %{power64} %{aarch64}
a3989ce
export ARCH_DATA_MODEL=64
a3989ce
%endif
a3989ce
%ifarch alpha
a3989ce
export CFLAGS="$CFLAGS -mieee"
a3989ce
%endif
a3989ce
a3989ce
# We use ourcppflags because the OpenJDK build seems to
a3989ce
# pass EXTRA_CFLAGS to the HotSpot C++ compiler...
a3989ce
# Explicitly set the C++ standard as the default has changed on GCC >= 6
a3989ce
EXTRA_CFLAGS="%ourcppflags -std=gnu++98 -Wno-error -fno-delete-null-pointer-checks -fno-lifetime-dse"
a3989ce
EXTRA_CPP_FLAGS="%ourcppflags -std=gnu++98 -fno-delete-null-pointer-checks -fno-lifetime-dse"
a3989ce
%ifarch %{power64} ppc
a3989ce
# fix rpmlint warnings
a3989ce
EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
a3989ce
%endif
a3989ce
export EXTRA_CFLAGS
a3989ce
a3989ce
(cd openjdk/common/autoconf
a3989ce
 bash ./autogen.sh
a3989ce
)
a3989ce
a3989ce
for suffix in %{build_loop} ; do
a3989ce
if [ "$suffix" = "%{debug_suffix}" ] ; then
a3989ce
debugbuild=%{debugbuild_parameter}
a3989ce
else
a3989ce
debugbuild=%{normalbuild_parameter}
a3989ce
fi
a3989ce
Alex Kashchenko 8e3a1b6
mkdir -p %{buildoutputdir -- $suffix}
Alex Kashchenko 8e3a1b6
pushd %{buildoutputdir -- $suffix}
a3989ce
a3989ce
NSS_LIBS="%{NSS_LIBS} -lfreebl" \
a3989ce
NSS_CFLAGS="%{NSS_CFLAGS}" \
a3989ce
bash ../../configure \
Alex Kashchenko ef6143b
    --with-jvm-variants=client \
a3989ce
    --disable-zip-debug-info \
a3989ce
    --with-milestone="fcs" \
a3989ce
    --with-update-version=%{updatever} \
a3989ce
    --with-build-number=%{buildver} \
Alex Kashchenko 8e3a1b6
    --with-boot-jdk=$(echo /usr/lib/jvm/java-1.8.0-openjdk-aarch32-*) \
a3989ce
    --with-debug-level=$debugbuild \
a3989ce
    --enable-unlimited-crypto \
a3989ce
    --enable-system-nss \
a3989ce
    --with-zlib=system \
a3989ce
    --with-libjpeg=system \
a3989ce
    --with-giflib=system \
a3989ce
    --with-libpng=system \
a3989ce
    --with-lcms=bundled \
a3989ce
    --with-stdc++lib=dynamic \
a3989ce
    --with-extra-cxxflags="$EXTRA_CPP_FLAGS" \
a3989ce
    --with-extra-cflags="$EXTRA_CFLAGS" \
a3989ce
    --with-extra-ldflags="%{ourldflags}" \
a3989ce
    --with-num-cores="$NUM_PROC"
a3989ce
a3989ce
cat spec.gmk
a3989ce
cat hotspot-spec.gmk
a3989ce
a3989ce
# The combination of FULL_DEBUG_SYMBOLS=0 and ALT_OBJCOPY=/does_not_exist
a3989ce
# disables FDS for all build configs and reverts to pre-FDS make logic.
a3989ce
# STRIP_POLICY=none says don't do any stripping. DEBUG_BINARIES=true says
a3989ce
# ignore all the other logic about which debug options and just do '-g'.
a3989ce
a3989ce
make \
a3989ce
    DEBUG_BINARIES=true \
a3989ce
    JAVAC_FLAGS=-g \
a3989ce
    STRIP_POLICY=no_strip \
a3989ce
    POST_STRIP_CMD="" \
a3989ce
    LOG=trace \
a3989ce
    SCTP_WERROR= \
a3989ce
    %{targets}
a3989ce
92bdec1
make zip-docs
92bdec1
a3989ce
# the build (erroneously) removes read permissions from some jars
a3989ce
# this is a regression in OpenJDK 7 (our compiler):
a3989ce
# http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1437
a3989ce
find images/%{j2sdkimage} -iname '*.jar' -exec chmod ugo+r {} \;
a3989ce
chmod ugo+r images/%{j2sdkimage}/lib/ct.sym
a3989ce
a3989ce
# remove redundant *diz and *debuginfo files
a3989ce
find images/%{j2sdkimage} -iname '*.diz' -exec rm {} \;
a3989ce
find images/%{j2sdkimage} -iname '*.debuginfo' -exec rm {} \;
a3989ce
a3989ce
popd >& /dev/null
a3989ce
a3989ce
# Install nss.cfg right away as we will be using the JRE above
Alex Kashchenko 8e3a1b6
export JAVA_HOME=$(pwd)/%{buildoutputdir -- $suffix}/images/%{j2sdkimage}
a3989ce
a3989ce
# Install nss.cfg right away as we will be using the JRE above
Alex Kashchenko f7e4c1a
install -m 644 nss.cfg $JAVA_HOME/jre/lib/security/
a3989ce
a3989ce
# Use system-wide tzdata
a3989ce
rm $JAVA_HOME/jre/lib/tzdb.dat
a3989ce
ln -s %{_datadir}/javazi-1.8/tzdb.dat $JAVA_HOME/jre/lib/tzdb.dat
a3989ce
a3989ce
#build cycles
a3989ce
done
a3989ce
a3989ce
%check
a3989ce
a3989ce
# We test debug first as it will give better diagnostics on a crash
a3989ce
for suffix in %{rev_build_loop} ; do
a3989ce
Alex Kashchenko 8e3a1b6
export JAVA_HOME=$(pwd)/%{buildoutputdir -- $suffix}/images/%{j2sdkimage}
a3989ce
a3989ce
# Check unlimited policy has been used
a3989ce
$JAVA_HOME/bin/javac -d . %{SOURCE13}
a3989ce
$JAVA_HOME/bin/java TestCryptoLevel
a3989ce
Alex Kashchenko 5c8049f
# Check ECC is working
Alex Kashchenko 5c8049f
$JAVA_HOME/bin/javac -d . %{SOURCE14}
Alex Kashchenko 5c8049f
$JAVA_HOME/bin/java $(echo $(basename %{SOURCE14})|sed "s|\.java||")
Alex Kashchenko 5c8049f
a3989ce
# Check debug symbols are present and can identify code
Alex Kashchenko 03a9057
find "$JAVA_HOME" -iname '*.so' -print0 | while read -d $'\0' lib
Alex Kashchenko 03a9057
do
Alex Kashchenko 03a9057
  if [ -f "$lib" ] ; then
Alex Kashchenko 03a9057
    echo "Testing $lib for debug symbols"
Alex Kashchenko 03a9057
    # All these tests rely on RPM failing the build if the exit code of any set
Alex Kashchenko 03a9057
    # of piped commands is non-zero.
Alex Kashchenko 03a9057
Alex Kashchenko 03a9057
    # Test for .debug_* sections in the shared object. This is the  main test.
Alex Kashchenko 03a9057
    # Stripped objects will not contain these.
Alex Kashchenko 03a9057
    eu-readelf -S "$lib" | grep "] .debug_"
Alex Kashchenko f7e4c1a
    test $(eu-readelf -S "$lib" | grep -E "\]\ .debug_(info|abbrev)" | wc --lines) == 2
Alex Kashchenko 03a9057
Alex Kashchenko 03a9057
    # Test FILE symbols. These will most likely be removed by anyting that
Alex Kashchenko 03a9057
    # manipulates symbol tables because it's generally useless. So a nice test
Alex Kashchenko 03a9057
    # that nothing has messed with symbols.
Alex Kashchenko 03a9057
    old_IFS="$IFS"
Alex Kashchenko 03a9057
    IFS=$'\n'
Alex Kashchenko 03a9057
    for line in $(eu-readelf -s "$lib" | grep "00000000      0 FILE    LOCAL  DEFAULT")
Alex Kashchenko 03a9057
    do
Alex Kashchenko 03a9057
     # We expect to see .cpp files, except for architectures like aarch64 and
Alex Kashchenko 03a9057
     # s390 where we expect .o and .oS files
Alex Kashchenko f7e4c1a
      echo "$line" | grep -E "ABS ((.*/)?[-_a-zA-Z0-9]+\.(c|cc|cpp|cxx|o|oS))?$"
Alex Kashchenko 03a9057
    done
Alex Kashchenko 03a9057
    IFS="$old_IFS"
Alex Kashchenko 03a9057
Alex Kashchenko 03a9057
    # If this is the JVM, look for javaCalls.(cpp|o) in FILEs, for extra sanity checking.
Alex Kashchenko 03a9057
    if [ "`basename $lib`" = "libjvm.so" ]; then
Alex Kashchenko 03a9057
      eu-readelf -s "$lib" | \
Alex Kashchenko f7e4c1a
        grep -E "00000000      0 FILE    LOCAL  DEFAULT      ABS javaCalls.(cpp|o)$"
Alex Kashchenko 03a9057
    fi
Alex Kashchenko 03a9057
Alex Kashchenko 03a9057
    # Test that there are no .gnu_debuglink sections pointing to another
Alex Kashchenko 03a9057
    # debuginfo file. There shouldn't be any debuginfo files, so the link makes
Alex Kashchenko 03a9057
    # no sense either.
Alex Kashchenko 03a9057
    eu-readelf -S "$lib" | grep 'gnu'
Alex Kashchenko 03a9057
    if eu-readelf -S "$lib" | grep '] .gnu_debuglink' | grep PROGBITS; then
Alex Kashchenko 03a9057
      echo "bad .gnu_debuglink section."
Alex Kashchenko 03a9057
      eu-readelf -x .gnu_debuglink "$lib"
Alex Kashchenko 03a9057
      false
Alex Kashchenko 03a9057
    fi
Alex Kashchenko 03a9057
  fi
Alex Kashchenko 03a9057
done
Alex Kashchenko 03a9057
Alex Kashchenko 03a9057
# Make sure gdb can do a backtrace based on line numbers on libjvm.so
Alex Kashchenko 102fc87
gdb -q "$JAVA_HOME/bin/java" <
Alex Kashchenko 102fc87
handle SIGSEGV pass nostop noprint
Alex Kashchenko 102fc87
handle SIGILL pass nostop noprint
Alex Kashchenko 102fc87
set breakpoint pending on
Alex Kashchenko 102fc87
break javaCalls.cpp:1
Alex Kashchenko 102fc87
commands 1
Alex Kashchenko 102fc87
backtrace
Alex Kashchenko 102fc87
quit
Alex Kashchenko 102fc87
end
Alex Kashchenko 102fc87
run -version
Alex Kashchenko 102fc87
EOF
Alex Kashchenko 102fc87
grep 'JavaCallWrapper::JavaCallWrapper' gdb.out
a3989ce
a3989ce
# Check src.zip has all sources. See RHBZ#1130490
a3989ce
jar -tf $JAVA_HOME/src.zip | grep 'sun.misc.Unsafe'
a3989ce
a3989ce
# Check class files include useful debugging information
a3989ce
$JAVA_HOME/bin/javap -l java.lang.Object | grep "Compiled from"
a3989ce
$JAVA_HOME/bin/javap -l java.lang.Object | grep LineNumberTable
a3989ce
$JAVA_HOME/bin/javap -l java.lang.Object | grep LocalVariableTable
a3989ce
a3989ce
# Check generated class files include useful debugging information
a3989ce
$JAVA_HOME/bin/javap -l java.nio.ByteBuffer | grep "Compiled from"
a3989ce
$JAVA_HOME/bin/javap -l java.nio.ByteBuffer | grep LineNumberTable
a3989ce
$JAVA_HOME/bin/javap -l java.nio.ByteBuffer | grep LocalVariableTable
Alex Kashchenko 3bf5379
Alex Kashchenko 3bf5379
#build cycles check
a3989ce
done
a3989ce
a3989ce
%install
a3989ce
STRIP_KEEP_SYMTAB=libjvm*
a3989ce
a3989ce
for suffix in %{build_loop} ; do
a3989ce
Alex Kashchenko 8e3a1b6
pushd %{buildoutputdir -- $suffix}/images/%{j2sdkimage}
a3989ce
a3989ce
#install jsa directories so we can owe them
Alex Kashchenko 8e3a1b6
mkdir -p $RPM_BUILD_ROOT%{_jvmdir}/%{jredir -- $suffix}/lib/%{archinstall}/server/
Alex Kashchenko 8e3a1b6
mkdir -p $RPM_BUILD_ROOT%{_jvmdir}/%{jredir -- $suffix}/lib/%{archinstall}/client/
Alex Kashchenko 5be5b59
a3989ce
  # Install main files.
Alex Kashchenko 8e3a1b6
  install -d -m 755 $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}
Alex Kashchenko 8e3a1b6
  cp -a bin include lib src.zip $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}
Alex Kashchenko 8e3a1b6
  install -d -m 755 $RPM_BUILD_ROOT%{_jvmdir}/%{jredir -- $suffix}
Alex Kashchenko 8e3a1b6
  cp -a jre/bin jre/lib $RPM_BUILD_ROOT%{_jvmdir}/%{jredir -- $suffix}
a3989ce
a3989ce
%if %{with_systemtap}
a3989ce
  # Install systemtap support files.
Alex Kashchenko 8e3a1b6
  install -dm 755 $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/tapset
a3989ce
  # note, that uniquesuffix  is in BUILD dir in this case
Alex Kashchenko 8e3a1b6
  cp -a $RPM_BUILD_DIR/%{uniquesuffix ""}/tapset$suffix/*.stp $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/tapset/
Alex Kashchenko 8e3a1b6
  pushd  $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/tapset/
a3989ce
   tapsetFiles=`ls *.stp`
a3989ce
  popd
a3989ce
  install -d -m 755 $RPM_BUILD_ROOT%{tapsetdir}
a3989ce
  pushd $RPM_BUILD_ROOT%{tapsetdir}
Alex Kashchenko 8e3a1b6
    RELATIVE=$(%{abs2rel} %{_jvmdir}/%{sdkdir -- $suffix}/tapset %{tapsetdir})
a3989ce
    for name in $tapsetFiles ; do
a3989ce
      targetName=`echo $name | sed "s/.stp/$suffix.stp/"`
a3989ce
      ln -sf $RELATIVE/$name $targetName
a3989ce
    done
a3989ce
  popd
a3989ce
%endif
a3989ce
Alex Kashchenko f7e4c1a
  # Remove empty cacerts database.
Alex Kashchenko 8e3a1b6
  rm -f $RPM_BUILD_ROOT%{_jvmdir}/%{jredir -- $suffix}/lib/security/cacerts
Alex Kashchenko 3bf5379
  # Install cacerts symlink needed by some apps which hardcode the path.
Alex Kashchenko 8e3a1b6
  pushd $RPM_BUILD_ROOT%{_jvmdir}/%{jredir -- $suffix}/lib/security
Alex Kashchenko 3bf5379
    RELATIVE=$(%{abs2rel} %{_sysconfdir}/pki/java \
Alex Kashchenko 8e3a1b6
      %{_jvmdir}/%{jredir -- $suffix}/lib/security)
Alex Kashchenko 3bf5379
    ln -sf $RELATIVE/cacerts .
a3989ce
  popd
a3989ce
a3989ce
  # Install JCE policy symlinks.
Alex Kashchenko 8e3a1b6
  install -d -m 755 $RPM_BUILD_ROOT%{_jvmprivdir}/%{uniquesuffix -- $suffix}/jce/vanilla
a3989ce
a3989ce
  # Install versioned symlinks.
a3989ce
  pushd $RPM_BUILD_ROOT%{_jvmdir}
Alex Kashchenko 8e3a1b6
    ln -sf %{jredir -- $suffix} %{jrelnk -- $suffix}
a3989ce
  popd
a3989ce
a3989ce
  # Remove javaws man page
a3989ce
  rm -f man/man1/javaws*
a3989ce
a3989ce
  # Install man pages.
a3989ce
  install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man1
a3989ce
  for manpage in man/man1/*
a3989ce
  do
a3989ce
    # Convert man pages to UTF8 encoding.
a3989ce
    iconv -f ISO_8859-1 -t UTF8 $manpage -o $manpage.tmp
a3989ce
    mv -f $manpage.tmp $manpage
a3989ce
    install -m 644 -p $manpage $RPM_BUILD_ROOT%{_mandir}/man1/$(basename \
Alex Kashchenko 8e3a1b6
      $manpage .1)-%{uniquesuffix -- $suffix}.1
a3989ce
  done
a3989ce
a3989ce
  # Install demos and samples.
Alex Kashchenko 8e3a1b6
  cp -a demo $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}
a3989ce
  mkdir -p sample/rmi
a3989ce
  if [ ! -e sample/rmi/java-rmi.cgi ] ; then 
a3989ce
    # hack to allow --short-circuit on install
a3989ce
    mv bin/java-rmi.cgi sample/rmi
a3989ce
  fi
Alex Kashchenko 8e3a1b6
  cp -a sample $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}
a3989ce
a3989ce
popd
a3989ce
a3989ce
a3989ce
# Install Javadoc documentation.
a3989ce
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}
Alex Kashchenko 8e3a1b6
cp -a %{buildoutputdir -- $suffix}/docs $RPM_BUILD_ROOT%{_javadocdir}/%{uniquejavadocdir -- $suffix}
Alex Kashchenko 8e3a1b6
cp -a %{buildoutputdir -- $suffix}/bundles/jdk-%{javaver}_%{updatever}$suffix-%{buildver}-docs.zip  $RPM_BUILD_ROOT%{_javadocdir}/%{uniquejavadocdir -- $suffix}.zip
a3989ce
a3989ce
# Install icons and menu entries.
a3989ce
for s in 16 24 32 48 ; do
a3989ce
  install -D -p -m 644 \
a3989ce
    openjdk/jdk/src/solaris/classes/sun/awt/X11/java-icon${s}.png \
a3989ce
    $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${s}x${s}/apps/java-%{javaver}.png
a3989ce
done
a3989ce
a3989ce
# Install desktop files.
a3989ce
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/{applications,pixmaps}
a3989ce
for e in jconsole$suffix policytool$suffix ; do
Alex Kashchenko 8e3a1b6
    desktop-file-install --vendor=%{uniquesuffix -- $suffix} --mode=644 \
a3989ce
        --dir=$RPM_BUILD_ROOT%{_datadir}/applications $e.desktop
a3989ce
done
a3989ce
a3989ce
# Install /etc/.java/.systemPrefs/ directory
a3989ce
# See https://bugzilla.redhat.com/show_bug.cgi?id=741821
a3989ce
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/.java/.systemPrefs
a3989ce
a3989ce
# FIXME: remove SONAME entries from demo DSOs.  See
a3989ce
# https://bugzilla.redhat.com/show_bug.cgi?id=436497
a3989ce
a3989ce
# Find non-documentation demo files.
Alex Kashchenko 8e3a1b6
find $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/demo \
Alex Kashchenko 8e3a1b6
  $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/sample \
a3989ce
  -type f -o -type l | sort \
a3989ce
  | grep -v README \
a3989ce
  | sed 's|'$RPM_BUILD_ROOT'||' \
a3989ce
  >> %{name}-demo.files"$suffix"
a3989ce
# Find documentation demo files.
Alex Kashchenko 8e3a1b6
find $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/demo \
Alex Kashchenko 8e3a1b6
  $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/sample \
a3989ce
  -type f -o -type l | sort \
a3989ce
  | grep README \
a3989ce
  | sed 's|'$RPM_BUILD_ROOT'||' \
a3989ce
  | sed 's|^|%doc |' \
a3989ce
  >> %{name}-demo.files"$suffix"
a3989ce
a3989ce
# Create links which leads to separately installed java-atk-bridge and allow configuration
a3989ce
# links points to java-atk-wrapper - an dependence
Alex Kashchenko 8e3a1b6
  pushd $RPM_BUILD_ROOT/%{_jvmdir}/%{jredir -- $suffix}/lib/%{archinstall}
Alex Kashchenko 8e3a1b6
    ln -s %{_libdir}/java-atk-wrapper/libatk-wrapper.so.0 libatk-wrapper.so
Alex Kashchenko 8e3a1b6
  popd
Alex Kashchenko 8e3a1b6
  pushd $RPM_BUILD_ROOT/%{_jvmdir}/%{jredir -- $suffix}/lib/aarch32
a3989ce
    ln -s %{_libdir}/java-atk-wrapper/libatk-wrapper.so.0 libatk-wrapper.so
a3989ce
  popd
Alex Kashchenko 8e3a1b6
  pushd $RPM_BUILD_ROOT/%{_jvmdir}/%{jredir -- $suffix}/lib/ext
a3989ce
     ln -s %{_libdir}/java-atk-wrapper/java-atk-wrapper.jar  java-atk-wrapper.jar
a3989ce
  popd
Alex Kashchenko 8e3a1b6
  pushd $RPM_BUILD_ROOT/%{_jvmdir}/%{jredir -- $suffix}/lib/
a3989ce
    echo "#Config file to  enable java-atk-wrapper" > accessibility.properties
a3989ce
    echo "" >> accessibility.properties
a3989ce
    echo "assistive_technologies=org.GNOME.Accessibility.AtkWrapper" >> accessibility.properties
a3989ce
    echo "" >> accessibility.properties
a3989ce
  popd
a3989ce
Alex Kashchenko 8e3a1b6
# RHBZ#1412953
Alex Kashchenko 8e3a1b6
pushd $RPM_BUILD_ROOT%{_jvmdir}/%{jredir -- $suffix}/lib/%{archinstall}/client/
Alex Kashchenko 8e3a1b6
    ln -sf ../../aarch32/client/libjvm.so
Alex Kashchenko 8e3a1b6
popd
Alex Kashchenko 8e3a1b6
pushd $RPM_BUILD_ROOT%{_jvmdir}/%{jredir -- $suffix}/lib/%{archinstall}/
Alex Kashchenko 8e3a1b6
    for lib in \
Alex Kashchenko 8e3a1b6
        libattach.so \
Alex Kashchenko 8e3a1b6
        libawt_headless.so \
Alex Kashchenko 8e3a1b6
        libawt.so \
Alex Kashchenko 8e3a1b6
        libawt_xawt.so \
Alex Kashchenko 8e3a1b6
        libdt_socket.so \
Alex Kashchenko 8e3a1b6
        libfontmanager.so \
Alex Kashchenko 8e3a1b6
        libhprof.so \
Alex Kashchenko 8e3a1b6
        libinstrument.so \
Alex Kashchenko 8e3a1b6
        libj2gss.so \
Alex Kashchenko 8e3a1b6
        libj2pcsc.so \
Alex Kashchenko 8e3a1b6
        libj2pkcs11.so \
Alex Kashchenko 8e3a1b6
        libjaas_unix.so \
Alex Kashchenko 8e3a1b6
        libjava_crw_demo.so \
Alex Kashchenko 8e3a1b6
        libjavajpeg.so \
Alex Kashchenko 8e3a1b6
        libjava.so \
Alex Kashchenko 8e3a1b6
        libjawt.so \
Alex Kashchenko 8e3a1b6
        libjdwp.so \
Alex Kashchenko 8e3a1b6
        libjsdt.so \
Alex Kashchenko 8e3a1b6
        libjsig.so \
Alex Kashchenko 8e3a1b6
        libjsoundalsa.so \
Alex Kashchenko 8e3a1b6
        libjsound.so \
Alex Kashchenko 8e3a1b6
        liblcms.so \
Alex Kashchenko 8e3a1b6
        libmanagement.so \
Alex Kashchenko 8e3a1b6
        libmlib_image.so \
Alex Kashchenko 8e3a1b6
        libnet.so \
Alex Kashchenko 8e3a1b6
        libnio.so \
Alex Kashchenko 8e3a1b6
        libnpt.so \
Alex Kashchenko 8e3a1b6
        libsctp.so \
Alex Kashchenko 8e3a1b6
        libsplashscreen.so \
Alex Kashchenko 8e3a1b6
        libsunec.so \
Alex Kashchenko 8e3a1b6
        libunpack.so \
Alex Kashchenko 8e3a1b6
        libverify.so \
Alex Kashchenko 8e3a1b6
        libzip.so \
Alex Kashchenko 8e3a1b6
        jvm.cfg \
Alex Kashchenko 8e3a1b6
        ; do ln -sf ../aarch32/$lib ; done
Alex Kashchenko 8e3a1b6
        mkdir -p jli
Alex Kashchenko 8e3a1b6
popd
Alex Kashchenko 8e3a1b6
pushd $RPM_BUILD_ROOT%{_jvmdir}/%{jredir -- $suffix}/lib/%{archinstall}/jli
Alex Kashchenko 8e3a1b6
    ln -sf ../../aarch32/jli/libjli.so
Alex Kashchenko 8e3a1b6
popd
Alex Kashchenko 8e3a1b6
pushd $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/lib/
Alex Kashchenko 8e3a1b6
    mkdir -p %{archinstall}
Alex Kashchenko 8e3a1b6
popd
Alex Kashchenko 8e3a1b6
pushd $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/lib/%{archinstall}
Alex Kashchenko 8e3a1b6
    ln -sf ../aarch32/libjawt.so
Alex Kashchenko 8e3a1b6
    mkdir -p jli
Alex Kashchenko 8e3a1b6
popd
Alex Kashchenko 8e3a1b6
pushd $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/lib/%{archinstall}/jli
Alex Kashchenko 8e3a1b6
    ln -sf ../../aarch32/jli/libjli.so
Alex Kashchenko 8e3a1b6
popd
Alex Kashchenko 8e3a1b6
Alex Kashchenko 3bf5379
# intentionally after all else, fx links  with redirections on its own
Alex Kashchenko 3bf5379
%if %{with_openjfx_binding}
Alex Kashchenko 3bf5379
  FXSDK_FILES=%{name}-openjfx-devel.files"$suffix"
Alex Kashchenko 3bf5379
  FXJRE_FILES=%{name}-openjfx.files"$suffix"
Alex Kashchenko 3bf5379
  echo -n "" > $FXJRE_FILES
Alex Kashchenko 3bf5379
  echo -n "" > $FXSDK_FILES
Alex Kashchenko 3bf5379
  for file in  %{jfx_jre_libs} ; do
Alex Kashchenko 3bf5379
    srcfile=%{jfx_jre_libs_dir}/$file
Alex Kashchenko 8e3a1b6
    targetfile=%{_jvmdir}/%{jredir -- $suffix}/lib/$file
Alex Kashchenko 3bf5379
    ln -s $srcfile $RPM_BUILD_ROOT/$targetfile
Alex Kashchenko 3bf5379
    echo $targetfile >> $FXJRE_FILES
Alex Kashchenko 3bf5379
  done
Alex Kashchenko 3bf5379
  for file in  %{jfx_jre_native} ; do
Alex Kashchenko 3bf5379
    srcfile=%{jfx_jre_native_dir}/$file
Alex Kashchenko 8e3a1b6
    targetfile=%{_jvmdir}/%{jredir -- $suffix}/lib/%{archinstall}/$file
Alex Kashchenko 3bf5379
    ln -s $srcfile $RPM_BUILD_ROOT/$targetfile
Alex Kashchenko 3bf5379
    echo $targetfile >> $FXJRE_FILES
Alex Kashchenko 3bf5379
  done
Alex Kashchenko 3bf5379
  for file in  %{jfx_jre_exts} ; do
Alex Kashchenko 3bf5379
    srcfile=%{jfx_jre_exts_dir}/$file
Alex Kashchenko 8e3a1b6
    targetfile=%{_jvmdir}/%{jredir -- $suffix}/lib/ext/$file
Alex Kashchenko 3bf5379
    ln -s $srcfile $RPM_BUILD_ROOT/$targetfile
Alex Kashchenko 3bf5379
    echo $targetfile >> $FXJRE_FILES
Alex Kashchenko 3bf5379
  done
Alex Kashchenko 3bf5379
  for file in  %{jfx_sdk_libs} ; do
Alex Kashchenko 3bf5379
    srcfile=%{jfx_sdk_libs_dir}/$file
Alex Kashchenko 8e3a1b6
    targetfile=%{_jvmdir}/%{sdkdir -- $suffix}/lib/$file
Alex Kashchenko 3bf5379
    ln -s $srcfile $RPM_BUILD_ROOT/$targetfile
Alex Kashchenko 3bf5379
    echo $targetfile >> $FXSDK_FILES
Alex Kashchenko 3bf5379
  done
Alex Kashchenko 3bf5379
  for file in  %{jfx_sdk_bins} ; do
Alex Kashchenko 3bf5379
    srcfile=%{jfx_sdk_bins_dir}/$file
Alex Kashchenko 8e3a1b6
    targetfile=%{_jvmdir}/%{sdkdir -- $suffix}/bin/$file
Alex Kashchenko 3bf5379
    ln -s $srcfile $RPM_BUILD_ROOT/$targetfile
Alex Kashchenko 3bf5379
    echo $targetfile >> $FXSDK_FILES
Alex Kashchenko 3bf5379
  done
Alex Kashchenko 3bf5379
%endif
Alex Kashchenko 3bf5379
Alex Kashchenko 8e3a1b6
bash %{SOURCE20} $RPM_BUILD_ROOT/%{_jvmdir}/%{jredir -- $suffix} %{javaver}
a3989ce
# https://bugzilla.redhat.com/show_bug.cgi?id=1183793
Alex Kashchenko 8e3a1b6
touch -t 201401010000 $RPM_BUILD_ROOT/%{_jvmdir}/%{jredir -- $suffix}/lib/security/java.security
a3989ce
a3989ce
# end, dual install
a3989ce
done
a3989ce
a3989ce
%if %{include_normal_build} 
a3989ce
# intentioanlly only for non-debug
a3989ce
%pretrans headless -p <lua>
a3989ce
-- see https://bugzilla.redhat.com/show_bug.cgi?id=1038092 for whole issue
a3989ce
-- see https://bugzilla.redhat.com/show_bug.cgi?id=1290388 for pretrans over pre
a3989ce
-- if copy-jdk-configs is in transaction, it installs in pretrans to temp
a3989ce
-- if copy_jdk_configs is in temp, then it means that copy-jdk-configs is in tranasction  and so is
a3989ce
-- preferred over one in %%{_libexecdir}. If it is not in transaction, then depends 
a3989ce
-- whether copy-jdk-configs is installed or not. If so, then configs are copied
a3989ce
-- (copy_jdk_configs from %%{_libexecdir} used) or not copied at all
a3989ce
local posix = require "posix"
a3989ce
local debug = false
a3989ce
a3989ce
SOURCE1 = "%{rpm_state_dir}/copy_jdk_configs.lua"
a3989ce
SOURCE2 = "%{_libexecdir}/copy_jdk_configs.lua"
a3989ce
a3989ce
local stat1 = posix.stat(SOURCE1, "type");
a3989ce
local stat2 = posix.stat(SOURCE2, "type");
a3989ce
a3989ce
  if (stat1 ~= nil) then
a3989ce
  if (debug) then
a3989ce
    print(SOURCE1 .." exists - copy-jdk-configs in transaction, using this one.")
a3989ce
  end;
a3989ce
  package.path = package.path .. ";" .. SOURCE1
a3989ce
else 
a3989ce
  if (stat2 ~= nil) then
a3989ce
  if (debug) then
a3989ce
    print(SOURCE2 .." exists - copy-jdk-configs alrady installed and NOT in transation. Using.")
a3989ce
  end;
a3989ce
  package.path = package.path .. ";" .. SOURCE2
a3989ce
  else
a3989ce
    if (debug) then
a3989ce
      print(SOURCE1 .." does NOT exists")
a3989ce
      print(SOURCE2 .." does NOT exists")
a3989ce
      print("No config files will be copied")
a3989ce
    end
a3989ce
  return
a3989ce
  end
a3989ce
end
a3989ce
-- run contetn of included file with fake args
Alex Kashchenko f7e4c1a
arg = {"--currentjvm", "%{uniquesuffix %{nil}}", "--jvmdir", "%{_jvmdir %{nil}}", "--origname", "%{name}", "--origjavaver", "%{javaver}", "--arch", "%{_arch}", "--temp", "%{rpm_state_dir}/%{name}.%{_arch}"}
a3989ce
require "copy_jdk_configs.lua"
a3989ce
a3989ce
%post 
a3989ce
%{post_script %{nil}}
a3989ce
a3989ce
%post headless
a3989ce
%{post_headless %{nil}}
a3989ce
a3989ce
%postun
a3989ce
%{postun_script %{nil}}
a3989ce
a3989ce
%postun headless
a3989ce
%{postun_headless %{nil}}
a3989ce
a3989ce
%posttrans
a3989ce
%{posttrans_script %{nil}}
a3989ce
a3989ce
%post devel
a3989ce
%{post_devel %{nil}}
a3989ce
a3989ce
%postun devel
a3989ce
%{postun_devel %{nil}}
a3989ce
a3989ce
%posttrans  devel
a3989ce
%{posttrans_devel %{nil}}
a3989ce
a3989ce
%post javadoc
a3989ce
%{post_javadoc %{nil}}
a3989ce
a3989ce
%postun javadoc
a3989ce
%{postun_javadoc %{nil}}
92bdec1
92bdec1
%post javadoc-zip
92bdec1
%{post_javadoc_zip %{nil}}
92bdec1
92bdec1
%postun javadoc-zip
92bdec1
%{postun_javadoc_zip %{nil}}
a3989ce
%endif
a3989ce
a3989ce
%if %{include_debug_build} 
a3989ce
%post debug
Alex Kashchenko 8e3a1b6
%{post_script -- %{debug_suffix_unquoted}}
a3989ce
a3989ce
%post headless-debug
Alex Kashchenko 8e3a1b6
%{post_headless -- %{debug_suffix_unquoted}}
a3989ce
a3989ce
%postun debug
Alex Kashchenko 8e3a1b6
%{postun_script -- %{debug_suffix_unquoted}}
a3989ce
a3989ce
%postun headless-debug
Alex Kashchenko 8e3a1b6
%{postun_headless -- %{debug_suffix_unquoted}}
a3989ce
a3989ce
%posttrans debug
Alex Kashchenko 8e3a1b6
%{posttrans_script -- %{debug_suffix_unquoted}}
a3989ce
a3989ce
%post devel-debug
Alex Kashchenko 8e3a1b6
%{post_devel -- %{debug_suffix_unquoted}}
a3989ce
a3989ce
%postun devel-debug
Alex Kashchenko 8e3a1b6
%{postun_devel -- %{debug_suffix_unquoted}}
a3989ce
a3989ce
%posttrans  devel-debug
Alex Kashchenko 8e3a1b6
%{posttrans_devel -- %{debug_suffix_unquoted}}
a3989ce
a3989ce
%post javadoc-debug
Alex Kashchenko 8e3a1b6
%{post_javadoc -- %{debug_suffix_unquoted}}
a3989ce
a3989ce
%postun javadoc-debug
Alex Kashchenko 8e3a1b6
%{postun_javadoc -- %{debug_suffix_unquoted}}
92bdec1
92bdec1
%post javadoc-zip-debug
Alex Kashchenko 8e3a1b6
%{post_javadoc_zip -- %{debug_suffix_unquoted}}
92bdec1
92bdec1
%postun javadoc-zip-debug
Alex Kashchenko 8e3a1b6
%{postun_javadoc_zip -- %{debug_suffix_unquoted}}
a3989ce
%endif
a3989ce
a3989ce
%if %{include_normal_build} 
Alex Kashchenko 8e3a1b6
%files
a3989ce
# main package builds always
a3989ce
%{files_jre %{nil}}
a3989ce
%else
a3989ce
%files
a3989ce
# placeholder
a3989ce
%endif
a3989ce
a3989ce
a3989ce
%if %{include_normal_build} 
Alex Kashchenko 8e3a1b6
%files headless
a3989ce
# important note, see https://bugzilla.redhat.com/show_bug.cgi?id=1038092 for whole issue 
a3989ce
# all config/norepalce files (and more) have to be declared in pretrans. See pretrans
a3989ce
%{files_jre_headless %{nil}}
a3989ce
a3989ce
%files devel
a3989ce
%{files_devel %{nil}}
a3989ce
a3989ce
%files demo -f %{name}-demo.files
a3989ce
%{files_demo %{nil}}
a3989ce
a3989ce
%files src
a3989ce
%{files_src %{nil}}
a3989ce
a3989ce
%files javadoc
a3989ce
%{files_javadoc %{nil}}
a3989ce
92bdec1
%files javadoc-zip
92bdec1
%{files_javadoc_zip %{nil}}
92bdec1
a3989ce
%files accessibility
a3989ce
%{files_accessibility %{nil}}
Alex Kashchenko 3bf5379
Alex Kashchenko 3bf5379
%if %{with_openjfx_binding}
Alex Kashchenko 3bf5379
%files openjfx -f %{name}-openjfx.files
Alex Kashchenko 3bf5379
Alex Kashchenko 3bf5379
%files openjfx-devel -f %{name}-openjfx-devel.files
Alex Kashchenko 3bf5379
%endif
a3989ce
%endif
a3989ce
a3989ce
%if %{include_debug_build} 
Alex Kashchenko 8e3a1b6
%files debug
Alex Kashchenko 8e3a1b6
%{files_jre -- %{debug_suffix_unquoted}}
a3989ce
Alex Kashchenko 8e3a1b6
%files headless-debug
Alex Kashchenko 8e3a1b6
%{files_jre_headless -- %{debug_suffix_unquoted}}
a3989ce
a3989ce
%files devel-debug
Alex Kashchenko 8e3a1b6
%{files_devel -- %{debug_suffix_unquoted}}
a3989ce
a3989ce
%files demo-debug -f %{name}-demo.files-debug
Alex Kashchenko 8e3a1b6
%{files_demo -- %{debug_suffix_unquoted}}
a3989ce
a3989ce
%files src-debug
Alex Kashchenko 8e3a1b6
%{files_src -- %{debug_suffix_unquoted}}
a3989ce
a3989ce
%files javadoc-debug
Alex Kashchenko 8e3a1b6
%{files_javadoc -- %{debug_suffix_unquoted}}
a3989ce
92bdec1
%files javadoc-zip-debug
Alex Kashchenko 8e3a1b6
%{files_javadoc_zip -- %{debug_suffix_unquoted}}
92bdec1
a3989ce
%files accessibility-debug
Alex Kashchenko 8e3a1b6
%{files_accessibility -- %{debug_suffix_unquoted}}
Alex Kashchenko 3bf5379
Alex Kashchenko 3bf5379
%if %{with_openjfx_binding}
Alex Kashchenko 3bf5379
%files openjfx-debug -f %{name}-openjfx.files-debug
Alex Kashchenko 3bf5379
Alex Kashchenko 3bf5379
%files openjfx-devel-debug -f %{name}-openjfx-devel.files-debug
Alex Kashchenko 3bf5379
%endif
a3989ce
%endif
a3989ce
a3989ce
%changelog
2a04031
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.8.0.152-2.171102
2a04031
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2a04031
Alex Kashchenko 36b8ffd
* Wed Nov 15 2017 Alex Kashchenko <akashche@redhat.com> - 1:1.8.0.152-1.171102
Alex Kashchenko 36b8ffd
- update sources to 8u152
Alex Kashchenko 36b8ffd
- sync with mainline package
Alex Kashchenko 36b8ffd
Alex Kashchenko eb3e39c
* Fri Sep 15 2017 Alex Kashchenko <akashche@redhat.com> - 1:1.8.0.144-2.170809
Alex Kashchenko eb3e39c
- bump release to 2 to fix dist.upgradepath
Alex Kashchenko eb3e39c
Alex Kashchenko 8e3a1b6
* Wed Sep 6 2017 Alex Kashchenko <akashche@redhat.com> - 1:1.8.0.144-1.170809
Alex Kashchenko 8e3a1b6
- mainline package merge
Alex Kashchenko 8e3a1b6
- provides disabled
Alex Kashchenko 8e3a1b6
80e5390
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.8.0.131-3.170420
80e5390
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
80e5390
Alex Kashchenko 3bf5379
* Mon Jul 24 2017 Alex Kashchenko <akashche@redhat.com> - 1:1.8.0.141-1.170721
Alex Kashchenko 3bf5379
- update sources to 8u141
Alex Kashchenko 3bf5379
- sync with mainline package
Alex Kashchenko 3bf5379
Alex Kashchenko ccf2eb2
* Sun Apr 30 2017 Alex Kashchenko <akashche@redhat.com> - 1:1.8.0.131-2.170420
Alex Kashchenko ccf2eb2
- revert boot jdk to zero due to koschei arch-specific dep problem persists
Alex Kashchenko ccf2eb2
Alex Kashchenko f7e4c1a
* Sat Apr 29 2017 Alex Kashchenko <akashche@redhat.com> - 1:1.8.0.131-1.170420
Alex Kashchenko f7e4c1a
- update sources to 8u131
Alex Kashchenko f7e4c1a
- sync with mainline package
Alex Kashchenko f7e4c1a
Alex Kashchenko f7e4c1a
* Wed Apr 12 2017 Alex Kashchenko <akashche@redhat.com> - 1:1.8.0.121-4.170210
Alex Kashchenko f7e4c1a
- sync with mainline package
Alex Kashchenko f7e4c1a
- add 8175234-aarch32 upstream patch
Alex Kashchenko f7e4c1a
Alex Kashchenko c54d23d
* Fri Mar 10 2017 Alex Kashchenko <akashche@redhat.com> - 1:1.8.0.121-4.170210
Alex Kashchenko c54d23d
- version bump to fix duplicated failed f26 build
Alex Kashchenko c54d23d
Alex Kashchenko b69158b
* Tue Feb 28 2017 Alex Kashchenko <akashche@redhat.com> - 1:1.8.0.121-3.170210
Alex Kashchenko b69158b
- rebuild because of NSS
Alex Kashchenko b69158b
Alex Kashchenko 7735fee
* Mon Feb 20 2017 Alex Kashchenko <akashche@redhat.com> - 1:1.8.0.121-2.170210
Alex Kashchenko 7735fee
- add symlinks to jre/lib/arm directory for all aarch32 libs
Alex Kashchenko 7735fee
Alex Kashchenko 5be5b59
* Sun Feb 19 2017 Alex Kashchenko <akashche@redhat.com> - 1:1.8.0.121-1.170210
Alex Kashchenko 5be5b59
- sources tarball updated to jdk8u121-b13-aarch32-170210
Alex Kashchenko 5be5b59
- add libjvm.so and libjava.so symlinks to jre/lib/arm directory
Alex Kashchenko 6663cfa
- disable javadoc provides
Alex Kashchenko 5be5b59
- fixes RHBZ#1412953
Alex Kashchenko 5be5b59
cb508ad
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.8.0.112-4.161109
cb508ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
cb508ad
Alex Kashchenko b2432ba
* Mon Jan 30 2017 Alex Kashchenko <akashche@redhat.com> - 1:1.8.0.112-3.161109
Alex Kashchenko b2432ba
- 8u121 update
Alex Kashchenko b2432ba
Alex Kashchenko 2fc5977
* Mon Jan 2 2017 Alex Kashchenko <akashche@redhat.com> - 1:1.8.0.112-2.161109
Alex Kashchenko 2fc5977
- disable hardened build flags
Alex Kashchenko 2fc5977
- remove Xmx patch
Alex Kashchenko 2fc5977
- fixes RHBZ#1290936
Alex Kashchenko 2fc5977
Alex Kashchenko 3c2a4a6
* Thu Dec 22 2016 Alex Kashchenko <akashche@redhat.com> - 1:1.8.0.112-1.161109
Alex Kashchenko 3c2a4a6
- fontconfig and nss restricted by isa
Alex Kashchenko 3c2a4a6
- debug subpackages allowed
Alex Kashchenko 3c2a4a6
- eu-readelfs on libraries, gdb call
Alex Kashchenko 3c2a4a6
- java SSL/TLS implementation: should follow the policies of system-wide crypto policy
Alex Kashchenko 3c2a4a6
- sync patches with mainline package
Alex Kashchenko 3c2a4a6
- 8u112 sources tarball
Alex Kashchenko 3c2a4a6
- add aarch32 post-u112 upstream patches
Alex Kashchenko 3c2a4a6
Alex Kashchenko 8d41e4c
* Tue Oct 25 2016 Alex Kashchenko <akashche@redhat.com> - 1:1.8.0.102-11.160812
Alex Kashchenko 7b7656c
- added aarch32-8u111.patch
Alex Kashchenko 7b7656c
- removed corba_typo_fix.patch
Alex Kashchenko 8d41e4c
Alex Kashchenko 8d41e4c
* Tue Oct 04 2016 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.102-10.160812
bee9265
- enabled debug build
bee9265
Alex Kashchenko 8d41e4c
* Mon Oct 03 2016 Alex Kashchenko <akashche@redhat.com> - 1:1.8.0.102-9.160812
Alex Kashchenko 52b2153
- added aarch32-8167027.patch
Alex Kashchenko 52b2153
- fixes RHBZ#1379061
Alex Kashchenko 52b2153
Alex Kashchenko 8d41e4c
* Fri Sep 30 2016 Alex Kashchenko <akashche@redhat.com> - 1:1.8.0.102-8.160812
Alex Kashchenko 912d340
- added aarch32-archname.patch
Alex Kashchenko 912d340
Alex Kashchenko 8d41e4c
* Thu Sep 22 2016 Alex Kashchenko <akashche@redhat.com> - 1:1.8.0.102-7.160812
Alex Kashchenko 8d41e4c
- revert boot jdk back to zero
Alex Kashchenko 8d41e4c
Alex Kashchenko 8d41e4c
* Wed Sep 21 2016 Alex Kashchenko <akashche@redhat.com> - 1:1.8.0.102-6.160812
Alex Kashchenko 0095fa0
- fixed macro in comments
Alex Kashchenko 8d41e4c
- re-enabled openjdk-aarch32 as a boot jdk
Alex Kashchenko 8d41e4c
- enabled provides for both java and javac
Alex Kashchenko 8d41e4c
Alex Kashchenko 8d41e4c
* Tue Sep 20 2016 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.102-5.160812
92bdec1
- sync with normal java packages:
92bdec1
-  added zipped javadocs
92bdec1
-  updated systemtap
92bdec1
-  added (commented out) provides on jjs
92bdec1
Alex Kashchenko 8d41e4c
* Sat Sep 10 2016 Alex Kashchenko <akashche@redhat.com> - 1:1.8.0.102-4.160812
Alex Kashchenko 5c8049f
- declared check_sum_presented_in_spec and used in prep and check
Alex Kashchenko 5c8049f
- it is checking that latest packed java.security is mentioned in listing
Alex Kashchenko 5c8049f
- added ECDSA check
Alex Kashchenko 0095fa0
- added %%{_arch} postfix to alternatives
92bdec1
Alex Kashchenko 8d41e4c
* Wed Aug 31 2016 Alex Kashchenko <akashche@redhat.com> - 1:1.8.0.102-3.160812
Alex Kashchenko 8d41e4c
- revert boot jdk back to zero
Alex Kashchenko 8d41e4c
Alex Kashchenko ef6143b
* Mon Aug 29 2016 Alex Kashchenko <akashche@redhat.com> - 1:1.8.0.102-2.160812
Alex Kashchenko ef6143b
- added C1 JIT patches
Alex Kashchenko ef6143b
- use java-1.8.0-openjdk-aarch32 as a boot jdk
92bdec1
akashche 02bc7e2
* Sun Aug 14 2016 Alex Kashchenko <akashche@redhat.com> - 1:1.8.0.102-1.160812
akashche 02bc7e2
- remove upstreamed soundFontPatch.patch
akashche 02bc7e2
- added patches 6260348-pr3066.patch, pr2974-rh1337583.patch, pr3083-rh1346460.patch, pr2899.patch, pr2934.patch, pr1834-rh1022017.patch, corba_typo_fix.patch, 8154313.patch
akashche 02bc7e2
- removed unused patches java-1.8.0-openjdk-rh1191652-root.patch, java-1.8.0-openjdk-rh1191652-jdk.patch, java-1.8.0-openjdk-rh1191652-hotspot-aarch64.patch
akashche 02bc7e2
- removed upstreamed (and previously unused) patches 8143855.patch, rhbz1206656_fix_current_stack_pointer.patch, remove_aarch64_template_for_gcc6.patch, make_reservedcodecachesize_changes_aarch64_only.patch
akashche 02bc7e2
- added JDWP patches 8044762-pr2960.patch and 8049226-pr2960.patch
akashche 02bc7e2
- priority lowered for ine zero digit, tip moved to 999
akashche 02bc7e2
- Restricted to depend on exactly same version of nss as used for build,
akashche 02bc7e2
- Resolves: rhbz#1332456
akashche 02bc7e2
- used aarch32-port-jdk8u-jdk8u102-b14-aarch32-160812.tar.xz as new sources
92bdec1
a3989ce
* Wed Jun 29 2016 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.91-1.160510
a3989ce
- initial clone form java-1.8.0-openjdk
a3989ce
- using aarch32 sources
a3989ce
- restricted to {arm}  arch only
a3989ce
- adapted description and summary
a3989ce
- all {name} in pathches replaced by java-1.8.0-openjdk. Same for source12
Alex Kashchenko ef6143b
- blindly commented out not applicable patches
a3989ce
- removed all java provides