Blame SPECS/java-17-openjdk.spec

f8e459
# RPM conditionals so as to be able to dynamically produce
f8e459
# slowdebug/release builds. See:
f8e459
# http://rpm.org/user_doc/conditional_builds.html
f8e459
#
f8e459
# Examples:
f8e459
#
f8e459
# Produce release, fastdebug *and* slowdebug builds on x86_64 (default):
f8e459
# $ rpmbuild -ba java-17-openjdk.spec
f8e459
#
f8e459
# Produce only release builds (no debug builds) on x86_64:
f8e459
# $ rpmbuild -ba java-17-openjdk.spec --without slowdebug --without fastdebug
f8e459
#
f8e459
# Only produce a release build on x86_64:
f8e459
# $ fedpkg mockbuild --without slowdebug --without fastdebug
f8e459
#
f8e459
# Only produce a debug build on x86_64:
f8e459
# $ fedpkg local --without release
f8e459
#
f8e459
# Enable fastdebug builds by default on relevant arches.
f8e459
%bcond_without fastdebug
f8e459
# Enable slowdebug builds by default on relevant arches.
f8e459
%bcond_without slowdebug
f8e459
# Enable release builds by default on relevant arches.
f8e459
%bcond_without release
f8e459
# Enable static library builds by default.
f8e459
%bcond_without staticlibs
f8e459
f8e459
# Workaround for stripping of debug symbols from static libraries
f8e459
%if %{with staticlibs}
f8e459
%define __brp_strip_static_archive %{nil}
f8e459
%global include_staticlibs 1
f8e459
%else
f8e459
%global include_staticlibs 0
f8e459
%endif
f8e459
f8e459
# The -g flag says to use strip -g instead of full strip on DSOs or EXEs.
f8e459
# This fixes detailed NMT and other tools which need minimal debug info.
f8e459
# See: https://bugzilla.redhat.com/show_bug.cgi?id=1520879
f8e459
%global _find_debuginfo_opts -g
f8e459
f8e459
# With LTO flags enabled, debuginfo checks fail for some reason. Disable
f8e459
# LTO for a passing build. This really needs to be looked at.
f8e459
%define _lto_cflags %{nil}
f8e459
f8e459
# note: parametrized macros are order-sensitive (unlike not-parametrized) even with normal macros
f8e459
# also necessary when passing it as parameter to other macros. If not macro, then it is considered a switch
f8e459
# see the difference between global and define:
f8e459
# See https://github.com/rpm-software-management/rpm/issues/127 to comments at  "pmatilai commented on Aug 18, 2017"
f8e459
# (initiated in https://bugzilla.redhat.com/show_bug.cgi?id=1482192)
f8e459
%global debug_suffix_unquoted -slowdebug
f8e459
%global fastdebug_suffix_unquoted -fastdebug
f8e459
%global main_suffix_unquoted -main
f8e459
%global staticlibs_suffix_unquoted -staticlibs
f8e459
# quoted one for shell operations
f8e459
%global debug_suffix "%{debug_suffix_unquoted}"
f8e459
%global fastdebug_suffix "%{fastdebug_suffix_unquoted}"
f8e459
%global normal_suffix ""
f8e459
%global main_suffix "%{main_suffix_unquoted}"
f8e459
%global staticlibs_suffix "%{staticlibs_suffix_unquoted}"
f8e459
f8e459
%global debug_warning This package is unoptimised with full debugging. Install only as needed and remove ASAP.
f8e459
%global debug_on with full debugging on
f8e459
%global fastdebug_on with minimal debugging on
f8e459
%global fastdebug_warning This package is optimised with full debugging. Install only as needed and remove ASAP.
f8e459
%global for_fastdebug_on for packages with minimal debugging on
f8e459
%global for_debug for packages with debugging on
f8e459
f8e459
%if %{with release}
f8e459
%global include_normal_build 1
f8e459
%else
f8e459
%global include_normal_build 0
f8e459
%endif
f8e459
f8e459
%if %{include_normal_build}
f8e459
%global normal_build %{normal_suffix}
f8e459
%else
f8e459
%global normal_build %{nil}
f8e459
%endif
f8e459
f8e459
# We have hardcoded list of files, which  is appearing in alternatives, and in files
f8e459
# in alternatives those are slaves and master, very often triplicated by man pages
f8e459
# in files all masters and slaves are ghosted
f8e459
# the ghosts are here to allow installation via query like `dnf install /usr/bin/java`
f8e459
# you can list those files, with appropriate sections: cat *.spec | grep -e --install -e --slave -e post_ 
f8e459
# TODO - fix those hardcoded lists via single list
f8e459
# Those files must *NOT* be ghosted for *slowdebug* packages
f8e459
# FIXME - if you are moving jshell or jlink or similar, always modify all three sections
f8e459
# you can check via headless and devels:
f8e459
#    rpm -ql --noghost java-11-openjdk-headless-11.0.1.13-8.fc29.x86_64.rpm  | grep bin
f8e459
# == rpm -ql           java-11-openjdk-headless-slowdebug-11.0.1.13-8.fc29.x86_64.rpm  | grep bin
f8e459
# != rpm -ql           java-11-openjdk-headless-11.0.1.13-8.fc29.x86_64.rpm  | grep bin
f8e459
# similarly for other %%{_jvmdir}/{jre,java} and %%{_javadocdir}/{java,java-zip}
f8e459
%define is_release_build() %( if [ "%{?1}" == "%{debug_suffix_unquoted}" -o "%{?1}" == "%{fastdebug_suffix_unquoted}" ]; then echo "0" ; else echo "1"; fi )
f8e459
f8e459
# while JDK is a techpreview(is_system_jdk=0), some provides are turned off. Once jdk stops to be an techpreview, move it to 1
f8e459
# as sytem JDK, we mean any JDK which can run whole system java stack without issues (like bytecode issues, module issues, dependencies...)
f8e459
%global is_system_jdk 0
f8e459
f8e459
%global aarch64         aarch64 arm64 armv8
f8e459
# we need to distinguish between big and little endian PPC64
f8e459
%global ppc64le         ppc64le
f8e459
%global ppc64be         ppc64 ppc64p7
f8e459
# Set of architectures which support multiple ABIs
f8e459
%global multilib_arches %{power64} sparc64 x86_64
f8e459
# Set of architectures for which we build debug builds
f8e459
%global debug_arches    %{ix86} x86_64 sparcv9 sparc64 %{aarch64} %{power64} s390x
f8e459
# Set of architectures with a Just-In-Time (JIT) compiler
f8e459
%global jit_arches      %{debug_arches} %{arm}
f8e459
# Set of architectures which run a full bootstrap cycle
f8e459
%global bootstrap_arches %{jit_arches}
f8e459
# Set of architectures which support SystemTap tapsets
f8e459
%global systemtap_arches %{jit_arches}
f8e459
# Set of architectures with a Ahead-Of-Time (AOT) compiler
f8e459
%global aot_arches      x86_64 %{aarch64}
f8e459
%global fastdebug_arches x86_64 ppc64le aarch64
f8e459
# Set of architectures which support the serviceability agent
f8e459
%global sa_arches       %{ix86} x86_64 sparcv9 sparc64 %{aarch64} %{power64} %{arm}
f8e459
# Set of architectures which support class data sharing
f8e459
# See https://bugzilla.redhat.com/show_bug.cgi?id=513605
f8e459
# MetaspaceShared::generate_vtable_methods is not implemented for the PPC JIT
f8e459
%global share_arches    %{ix86} x86_64 sparcv9 sparc64 %{aarch64} %{arm} s390x
f8e459
# Set of architectures for which we build the Shenandoah garbage collector
f8e459
%global shenandoah_arches x86_64 %{aarch64}
f8e459
# Set of architectures for which we build the Z garbage collector
f8e459
%global zgc_arches x86_64
f8e459
# Set of architectures for which alt-java has SSB mitigation
f8e459
%global ssbd_arches x86_64
f8e459
# Set of architectures for which java has short vector math library (libsvml.so)
f8e459
%global svml_arches x86_64
f8e459
f8e459
# By default, we build a debug build during main build on JIT architectures
f8e459
%if %{with slowdebug}
f8e459
%ifarch %{debug_arches}
f8e459
%global include_debug_build 1
f8e459
%else
f8e459
%global include_debug_build 0
f8e459
%endif
f8e459
%else
f8e459
%global include_debug_build 0
f8e459
%endif
f8e459
f8e459
# On certain architectures, we compile the Shenandoah GC
f8e459
%ifarch %{shenandoah_arches}
f8e459
%global use_shenandoah_hotspot 1
f8e459
%else
f8e459
%global use_shenandoah_hotspot 0
f8e459
%endif
f8e459
f8e459
# By default, we build a fastdebug build during main build only on fastdebug architectures
f8e459
%if %{with fastdebug}
f8e459
%ifarch %{fastdebug_arches}
f8e459
%global include_fastdebug_build 1
f8e459
%else
f8e459
%global include_fastdebug_build 0
f8e459
%endif
f8e459
%else
f8e459
%global include_fastdebug_build 0
f8e459
%endif
f8e459
f8e459
%if %{include_debug_build}
f8e459
%global slowdebug_build %{debug_suffix}
f8e459
%else
f8e459
%global slowdebug_build %{nil}
f8e459
%endif
f8e459
f8e459
%if %{include_fastdebug_build}
f8e459
%global fastdebug_build %{fastdebug_suffix}
f8e459
%else
f8e459
%global fastdebug_build %{nil}
f8e459
%endif
f8e459
f8e459
# If you disable both builds, then the build fails
f8e459
# Build and test slowdebug first as it provides the best diagnostics
f8e459
%global build_loop  %{slowdebug_build} %{fastdebug_build} %{normal_build}
f8e459
f8e459
%if %{include_staticlibs}
f8e459
%global staticlibs_loop %{staticlibs_suffix}
f8e459
%else
f8e459
%global staticlibs_loop %{nil}
f8e459
%endif
f8e459
f8e459
%ifarch %{bootstrap_arches}
f8e459
%global bootstrap_build 1
f8e459
%else
f8e459
%global bootstrap_build 1
f8e459
%endif
f8e459
f8e459
%if %{bootstrap_build}
f8e459
%global release_targets bootcycle-images docs-zip
f8e459
%else
f8e459
%global release_targets images docs-zip
f8e459
%endif
f8e459
# No docs nor bootcycle for debug builds
f8e459
%global debug_targets images
f8e459
f8e459
%if %{include_staticlibs}
f8e459
# Extra target for producing the static-libraries. Separate from
f8e459
# other targets since this target is configured to use in-tree
f8e459
# AWT dependencies: lcms, libjpeg, libpng, libharfbuzz, giflib
f8e459
# and possibly others
f8e459
%global static_libs_target static-libs-image
f8e459
%endif
f8e459
f8e459
f8e459
# Filter out flags from the optflags macro that cause problems with the OpenJDK build
f8e459
# We filter out -O flags so that the optimization of HotSpot is not lowered from O3 to O2
f8e459
# We filter out -Wall which will otherwise cause HotSpot to produce hundreds of thousands of warnings (100+mb logs)
f8e459
# We replace it with -Wformat (required by -Werror=format-security) and -Wno-cpp to avoid FORTIFY_SOURCE warnings
f8e459
# We filter out -fexceptions as the HotSpot build explicitly does -fno-exceptions and it's otherwise the default for C++
f8e459
%global ourflags %(echo %optflags | sed -e 's|-Wall|-Wformat -Wno-cpp|' | sed -r -e 's|-O[0-9]*||')
f8e459
%global ourcppflags %(echo %ourflags | sed -e 's|-fexceptions||')
f8e459
%global ourldflags %{__global_ldflags}
f8e459
f8e459
# With disabled nss is NSS deactivated, so NSS_LIBDIR can contain the wrong path
f8e459
# the initialization must be here. Later the pkg-config have buggy behavior
f8e459
# looks like openjdk RPM specific bug
f8e459
# Always set this so the nss.cfg file is not broken
f8e459
%global NSS_LIBDIR %(pkg-config --variable=libdir nss)
f8e459
f8e459
# In some cases, the arch used by the JDK does
f8e459
# not match _arch.
f8e459
# Also, in some cases, the machine name used by SystemTap
f8e459
# does not match that given by _build_cpu
f8e459
%ifarch x86_64
f8e459
%global archinstall amd64
f8e459
%endif
f8e459
%ifarch ppc
f8e459
%global archinstall ppc
f8e459
%endif
f8e459
%ifarch %{ppc64be}
f8e459
%global archinstall ppc64
f8e459
%endif
f8e459
%ifarch %{ppc64le}
f8e459
%global archinstall ppc64le
f8e459
%endif
f8e459
%ifarch %{ix86}
f8e459
%global archinstall i686
f8e459
%endif
f8e459
%ifarch ia64
f8e459
%global archinstall ia64
f8e459
%endif
f8e459
%ifarch s390
f8e459
%global archinstall s390
f8e459
%endif
f8e459
%ifarch s390x
f8e459
%global archinstall s390x
f8e459
%endif
f8e459
%ifarch %{arm}
f8e459
%global archinstall arm
f8e459
%endif
f8e459
%ifarch %{aarch64}
f8e459
%global archinstall aarch64
f8e459
%endif
f8e459
# 32 bit sparc, optimized for v9
f8e459
%ifarch sparcv9
f8e459
%global archinstall sparc
f8e459
%endif
f8e459
# 64 bit sparc
f8e459
%ifarch sparc64
f8e459
%global archinstall sparcv9
f8e459
%endif
f8e459
%ifnarch %{jit_arches}
f8e459
%global archinstall %{_arch}
f8e459
%endif
f8e459
f8e459
f8e459
f8e459
%ifarch %{systemtap_arches}
f8e459
%global with_systemtap 1
f8e459
%else
f8e459
%global with_systemtap 0
f8e459
%endif
f8e459
f8e459
# New Version-String scheme-style defines
f8e459
%global featurever 17
f8e459
%global interimver 0
f8e459
%global updatever 0
f8e459
%global patchver 0
f8e459
# If you bump featurever, you must bump also vendor_version_string
f8e459
# Used via new version scheme. JDK 17 was
f8e459
# GA'ed in September 2021 => 21.9
f8e459
%global vendor_version_string 21.9
f8e459
# buildjdkver is usually same as %%{featurever},
f8e459
# but in time of bootstrap of next jdk, it is featurever-1,
f8e459
# and this it is better to change it here, on single place
f8e459
%global buildjdkver 17
f8e459
# We don't add any LTS designator for STS packages (this package).
f8e459
# Neither for Fedora nor EPEL which would have %%{rhel} macro defined.
f8e459
 %global lts_designator ""
f8e459
 %global lts_designator_zip ""
f8e459
f8e459
# Define IcedTea version used for SystemTap tapsets and desktop file
f8e459
%global icedteaver      3.15.0
f8e459
f8e459
# Standard JPackage naming and versioning defines
f8e459
%global origin          openjdk
f8e459
%global origin_nice     OpenJDK
f8e459
%global top_level_dir_name   %{origin}
f8e459
%global top_level_dir_name_backup %{top_level_dir_name}-backup
f8e459
%global buildver        33
f8e459
%global rpmrelease      5
f8e459
# Priority must be 8 digits in total; up to openjdk 1.8, we were using 18..... so when we moved to 11, we had to add another digit
f8e459
%if %is_system_jdk
f8e459
# Using 10 digits may overflow the int used for priority, so we combine the patch and build versions
f8e459
# It is very unlikely we will ever have a patch version > 4 or a build version > 20, so we combine as (patch * 20) + build.
f8e459
# This means 11.0.9.0+11 would have had a priority of 11000911 as before
f8e459
# A 11.0.9.1+1 would have had a priority of 11000921 (20 * 1 + 1), thus ensuring it is bigger than 11.0.9.0+11
f8e459
%global combiver $( expr 20 '*' %{patchver} + %{buildver} )
f8e459
%global priority %( printf '%02d%02d%02d%02d' %{featurever} %{interimver} %{updatever} %{combiver} )
f8e459
%else
f8e459
# for techpreview, using 1, so slowdebugs can have 0
f8e459
%global priority %( printf '%08d' 1 )
f8e459
%endif
f8e459
%global newjavaver      %{featurever}.%{interimver}.%{updatever}.%{patchver}
f8e459
%global javaver         %{featurever}
f8e459
f8e459
# Strip up to 6 trailing zeros in newjavaver, as the JDK does, to get the correct version used in filenames
f8e459
%global filever %(svn=%{newjavaver}; for i in 1 2 3 4 5 6 ; do svn=${svn%%.0} ; done; echo ${svn})
f8e459
f8e459
# Define milestone (EA for pre-releases, GA for releases)
f8e459
# Release will be (where N is usually a number starting at 1):
f8e459
# - 0.N%%{?extraver}%%{?dist} for EA releases,
f8e459
# - N%%{?extraver}{?dist} for GA releases
f8e459
%global is_ga           0
f8e459
%if %{is_ga}
f8e459
%global build_type GA
f8e459
%global expected_ea_designator ""
f8e459
%global ea_designator_zip ""
f8e459
%global extraver %{nil}
f8e459
%global eaprefix %{nil}
f8e459
%else
f8e459
%global build_type EA
f8e459
%global expected_ea_designator ea
f8e459
%global ea_designator_zip -%{expected_ea_designator}
f8e459
%global extraver .%{expected_ea_designator}
f8e459
%global eaprefix 0.
f8e459
%endif
f8e459
f8e459
# Define what url should JVM offer in case of a crash report
f8e459
# order may be important, epel may have rhel declared
f8e459
%if 0%{?epel}
f8e459
%global bugs  https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora%20EPEL&component=%{name}&version=epel%{epel}
f8e459
%else
f8e459
%if 0%{?fedora}
f8e459
# Does not work for rawhide, keeps the version field empty
f8e459
%global bugs  https://bugzilla.redhat.com/enter_bug.cgi?product=Fedora&component=%{name}&version=%{fedora}
f8e459
%else
f8e459
%if 0%{?rhel}
f8e459
%global bugs  https://bugzilla.redhat.com/enter_bug.cgi?product=Red%20Hat%20Enterprise%20Linux%20%{rhel}&component=%{name}
f8e459
%else
f8e459
%global bugs  https://bugzilla.redhat.com/enter_bug.cgi
f8e459
%endif
f8e459
%endif
f8e459
%endif
f8e459
f8e459
# parametrized macros are order-sensitive
f8e459
%global compatiblename  java-%{featurever}-%{origin}
f8e459
%global fullversion     %{compatiblename}-%{version}-%{release}
f8e459
# images directories from upstream build
f8e459
%global jdkimage                jdk
f8e459
%global static_libs_image       static-libs
f8e459
# output dir stub
f8e459
%define buildoutputdir() %{expand:build/jdk%{featurever}.build%{?1}}
f8e459
# we can copy the javadoc to not arched dir, or make it not noarch
f8e459
%define uniquejavadocdir()    %{expand:%{fullversion}.%{_arch}%{?1}}
f8e459
# main id and dir of this jdk
f8e459
%define uniquesuffix()        %{expand:%{fullversion}.%{_arch}%{?1}}
f8e459
f8e459
#################################################################
f8e459
# fix for https://bugzilla.redhat.com/show_bug.cgi?id=1111349
f8e459
#         https://bugzilla.redhat.com/show_bug.cgi?id=1590796#c14
f8e459
#         https://bugzilla.redhat.com/show_bug.cgi?id=1655938
f8e459
%global _privatelibs libsplashscreen[.]so.*|libawt_xawt[.]so.*|libjli[.]so.*|libattach[.]so.*|libawt[.]so.*|libextnet[.]so.*|libawt_headless[.]so.*|libdt_socket[.]so.*|libfontmanager[.]so.*|libinstrument[.]so.*|libj2gss[.]so.*|libj2pcsc[.]so.*|libj2pkcs11[.]so.*|libjaas[.]so.*|libjavajpeg[.]so.*|libjdwp[.]so.*|libjimage[.]so.*|libjsound[.]so.*|liblcms[.]so.*|libmanagement[.]so.*|libmanagement_agent[.]so.*|libmanagement_ext[.]so.*|libmlib_image[.]so.*|libnet[.]so.*|libnio[.]so.*|libprefs[.]so.*|librmi[.]so.*|libsaproc[.]so.*|libsctp[.]so.*|libsystemconf[.]so.*|libzip[.]so.*
f8e459
%global _publiclibs libjawt[.]so.*|libjava[.]so.*|libjvm[.]so.*|libverify[.]so.*|libjsig[.]so.*
f8e459
%if %is_system_jdk
f8e459
%global __provides_exclude ^(%{_privatelibs})$
f8e459
%global __requires_exclude ^(%{_privatelibs})$
f8e459
# Never generate lib-style provides/requires for any debug packages
f8e459
%global __provides_exclude_from ^.*/%{uniquesuffix -- %{debug_suffix_unquoted}}/.*$
f8e459
%global __requires_exclude_from ^.*/%{uniquesuffix -- %{debug_suffix_unquoted}}/.*$
f8e459
%global __provides_exclude_from ^.*/%{uniquesuffix -- %{fastdebug_suffix_unquoted}}/.*$
f8e459
%global __requires_exclude_from ^.*/%{uniquesuffix -- %{fastdebug_suffix_unquoted}}/.*$
f8e459
%else
f8e459
# Don't generate provides/requires for JDK provided shared libraries at all.
f8e459
%global __provides_exclude ^(%{_privatelibs}|%{_publiclibs})$
f8e459
%global __requires_exclude ^(%{_privatelibs}|%{_publiclibs})$
f8e459
%endif
f8e459
f8e459
f8e459
%global etcjavasubdir     %{_sysconfdir}/java/java-%{javaver}-%{origin}
f8e459
%define etcjavadir()      %{expand:%{etcjavasubdir}/%{uniquesuffix -- %{?1}}}
f8e459
# Standard JPackage directories and symbolic links.
f8e459
%define sdkdir()        %{expand:%{uniquesuffix -- %{?1}}}
f8e459
%define jrelnk()        %{expand:jre-%{javaver}-%{origin}-%{version}-%{release}.%{_arch}%{?1}}
f8e459
f8e459
%define sdkbindir()     %{expand:%{_jvmdir}/%{sdkdir -- %{?1}}/bin}
f8e459
%define jrebindir()     %{expand:%{_jvmdir}/%{sdkdir -- %{?1}}/bin}
f8e459
f8e459
%global alt_java_name     alt-java
f8e459
f8e459
%global rpm_state_dir %{_localstatedir}/lib/rpm-state/
f8e459
f8e459
# For flatpack builds hard-code /usr/sbin/alternatives,
f8e459
# otherwise use %%{_sbindir} relative path.
f8e459
%if 0%{?flatpak}
f8e459
%global alternatives_requires /usr/sbin/alternatives
f8e459
%else
f8e459
%global alternatives_requires %{_sbindir}/alternatives
f8e459
%endif
f8e459
f8e459
%if %{with_systemtap}
f8e459
# Where to install systemtap tapset (links)
f8e459
# We would like these to be in a package specific sub-dir,
f8e459
# but currently systemtap doesn't support that, so we have to
f8e459
# use the root tapset dir for now. To distinguish between 64
f8e459
# and 32 bit architectures we place the tapsets under the arch
f8e459
# specific dir (note that systemtap will only pickup the tapset
f8e459
# for the primary arch for now). Systemtap uses the machine name
f8e459
# aka build_cpu as architecture specific directory name.
f8e459
%global tapsetroot /usr/share/systemtap
f8e459
%global tapsetdirttapset %{tapsetroot}/tapset/
f8e459
%global tapsetdir %{tapsetdirttapset}/%{_build_cpu}
f8e459
%endif
f8e459
f8e459
# not-duplicated scriptlets for normal/debug packages
f8e459
%global update_desktop_icons /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
f8e459
f8e459
f8e459
%define post_script() %{expand:
f8e459
update-desktop-database %{_datadir}/applications &> /dev/null || :
f8e459
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
f8e459
exit 0
f8e459
}
f8e459
f8e459
f8e459
%define post_headless() %{expand:
f8e459
%ifarch %{share_arches}
f8e459
%{jrebindir -- %{?1}}/java -Xshare:dump >/dev/null 2>/dev/null
f8e459
%endif
f8e459
f8e459
PRIORITY=%{priority}
f8e459
if [ "%{?1}" == %{debug_suffix} ]; then
f8e459
  let PRIORITY=PRIORITY-1
f8e459
fi
f8e459
f8e459
ext=.gz
f8e459
alternatives \\
f8e459
  --install %{_bindir}/java java %{jrebindir -- %{?1}}/java $PRIORITY  --family %{name}.%{_arch} \\
f8e459
  --slave %{_jvmdir}/jre jre %{_jvmdir}/%{sdkdir -- %{?1}} \\
f8e459
  --slave %{_bindir}/%{alt_java_name} %{alt_java_name} %{jrebindir -- %{?1}}/%{alt_java_name} \\
f8e459
  --slave %{_bindir}/keytool keytool %{jrebindir -- %{?1}}/keytool \\
f8e459
  --slave %{_bindir}/rmiregistry rmiregistry %{jrebindir -- %{?1}}/rmiregistry \\
f8e459
  --slave %{_mandir}/man1/java.1$ext java.1$ext \\
f8e459
  %{_mandir}/man1/java-%{uniquesuffix -- %{?1}}.1$ext \\
f8e459
  --slave %{_mandir}/man1/%{alt_java_name}.1$ext %{alt_java_name}.1$ext \\
f8e459
  %{_mandir}/man1/%{alt_java_name}-%{uniquesuffix -- %{?1}}.1$ext \\
f8e459
  --slave %{_mandir}/man1/keytool.1$ext keytool.1$ext \\
f8e459
  %{_mandir}/man1/keytool-%{uniquesuffix -- %{?1}}.1$ext \\
f8e459
  --slave %{_mandir}/man1/rmiregistry.1$ext rmiregistry.1$ext \\
f8e459
  %{_mandir}/man1/rmiregistry-%{uniquesuffix -- %{?1}}.1$ext 
f8e459
f8e459
for X in %{origin} %{javaver} ; do
f8e459
  alternatives --install %{_jvmdir}/jre-"$X" jre_"$X" %{_jvmdir}/%{sdkdir -- %{?1}} $PRIORITY --family %{name}.%{_arch}
f8e459
done
f8e459
f8e459
update-alternatives --install %{_jvmdir}/jre-%{javaver}-%{origin} jre_%{javaver}_%{origin} %{_jvmdir}/%{jrelnk -- %{?1}} $PRIORITY  --family %{name}.%{_arch}
f8e459
f8e459
f8e459
update-desktop-database %{_datadir}/applications &> /dev/null || :
f8e459
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
f8e459
f8e459
# see pretrans where this file is declared
f8e459
# also see that pretrans is only for non-debug
f8e459
if [ ! "%{?1}" == %{debug_suffix} ]; then
f8e459
  if [ -f %{_libexecdir}/copy_jdk_configs_fixFiles.sh ] ; then
f8e459
    sh  %{_libexecdir}/copy_jdk_configs_fixFiles.sh %{rpm_state_dir}/%{name}.%{_arch}  %{_jvmdir}/%{sdkdir -- %{?1}}
f8e459
  fi
f8e459
fi
f8e459
f8e459
exit 0
f8e459
}
f8e459
f8e459
%define postun_script() %{expand:
f8e459
update-desktop-database %{_datadir}/applications &> /dev/null || :
f8e459
if [ $1 -eq 0 ] ; then
f8e459
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
f8e459
    %{update_desktop_icons}
f8e459
fi
f8e459
exit 0
f8e459
}
f8e459
f8e459
f8e459
%define postun_headless() %{expand:
f8e459
  alternatives --remove java %{jrebindir -- %{?1}}/java
f8e459
  alternatives --remove jre_%{origin} %{_jvmdir}/%{sdkdir -- %{?1}}
f8e459
  alternatives --remove jre_%{javaver} %{_jvmdir}/%{sdkdir -- %{?1}}
f8e459
  alternatives --remove jre_%{javaver}_%{origin} %{_jvmdir}/%{jrelnk -- %{?1}}
f8e459
}
f8e459
f8e459
%define posttrans_script() %{expand:
f8e459
%{update_desktop_icons}
f8e459
}
f8e459
f8e459
%define post_devel() %{expand:
f8e459
f8e459
PRIORITY=%{priority}
f8e459
if [ "%{?1}" == %{debug_suffix} ]; then
f8e459
  let PRIORITY=PRIORITY-1
f8e459
fi
f8e459
f8e459
ext=.gz
f8e459
alternatives \\
f8e459
  --install %{_bindir}/javac javac %{sdkbindir -- %{?1}}/javac $PRIORITY  --family %{name}.%{_arch} \\
f8e459
  --slave %{_jvmdir}/java java_sdk %{_jvmdir}/%{sdkdir -- %{?1}} \\
f8e459
  --slave %{_bindir}/jlink jlink %{sdkbindir -- %{?1}}/jlink \\
f8e459
  --slave %{_bindir}/jmod jmod %{sdkbindir -- %{?1}}/jmod \\
f8e459
%ifarch %{sa_arches}
f8e459
  --slave %{_bindir}/jhsdb jhsdb %{sdkbindir -- %{?1}}/jhsdb \\
f8e459
%endif
f8e459
  --slave %{_bindir}/jar jar %{sdkbindir -- %{?1}}/jar \\
f8e459
  --slave %{_bindir}/jarsigner jarsigner %{sdkbindir -- %{?1}}/jarsigner \\
f8e459
  --slave %{_bindir}/javadoc javadoc %{sdkbindir -- %{?1}}/javadoc \\
f8e459
  --slave %{_bindir}/javap javap %{sdkbindir -- %{?1}}/javap \\
f8e459
  --slave %{_bindir}/jcmd jcmd %{sdkbindir -- %{?1}}/jcmd \\
f8e459
  --slave %{_bindir}/jconsole jconsole %{sdkbindir -- %{?1}}/jconsole \\
f8e459
  --slave %{_bindir}/jdb jdb %{sdkbindir -- %{?1}}/jdb \\
f8e459
  --slave %{_bindir}/jdeps jdeps %{sdkbindir -- %{?1}}/jdeps \\
f8e459
  --slave %{_bindir}/jdeprscan jdeprscan %{sdkbindir -- %{?1}}/jdeprscan \\
f8e459
  --slave %{_bindir}/jfr jfr %{sdkbindir -- %{?1}}/jfr \\
f8e459
  --slave %{_bindir}/jimage jimage %{sdkbindir -- %{?1}}/jimage \\
f8e459
  --slave %{_bindir}/jinfo jinfo %{sdkbindir -- %{?1}}/jinfo \\
f8e459
  --slave %{_bindir}/jmap jmap %{sdkbindir -- %{?1}}/jmap \\
f8e459
  --slave %{_bindir}/jps jps %{sdkbindir -- %{?1}}/jps \\
f8e459
  --slave %{_bindir}/jpackage jpackage %{sdkbindir -- %{?1}}/jpackage \\
f8e459
  --slave %{_bindir}/jrunscript jrunscript %{sdkbindir -- %{?1}}/jrunscript \\
f8e459
  --slave %{_bindir}/jshell jshell %{sdkbindir -- %{?1}}/jshell \\
f8e459
  --slave %{_bindir}/jstack jstack %{sdkbindir -- %{?1}}/jstack \\
f8e459
  --slave %{_bindir}/jstat jstat %{sdkbindir -- %{?1}}/jstat \\
f8e459
  --slave %{_bindir}/jstatd jstatd %{sdkbindir -- %{?1}}/jstatd \\
f8e459
  --slave %{_bindir}/serialver serialver %{sdkbindir -- %{?1}}/serialver \\
f8e459
  --slave %{_mandir}/man1/jar.1$ext jar.1$ext \\
f8e459
  %{_mandir}/man1/jar-%{uniquesuffix -- %{?1}}.1$ext \\
f8e459
  --slave %{_mandir}/man1/jarsigner.1$ext jarsigner.1$ext \\
f8e459
  %{_mandir}/man1/jarsigner-%{uniquesuffix -- %{?1}}.1$ext \\
f8e459
  --slave %{_mandir}/man1/javac.1$ext javac.1$ext \\
f8e459
  %{_mandir}/man1/javac-%{uniquesuffix -- %{?1}}.1$ext \\
f8e459
  --slave %{_mandir}/man1/javadoc.1$ext javadoc.1$ext \\
f8e459
  %{_mandir}/man1/javadoc-%{uniquesuffix -- %{?1}}.1$ext \\
f8e459
  --slave %{_mandir}/man1/javap.1$ext javap.1$ext \\
f8e459
  %{_mandir}/man1/javap-%{uniquesuffix -- %{?1}}.1$ext \\
f8e459
  --slave %{_mandir}/man1/jcmd.1$ext jcmd.1$ext \\
f8e459
  %{_mandir}/man1/jcmd-%{uniquesuffix -- %{?1}}.1$ext \\
f8e459
  --slave %{_mandir}/man1/jconsole.1$ext jconsole.1$ext \\
f8e459
  %{_mandir}/man1/jconsole-%{uniquesuffix -- %{?1}}.1$ext \\
f8e459
  --slave %{_mandir}/man1/jdb.1$ext jdb.1$ext \\
f8e459
  %{_mandir}/man1/jdb-%{uniquesuffix -- %{?1}}.1$ext \\
f8e459
  --slave %{_mandir}/man1/jdeps.1$ext jdeps.1$ext \\
f8e459
  %{_mandir}/man1/jdeps-%{uniquesuffix -- %{?1}}.1$ext \\
f8e459
  --slave %{_mandir}/man1/jinfo.1$ext jinfo.1$ext \\
f8e459
  %{_mandir}/man1/jinfo-%{uniquesuffix -- %{?1}}.1$ext \\
f8e459
  --slave %{_mandir}/man1/jmap.1$ext jmap.1$ext \\
f8e459
  %{_mandir}/man1/jmap-%{uniquesuffix -- %{?1}}.1$ext \\
f8e459
  --slave %{_mandir}/man1/jps.1$ext jps.1$ext \\
f8e459
  %{_mandir}/man1/jps-%{uniquesuffix -- %{?1}}.1$ext \\
f8e459
  --slave %{_mandir}/man1/jpackage.1$ext jpackage.1$ext \\
f8e459
  %{_mandir}/man1/jpackage-%{uniquesuffix -- %{?1}}.1$ext \\
f8e459
  --slave %{_mandir}/man1/jrunscript.1$ext jrunscript.1$ext \\
f8e459
  %{_mandir}/man1/jrunscript-%{uniquesuffix -- %{?1}}.1$ext \\
f8e459
  --slave %{_mandir}/man1/jstack.1$ext jstack.1$ext \\
f8e459
  %{_mandir}/man1/jstack-%{uniquesuffix -- %{?1}}.1$ext \\
f8e459
  --slave %{_mandir}/man1/jstat.1$ext jstat.1$ext \\
f8e459
  %{_mandir}/man1/jstat-%{uniquesuffix -- %{?1}}.1$ext \\
f8e459
  --slave %{_mandir}/man1/jstatd.1$ext jstatd.1$ext \\
f8e459
  %{_mandir}/man1/jstatd-%{uniquesuffix -- %{?1}}.1$ext \\
f8e459
  --slave %{_mandir}/man1/serialver.1$ext serialver.1$ext \\
f8e459
  %{_mandir}/man1/serialver-%{uniquesuffix -- %{?1}}.1$ext
f8e459
f8e459
for X in %{origin} %{javaver} ; do
f8e459
  alternatives \\
f8e459
    --install %{_jvmdir}/java-"$X" java_sdk_"$X" %{_jvmdir}/%{sdkdir -- %{?1}} $PRIORITY  --family %{name}.%{_arch}
f8e459
done
f8e459
f8e459
update-alternatives --install %{_jvmdir}/java-%{javaver}-%{origin} java_sdk_%{javaver}_%{origin} %{_jvmdir}/%{sdkdir -- %{?1}} $PRIORITY  --family %{name}.%{_arch}
f8e459
f8e459
update-desktop-database %{_datadir}/applications &> /dev/null || :
f8e459
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
f8e459
f8e459
exit 0
f8e459
}
f8e459
f8e459
%define postun_devel() %{expand:
f8e459
  alternatives --remove javac %{sdkbindir -- %{?1}}/javac
f8e459
  alternatives --remove java_sdk_%{origin} %{_jvmdir}/%{sdkdir -- %{?1}}
f8e459
  alternatives --remove java_sdk_%{javaver} %{_jvmdir}/%{sdkdir -- %{?1}}
f8e459
  alternatives --remove java_sdk_%{javaver}_%{origin} %{_jvmdir}/%{sdkdir -- %{?1}}
f8e459
f8e459
update-desktop-database %{_datadir}/applications &> /dev/null || :
f8e459
f8e459
if [ $1 -eq 0 ] ; then
f8e459
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
f8e459
    %{update_desktop_icons}
f8e459
fi
f8e459
exit 0
f8e459
}
f8e459
f8e459
%define posttrans_devel() %{expand:
f8e459
%{update_desktop_icons}
f8e459
}
f8e459
f8e459
%define post_javadoc() %{expand:
f8e459
f8e459
PRIORITY=%{priority}
f8e459
if [ "%{?1}" == %{debug_suffix} ]; then
f8e459
  let PRIORITY=PRIORITY-1
f8e459
fi
f8e459
f8e459
alternatives \\
f8e459
  --install %{_javadocdir}/java javadocdir %{_javadocdir}/%{uniquejavadocdir -- %{?1}}/api \\
f8e459
  $PRIORITY  --family %{name}
f8e459
exit 0
f8e459
}
f8e459
f8e459
%define postun_javadoc() %{expand:
f8e459
  alternatives --remove javadocdir %{_javadocdir}/%{uniquejavadocdir -- %{?1}}/api
f8e459
exit 0
f8e459
}
f8e459
f8e459
%define post_javadoc_zip() %{expand:
f8e459
f8e459
PRIORITY=%{priority}
f8e459
if [ "%{?1}" == %{debug_suffix} ]; then
f8e459
  let PRIORITY=PRIORITY-1
f8e459
fi
f8e459
f8e459
alternatives \\
f8e459
  --install %{_javadocdir}/java-zip javadoczip %{_javadocdir}/%{uniquejavadocdir -- %{?1}}.zip \\
f8e459
  $PRIORITY  --family %{name}
f8e459
exit 0
f8e459
}
f8e459
f8e459
%define postun_javadoc_zip() %{expand:
f8e459
  alternatives --remove javadoczip %{_javadocdir}/%{uniquejavadocdir -- %{?1}}.zip
f8e459
exit 0
f8e459
}
f8e459
f8e459
%define files_jre() %{expand:
f8e459
%{_datadir}/icons/hicolor/*x*/apps/java-%{javaver}-%{origin}.png
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libsplashscreen.so
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libawt_xawt.so
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libjawt.so
f8e459
}
f8e459
f8e459
f8e459
%define files_jre_headless() %{expand:
f8e459
%license %{_jvmdir}/%{sdkdir -- %{?1}}/legal
f8e459
%doc %{_defaultdocdir}/%{uniquejavadocdir -- %{?1}}/NEWS
f8e459
%dir %{_sysconfdir}/.java/.systemPrefs
f8e459
%dir %{_sysconfdir}/.java
f8e459
%dir %{_jvmdir}/%{sdkdir -- %{?1}}
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/release
f8e459
%{_jvmdir}/%{jrelnk -- %{?1}}
f8e459
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/bin
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/java
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/%{alt_java_name}
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/keytool
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/rmiregistry
f8e459
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/lib
f8e459
%ifarch %{jit_arches}
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/classlist
f8e459
%endif
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/jexec
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/jspawnhelper
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/jrt-fs.jar
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/modules
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/psfont.properties.ja
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/psfontj2d.properties
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/tzdb.dat
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libjli.so
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/jvm.cfg
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libattach.so
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libawt.so
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libextnet.so
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libjsig.so
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libawt_headless.so
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libdt_socket.so
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libfontmanager.so
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libinstrument.so
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libj2gss.so
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libj2pcsc.so
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libj2pkcs11.so
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libjaas.so
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libjava.so
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libjavajpeg.so
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libjdwp.so
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libjimage.so
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libjsound.so
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/liblcms.so
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libmanagement.so
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libmanagement_agent.so
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libmanagement_ext.so
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libmlib_image.so
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libnet.so
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libnio.so
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libprefs.so
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/librmi.so
f8e459
# Some architectures don't have the serviceability agent
f8e459
%ifarch %{sa_arches}
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libsaproc.so
f8e459
%endif
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libsctp.so
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libsystemconf.so
f8e459
%ifarch %{svml_arches}
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libsvml.so
f8e459
%endif
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libsyslookup.so
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libverify.so
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libzip.so
f8e459
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/lib/jfr
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/jfr/default.jfc
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/jfr/profile.jfc
f8e459
%{_mandir}/man1/java-%{uniquesuffix -- %{?1}}.1*
f8e459
%{_mandir}/man1/%{alt_java_name}-%{uniquesuffix -- %{?1}}.1*
f8e459
%{_mandir}/man1/keytool-%{uniquesuffix -- %{?1}}.1*
f8e459
%{_mandir}/man1/rmiregistry-%{uniquesuffix -- %{?1}}.1*
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/server/
f8e459
%ifarch %{share_arches}
f8e459
%attr(444, root, root) %ghost %{_jvmdir}/%{sdkdir -- %{?1}}/lib/server/classes.jsa
f8e459
%endif
f8e459
%dir %{etcjavasubdir}
f8e459
%dir %{etcjavadir -- %{?1}}
f8e459
%dir %{etcjavadir -- %{?1}}/lib
f8e459
%dir %{etcjavadir -- %{?1}}/lib/security
f8e459
%{etcjavadir -- %{?1}}/lib/security/cacerts
f8e459
%dir %{etcjavadir -- %{?1}}/conf
f8e459
%dir %{etcjavadir -- %{?1}}/conf/sdp
f8e459
%dir %{etcjavadir -- %{?1}}/conf/management
f8e459
%dir %{etcjavadir -- %{?1}}/conf/security
f8e459
%dir %{etcjavadir -- %{?1}}/conf/security/policy
f8e459
%dir %{etcjavadir -- %{?1}}/conf/security/policy/limited
f8e459
%dir %{etcjavadir -- %{?1}}/conf/security/policy/unlimited
f8e459
%config(noreplace) %{etcjavadir -- %{?1}}/lib/security/default.policy
f8e459
%config(noreplace) %{etcjavadir -- %{?1}}/lib/security/blocked.certs
f8e459
%config(noreplace) %{etcjavadir -- %{?1}}/lib/security/public_suffix_list.dat
f8e459
%config(noreplace) %{etcjavadir -- %{?1}}/conf/security/policy/limited/exempt_local.policy
f8e459
%config(noreplace) %{etcjavadir -- %{?1}}/conf/security/policy/limited/default_local.policy
f8e459
%config(noreplace) %{etcjavadir -- %{?1}}/conf/security/policy/limited/default_US_export.policy
f8e459
%config(noreplace) %{etcjavadir -- %{?1}}/conf/security/policy/unlimited/default_local.policy
f8e459
%config(noreplace) %{etcjavadir -- %{?1}}/conf/security/policy/unlimited/default_US_export.policy
f8e459
 %{etcjavadir -- %{?1}}/conf/security/policy/README.txt
f8e459
%config(noreplace) %{etcjavadir -- %{?1}}/conf/security/java.policy
f8e459
%config(noreplace) %{etcjavadir -- %{?1}}/conf/security/java.security
f8e459
%config(noreplace) %{etcjavadir -- %{?1}}/conf/logging.properties
f8e459
%config(noreplace) %{etcjavadir -- %{?1}}/conf/security/nss.cfg
f8e459
%config(noreplace) %{etcjavadir -- %{?1}}/conf/security/nss.fips.cfg
f8e459
%config(noreplace) %{etcjavadir -- %{?1}}/conf/management/jmxremote.access
f8e459
# these are config templates, thus not config-noreplace
f8e459
%config  %{etcjavadir -- %{?1}}/conf/management/jmxremote.password.template
f8e459
%config  %{etcjavadir -- %{?1}}/conf/sdp/sdp.conf.template
f8e459
%config(noreplace) %{etcjavadir -- %{?1}}/conf/management/management.properties
f8e459
%config(noreplace) %{etcjavadir -- %{?1}}/conf/net.properties
f8e459
%config(noreplace) %{etcjavadir -- %{?1}}/conf/sound.properties
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/conf
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/security
f8e459
%if %is_system_jdk
f8e459
%if %{is_release_build -- %{?1}}
f8e459
%ghost %{_bindir}/java
f8e459
%ghost %{_bindir}/%{alt_java_name}
f8e459
%ghost %{_jvmdir}/jre
f8e459
%ghost %{_bindir}/keytool
f8e459
%ghost %{_bindir}/pack200
f8e459
%ghost %{_bindir}/rmid
f8e459
%ghost %{_bindir}/rmiregistry
f8e459
%ghost %{_bindir}/unpack200
f8e459
%ghost %{_jvmdir}/jre-%{origin}
f8e459
%ghost %{_jvmdir}/jre-%{javaver}
f8e459
%ghost %{_jvmdir}/jre-%{javaver}-%{origin}
f8e459
%endif
f8e459
%endif
f8e459
}
f8e459
f8e459
%define files_devel() %{expand:
f8e459
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/bin
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jar
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jarsigner
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/javac
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/javadoc
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/javap
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jconsole
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jcmd
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jdb
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jdeps
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jdeprscan
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jfr
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jimage
f8e459
# Some architectures don't have the serviceability agent
f8e459
%ifarch %{sa_arches}
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jhsdb
f8e459
%{_mandir}/man1/jhsdb-%{uniquesuffix -- %{?1}}.1.gz
f8e459
%endif
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jinfo
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jlink
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jmap
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jmod
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jps
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jpackage
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jrunscript
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jshell
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jstack
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jstat
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jstatd
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/serialver
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/include
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/ct.sym
f8e459
%if %{with_systemtap}
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/tapset
f8e459
%endif
f8e459
%{_datadir}/applications/*jconsole%{?1}.desktop
f8e459
%{_mandir}/man1/jar-%{uniquesuffix -- %{?1}}.1*
f8e459
%{_mandir}/man1/jarsigner-%{uniquesuffix -- %{?1}}.1*
f8e459
%{_mandir}/man1/javac-%{uniquesuffix -- %{?1}}.1*
f8e459
%{_mandir}/man1/javadoc-%{uniquesuffix -- %{?1}}.1*
f8e459
%{_mandir}/man1/javap-%{uniquesuffix -- %{?1}}.1*
f8e459
%{_mandir}/man1/jconsole-%{uniquesuffix -- %{?1}}.1*
f8e459
%{_mandir}/man1/jcmd-%{uniquesuffix -- %{?1}}.1*
f8e459
%{_mandir}/man1/jdb-%{uniquesuffix -- %{?1}}.1*
f8e459
%{_mandir}/man1/jdeps-%{uniquesuffix -- %{?1}}.1*
f8e459
%{_mandir}/man1/jinfo-%{uniquesuffix -- %{?1}}.1*
f8e459
%{_mandir}/man1/jmap-%{uniquesuffix -- %{?1}}.1*
f8e459
%{_mandir}/man1/jps-%{uniquesuffix -- %{?1}}.1*
f8e459
%{_mandir}/man1/jpackage-%{uniquesuffix -- %{?1}}.1*
f8e459
%{_mandir}/man1/jrunscript-%{uniquesuffix -- %{?1}}.1*
f8e459
%{_mandir}/man1/jstack-%{uniquesuffix -- %{?1}}.1*
f8e459
%{_mandir}/man1/jstat-%{uniquesuffix -- %{?1}}.1*
f8e459
%{_mandir}/man1/jstatd-%{uniquesuffix -- %{?1}}.1*
f8e459
%{_mandir}/man1/serialver-%{uniquesuffix -- %{?1}}.1*
f8e459
%{_mandir}/man1/jdeprscan-%{uniquesuffix -- %{?1}}.1.gz
f8e459
%{_mandir}/man1/jlink-%{uniquesuffix -- %{?1}}.1.gz
f8e459
%{_mandir}/man1/jmod-%{uniquesuffix -- %{?1}}.1.gz
f8e459
%{_mandir}/man1/jshell-%{uniquesuffix -- %{?1}}.1.gz
f8e459
%{_mandir}/man1/jfr-%{uniquesuffix -- %{?1}}.1.gz
f8e459
f8e459
%if %{with_systemtap}
f8e459
%dir %{tapsetroot}
f8e459
%dir %{tapsetdirttapset}
f8e459
%dir %{tapsetdir}
f8e459
%{tapsetdir}/*%{_arch}%{?1}.stp
f8e459
%endif
f8e459
%if %is_system_jdk
f8e459
%if %{is_release_build -- %{?1}}
f8e459
%ghost %{_bindir}/javac
f8e459
%ghost %{_jvmdir}/java
f8e459
%ghost %{_jvmdir}/%{alt_java_name}
f8e459
%ghost %{_bindir}/jlink
f8e459
%ghost %{_bindir}/jmod
f8e459
%ghost %{_bindir}/jhsdb
f8e459
%ghost %{_bindir}/jar
f8e459
%ghost %{_bindir}/jarsigner
f8e459
%ghost %{_bindir}/javadoc
f8e459
%ghost %{_bindir}/javap
f8e459
%ghost %{_bindir}/jcmd
f8e459
%ghost %{_bindir}/jconsole
f8e459
%ghost %{_bindir}/jdb
f8e459
%ghost %{_bindir}/jdeps
f8e459
%ghost %{_bindir}/jdeprscan
f8e459
%ghost %{_bindir}/jimage
f8e459
%ghost %{_bindir}/jinfo
f8e459
%ghost %{_bindir}/jmap
f8e459
%ghost %{_bindir}/jps
f8e459
%ghost %{_bindir}/jrunscript
f8e459
%ghost %{_bindir}/jshell
f8e459
%ghost %{_bindir}/jstack
f8e459
%ghost %{_bindir}/jstat
f8e459
%ghost %{_bindir}/jstatd
f8e459
%ghost %{_bindir}/serialver
f8e459
%ghost %{_jvmdir}/java-%{origin}
f8e459
%ghost %{_jvmdir}/java-%{javaver}
f8e459
%ghost %{_jvmdir}/java-%{javaver}-%{origin}
f8e459
%endif
f8e459
%endif
f8e459
}
f8e459
f8e459
%define files_jmods() %{expand:
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/jmods
f8e459
}
f8e459
f8e459
%define files_demo() %{expand:
f8e459
%license %{_jvmdir}/%{sdkdir -- %{?1}}/legal
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/demo
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/sample
f8e459
}
f8e459
f8e459
%define files_src() %{expand:
f8e459
%license %{_jvmdir}/%{sdkdir -- %{?1}}/legal
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/src.zip
f8e459
}
f8e459
f8e459
%define files_static_libs() %{expand:
f8e459
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/lib/static
f8e459
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/lib/static/linux-%{archinstall}
f8e459
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/lib/static/linux-%{archinstall}/glibc
f8e459
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/static/linux-%{archinstall}/glibc/lib*.a
f8e459
}
f8e459
f8e459
%define files_javadoc() %{expand:
f8e459
%doc %{_javadocdir}/%{uniquejavadocdir -- %{?1}}
f8e459
%license %{_jvmdir}/%{sdkdir -- %{?1}}/legal
f8e459
%if %is_system_jdk
f8e459
%if %{is_release_build -- %{?1}}
f8e459
%ghost %{_javadocdir}/java
f8e459
%endif
f8e459
%endif
f8e459
}
f8e459
f8e459
%define files_javadoc_zip() %{expand:
f8e459
%doc %{_javadocdir}/%{uniquejavadocdir -- %{?1}}.zip
f8e459
%license %{_jvmdir}/%{sdkdir -- %{?1}}/legal
f8e459
%if %is_system_jdk
f8e459
%if %{is_release_build -- %{?1}}
f8e459
%ghost %{_javadocdir}/java-zip
f8e459
%endif
f8e459
%endif
f8e459
}
f8e459
f8e459
# x86 is not supported by OpenJDK 17
f8e459
ExcludeArch: %{ix86}
f8e459
f8e459
# not-duplicated requires/provides/obsoletes for normal/debug packages
f8e459
%define java_rpo() %{expand:
f8e459
Requires: fontconfig%{?_isa}
f8e459
Requires: xorg-x11-fonts-Type1
f8e459
# Require libXcomposite explicitly since it's only dynamically loaded
f8e459
# at runtime. Fixes screenshot issues. See JDK-8150954.
f8e459
Requires: libXcomposite%{?_isa}
f8e459
# Requires rest of java
f8e459
Requires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
f8e459
OrderWithRequires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
f8e459
# for java-X-openjdk package's desktop binding
f8e459
Recommends: gtk3%{?_isa}
f8e459
f8e459
Provides: java-%{javaver}-%{origin}%{?1} = %{epoch}:%{version}-%{release}
f8e459
f8e459
# Standard JPackage base provides
f8e459
Provides: jre-%{javaver}%{?1} = %{epoch}:%{version}-%{release}
f8e459
Provides: jre-%{javaver}-%{origin}%{?1} = %{epoch}:%{version}-%{release}
f8e459
Provides: java-%{javaver}%{?1} = %{epoch}:%{version}-%{release}
f8e459
%if %is_system_jdk
f8e459
Provides: java-%{origin}%{?1} = %{epoch}:%{version}-%{release}
f8e459
Provides: jre-%{origin}%{?1} = %{epoch}:%{version}-%{release}
f8e459
Provides: java%{?1} = %{epoch}:%{version}-%{release}
f8e459
Provides: jre%{?1} = %{epoch}:%{version}-%{release}
f8e459
%endif
f8e459
}
f8e459
f8e459
%define java_headless_rpo() %{expand:
f8e459
# Require /etc/pki/java/cacerts
f8e459
Requires: ca-certificates
f8e459
# Require javapackages-filesystem for ownership of /usr/lib/jvm/ and macros
f8e459
Requires: javapackages-filesystem
f8e459
# Require zone-info data provided by tzdata-java sub-package
f8e459
Requires: tzdata-java >= 2015d
f8e459
# for support of kernel stream control
f8e459
# libsctp.so.1 is being `dlopen`ed on demand
f8e459
Requires: lksctp-tools%{?_isa}
f8e459
%if ! 0%{?flatpak}
f8e459
# tool to copy jdk's configs - should be Recommends only, but then only dnf/yum enforce it,
f8e459
# not rpm transaction and so no configs are persisted when pure rpm -u is run. It may be
f8e459
# considered as regression
f8e459
Requires: copy-jdk-configs >= 3.3
f8e459
OrderWithRequires: copy-jdk-configs
f8e459
%endif
f8e459
# for printing support
f8e459
Requires: cups-libs
f8e459
# Post requires alternatives to install tool alternatives
f8e459
Requires(post):   %{alternatives_requires}
f8e459
# Postun requires alternatives to uninstall tool alternatives
f8e459
Requires(postun): %{alternatives_requires}
f8e459
# for optional support of kernel stream control, card reader and printing bindings
f8e459
Suggests: lksctp-tools%{?_isa}, pcsc-lite-libs%{?_isa}
f8e459
f8e459
# Standard JPackage base provides
f8e459
Provides: jre-%{javaver}-%{origin}-headless%{?1} = %{epoch}:%{version}-%{release}
f8e459
Provides: jre-%{javaver}-headless%{?1} = %{epoch}:%{version}-%{release}
f8e459
Provides: java-%{javaver}-%{origin}-headless%{?1} = %{epoch}:%{version}-%{release}
f8e459
Provides: java-%{javaver}-headless%{?1} = %{epoch}:%{version}-%{release}
f8e459
%if %is_system_jdk
f8e459
Provides: java-%{origin}-headless%{?1} = %{epoch}:%{version}-%{release}
f8e459
Provides: jre-%{origin}-headless%{?1} = %{epoch}:%{version}-%{release}
f8e459
Provides: jre-headless%{?1} = %{epoch}:%{version}-%{release}
f8e459
Provides: java-headless%{?1} = %{epoch}:%{version}-%{release}
f8e459
%endif
f8e459
}
f8e459
f8e459
%define java_devel_rpo() %{expand:
f8e459
# Requires base package
f8e459
Requires:         %{name}%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
f8e459
OrderWithRequires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
f8e459
# Post requires alternatives to install tool alternatives
f8e459
Requires(post):   %{alternatives_requires}
f8e459
# Postun requires alternatives to uninstall tool alternatives
f8e459
Requires(postun): %{alternatives_requires}
f8e459
f8e459
# Standard JPackage devel provides
f8e459
Provides: java-sdk-%{javaver}-%{origin}%{?1} = %{epoch}:%{version}-%{release}
f8e459
Provides: java-sdk-%{javaver}%{?1} = %{epoch}:%{version}-%{release}
f8e459
Provides: java-%{javaver}-devel%{?1} = %{epoch}:%{version}-%{release}
f8e459
Provides: java-%{javaver}-%{origin}-devel%{?1} = %{epoch}:%{version}-%{release}
f8e459
%if %is_system_jdk
f8e459
Provides: java-sdk-%{origin}%{?1} = %{epoch}:%{version}-%{release}
f8e459
Provides: java-devel%{?1} = %{epoch}:%{version}-%{release}
f8e459
Provides: java-%{origin}-devel%{?1} = %{epoch}:%{version}-%{release}
f8e459
Provides: java-sdk%{?1} = %{epoch}:%{version}-%{release}
f8e459
%endif
f8e459
}
f8e459
f8e459
%define java_static_libs_rpo() %{expand:
f8e459
Requires:         %{name}-devel%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
f8e459
OrderWithRequires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
f8e459
}
f8e459
f8e459
%define java_jmods_rpo() %{expand:
f8e459
# Requires devel package
f8e459
# as jmods are bytecode, they should be OK without any _isa
f8e459
Requires:         %{name}-devel%{?1} = %{epoch}:%{version}-%{release}
f8e459
OrderWithRequires: %{name}-headless%{?1} = %{epoch}:%{version}-%{release}
f8e459
f8e459
Provides: java-%{javaver}-jmods%{?1} = %{epoch}:%{version}-%{release}
f8e459
Provides: java-%{javaver}-%{origin}-jmods%{?1} = %{epoch}:%{version}-%{release}
f8e459
%if %is_system_jdk
f8e459
Provides: java-jmods%{?1} = %{epoch}:%{version}-%{release}
f8e459
%endif
f8e459
}
f8e459
f8e459
%define java_demo_rpo() %{expand:
f8e459
Requires: %{name}%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
f8e459
OrderWithRequires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
f8e459
f8e459
Provides: java-%{javaver}-demo%{?1} = %{epoch}:%{version}-%{release}
f8e459
Provides: java-%{javaver}-%{origin}-demo%{?1} = %{epoch}:%{version}-%{release}
f8e459
%if %is_system_jdk
f8e459
Provides: java-demo%{?1} = %{epoch}:%{version}-%{release}
f8e459
Provides: java-%{origin}-demo%{?1} = %{epoch}:%{version}-%{release}
f8e459
%endif
f8e459
}
f8e459
f8e459
%define java_javadoc_rpo() %{expand:
f8e459
OrderWithRequires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
f8e459
# Post requires alternatives to install javadoc alternative
f8e459
Requires(post):   %{alternatives_requires}
f8e459
# Postun requires alternatives to uninstall javadoc alternative
f8e459
Requires(postun): %{alternatives_requires}
f8e459
f8e459
# Standard JPackage javadoc provides
f8e459
Provides: java-%{javaver}-javadoc%{?1} = %{epoch}:%{version}-%{release}
f8e459
Provides: java-%{javaver}-%{origin}-javadoc%{?1} = %{epoch}:%{version}-%{release}
f8e459
%if %is_system_jdk
f8e459
Provides: java-javadoc%{?1} = %{epoch}:%{version}-%{release}
f8e459
%endif
f8e459
}
f8e459
f8e459
%define java_src_rpo() %{expand:
f8e459
Requires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
f8e459
f8e459
# Standard JPackage sources provides
f8e459
Provides: java-%{javaver}-src%{?1} = %{epoch}:%{version}-%{release}
f8e459
Provides: java-%{javaver}-%{origin}-src%{?1} = %{epoch}:%{version}-%{release}
f8e459
%if %is_system_jdk
f8e459
Provides: java-src%{?1} = %{epoch}:%{version}-%{release}
f8e459
Provides: java-%{origin}-src%{?1} = %{epoch}:%{version}-%{release}
f8e459
%endif
f8e459
}
f8e459
f8e459
# Prevent brp-java-repack-jars from being run
f8e459
%global __jar_repack 0
f8e459
f8e459
Name:    java-%{javaver}-%{origin}
f8e459
Version: %{newjavaver}.%{buildver}
f8e459
Release: %{?eaprefix}%{rpmrelease}%{?extraver}%{?dist}
f8e459
# java-1.5.0-ibm from jpackage.org set Epoch to 1 for unknown reasons
f8e459
# and this change was brought into RHEL-4. java-1.5.0-ibm packages
f8e459
# also included the epoch in their virtual provides. This created a
f8e459
# situation where in-the-wild java-1.5.0-ibm packages provided "java =
f8e459
# 1:1.5.0". In RPM terms, "1.6.0 < 1:1.5.0" since 1.6.0 is
f8e459
# interpreted as 0:1.6.0. So the "java >= 1.6.0" requirement would be
f8e459
# satisfied by the 1:1.5.0 packages. Thus we need to set the epoch in
f8e459
# JDK package >= 1.6.0 to 1, and packages referring to JDK virtual
f8e459
# provides >= 1.6.0 must specify the epoch, "java >= 1:1.6.0".
f8e459
f8e459
Epoch:   1
f8e459
Summary: %{origin_nice} %{featurever} Runtime Environment
f8e459
f8e459
# HotSpot code is licensed under GPLv2
f8e459
# JDK library code is licensed under GPLv2 with the Classpath exception
f8e459
# The Apache license is used in code taken from Apache projects (primarily xalan & xerces)
f8e459
# DOM levels 2 & 3 and the XML digital signature schemas are licensed under the W3C Software License
f8e459
# The JSR166 concurrency code is in the public domain
f8e459
# The BSD and MIT licenses are used for a number of third-party libraries (see ADDITIONAL_LICENSE_INFO)
f8e459
# The OpenJDK source tree includes:
f8e459
# - JPEG library (IJG), zlib & libpng (zlib), giflib (MIT), harfbuzz (ISC),
f8e459
# - freetype (FTL), jline (BSD) and LCMS (MIT)
f8e459
# - jquery (MIT), jdk.crypto.cryptoki PKCS 11 wrapper (RSA)
f8e459
# - public_suffix_list.dat from publicsuffix.org (MPLv2.0)
f8e459
# The test code includes copies of NSS under the Mozilla Public License v2.0
f8e459
# The PCSClite headers are under a BSD with advertising license
f8e459
# The elliptic curve cryptography (ECC) source code is licensed under the LGPLv2.1 or any later version
f8e459
License:  ASL 1.1 and ASL 2.0 and BSD and BSD with advertising and GPL+ and GPLv2 and GPLv2 with exceptions and IJG and LGPLv2+ and MIT and MPLv2.0 and Public Domain and W3C and zlib and ISC and FTL and RSA
f8e459
URL:      http://openjdk.java.net/
f8e459
f8e459
f8e459
# to regenerate source0 (jdk) run update_package.sh
f8e459
# update_package.sh contains hard-coded repos, revisions, tags, and projects to regenerate the source archives
f8e459
Source0: openjdk-jdk%{featurever}-jdk-%{filever}+%{buildver}%{?tagsuffix:-%{tagsuffix}}.tar.xz
f8e459
#Source0: openjdk-jdk%{featurever}-jdk-%{filever}+%{buildver}.tar.xz
f8e459
f8e459
# Use 'icedtea_sync.sh' to update the following
f8e459
# They are based on code contained in the IcedTea project (3.x).
f8e459
# Systemtap tapsets. Zipped up to keep it small.
f8e459
Source8: tapsets-icedtea-%{icedteaver}.tar.xz
f8e459
f8e459
# Desktop files. Adapted from IcedTea
f8e459
Source9: jconsole.desktop.in
f8e459
f8e459
# Release notes
f8e459
Source10: NEWS
f8e459
f8e459
# nss configuration file
f8e459
Source11: nss.cfg.in
f8e459
f8e459
# Removed libraries that we link instead
f8e459
Source12: remove-intree-libraries.sh
f8e459
f8e459
# Ensure we aren't using the limited crypto policy
f8e459
Source13: TestCryptoLevel.java
f8e459
f8e459
# Ensure ECDSA is working
f8e459
Source14: TestECDSA.java
f8e459
f8e459
# Verify system crypto (policy) can be disabled via a property
f8e459
Source15: TestSecurityProperties.java
f8e459
f8e459
# nss fips configuration file
f8e459
Source17: nss.fips.cfg.in
f8e459
f8e459
############################################
f8e459
#
f8e459
# RPM/distribution specific patches
f8e459
#
f8e459
############################################
f8e459
f8e459
# NSS via SunPKCS11 Provider (disabled comment
f8e459
# due to memory leak).
f8e459
Patch1000: rh1648249-add_commented_out_nss_cfg_provider_to_java_security.patch
f8e459
# enable build of speculative store bypass hardened alt-java
f8e459
Patch600: rh1750419-redhat_alt_java.patch
f8e459
f8e459
# Ignore AWTError when assistive technologies are loaded
f8e459
Patch1:    rh1648242-accessible_toolkit_crash_do_not_break_jvm.patch
f8e459
# Restrict access to java-atk-wrapper classes
f8e459
Patch2:    rh1648644-java_access_bridge_privileged_security.patch
f8e459
Patch3:    rh649512-remove_uses_of_far_in_jpeg_libjpeg_turbo_1_4_compat_for_jdk10_and_up.patch
f8e459
# Follow system wide crypto policy RHBZ#1249083
f8e459
Patch4:    pr3183-rh1340845-support_fedora_rhel_system_crypto_policy.patch
f8e459
# PR3695: Allow use of system crypto policy to be disabled by the user
f8e459
Patch5:    pr3695-toggle_system_crypto_policy.patch
f8e459
# Depend on pcs-lite-libs instead of pcs-lite-devel as this is only in optional repo
f8e459
Patch6: rh1684077-openjdk_should_depend_on_pcsc-lite-libs_instead_of_pcsc-lite-devel.patch
f8e459
f8e459
# FIPS support patches
f8e459
# RH1655466: Support RHEL FIPS mode using SunPKCS11 provider
f8e459
Patch1001: rh1655466-global_crypto_and_fips.patch
f8e459
# RH1818909: No ciphersuites availale for SSLSocket in FIPS mode
f8e459
Patch1002: rh1818909-fips_default_keystore_type.patch
f8e459
# RH1860986: Disable TLSv1.3 with the NSS-FIPS provider until PKCS#11 v3.0 support is available
f8e459
Patch1004: rh1860986-disable_tlsv1.3_in_fips_mode.patch
f8e459
# RH1915071: Always initialise JavaSecuritySystemConfiguratorAccess
f8e459
Patch1007: rh1915071-always_initialise_configurator_access.patch
f8e459
# RH1929465: Improve system FIPS detection
f8e459
Patch1008: rh1929465-improve_system_FIPS_detection.patch
f8e459
Patch1011: rh1929465-dont_define_unused_throwioexception.patch
f8e459
# RH1995150: Disable non-FIPS crypto in SUN and SunEC security providers
f8e459
Patch1009: rh1995150-disable_non-fips_crypto.patch
f8e459
# RH1996182: Login to the NSS software token in FIPS mode
f8e459
Patch1010: rh1996182-login_to_nss_software_token.patch
f8e459
Patch1012: rh1996182-extend_security_policy.patch
f8e459
f8e459
#############################################
f8e459
#
f8e459
# OpenJDK patches in need of upstreaming
f8e459
#
f8e459
#############################################
f8e459
f8e459
f8e459
BuildRequires: autoconf
f8e459
BuildRequires: automake
f8e459
BuildRequires: alsa-lib-devel
f8e459
BuildRequires: binutils
f8e459
BuildRequires: cups-devel
f8e459
BuildRequires: desktop-file-utils
f8e459
# elfutils only are OK for build without AOT
f8e459
BuildRequires: elfutils-devel
f8e459
BuildRequires: fontconfig-devel
f8e459
BuildRequires: freetype-devel
f8e459
BuildRequires: giflib-devel
f8e459
BuildRequires: gcc-c++
f8e459
BuildRequires: gdb
f8e459
BuildRequires: harfbuzz-devel
f8e459
BuildRequires: lcms2-devel
f8e459
BuildRequires: libjpeg-devel
f8e459
BuildRequires: libpng-devel
f8e459
BuildRequires: libxslt
f8e459
BuildRequires: libX11-devel
f8e459
BuildRequires: libXi-devel
f8e459
BuildRequires: libXinerama-devel
f8e459
BuildRequires: libXrandr-devel
f8e459
BuildRequires: libXrender-devel
f8e459
BuildRequires: libXt-devel
f8e459
BuildRequires: libXtst-devel
f8e459
# Requirements for setting up the nss.cfg and FIPS support
f8e459
BuildRequires: nss-devel >= 3.53
f8e459
BuildRequires: pkgconfig
f8e459
BuildRequires: xorg-x11-proto-devel
f8e459
BuildRequires: zip
f8e459
BuildRequires: javapackages-filesystem
f8e459
BuildRequires: java-17-openjdk-devel
f8e459
# Zero-assembler build requirement
f8e459
%ifnarch %{jit_arches}
f8e459
BuildRequires: libffi-devel
f8e459
%endif
f8e459
BuildRequires: tzdata-java >= 2015d
f8e459
# Earlier versions have a bug in tree vectorization on PPC
f8e459
BuildRequires: gcc >= 4.8.3-8
f8e459
f8e459
%if %{with_systemtap}
f8e459
BuildRequires: systemtap-sdt-devel
f8e459
%endif
f8e459
BuildRequires: make
f8e459
f8e459
# this is always built, also during debug-only build
f8e459
# when it is built in debug-only this package is just placeholder
f8e459
%{java_rpo %{nil}}
f8e459
f8e459
%description
f8e459
The %{origin_nice} %{featurever} runtime environment.
f8e459
f8e459
%if %{include_debug_build}
f8e459
%package slowdebug
f8e459
Summary: %{origin_nice} %{featurever} Runtime Environment %{debug_on}
f8e459
f8e459
%{java_rpo -- %{debug_suffix_unquoted}}
f8e459
%description slowdebug
f8e459
The %{origin_nice} %{featurever} runtime environment.
f8e459
%{debug_warning}
f8e459
%endif
f8e459
f8e459
%if %{include_fastdebug_build}
f8e459
%package fastdebug
f8e459
Summary: %{origin_nice} %{featurever} Runtime Environment %{fastdebug_on}
f8e459
Group:   Development/Languages
f8e459
f8e459
%{java_rpo -- %{fastdebug_suffix_unquoted}}
f8e459
%description fastdebug
f8e459
The %{origin_nice} %{featurever} runtime environment.
f8e459
%{fastdebug_warning}
f8e459
%endif
f8e459
f8e459
%if %{include_normal_build}
f8e459
%package headless
f8e459
Summary: %{origin_nice} %{featurever} Headless Runtime Environment
f8e459
f8e459
%{java_headless_rpo %{nil}}
f8e459
f8e459
%description headless
f8e459
The %{origin_nice} %{featurever} runtime environment without audio and video support.
f8e459
%endif
f8e459
f8e459
%if %{include_debug_build}
f8e459
%package headless-slowdebug
f8e459
Summary: %{origin_nice} %{featurever} Runtime Environment %{debug_on}
f8e459
f8e459
%{java_headless_rpo -- %{debug_suffix_unquoted}}
f8e459
f8e459
%description headless-slowdebug
f8e459
The %{origin_nice} %{featurever} runtime environment without audio and video support.
f8e459
%{debug_warning}
f8e459
%endif
f8e459
f8e459
%if %{include_fastdebug_build}
f8e459
%package headless-fastdebug
f8e459
Summary: %{origin_nice} %{featurever} Runtime Environment %{fastdebug_on}
f8e459
Group:   Development/Languages
f8e459
f8e459
%{java_headless_rpo -- %{fastdebug_suffix_unquoted}}
f8e459
f8e459
%description headless-fastdebug
f8e459
The %{origin_nice} %{featurever} runtime environment without audio and video support.
f8e459
%{fastdebug_warning}
f8e459
%endif
f8e459
f8e459
%if %{include_normal_build}
f8e459
%package devel
f8e459
Summary: %{origin_nice} %{featurever} Development Environment
f8e459
f8e459
%{java_devel_rpo %{nil}}
f8e459
f8e459
%description devel
f8e459
The %{origin_nice} %{featurever} development tools.
f8e459
%endif
f8e459
f8e459
%if %{include_debug_build}
f8e459
%package devel-slowdebug
f8e459
Summary: %{origin_nice} %{featurever} Development Environment %{debug_on}
f8e459
f8e459
%{java_devel_rpo -- %{debug_suffix_unquoted}}
f8e459
f8e459
%description devel-slowdebug
f8e459
The %{origin_nice} %{featurever} development tools.
f8e459
%{debug_warning}
f8e459
%endif
f8e459
f8e459
%if %{include_fastdebug_build}
f8e459
%package devel-fastdebug
f8e459
Summary: %{origin_nice} %{featurever} Development Environment %{fastdebug_on}
f8e459
Group:   Development/Tools
f8e459
f8e459
%{java_devel_rpo -- %{fastdebug_suffix_unquoted}}
f8e459
f8e459
%description devel-fastdebug
f8e459
The %{origin_nice} %{featurever} development tools              .
f8e459
%{fastdebug_warning}
f8e459
%endif
f8e459
f8e459
%if %{include_staticlibs}
f8e459
f8e459
%if %{include_normal_build}
f8e459
%package static-libs
f8e459
Summary: %{origin_nice} %{featurever} libraries for static linking
f8e459
f8e459
%{java_static_libs_rpo %{nil}}
f8e459
f8e459
%description static-libs
f8e459
The %{origin_nice} %{featurever} libraries for static linking.
f8e459
%endif
f8e459
f8e459
%if %{include_debug_build}
f8e459
%package static-libs-slowdebug
f8e459
Summary: %{origin_nice} %{featurever} libraries for static linking %{debug_on}
f8e459
f8e459
%{java_static_libs_rpo -- %{debug_suffix_unquoted}}
f8e459
f8e459
%description static-libs-slowdebug
f8e459
The %{origin_nice} %{featurever} libraries for static linking.
f8e459
%{debug_warning}
f8e459
%endif
f8e459
f8e459
%if %{include_fastdebug_build}
f8e459
%package static-libs-fastdebug
f8e459
Summary: %{origin_nice} %{featurever} libraries for static linking %{fastdebug_on}
f8e459
f8e459
%{java_static_libs_rpo -- %{fastdebug_suffix_unquoted}}
f8e459
f8e459
%description static-libs-fastdebug
f8e459
The %{origin_nice} %{featurever} libraries for static linking.
f8e459
%{fastdebug_warning}
f8e459
%endif
f8e459
f8e459
# staticlibs
f8e459
%endif
f8e459
f8e459
%if %{include_normal_build}
f8e459
%package jmods
f8e459
Summary: JMods for %{origin_nice} %{featurever}
f8e459
f8e459
%{java_jmods_rpo %{nil}}
f8e459
f8e459
%description jmods
f8e459
The JMods for %{origin_nice} %{featurever}.
f8e459
%endif
f8e459
f8e459
%if %{include_debug_build}
f8e459
%package jmods-slowdebug
f8e459
Summary: JMods for %{origin_nice} %{featurever} %{debug_on}
f8e459
f8e459
%{java_jmods_rpo -- %{debug_suffix_unquoted}}
f8e459
f8e459
%description jmods-slowdebug
f8e459
The JMods for %{origin_nice} %{featurever}.
f8e459
%{debug_warning}
f8e459
%endif
f8e459
f8e459
%if %{include_fastdebug_build}
f8e459
%package jmods-fastdebug
f8e459
Summary: JMods for %{origin_nice} %{featurever} %{fastdebug_on}
f8e459
Group:   Development/Tools
f8e459
f8e459
%{java_jmods_rpo -- %{fastdebug_suffix_unquoted}}
f8e459
f8e459
%description jmods-fastdebug
f8e459
The JMods for %{origin_nice} %{featurever}.
f8e459
%{fastdebug_warning}
f8e459
%endif
f8e459
f8e459
f8e459
%if %{include_normal_build}
f8e459
%package demo
f8e459
Summary: %{origin_nice} %{featurever} Demos
f8e459
f8e459
%{java_demo_rpo %{nil}}
f8e459
f8e459
%description demo
f8e459
The %{origin_nice} %{featurever} demos.
f8e459
%endif
f8e459
f8e459
%if %{include_debug_build}
f8e459
%package demo-slowdebug
f8e459
Summary: %{origin_nice} %{featurever} Demos %{debug_on}
f8e459
f8e459
%{java_demo_rpo -- %{debug_suffix_unquoted}}
f8e459
f8e459
%description demo-slowdebug
f8e459
The %{origin_nice} %{featurever} demos.
f8e459
%{debug_warning}
f8e459
%endif
f8e459
f8e459
%if %{include_fastdebug_build}
f8e459
%package demo-fastdebug
f8e459
Summary: %{origin_nice} %{featurever} Demos %{fastdebug_on}
f8e459
Group:   Development/Languages
f8e459
f8e459
%{java_demo_rpo -- %{fastdebug_suffix_unquoted}}
f8e459
f8e459
%description demo-fastdebug
f8e459
The %{origin_nice} %{featurever} demos.
f8e459
%{fastdebug_warning}
f8e459
%endif
f8e459
f8e459
%if %{include_normal_build}
f8e459
%package src
f8e459
Summary: %{origin_nice} %{featurever} Source Bundle
f8e459
f8e459
%{java_src_rpo %{nil}}
f8e459
f8e459
%description src
f8e459
The %{compatiblename}-src sub-package contains the complete %{origin_nice} %{featurever}
f8e459
class library source code for use by IDE indexers and debuggers.
f8e459
%endif
f8e459
f8e459
%if %{include_debug_build}
f8e459
%package src-slowdebug
f8e459
Summary: %{origin_nice} %{featurever} Source Bundle %{for_debug}
f8e459
f8e459
%{java_src_rpo -- %{debug_suffix_unquoted}}
f8e459
f8e459
%description src-slowdebug
f8e459
The %{compatiblename}-src-slowdebug sub-package contains the complete %{origin_nice} %{featurever}
f8e459
 class library source code for use by IDE indexers and debuggers, %{for_debug}.
f8e459
%endif
f8e459
f8e459
%if %{include_fastdebug_build}
f8e459
%package src-fastdebug
f8e459
Summary: %{origin_nice} %{featurever} Source Bundle %{for_fastdebug}
f8e459
Group:   Development/Languages
f8e459
f8e459
%{java_src_rpo -- %{fastdebug_suffix_unquoted}}
f8e459
f8e459
%description src-fastdebug
f8e459
The %{compatiblename}-src-fastdebug sub-package contains the complete %{origin_nice} %{featurever}
f8e459
 class library source code for use by IDE indexers and debuggers, %{for_fastdebug}.
f8e459
%endif
f8e459
f8e459
f8e459
%if %{include_normal_build}
f8e459
%package javadoc
f8e459
Summary: %{origin_nice} %{featurever} API documentation
f8e459
Requires: javapackages-filesystem
f8e459
Obsoletes: javadoc-slowdebug < 1:13.0.0.33-1.rolling
f8e459
f8e459
%{java_javadoc_rpo %{nil}}
f8e459
f8e459
%description javadoc
f8e459
The %{origin_nice} %{featurever} API documentation.
f8e459
%endif
f8e459
f8e459
%if %{include_normal_build}
f8e459
%package javadoc-zip
f8e459
Summary: %{origin_nice} %{featurever} API documentation compressed in a single archive
f8e459
Requires: javapackages-filesystem
f8e459
Obsoletes: javadoc-zip-slowdebug < 1:13.0.0.33-1.rolling
f8e459
f8e459
%{java_javadoc_rpo %{nil}}
f8e459
f8e459
%description javadoc-zip
f8e459
The %{origin_nice} %{featurever} API documentation compressed in a single archive.
f8e459
%endif
f8e459
f8e459
%prep
f8e459
if [ %{include_normal_build} -eq 0 -o  %{include_normal_build} -eq 1 ] ; then
f8e459
  echo "include_normal_build is %{include_normal_build}"
f8e459
else
f8e459
  echo "include_normal_build is %{include_normal_build}, that is invalid. Use 1 for yes or 0 for no"
f8e459
  exit 11
f8e459
fi
f8e459
if [ %{include_debug_build} -eq 0 -o  %{include_debug_build} -eq 1 ] ; then
f8e459
  echo "include_debug_build is %{include_debug_build}"
f8e459
else
f8e459
  echo "include_debug_build is %{include_debug_build}, that is invalid. Use 1 for yes or 0 for no"
f8e459
  exit 12
f8e459
fi
f8e459
if [ %{include_fastdebug_build} -eq 0 -o  %{include_fastdebug_build} -eq 1 ] ; then
f8e459
  echo "include_fastdebug_build is %{include_fastdebug_build}"
f8e459
else
f8e459
  echo "include_fastdebug_build is %{include_fastdebug_build}, that is invalid. Use 1 for yes or 0 for no"
f8e459
  exit 13
f8e459
fi
f8e459
if [ %{include_debug_build} -eq 0 -a  %{include_normal_build} -eq 0 -a  %{include_fastdebug_build} -eq 0 ] ; then
f8e459
  echo "You have disabled all builds (normal,fastdebug,slowdebug). That is a no go."
f8e459
  exit 14
f8e459
fi
f8e459
%setup -q -c -n %{uniquesuffix ""} -T -a 0
f8e459
# https://bugzilla.redhat.com/show_bug.cgi?id=1189084
f8e459
prioritylength=`expr length %{priority}`
f8e459
if [ $prioritylength -ne 8 ] ; then
f8e459
 echo "priority must be 8 digits in total, violated"
f8e459
 exit 14
f8e459
fi
f8e459
f8e459
# OpenJDK patches
f8e459
# Remove libraries that are linked by both static and dynamic builds
f8e459
sh %{SOURCE12} %{top_level_dir_name}
f8e459
f8e459
# Patch the JDK
f8e459
pushd %{top_level_dir_name}
f8e459
%patch1 -p1
f8e459
%patch2 -p1
f8e459
%patch3 -p1
f8e459
%patch4 -p1
f8e459
%patch5 -p1
f8e459
%patch6 -p1
f8e459
popd # openjdk
f8e459
f8e459
%patch1000
f8e459
%patch600
f8e459
%patch1001
f8e459
%patch1002
f8e459
%patch1004
f8e459
%patch1007
f8e459
%patch1008
f8e459
%patch1009
f8e459
%patch1010
f8e459
%patch1011
f8e459
%patch1012
f8e459
f8e459
# Extract systemtap tapsets
f8e459
%if %{with_systemtap}
f8e459
tar --strip-components=1 -x -I xz -f %{SOURCE8}
f8e459
%if %{include_debug_build}
f8e459
cp -r tapset tapset%{debug_suffix}
f8e459
%endif
f8e459
%if %{include_fastdebug_build}
f8e459
cp -r tapset tapset%{fastdebug_suffix}
f8e459
%endif
f8e459
f8e459
f8e459
for suffix in %{build_loop} ; do
f8e459
  for file in "tapset"$suffix/*.in; do
f8e459
    OUTPUT_FILE=`echo $file | sed -e "s:\.stp\.in$:%{version}-%{release}.%{_arch}.stp:g"`
f8e459
    sed -e "s:@ABS_SERVER_LIBJVM_SO@:%{_jvmdir}/%{sdkdir -- $suffix}/lib/server/libjvm.so:g" $file > $file.1
f8e459
# TODO find out which architectures other than i686 have a client vm
f8e459
%ifarch %{ix86}
f8e459
    sed -e "s:@ABS_CLIENT_LIBJVM_SO@:%{_jvmdir}/%{sdkdir -- $suffix}/lib/client/libjvm.so:g" $file.1 > $OUTPUT_FILE
f8e459
%else
f8e459
    sed -e "/@ABS_CLIENT_LIBJVM_SO@/d" $file.1 > $OUTPUT_FILE
f8e459
%endif
f8e459
    sed -i -e "s:@ABS_JAVA_HOME_DIR@:%{_jvmdir}/%{sdkdir -- $suffix}:g" $OUTPUT_FILE
f8e459
    sed -i -e "s:@INSTALL_ARCH_DIR@:%{archinstall}:g" $OUTPUT_FILE
f8e459
    sed -i -e "s:@prefix@:%{_jvmdir}/%{sdkdir -- $suffix}/:g" $OUTPUT_FILE
f8e459
  done
f8e459
done
f8e459
# systemtap tapsets ends
f8e459
%endif
f8e459
f8e459
# Prepare desktop files
f8e459
for suffix in %{build_loop} ; do
f8e459
for file in %{SOURCE9}; do
f8e459
    FILE=`basename $file | sed -e s:\.in$::g`
f8e459
    EXT="${FILE##*.}"
f8e459
    NAME="${FILE%.*}"
f8e459
    OUTPUT_FILE=$NAME$suffix.$EXT
f8e459
    sed    -e  "s:@JAVA_HOME@:%{sdkbindir -- $suffix}:g" $file > $OUTPUT_FILE
f8e459
    sed -i -e  "s:@JRE_HOME@:%{jrebindir -- $suffix}:g" $OUTPUT_FILE
f8e459
    sed -i -e  "s:@ARCH@:%{version}-%{release}.%{_arch}$suffix:g" $OUTPUT_FILE
f8e459
    sed -i -e  "s:@JAVA_MAJOR_VERSION@:%{featurever}:g" $OUTPUT_FILE
f8e459
    sed -i -e  "s:@JAVA_VENDOR@:%{origin}:g" $OUTPUT_FILE
f8e459
done
f8e459
done
f8e459
f8e459
# Setup nss.cfg
f8e459
sed -e "s:@NSS_LIBDIR@:%{NSS_LIBDIR}:g" %{SOURCE11} > nss.cfg
f8e459
f8e459
# Setup nss.fips.cfg
f8e459
sed -e "s:@NSS_LIBDIR@:%{NSS_LIBDIR}:g" %{SOURCE17} > nss.fips.cfg
f8e459
sed -i -e "s:@NSS_SECMOD@:/etc/pki/nssdb:g" nss.fips.cfg
f8e459
f8e459
%build
f8e459
# How many CPU's do we have?
f8e459
export NUM_PROC=%(/usr/bin/getconf _NPROCESSORS_ONLN 2> /dev/null || :)
f8e459
export NUM_PROC=${NUM_PROC:-1}
f8e459
%if 0%{?_smp_ncpus_max}
f8e459
# Honor %%_smp_ncpus_max
f8e459
[ ${NUM_PROC} -gt %{?_smp_ncpus_max} ] && export NUM_PROC=%{?_smp_ncpus_max}
f8e459
%endif
f8e459
f8e459
%ifarch s390x sparc64 alpha %{power64} %{aarch64}
f8e459
export ARCH_DATA_MODEL=64
f8e459
%endif
f8e459
%ifarch alpha
f8e459
export CFLAGS="$CFLAGS -mieee"
f8e459
%endif
f8e459
f8e459
# We use ourcppflags because the OpenJDK build seems to
f8e459
# pass EXTRA_CFLAGS to the HotSpot C++ compiler...
f8e459
# Explicitly set the C++ standard as the default has changed on GCC >= 6
f8e459
EXTRA_CFLAGS="%ourcppflags"
f8e459
EXTRA_CPP_FLAGS="%ourcppflags"
f8e459
f8e459
%ifarch %{power64} ppc
f8e459
# fix rpmlint warnings
f8e459
EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
f8e459
%endif
f8e459
export EXTRA_CFLAGS
f8e459
f8e459
for suffix in %{build_loop} ; do
f8e459
if [ "x$suffix" = "x" ] ; then
f8e459
  debugbuild=release
f8e459
else
f8e459
  # change --something to something
f8e459
  debugbuild=`echo $suffix  | sed "s/-//g"`
f8e459
fi
f8e459
f8e459
for loop in %{main_suffix} %{staticlibs_loop} ; do
f8e459
f8e459
if test "x${loop}" = "x%{main_suffix}" ; then
f8e459
    # Copy the source tree so we can remove all in-tree libraries
f8e459
    cp -a %{top_level_dir_name} %{top_level_dir_name_backup}
f8e459
    # Remove all libraries that are linked
f8e459
    sh %{SOURCE12} %{top_level_dir_name} full
f8e459
    # Variable used by configure and hs_err hook on build failures
f8e459
    link_opt="system"
f8e459
    # Debug builds don't need same targets as release for
f8e459
    # build speed-up
f8e459
    maketargets="%{release_targets}"
f8e459
    if echo $debugbuild | grep -q "debug" ; then
f8e459
	maketargets="%{debug_targets}"
f8e459
    fi
f8e459
else
f8e459
    # Variable used by configure and hs_err hook on build failures
f8e459
    link_opt="bundled"
f8e459
    # Static library cycle only builds the static libraries
f8e459
    maketargets="%{static_libs_target}"
f8e459
fi
f8e459
f8e459
top_dir_abs_src_path=$(pwd)/%{top_level_dir_name}
f8e459
top_dir_abs_build_path=$(pwd)/%{buildoutputdir -- ${suffix}${loop}}
f8e459
# The OpenJDK version file includes the current
f8e459
# upstream version information. For some reason,
f8e459
# configure does not automatically use the
f8e459
# default pre-version supplied there (despite
f8e459
# what the file claims), so we pass it manually
f8e459
# to configure
f8e459
VERSION_FILE=${top_dir_abs_src_path}/make/conf/version-numbers.conf
f8e459
if [ -f ${VERSION_FILE} ] ; then
f8e459
    EA_DESIGNATOR=$(grep '^DEFAULT_PROMOTED_VERSION_PRE' ${VERSION_FILE} | cut -d '=' -f 2)
f8e459
else
f8e459
    echo "Could not find OpenJDK version file.";
f8e459
    exit 16
f8e459
fi
f8e459
if [ "x${EA_DESIGNATOR}" != "x%{expected_ea_designator}" ] ; then
f8e459
    echo "Spec file is configured for a %{build_type} build, but upstream version-pre setting is ${EA_DESIGNATOR}";
f8e459
    exit 17
f8e459
fi
f8e459
f8e459
mkdir -p ${top_dir_abs_build_path}
f8e459
pushd ${top_dir_abs_build_path}
f8e459
f8e459
bash ${top_dir_abs_src_path}/configure \
f8e459
%ifnarch %{jit_arches}
f8e459
    --with-jvm-variants=zero \
f8e459
%endif
f8e459
%ifarch %{ppc64le}
f8e459
    --with-jobs=1 \
f8e459
%endif
f8e459
    --with-version-build=%{buildver} \
f8e459
    --with-version-pre="${EA_DESIGNATOR}" \
f8e459
    --with-version-opt=%{lts_designator} \
f8e459
    --with-vendor-version-string="%{vendor_version_string}" \
f8e459
    --with-vendor-name="Red Hat, Inc." \
f8e459
    --with-vendor-url="https://www.redhat.com/" \
f8e459
    --with-vendor-bug-url="%{bugs}" \
f8e459
    --with-vendor-vm-bug-url="%{bugs}" \
f8e459
    --with-boot-jdk=/usr/lib/jvm/java-%{buildjdkver}-openjdk \
f8e459
    --with-debug-level=$debugbuild \
f8e459
    --with-native-debug-symbols=internal \
f8e459
    --enable-sysconf-nss \
f8e459
    --enable-unlimited-crypto \
f8e459
    --with-zlib=system \
f8e459
    --with-libjpeg=${link_opt} \
f8e459
    --with-giflib=${link_opt} \
f8e459
    --with-libpng=${link_opt} \
f8e459
    --with-lcms=${link_opt} \
f8e459
    --with-harfbuzz=${link_opt} \
f8e459
    --with-stdc++lib=dynamic \
f8e459
    --with-extra-cxxflags="$EXTRA_CPP_FLAGS" \
f8e459
    --with-extra-cflags="$EXTRA_CFLAGS" \
f8e459
    --with-extra-ldflags="%{ourldflags}" \
f8e459
    --with-num-cores="$NUM_PROC" \
f8e459
    --with-source-date="${SOURCE_DATE_EPOCH}" \
f8e459
    --disable-javac-server \
f8e459
%ifarch %{zgc_arches}
f8e459
    --with-jvm-features=zgc \
f8e459
%endif
f8e459
    --disable-warnings-as-errors
f8e459
f8e459
make \
f8e459
    LOG=trace \
f8e459
    WARNINGS_ARE_ERRORS="-Wno-error" \
f8e459
    CFLAGS_WARNINGS_ARE_ERRORS="-Wno-error" \
f8e459
    $maketargets || ( pwd; find ${top_dir_abs_src_path} ${top_dir_abs_build_path} -name "hs_err_pid*.log" | xargs cat && false )
f8e459
f8e459
popd >& /dev/null
f8e459
f8e459
# Restore original source tree if we modified it by removing full in-tree sources
f8e459
if [ -d %{top_level_dir_name_backup} ] ; then
f8e459
    rm -rf %{top_level_dir_name}
f8e459
    mv %{top_level_dir_name_backup} %{top_level_dir_name}
f8e459
fi
f8e459
f8e459
done # end of main / staticlibs loop
f8e459
f8e459
top_dir_abs_main_build_path=$(pwd)/%{buildoutputdir -- ${suffix}%{main_suffix}}
f8e459
f8e459
# the build (erroneously) removes read permissions from some jars
f8e459
# this is a regression in OpenJDK 7 (our compiler):
f8e459
# http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1437
f8e459
find ${top_dir_abs_main_build_path}/images/%{jdkimage} -iname '*.jar' -exec chmod ugo+r {} \;
f8e459
f8e459
# Build screws up permissions on binaries
f8e459
# https://bugs.openjdk.java.net/browse/JDK-8173610
f8e459
find ${top_dir_abs_main_build_path}/images/%{jdkimage} -iname '*.so' -exec chmod +x {} \;
f8e459
find ${top_dir_abs_main_build_path}/images/%{jdkimage}/bin/ -exec chmod +x {} \;
f8e459
f8e459
# Install nss.cfg right away as we will be using the JRE above
f8e459
export JAVA_HOME=${top_dir_abs_main_build_path}/images/%{jdkimage}
f8e459
f8e459
# Install nss.cfg right away as we will be using the JRE above
f8e459
install -m 644 nss.cfg $JAVA_HOME/conf/security/
f8e459
f8e459
# Install nss.fips.cfg: NSS configuration for global FIPS mode (crypto-policies)
f8e459
install -m 644 nss.fips.cfg $JAVA_HOME/conf/security/
f8e459
f8e459
# Use system-wide tzdata
f8e459
rm $JAVA_HOME/lib/tzdb.dat
f8e459
ln -s %{_datadir}/javazi-1.8/tzdb.dat $JAVA_HOME/lib/tzdb.dat
f8e459
f8e459
# Create fake alt-java as a placeholder for future alt-java
f8e459
pushd ${JAVA_HOME}
f8e459
# add alt-java man page
f8e459
echo "Hardened java binary recommended for launching untrusted code from the Web e.g. javaws" > man/man1/%{alt_java_name}.1
f8e459
cat man/man1/java.1 >> man/man1/%{alt_java_name}.1
f8e459
popd
f8e459
f8e459
# build cycles
f8e459
done # end of release / debug cycle loop
f8e459
f8e459
%check
f8e459
f8e459
# We test debug first as it will give better diagnostics on a crash
f8e459
for suffix in %{build_loop} ; do
f8e459
f8e459
top_dir_abs_main_build_path=$(pwd)/%{buildoutputdir -- ${suffix}%{main_suffix}}
f8e459
%if %{include_staticlibs}
f8e459
top_dir_abs_staticlibs_build_path=$(pwd)/%{buildoutputdir -- ${suffix}%{staticlibs_loop}}
f8e459
%endif
f8e459
f8e459
export JAVA_HOME=${top_dir_abs_main_build_path}/images/%{jdkimage}
f8e459
f8e459
#check Shenandoah is enabled
f8e459
%if %{use_shenandoah_hotspot}
f8e459
$JAVA_HOME//bin/java -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -version
f8e459
%endif
f8e459
f8e459
# Check unlimited policy has been used
f8e459
$JAVA_HOME/bin/javac -d . %{SOURCE13}
f8e459
$JAVA_HOME/bin/java --add-opens java.base/javax.crypto=ALL-UNNAMED TestCryptoLevel
f8e459
f8e459
# Check ECC is working
f8e459
$JAVA_HOME/bin/javac -d . %{SOURCE14}
f8e459
$JAVA_HOME/bin/java $(echo $(basename %{SOURCE14})|sed "s|\.java||")
f8e459
f8e459
# Check system crypto (policy) can be disabled
f8e459
$JAVA_HOME/bin/javac -d . %{SOURCE15}
f8e459
$JAVA_HOME/bin/java -Djava.security.disableSystemPropertiesFile=true $(echo $(basename %{SOURCE15})|sed "s|\.java||")
f8e459
f8e459
# Check java launcher has no SSB mitigation
f8e459
if ! nm $JAVA_HOME/bin/java | grep set_speculation ; then true ; else false; fi
f8e459
f8e459
# Check alt-java launcher has SSB mitigation on supported architectures
f8e459
%ifarch %{ssbd_arches}
f8e459
nm $JAVA_HOME/bin/%{alt_java_name} | grep set_speculation
f8e459
%else
f8e459
if ! nm $JAVA_HOME/bin/%{alt_java_name} | grep set_speculation ; then true ; else false; fi
f8e459
%endif
f8e459
f8e459
%if %{include_staticlibs}
f8e459
# Check debug symbols in static libraries (smoke test)
f8e459
export STATIC_LIBS_HOME=${top_dir_abs_staticlibs_build_path}/images/%{static_libs_image}
f8e459
readelf --debug-dump $STATIC_LIBS_HOME/lib/libfdlibm.a | grep w_remainder.c
f8e459
readelf --debug-dump $STATIC_LIBS_HOME/lib/libfdlibm.a | grep e_remainder.c
f8e459
%endif
f8e459
f8e459
# Check debug symbols are present and can identify code
f8e459
find "$JAVA_HOME" -iname '*.so' -print0 | while read -d $'\0' lib
f8e459
do
f8e459
  if [ -f "$lib" ] ; then
f8e459
    echo "Testing $lib for debug symbols"
f8e459
    # All these tests rely on RPM failing the build if the exit code of any set
f8e459
    # of piped commands is non-zero.
f8e459
f8e459
    # If this is the empty library, libsyslookup.so, of the foreign function and memory
f8e459
    # API incubation module (JEP 412), skip the debuginfo check as this seems unreliable
f8e459
    # on s390x. It's not very useful for other arches either, so skip unconditionally.
f8e459
    if [ "`basename $lib`" = "libsyslookup.so" ]; then
f8e459
       echo "Skipping debuginfo check for empty library 'libsyslookup.so'"
f8e459
       continue
f8e459
    fi
f8e459
f8e459
    # Test for .debug_* sections in the shared object. This is the main test
f8e459
    # Stripped objects will not contain these
f8e459
    eu-readelf -S "$lib" | grep "] .debug_"
f8e459
    test $(eu-readelf -S "$lib" | grep -E "\]\ .debug_(info|abbrev)" | wc --lines) == 2
f8e459
f8e459
    # Test FILE symbols. These will most likely be removed by anything that
f8e459
    # manipulates symbol tables because it's generally useless. So a nice test
f8e459
    # that nothing has messed with symbols
f8e459
    old_IFS="$IFS"
f8e459
    IFS=$'\n'
f8e459
    for line in $(eu-readelf -s "$lib" | grep "00000000      0 FILE    LOCAL  DEFAULT")
f8e459
    do
f8e459
     # We expect to see .cpp files, except for architectures like aarch64 and
f8e459
     # s390 where we expect .o and .oS files
f8e459
      echo "$line" | grep -E "ABS ((.*/)?[-_a-zA-Z0-9]+\.(c|cc|cpp|cxx|o|oS))?$"
f8e459
    done
f8e459
    IFS="$old_IFS"
f8e459
f8e459
    # If this is the JVM, look for javaCalls.(cpp|o) in FILEs, for extra sanity checking
f8e459
    if [ "`basename $lib`" = "libjvm.so" ]; then
f8e459
      eu-readelf -s "$lib" | \
f8e459
        grep -E "00000000      0 FILE    LOCAL  DEFAULT      ABS javaCalls.(cpp|o)$"
f8e459
    fi
f8e459
f8e459
    # Test that there are no .gnu_debuglink sections pointing to another
f8e459
    # debuginfo file. There shouldn't be any debuginfo files, so the link makes
f8e459
    # no sense either
f8e459
    eu-readelf -S "$lib" | grep 'gnu'
f8e459
    if eu-readelf -S "$lib" | grep '] .gnu_debuglink' | grep PROGBITS; then
f8e459
      echo "bad .gnu_debuglink section."
f8e459
      eu-readelf -x .gnu_debuglink "$lib"
f8e459
      false
f8e459
    fi
f8e459
  fi
f8e459
done
f8e459
f8e459
# Make sure gdb can do a backtrace based on line numbers on libjvm.so
f8e459
# javaCalls.cpp:58 should map to:
f8e459
# http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/file/ff3b27e6bcc2/src/share/vm/runtime/javaCalls.cpp#l58 
f8e459
# Using line number 1 might cause build problems. See:
f8e459
# https://bugzilla.redhat.com/show_bug.cgi?id=1539664
f8e459
# https://bugzilla.redhat.com/show_bug.cgi?id=1538767
f8e459
gdb -q "$JAVA_HOME/bin/java" <
f8e459
handle SIGSEGV pass nostop noprint
f8e459
handle SIGILL pass nostop noprint
f8e459
set breakpoint pending on
f8e459
break javaCalls.cpp:1
f8e459
commands 1
f8e459
backtrace
f8e459
quit
f8e459
end
f8e459
run -version
f8e459
EOF
f8e459
f8e459
# This fails on s390x for some reason. Disable for now. See:
f8e459
# https://koji.fedoraproject.org/koji/taskinfo?taskID=41499227
f8e459
%ifnarch s390x
f8e459
grep 'JavaCallWrapper::JavaCallWrapper' gdb.out
f8e459
%endif
f8e459
f8e459
# Check src.zip has all sources. See RHBZ#1130490
f8e459
unzip -l $JAVA_HOME/lib/src.zip | grep 'sun.misc.Unsafe'
f8e459
f8e459
# Check class files include useful debugging information
f8e459
$JAVA_HOME/bin/javap -l java.lang.Object | grep "Compiled from"
f8e459
$JAVA_HOME/bin/javap -l java.lang.Object | grep LineNumberTable
f8e459
$JAVA_HOME/bin/javap -l java.lang.Object | grep LocalVariableTable
f8e459
f8e459
# Check generated class files include useful debugging information
f8e459
$JAVA_HOME/bin/javap -l java.nio.ByteBuffer | grep "Compiled from"
f8e459
$JAVA_HOME/bin/javap -l java.nio.ByteBuffer | grep LineNumberTable
f8e459
$JAVA_HOME/bin/javap -l java.nio.ByteBuffer | grep LocalVariableTable
f8e459
f8e459
# build cycles check
f8e459
done
f8e459
f8e459
%install
f8e459
STRIP_KEEP_SYMTAB=libjvm*
f8e459
f8e459
for suffix in %{build_loop} ; do
f8e459
f8e459
top_dir_abs_main_build_path=$(pwd)/%{buildoutputdir -- ${suffix}%{main_suffix}}
f8e459
%if %{include_staticlibs}
f8e459
top_dir_abs_staticlibs_build_path=$(pwd)/%{buildoutputdir -- ${suffix}%{staticlibs_loop}}
f8e459
%endif
f8e459
jdk_image=${top_dir_abs_main_build_path}/images/%{jdkimage}
f8e459
f8e459
# Install the jdk
f8e459
mkdir -p $RPM_BUILD_ROOT%{_jvmdir}
f8e459
cp -a ${jdk_image} $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}
f8e459
f8e459
pushd ${jdk_image}
f8e459
f8e459
%if %{with_systemtap}
f8e459
  # Install systemtap support files
f8e459
  install -dm 755 $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/tapset
f8e459
  # note, that uniquesuffix  is in BUILD dir in this case
f8e459
  cp -a $RPM_BUILD_DIR/%{uniquesuffix ""}/tapset$suffix/*.stp $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/tapset/
f8e459
  pushd  $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/tapset/
f8e459
   tapsetFiles=`ls *.stp`
f8e459
  popd
f8e459
  install -d -m 755 $RPM_BUILD_ROOT%{tapsetdir}
f8e459
  for name in $tapsetFiles ; do
f8e459
    targetName=`echo $name | sed "s/.stp/$suffix.stp/"`
f8e459
    ln -sf %{_jvmdir}/%{sdkdir -- $suffix}/tapset/$name $RPM_BUILD_ROOT%{tapsetdir}/$targetName
f8e459
  done
f8e459
%endif
f8e459
f8e459
  # Remove empty cacerts database
f8e459
  rm -f $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/lib/security/cacerts
f8e459
  # Install cacerts symlink needed by some apps which hard-code the path
f8e459
  pushd $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/lib/security
f8e459
      ln -sf /etc/pki/java/cacerts .
f8e459
  popd
f8e459
f8e459
  # Install version-ed symlinks
f8e459
  pushd $RPM_BUILD_ROOT%{_jvmdir}
f8e459
    ln -sf %{sdkdir -- $suffix} %{jrelnk -- $suffix}
f8e459
  popd
f8e459
f8e459
  # Install man pages
f8e459
  install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man1
f8e459
  for manpage in man/man1/*
f8e459
  do
f8e459
    # Convert man pages to UTF8 encoding
f8e459
    iconv -f ISO_8859-1 -t UTF8 $manpage -o $manpage.tmp
f8e459
    mv -f $manpage.tmp $manpage
f8e459
    install -m 644 -p $manpage $RPM_BUILD_ROOT%{_mandir}/man1/$(basename \
f8e459
      $manpage .1)-%{uniquesuffix -- $suffix}.1
f8e459
  done
f8e459
  # Remove man pages from jdk image
f8e459
  rm -rf $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/man
f8e459
f8e459
popd
f8e459
# Install static libs artefacts
f8e459
%if %{include_staticlibs}
f8e459
mkdir -p $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/lib/static/linux-%{archinstall}/glibc
f8e459
cp -a ${top_dir_abs_staticlibs_build_path}/images/%{static_libs_image}/lib/*.a \
f8e459
  $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/lib/static/linux-%{archinstall}/glibc
f8e459
%endif
f8e459
f8e459
if ! echo $suffix | grep -q "debug" ; then
f8e459
  # Install Javadoc documentation
f8e459
  install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}
f8e459
  cp -a ${top_dir_abs_main_build_path}/images/docs $RPM_BUILD_ROOT%{_javadocdir}/%{uniquejavadocdir -- $suffix}
f8e459
  built_doc_archive=jdk-%{filever}%{ea_designator_zip}+%{buildver}%{lts_designator_zip}-docs.zip
f8e459
  cp -a ${top_dir_abs_main_build_path}/bundles/${built_doc_archive} \
f8e459
     $RPM_BUILD_ROOT%{_javadocdir}/%{uniquejavadocdir -- $suffix}.zip || ls -l ${top_dir_abs_main_build_path}/bundles/
f8e459
fi
f8e459
f8e459
# Install release notes
f8e459
commondocdir=${RPM_BUILD_ROOT}%{_defaultdocdir}/%{uniquejavadocdir -- $suffix}
f8e459
install -d -m 755 ${commondocdir}
f8e459
cp -a %{SOURCE10} ${commondocdir}
f8e459
f8e459
# Install icons and menu entries
f8e459
for s in 16 24 32 48 ; do
f8e459
  install -D -p -m 644 \
f8e459
    %{top_level_dir_name}/src/java.desktop/unix/classes/sun/awt/X11/java-icon${s}.png \
f8e459
    $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${s}x${s}/apps/java-%{javaver}-%{origin}.png
f8e459
done
f8e459
f8e459
# Install desktop files
f8e459
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/{applications,pixmaps}
f8e459
for e in jconsole$suffix ; do
f8e459
    desktop-file-install --vendor=%{uniquesuffix -- $suffix} --mode=644 \
f8e459
        --dir=$RPM_BUILD_ROOT%{_datadir}/applications $e.desktop
f8e459
done
f8e459
f8e459
# Install /etc/.java/.systemPrefs/ directory
f8e459
# See https://bugzilla.redhat.com/show_bug.cgi?id=741821
f8e459
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/.java/.systemPrefs
f8e459
f8e459
# copy samples next to demos; samples are mostly js files
f8e459
cp -r %{top_level_dir_name}/src/sample  $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir -- $suffix}/
f8e459
f8e459
f8e459
# moving config files to /etc
f8e459
mkdir -p $RPM_BUILD_ROOT/%{etcjavadir -- $suffix}
f8e459
mkdir -p $RPM_BUILD_ROOT/%{etcjavadir -- $suffix}/lib
f8e459
mv $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir -- $suffix}/conf/  $RPM_BUILD_ROOT/%{etcjavadir -- $suffix}
f8e459
mv $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir -- $suffix}/lib/security  $RPM_BUILD_ROOT/%{etcjavadir -- $suffix}/lib
f8e459
pushd $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir -- $suffix}
f8e459
  ln -s %{etcjavadir -- $suffix}/conf  ./conf
f8e459
popd
f8e459
pushd $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir -- $suffix}/lib
f8e459
  ln -s %{etcjavadir -- $suffix}/lib/security  ./security
f8e459
popd
f8e459
# end moving files to /etc
f8e459
f8e459
# stabilize permissions
f8e459
find $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir -- $suffix}/ -name "*.so" -exec chmod 755 {} \; ; 
f8e459
find $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir -- $suffix}/ -type d -exec chmod 755 {} \; ; 
f8e459
find $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir -- $suffix}/legal -type f -exec chmod 644 {} \; ; 
f8e459
f8e459
# end, dual install
f8e459
done
f8e459
f8e459
%if %{include_normal_build}
f8e459
# intentionally only for non-debug
f8e459
%pretrans headless -p <lua>
f8e459
-- see https://bugzilla.redhat.com/show_bug.cgi?id=1038092 for whole issue
f8e459
-- see https://bugzilla.redhat.com/show_bug.cgi?id=1290388 for pretrans over pre
f8e459
-- if copy-jdk-configs is in transaction, it installs in pretrans to temp
f8e459
-- if copy_jdk_configs is in temp, then it means that copy-jdk-configs is in transaction  and so is
f8e459
-- preferred over one in %%{_libexecdir}. If it is not in transaction, then depends
f8e459
-- whether copy-jdk-configs is installed or not. If so, then configs are copied
f8e459
-- (copy_jdk_configs from %%{_libexecdir} used) or not copied at all
f8e459
local posix = require "posix"
f8e459
f8e459
if (os.getenv("debug") == "true") then
f8e459
  debug = true;
f8e459
  print("cjc: in spec debug is on")
f8e459
else 
f8e459
  debug = false;
f8e459
end
f8e459
f8e459
SOURCE1 = "%{rpm_state_dir}/copy_jdk_configs.lua"
f8e459
SOURCE2 = "%{_libexecdir}/copy_jdk_configs.lua"
f8e459
f8e459
local stat1 = posix.stat(SOURCE1, "type");
f8e459
local stat2 = posix.stat(SOURCE2, "type");
f8e459
f8e459
  if (stat1 ~= nil) then
f8e459
  if (debug) then
f8e459
    print(SOURCE1 .." exists - copy-jdk-configs in transaction, using this one.")
f8e459
  end;
f8e459
  package.path = package.path .. ";" .. SOURCE1
f8e459
else
f8e459
  if (stat2 ~= nil) then
f8e459
  if (debug) then
f8e459
    print(SOURCE2 .." exists - copy-jdk-configs already installed and NOT in transaction. Using.")
f8e459
  end;
f8e459
  package.path = package.path .. ";" .. SOURCE2
f8e459
  else
f8e459
    if (debug) then
f8e459
      print(SOURCE1 .." does NOT exists")
f8e459
      print(SOURCE2 .." does NOT exists")
f8e459
      print("No config files will be copied")
f8e459
    end
f8e459
  return
f8e459
  end
f8e459
end
f8e459
-- run content of included file with fake args
f8e459
arg = {"--currentjvm", "%{uniquesuffix %{nil}}", "--jvmdir", "%{_jvmdir %{nil}}", "--origname", "%{name}", "--origjavaver", "%{javaver}", "--arch", "%{_arch}", "--temp", "%{rpm_state_dir}/%{name}.%{_arch}"}
f8e459
require "copy_jdk_configs.lua"
f8e459
f8e459
%post
f8e459
%{post_script %{nil}}
f8e459
f8e459
%post headless
f8e459
%{post_headless %{nil}}
f8e459
f8e459
%postun
f8e459
%{postun_script %{nil}}
f8e459
f8e459
%postun headless
f8e459
%{postun_headless %{nil}}
f8e459
f8e459
%posttrans
f8e459
%{posttrans_script %{nil}}
f8e459
f8e459
%post devel
f8e459
%{post_devel %{nil}}
f8e459
f8e459
%postun devel
f8e459
%{postun_devel %{nil}}
f8e459
f8e459
%posttrans  devel
f8e459
%{posttrans_devel %{nil}}
f8e459
f8e459
%post javadoc
f8e459
%{post_javadoc %{nil}}
f8e459
f8e459
%postun javadoc
f8e459
%{postun_javadoc %{nil}}
f8e459
f8e459
%post javadoc-zip
f8e459
%{post_javadoc_zip %{nil}}
f8e459
f8e459
%postun javadoc-zip
f8e459
%{postun_javadoc_zip %{nil}}
f8e459
%endif
f8e459
f8e459
%if %{include_debug_build}
f8e459
%post slowdebug
f8e459
%{post_script -- %{debug_suffix_unquoted}}
f8e459
f8e459
%post headless-slowdebug
f8e459
%{post_headless -- %{debug_suffix_unquoted}}
f8e459
f8e459
%postun slowdebug
f8e459
%{postun_script -- %{debug_suffix_unquoted}}
f8e459
f8e459
%postun headless-slowdebug
f8e459
%{postun_headless -- %{debug_suffix_unquoted}}
f8e459
f8e459
%posttrans slowdebug
f8e459
%{posttrans_script -- %{debug_suffix_unquoted}}
f8e459
f8e459
%post devel-slowdebug
f8e459
%{post_devel -- %{debug_suffix_unquoted}}
f8e459
f8e459
%postun devel-slowdebug
f8e459
%{postun_devel -- %{debug_suffix_unquoted}}
f8e459
f8e459
%posttrans  devel-slowdebug
f8e459
%{posttrans_devel -- %{debug_suffix_unquoted}}
f8e459
%endif
f8e459
f8e459
%if %{include_fastdebug_build}
f8e459
%post fastdebug
f8e459
%{post_script -- %{fastdebug_suffix_unquoted}}
f8e459
f8e459
%post headless-fastdebug
f8e459
%{post_headless -- %{fastdebug_suffix_unquoted}}
f8e459
f8e459
%postun fastdebug
f8e459
%{postun_script -- %{fastdebug_suffix_unquoted}}
f8e459
f8e459
%postun headless-fastdebug
f8e459
%{postun_headless -- %{fastdebug_suffix_unquoted}}
f8e459
f8e459
%posttrans fastdebug
f8e459
%{posttrans_script -- %{fastdebug_suffix_unquoted}}
f8e459
f8e459
%post devel-fastdebug
f8e459
%{post_devel -- %{fastdebug_suffix_unquoted}}
f8e459
f8e459
%postun devel-fastdebug
f8e459
%{postun_devel -- %{fastdebug_suffix_unquoted}}
f8e459
f8e459
%posttrans  devel-fastdebug
f8e459
%{posttrans_devel -- %{fastdebug_suffix_unquoted}}
f8e459
f8e459
%endif
f8e459
f8e459
%if %{include_normal_build}
f8e459
%files
f8e459
# main package builds always
f8e459
%{files_jre %{nil}}
f8e459
%else
f8e459
%files
f8e459
# placeholder
f8e459
%endif
f8e459
f8e459
f8e459
%if %{include_normal_build}
f8e459
%files headless
f8e459
# important note, see https://bugzilla.redhat.com/show_bug.cgi?id=1038092 for whole issue
f8e459
# all config/noreplace files (and more) have to be declared in pretrans. See pretrans
f8e459
%{files_jre_headless %{nil}}
f8e459
f8e459
%files devel
f8e459
%{files_devel %{nil}}
f8e459
f8e459
%if %{include_staticlibs}
f8e459
%files static-libs
f8e459
%{files_static_libs %{nil}}
f8e459
%endif
f8e459
f8e459
%files jmods
f8e459
%{files_jmods %{nil}}
f8e459
f8e459
%files demo
f8e459
%{files_demo %{nil}}
f8e459
f8e459
%files src
f8e459
%{files_src %{nil}}
f8e459
f8e459
%files javadoc
f8e459
%{files_javadoc %{nil}}
f8e459
f8e459
# This puts a huge documentation file in /usr/share
f8e459
# It is now architecture-dependent, as eg. AOT and Graal are now x86_64 only
f8e459
# same for debug variant
f8e459
%files javadoc-zip
f8e459
%{files_javadoc_zip %{nil}}
f8e459
%endif
f8e459
f8e459
%if %{include_debug_build}
f8e459
%files slowdebug
f8e459
%{files_jre -- %{debug_suffix_unquoted}}
f8e459
f8e459
%files headless-slowdebug
f8e459
%{files_jre_headless -- %{debug_suffix_unquoted}}
f8e459
f8e459
%files devel-slowdebug
f8e459
%{files_devel -- %{debug_suffix_unquoted}}
f8e459
f8e459
%if %{include_staticlibs}
f8e459
%files static-libs-slowdebug
f8e459
%{files_static_libs -- %{debug_suffix_unquoted}}
f8e459
%endif
f8e459
f8e459
%files jmods-slowdebug
f8e459
%{files_jmods -- %{debug_suffix_unquoted}}
f8e459
f8e459
%files demo-slowdebug
f8e459
%{files_demo -- %{debug_suffix_unquoted}}
f8e459
f8e459
%files src-slowdebug
f8e459
%{files_src -- %{debug_suffix_unquoted}}
f8e459
%endif
f8e459
f8e459
%if %{include_fastdebug_build}
f8e459
%files fastdebug
f8e459
%{files_jre -- %{fastdebug_suffix_unquoted}}
f8e459
f8e459
%files headless-fastdebug
f8e459
%{files_jre_headless -- %{fastdebug_suffix_unquoted}}
f8e459
f8e459
%files devel-fastdebug
f8e459
%{files_devel -- %{fastdebug_suffix_unquoted}}
f8e459
f8e459
%if %{include_staticlibs}
f8e459
%files static-libs-fastdebug
f8e459
%{files_static_libs -- %{fastdebug_suffix_unquoted}}
f8e459
%endif
f8e459
f8e459
%files jmods-fastdebug
f8e459
%{files_jmods -- %{fastdebug_suffix_unquoted}}
f8e459
f8e459
%files demo-fastdebug
f8e459
%{files_demo -- %{fastdebug_suffix_unquoted}}
f8e459
f8e459
%files src-fastdebug
f8e459
%{files_src -- %{fastdebug_suffix_unquoted}}
f8e459
f8e459
%endif
f8e459
f8e459
%changelog
f8e459
* Mon Aug 30 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:17.0.0.0.33-0.5.ea
f8e459
- Extend the default security policy to accomodate PKCS11 accessing jdk.internal.access.
f8e459
- Resolves: rhbz#1996182
f8e459
f8e459
* Sat Aug 28 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:17.0.0.0.33-0.4.ea
f8e459
- Fix unused function compiler warning found in systemconf.c
f8e459
- Related: rhbz#1995150
f8e459
f8e459
* Sat Aug 28 2021 Martin Balao <mbalao@redhat.com> - 1:17.0.0.0.33-0.4.ea
f8e459
- Add patch to login to the NSS software token when in FIPS mode.
f8e459
- Resolves: rhbz#1996182
f8e459
f8e459
* Fri Aug 27 2021 Martin Balao <mbalao@redhat.com> - 1:17.0.0.0.33-0.3.ea
f8e459
- Add patch to disable non-FIPS crypto in the SUN and SunEC security providers.
f8e459
- Resolves: rhbz#1995150
f8e459
f8e459
* Fri Aug 27 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:17.0.0.0.33-0.2.ea
f8e459
- Minor code cleanups on FIPS detection patch and check for SECMOD_GetSystemFIPSEnabled in configure.
f8e459
- Remove unneeded Requires on NSS as it will now be dynamically linked and detected by RPM.
f8e459
- Related: rhbz#1995150
f8e459
f8e459
* Fri Aug 27 2021 Martin Balao <mbalao@redhat.com> - 1:17.0.0.0.33-0.2.ea
f8e459
- Detect FIPS using SECMOD_GetSystemFIPSEnabled in the new libsystemconf JDK library.
f8e459
- Related: rhbz#1995150
f8e459
f8e459
* Thu Aug 26 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:17.0.0.0.33-0.1.ea
f8e459
- Update RH1655466 FIPS patch with changes in OpenJDK 8 version.
f8e459
- SunPKCS11 runtime provider name is a concatenation of "SunPKCS11-" and the name in the config file.
f8e459
- Change nss.fips.cfg config name to "NSS-FIPS" to avoid confusion with nss.cfg.
f8e459
- No need to substitute path to nss.fips.cfg as java.security file supports a java.home variable.
f8e459
- Disable FIPS mode support unless com.redhat.fips is set to "true".
f8e459
- Enable alignment with FIPS crypto policy by default (-Dcom.redhat.fips=false to disable).
f8e459
- Add explicit runtime dependency on NSS for the PKCS11 provider in FIPS mode
f8e459
- Move setup of JavaSecuritySystemConfiguratorAccess to Security class so it always occurs (RH1915071)
f8e459
- Related: rhbz#1995150
f8e459
f8e459
* Thu Aug 26 2021 Martin Balao <mbalao@redhat.com> - 1:17.0.0.0.33-0.1.ea
f8e459
- Support the FIPS mode crypto policy (RH1655466)
f8e459
- Use appropriate keystore types when in FIPS mode (RH1818909)
f8e459
- Disable TLSv1.3 when the FIPS crypto policy and the NSS-FIPS provider are in use (RH1860986)
f8e459
- Related: rhbz#1995150
f8e459
f8e459
* Thu Aug 26 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:17.0.0.0.33-0.0.ea
f8e459
- Update to jdk-17+33, including JDWP fix and July 2021 CPU
f8e459
- Resolves: rhbz#1959487
f8e459
f8e459
* Thu Aug 26 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:17.0.0.0.26-0.5.ea
f8e459
- Use the "reverse" build loop (debug first) as the main and only build loop to get more diagnostics.
f8e459
- Remove restriction on disabling product build, as debug packages no longer have javadoc packages.
f8e459
- Resolves: rhbz#1959487
f8e459
f8e459
* Wed Aug 25 2021 Petra Alice Mikova <pmikova@redhat.com> - 1:17.0.0.0.26-0.4.ea
f8e459
- Fix patch rh1648249-add_commented_out_nss_cfg_provider_to_java_security.patch which made the SunPKCS provider show up again
f8e459
- Resolves: rhbz#1959487
f8e459
f8e459
* Wed Aug 25 2021 Severin Gehwolf <sgehwolf@redhat.com> - 1:17.0.0.0.26-0.3.ea
f8e459
- Re-enable TestSecurityProperties after inclusion of PR3695
f8e459
- Resolves: rhbz#1959487
f8e459
f8e459
* Wed Aug 25 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:17.0.0.0.26-0.3.ea
f8e459
- Add PR3695 to allow the system crypto policy to be turned off
f8e459
- Resolves: rhbz#1959487
f8e459
f8e459
* Wed Jul 14 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:17.0.0.0.26-0.2.ea
f8e459
- Remove boot JDKs in favour of OpenJDK 17 build now in the buildroot.
f8e459
- Resolves: rhbz#1959487
f8e459
f8e459
* Wed Jul 14 2021 Severin Gehwolf <sgehwolf@redhat.com> - 1:17.0.0.0.26-0.2.ea
f8e459
- Update buildjdkver to 17 so as to build with itself
f8e459
- Resolves: rhbz#1959487
f8e459
f8e459
* Tue Jul 13 2021 Jiri Vanek <jvanek@redhat.com> - 1:17.0.0.0.26-0.1.ea
f8e459
- Add gating support
f8e459
- Resolves: rhbz#1959487
f8e459
f8e459
* Mon Jun 21 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:17.0.0.0.26-0.0.ea
f8e459
- Rename as java-17-openjdk and bootstrap using boot JDK in local sources
f8e459
- Exclude x86 as this is not supported by OpenJDK 17
f8e459
- Resolves: rhbz#1959487
f8e459
f8e459
* Fri Jun 11 2021 Petra Alice Mikova <pmikova@redhat.com> - 1:17.0.0.0.26-0.0.ea.rolling
f8e459
- update sources to jdk 17.0.0+26
f8e459
- set is_ga to 0, as this is early access build
f8e459
- change vendor_version_string
f8e459
- change path to the version-numbers.conf
f8e459
- removed rmid binary from files and from slaves
f8e459
- removed JAVAC_FLAGS=-g from make command, as it breaks the build since JDK-8258407
f8e459
- add lib/libsyslookup.so to files
f8e459
- renamed lib/security/blacklisted.certs to lib/security/blocked.certs
f8e459
- add lib/libsvml.so for intel
f8e459
- skip debuginfo check for libsyslookup.so on s390x
f8e459
f8e459
* Thu Apr 29 2021 Jiri Vanek <jvanek@redhat.com> -  1:16.0.1.0.9-2.rolling
f8e459
- adapted to debug handling  in newer cjc
f8e459
- The rest of the "rpm 4.17" patch must NOT be backported, as on rpm 4.16 and down, it would casue double execution
f8e459
- Disable copy-jdk-configs for Flatpak builds
f8e459
f8e459
* Sun Apr 25 2021 Petra Alice Mikova <pmikova@redhat.com> - 1:16.0.1.0.9-1.rolling
f8e459
- update to 16.0.1+9 april cpu tag
f8e459
- dropped jdk8259949-allow_cf-protection_on_x86.patch 
f8e459
f8e459
* Thu Mar 11 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:16.0.0.0.36-2.rolling
f8e459
- Perform static library build on a separate source tree with bundled image libraries
f8e459
- Make static library build optional
f8e459
- Based on initial work by Severin Gehwolf
f8e459
f8e459
* Tue Mar 09 2021 Jiri Vanek <jvanek@redhat.com> - 1:16.0.0.0.36-1.rolling
f8e459
- fixed suggests of wrong pcsc-lite-devel%{?_isa} to correct pcsc-lite-libs%{?_isa}
f8e459
- bumped buildjdkver to build by itself - 16
f8e459
f8e459
* Fri Feb 19 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:16.0.0.0.36-0.rolling
f8e459
- Update to jdk-16.0.0.0+36
f8e459
- Update tarball generation script to use git following OpenJDK's move to github
f8e459
- Update tarball generation script to use PR3823 which handles JDK-8235710 changes
f8e459
- Use upstream default for version-pre rather than setting it to "ea" or ""
f8e459
- Drop libsunec.so which is no longer generated, thanks to JDK-8235710
f8e459
- Drop unnecessary compiler flags, dating back to work on GCC 6 & 10
f8e459
- Adapt RH1750419 alt-java patch to still apply after some variable re-naming in the makefiles
f8e459
- Update filever to remove any trailing zeros, as in the OpenJDK build, and use for source filename
f8e459
- Use system harfbuzz now this is supported.
f8e459
- Pass SOURCE_DATE_EPOCH to build for reproducible builds
f8e459
f8e459
* Fri Feb 19 2021 Stephan Bergmann <sbergman@redhat.com> - 1:15.0.2.0.7-1.rolling
f8e459
- Hardcode /usr/sbin/alternatives for Flatpak builds
f8e459
f8e459
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:15.0.2.0.7-0.rolling.1
f8e459
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
f8e459
f8e459
* Fri Jan 22 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:15.0.2.0.7-0.rolling
f8e459
- Update to jdk-15.0.2.0+7
f8e459
- Add release notes for 15.0.1.0 & 15.0.2.0
f8e459
- Use JEP-322 Time-Based Versioning so we can handle a future 11.0.9.1-like release correctly.
f8e459
- Still use 15.0.x rather than 15.0.x.0 for file naming, as the trailing zero is omitted from tags.
f8e459
- Cleanup debug package descriptions and version number placement.
f8e459
- Remove unused patch files.
f8e459
f8e459
* Tue Jan 19 2021 Andrew Hughes <gnu.andrew@redhat.com> - 1:15.0.1.9-10.rolling
f8e459
- Use -march=i686 for x86 builds if -fcf-protection is detected (needs CMOV)
f8e459
f8e459
* Tue Dec 22 2020 Jiri Vanek <jvanek@redhat.com> - 1:15.0.1.9-9.rolling
f8e459
- fixed missing condition for fastdebug packages being counted as debug ones
f8e459
f8e459
* Sat Dec 19 2020 Jiri Vanek <jvanek@redhat.com> - 1:15.0.1.9-8.rolling
f8e459
- removed lib-style provides for fastdebug_suffix_unquoted
f8e459
f8e459
* Sat Dec 19 2020 Jiri Vanek <jvanek@redhat.com> - 1:15.0.1.9-6.rolling
f8e459
- many cosmetic changes taken from more maintained jdk11
f8e459
- introduced debug_arches, bootstrap_arches, systemtap_arches, fastdebug_arches, sa_arches, share_arches, shenandoah_arches, zgc_arches 
f8e459
  instead of various hardcoded ifarches
f8e459
- updated systemtap
f8e459
- added requires excludes for debug pkgs
f8e459
- removed redundant logic around jsa files
f8e459
- added runtime requires of lksctp-tools and libXcomposite%
f8e459
- added and used Source15 TestSecurityProperties.java, but is made always positive as jdk15 now does not honor system policies
f8e459
- s390x excluded form fastdebug build
f8e459
f8e459
* Thu Dec 17 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:15.0.1.9-5.rolling
f8e459
- introduced nm based check to verify alt-java on x86_64 is patched, and no other alt-java or java is patched
f8e459
- patch600 rh1750419-redhat_alt_java.patch amended to die, if it is used wrongly
f8e459
- introduced ssbd_arches with currently only valid arch of x86_64 to separate real alt-java architectures
f8e459
f8e459
* Wed Dec 9 2020 Jiri Vanek <jvanek@redhat.com> - 1:15.0.1.9-4.rolling
f8e459
- moved wrongly placed licenses to accompany other ones
f8e459
- this bad placement was killng parallel-installability and thus having bad impact to leapp if used
f8e459
f8e459
* Tue Dec 01 2020 Jiri Vanek <jvanek@redhat.com> - 1:15.0.1.9-3.rolling
f8e459
- added patch600, rh1750419-redhat_alt_java.patch, suprassing removed patch
f8e459
- no longer copying of java->alt-java as it is created by  patch600
f8e459
f8e459
* Mon Nov 23 2020 Jiri Vanek <jvanek@redhat.com> - 1:15.0.1.9-2.rolling
f8e459
- Create a copy of java as alt-java with alternatives and man pages
f8e459
- java-11-openjdk doesn't have a JRE tree, so don't try and copy alt-java there...
f8e459
f8e459
* Sun Oct 25 2020 Petra Alice Mikova <pmikova@redhat.com> - 1:15.0.1.9-1.rolling
f8e459
- updated to October CPU 2020 sources
f8e459
f8e459
* Thu Oct 22 2020 Severin Gehwolf <sgehwolf@redhat.com> - 1:15.0.0.36-4.rolling
f8e459
- Fix directory ownership of -static-libs sub-package.
f8e459
f8e459
* Fri Oct 09 2020 Jiri Vanek <jvanek@redhat.com> - 1:15.0.0.36-3.rolling
f8e459
- Build static-libs-image and add resulting files via -static-libs sub-package.
f8e459
- Disable stripping of debug symbols for static libraries part of the -static-libs sub-package.
f8e459
- JDK-8245832 increases the set of static libraries, so try and include them all with a wildcard.
f8e459
- Update static-libs packaging to new layout
f8e459
f8e459
* Mon Sep 21 2020 Petra Alice Mikova <pmikova@redhat.com> - 1:15.0.0.36-2.rolling
f8e459
- Add support for fastdebug builds on 64 bit architectures
f8e459
f8e459
* Tue Sep 15 2020 Severin Gehwolf <sgehwolf@redhat.com> - 1:15.0.0.36-1.rolling
f8e459
- Remove EA designation
f8e459
- Re-generate sources with PR3803 patch
f8e459
f8e459
* Mon Aug 31 2020 Petra Alice Mikova <pmikova@redhat.com> - 1:15.0.0.36-0.1.ea.rolling
f8e459
- Update to jdk 15.0.0.36 tag
f8e459
- Modify rh1648249-add_commented_out_nss_cfg_provider_to_java_security.patch
f8e459
- Update vendor version string to 20.9
f8e459
- jjs removed from packaging after JEP 372: Nashorn removal
f8e459
- rmic removed from packaging after JDK-8225319
f8e459
f8e459
* Mon Jul 27 2020 Severin Gehwolf <sgehwolf@redhat.com> - 1:14.0.2.12-2.rolling
f8e459
- Disable LTO so as to pass debuginfo check
f8e459
f8e459
* Wed Jul 22 2020 Petra Alice Mikova <pmikova@redhat.com> - 1:14.0.2.12-1.rolling
f8e459
- update to jdk 14.0.2.12 CPU version
f8e459
- remove upstreamed patch jdk8237879-make_4_3_build_fixes.patch
f8e459
- remove upstreamed patch jdk8235833-posixplatform_cpp_should_not_include_sysctl_h.patch
f8e459
- remove upstreamed patch jdk8243059-build_fails_when_with_vendor_contains_comma.patch
f8e459
f8e459
* Thu Jul 09 2020 Andrew Hughes <gnu.andrew@redhat.com> - 1:14.0.1.7-4.rolling
f8e459
- Re-introduce java-openjdk-src & java-openjdk-demo for system_jdk builds.
f8e459
- Fix accidental renaming of java-openjdk-devel to java-devel-openjdk.
f8e459
f8e459
* Thu May 14 2020 Petra Alice Mikova <pmikova@redhat.com> -  1:14.0.1.7-3.rolling
f8e459
- introduce patch jdk8235833-posixplatform_cpp_should_not_include_sysctl_h to fix build issues in rawhide
f8e459
- rename and reorganize patch sections
f8e459
f8e459
* Thu Apr 23 2020 Severin Gehwolf <sgehwolf@redhat.com> - 1:14.0.1.7-2.rolling
f8e459
- Fix vendor version to 20.3 (from 19.9)
f8e459
f8e459
* Fri Apr 17 2020 Petra Alice Mikova <pmikova@redhat.com> - 1:14.0.1.7-1.rolling
f8e459
- April security update
f8e459
- uploaded new src tarball
f8e459
f8e459
* Wed Apr 08 2020 Jiri Vanek <jvanek@redhat.com> - 1:14.0.0.36-4.rolling
f8e459
- set vendor property and vendor urls
f8e459
- made urls to be preconfigured by os
f8e459
f8e459
* Tue Mar 24 2020 Petra Alice Mikova <pmikova@redhat.com> - 1:14.0.0.36-3.rolling
f8e459
- Remove s390x workaround flags for GCC 10
f8e459
- bump buildjdkver to 14
f8e459
- uploaded new src tarball 
f8e459
f8e459
* Mon Mar 23 2020 Petra Alice Mikova <pmikova@redhat.com> - 1:14.0.0.36-2.rolling
f8e459
- removed a whitespace causing fail of postinstall script
f8e459
- removed backslashes at the end of alternatives command
f8e459
f8e459
* Fri Mar 13 2020 Petra Alice Mikova <pmikova@redhat.com> - 1:14.0.0.36-1.rolling
f8e459
- update to jdk 14+36 ga build
f8e459
- remove JDK-8224851 patch, as OpenJDK 14 already contains it
f8e459
- removed pack200 and unpack200 binaries, slaves, manpages and libunpack.so library
f8e459
- added listings for jpackage binary, manpages and added slave records to alternatives
f8e459
f8e459
* Thu Mar 12 2020 Petra Alice Mikova <pmikova@redhat.com> - 1:13.0.2.8-4.rolling
f8e459
- add patch for build issues with make 4.3
f8e459
f8e459
* Thu Feb 27 2020 Severin Gehwolf <sgehwolf@redhat.com> - 1:13.0.2.8-3.rolling
f8e459
- add workaround for issues with build with GCC10 on s390x (see RHBZ#1799531)
f8e459
- fix issues with build with GCC10: JDK-8224851, -fcommon switch
f8e459
f8e459
* Thu Feb 27 2020 Petra Alice Mikova pmikova@redhat.com> - 1:13.0.2.8-3.rolling
f8e459
- Add JDK-8224851 patch to resolve aarch64 issues 
f8e459
f8e459
* Tue Feb 04 2020 Petra Alice Mikova <pmikova@redhat.com> - 1:13.0.2.8-2.rolling
f8e459
- fix Release, as it was broken by last rpmdev-bumpspec
f8e459
f8e459
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:13.0.2.8-1.rolling.1
f8e459
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
f8e459
f8e459
* Fri Jan 17 2020 Petra Alice Mikova <pmikova@redhat.com> - 1:13.0.2.8-1.rolling
f8e459
- removed patch jdk8231405_guarantee_d_nonequals_null_failed_null_dominator_info.patch
f8e459
- removed patch jdk8231583_fix_register_clash_in_sbsa_resolve_forwarding_pointer_borrowing.patch
f8e459
- updated sources to the 13.0.2+8 tag
f8e459
f8e459
* Fri Oct 25 2019 Petra Alice Mikova <pmikova@redhat.com> - 1:13.0.1.9-2.rolling
f8e459
- Fixed hardcoded major version in jdk13u to macro
f8e459
- added jdk8231405_guarantee_d_nonequals_null_failed_null_dominator_info.patch
f8e459
- added jdk8231583_fix_register_clash_in_sbsa_resolve_forwarding_pointer_borrowing.patch
f8e459
f8e459
* Mon Oct 21 2019 Petra Alice Mikova <pmikova@redhat.com> - 1:13.0.1.9-1.rolling
f8e459
- Updated to October 2019 CPU sources
f8e459
f8e459
* Wed Oct 16 2019 Petra Alice Mikova <pmikova@redhat.com> - 1:13.0.0.33-3.rolling
f8e459
- synced up generate tarball script with other OpenJDK packages
f8e459
- dropped pr2126-synchronise_elliptic_curves_in_sun_security_ec_namedcurve_with_those_listed_by_nss.patch from the sources
f8e459
- regenerated sources with the updated script
f8e459
f8e459
* Wed Oct 02 2019 Andrew Hughes <gnu.andrew@redhat.com> - 1:13.0.0.33-3.rolling
f8e459
- Switch to in-tree SunEC code, dropping NSS runtime dependencies and patches to link against it.
f8e459
f8e459
* Wed Oct 02 2019 Andrew John Hughes <gnu.andrew@redhat.com> -  1:13.0.0.33-3.rolling
f8e459
- Drop unnecessary build requirement on gtk3-devel, as OpenJDK searches for Gtk+ at runtime.
f8e459
- Add missing build requirement for libXrender-devel, previously masked by Gtk3+ dependency
f8e459
- Add missing build requirement for libXrandr-devel, previously masked by Gtk3+ dependency
f8e459
- fontconfig build requirement should be fontconfig-devel, previously masked by Gtk3+ dependency
f8e459
f8e459
* Wed Oct 02 2019 Andrew Hughes <gnu.andrew@redhat.com> - 1:13.0.0.33-3.rolling
f8e459
- Obsolete javadoc-slowdebug and javadoc-slowdebug-zip packages via javadoc and javadoc-zip respectively.
f8e459
f8e459
* Tue Oct 01 2019 Severin Gehwolf <sgehwolf@redhat.com> - 1:13.0.0.33-2.rolling
f8e459
- Don't produce javadoc/javadoc-zip sub packages for the
f8e459
  debug variant build.
f8e459
- Don't perform a bootcycle build for the debug variant build.
f8e459
f8e459
* Mon Sep 30 2019 Severin Gehwolf <sgehwolf@redhat.com> - 1:13.0.0.33-2.rolling
f8e459
- Fix vendor version as JDK 13 has been GA'ed September 2019: 19.3 => 19.9
f8e459
f8e459
* Wed Aug 14 2019 Petra Alice Mikova <pmikova@redhat.com> - 1:13.0.0.33-1.rolling
f8e459
- updated to 13+33 sources
f8e459
- added two manpages to file listings (jfr, jaotc)
f8e459
- set is_ga to 1 to match build from jdk.java.net
f8e459
f8e459
* Fri Jul 26 2019 Severin Gehwolf <sgehwolf@redhat.com> - 1:13.0.0.28-0.2.ea.rolling
f8e459
- Fix bootjdkver macro. It attempted to build with jdk 12, which is
f8e459
  no longer available in rawhide (it's 13 instead).
f8e459
- Fix Release as rpmdev-bumpspec doesn't do it correctly.
f8e459
f8e459
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:13.0.0.28-0.1.ea.rolling.1
f8e459
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
f8e459
f8e459
* Tue Jul 09 2019 Petra Alice Mikova <pmikova@redhat.com> - 1:13.0.0.28-0.1.ea.rolling
f8e459
- updated to jdk 13
f8e459
- adapted pr2126-synchronise_elliptic_curves_in_sun_security_ec_namedcurve_with_those_listed_by_nss.patch
f8e459
- adapted rh1648242-accessible_toolkit_crash_do_not_break_jvm.patch
f8e459
- fixed file listings
f8e459
- included https://src.fedoraproject.org/rpms/java-11-openjdk/pull-request/49:
f8e459
- Include 'ea' designator in Release when appropriate
f8e459
- Handle milestone as variables so we can alter it easily and set the docs zip filename appropriately
f8e459
f8e459
* Tue May 21 2019 Petra Alice Mikova <pmikova@redhat.com> - 1:12.0.1.12-2.rolling
f8e459
- fixed requires/provides for the non-system JDK case (backport of RHBZ#1702324)
f8e459
f8e459
* Thu Apr 18 2019 Petra Mikova <pmikova@redhat.com> - 1:12.0.1.12-1.rolling
f8e459
- updated sources to current CPU release
f8e459
f8e459
* Thu Apr 04 2019 Petra Mikova <pmikova@redhat.com> - 1:12.0.0.33-4.rolling
f8e459
- added slave for jfr binary in devel package
f8e459
f8e459
* Thu Mar 21 2019 Petra Mikova <pmikova@redhat.com> - 1:12.0.0.33-3.rolling
f8e459
- Replaced pcsc-lite-devel (which is in optional channel) with pcsc-lite-libs.
f8e459
- added rh1684077-openjdk_should_depend_on_pcsc-lite-libs_instead_of_pcsc-lite-devel.patch to make jdk work with pcsc
f8e459
- removed LTS string from LTS designator, because epel builds get identified as rhel and JDK 12 is not LTS
f8e459
- removed duplicated dependency on lksctp-tools
f8e459
f8e459
* Wed Mar 20 2019 Peter Robinson <pbrobinson@fedoraproject.org> 1:12.0.0.33-2.ea.1.rolling
f8e459
- Drop chkconfig dep, 1.7 shipped in f24
f8e459
f8e459
* Thu Mar 07 2019 Petra Mikova <pmikova@redhat.com> - 1:12.0.0.33-1.ea.1.rolling
f8e459
- bumped sources to jdk12+33
f8e459
f8e459
* Mon Feb 11 2019 Severin Gehwolf <sgehwolf@redhat.com> - 1:12.0.0.30-1.ea.1.rolling
f8e459
- Only build 'bootcycle-images docs' target and 'images docs' targets, respectively.
f8e459
f8e459
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:12.0.0.25-0.ea.1.rolling.1
f8e459
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
f8e459
f8e459
* Fri Dec 21 2018 Jiri Vanek <jvanek@redhat.com> - 1:12.0.0.25-0.ea.1.rolling
f8e459
- bumped sources to jdk12. Crypto list synced.
f8e459
- adapted patches to usptream (removed are upstreamed)
f8e459
- removed fixed upstreamed patch6, jdk8211105-aarch64-disable_cos_sin_and_log_intrinsics.patch:
f8e459
- renamed patch5, pr1983-rh1565658-..._sunec_provider_jdk11.patch to pr1983-rh1565658-..._sunec_provider_jdk12.patch
f8e459
- adapted patch5, pr1983-rh1565658 to jdk12 (libraries.m4 and /Lib-jdk.crypto.ec.gmk)
f8e459
- removed patch8, jdk8210416-rh1632174-compile_fdlibm_with_o2_ffp_contract_off_on_gcc_clang_arches.patch
f8e459
- removed patch9, jdk8210425-rh1632174-sharedRuntimeTrig_sharedRuntimeTrans_compiled_without_optimization.patch
f8e459
- removed patch10, jdk8210647-rh1632174. Is rummored to be in upstream
f8e459
- removed patch11, jdk8210761-rh1632174-libjsig_is_being_compiled_without_optimization.patch
f8e459
- removed patch12, jdk8210703-rh1632174-vmStructs_cpp_no_longer_compiled_with_o0
f8e459
- removed patch584, jdk8209639-rh1640127-02-coalesce_attempted_spill_non_spillable.patch
f8e459
- removed patch585, jdk8209639-rh1640127-02-coalesce_attempted_spill_non_spillable.patch
f8e459
- set build jdk to jdk11; buildjdkver set to 11
f8e459
- todo, revisit _privatelibs and slaves, discuse patch10, more?
f8e459
- now building with --no-print-directory to workaround JDK8215213
f8e459
- renamed original of docs zip to jdk-major+build
f8e459
- check shenandaoh with -XX:+UnlockExperimentalVMOptions
f8e459
- libjli moved from lib/libjli to lib
f8e459
- added lib/jspawnhelper and bin/jfr and conf/sdp/sdp.conf.template
f8e459
- added explanation to the --no-print-directory
f8e459
- re-added lts_designator_zip macro
f8e459
- added patch6 for rh1673833-remove_removal_of_wformat_during_test_compilation.patch
f8e459
f8e459
* Wed Dec 5 2018 Jiri Vanek <jvanek@redhat.com> - 1:11.0.1.13-10.rolling
f8e459
- for non debug supackages, ghosted all masters and slaves (rhbz1649776)
f8e459
- for tech-preview packages, if-outed versionless provides. Aligned versions to be %%{epoch}:%%{version}-%%{release} instead of chaotic
f8e459
- Removed all slowdebug provides (rhbz1655938); for tech-preview packages also removed all internal provides
f8e459
f8e459
* Tue Dec 04 2018 Severin Gehwolf <sgehwolf@redhat.com> - 1:11.0.1.13-9
f8e459
- Added %%global _find_debuginfo_opts -g
f8e459
- Resolves: RHBZ#1520879 (Detailed NMT issue)
f8e459
f8e459
* Fri Nov 30 2018 Jiri Vanek <jvanek@redhat.com> - 1:11.0.1.13-8
f8e459
- added rolling suffix to release (before dist) to prevent conflict with java-11-openjdk which now have same major version
f8e459
f8e459
* Mon Nov 12 2018 Jiri Vanek <jvanek@redhat.com> - 1:11.0.1.13-6
f8e459
- fixed tck failures of arraycopy and process exec with shenandoah on
f8e459
- added patch585 rh1648995-shenandoah_array_copy_broken_by_not_always_copy_forward_for_disjoint_arrays.patch
f8e459
f8e459
* Wed Nov 07 2018 Jiri Vanek <jvanek@redhat.com> - 1:11.0.1.13-5
f8e459
- headless' suggests of cups, replaced by Requires of cups-libs
f8e459
f8e459
* Thu Nov 01 2018 Jiri Vanek <jvanek@redhat.com> - 1:11.0.1.13-3
f8e459
- added Patch584 jdk8209639-rh1640127-02-coalesce_attempted_spill_non_spillable.patch
f8e459
f8e459
* Mon Oct 29 2018 Severin Gehwolf <sgehwolf@redhat.com> - 1:11.0.1.13-3
f8e459
- Use upstream's version of Aarch64 intrinsics disable patch:
f8e459
  - Removed:
f8e459
    RHBZ-1628612-JDK-8210461-workaround-disable-aarch64-intrinsic.patch
f8e459
    RHBZ-1630996-JDK-8210858-workaround-disable-aarch64-intrinsic-log.patch
f8e459
  - Superceded by:
f8e459
    jdk8211105-aarch64-disable_cos_sin_and_log_intrinsics.patch
f8e459
f8e459
* Thu Oct 18 2018 Severin Gehwolf <sgehwolf@redhat.com> - 1:11.0.1.13-2
f8e459
- Use LTS designator in version output for RHEL.
f8e459
f8e459
* Thu Oct 18 2018 Severin Gehwolf <sgehwolf@redhat.com> - 1:11.0.1.13-1
f8e459
- Update to October 2018 CPU release, 11.0.1+13.
f8e459
f8e459
* Wed Oct 17 2018 Severin Gehwolf <sgehwolf@redhat.com> - 1:11.0.0.28-2
f8e459
- Use --with-vendor-version-string=18.9 so as to show original
f8e459
  GA date for the JDK.
f8e459
f8e459
* Fri Sep 28 2018 Severin Gehwolf <sgehwolf@redhat.com> - 1:11.0.0.28-1
f8e459
- Identify as GA version and no longer as early access (EA).
f8e459
- JDK 11 has been released for GA on 2018-09-25.
f8e459
f8e459
* Fri Sep 28 2018 Severin Gehwolf <sgehwolf@redhat.com> - 1:11.0.ea.28-9
f8e459
- Rework changes from 1:11.0.ea.22-6. RHBZ#1632174 supercedes
f8e459
  RHBZ-1624122.
f8e459
- Add patch, jdk8210416-rh1632174-compile_fdlibm_with_o2_ffp_contract_off_on_gcc_clang_arches.patch, so as to
f8e459
  optimize compilation of fdlibm library.
f8e459
- Add patch, jdk8210425-rh1632174-sharedRuntimeTrig_sharedRuntimeTrans_compiled_without_optimization.patch, so
f8e459
  as to optimize compilation of sharedRuntime{Trig,Trans}.cpp
f8e459
- Add patch, jdk8210647-rh1632174-libsaproc_is_being_compiled_without_optimization.patch, so as to
f8e459
  optimize compilation of libsaproc (extra c flags won't override
f8e459
  optimization).
f8e459
- Add patch, jdk8210761-rh1632174-libjsig_is_being_compiled_without_optimization.patch, so as to
f8e459
  optimize compilation of libjsig.
f8e459
- Add patch, jdk8210703-rh1632174-vmStructs_cpp_no_longer_compiled_with_o0, so as to
f8e459
  optimize compilation of vmStructs.cpp (part of libjvm.so).
f8e459
- Reinstate filtering of opt flags coming from redhat-rpm-config.
f8e459
f8e459
* Thu Sep 27 2018 Jiri Vanek <jvanek@redhat.com> - 1:11.0.ea.28-8
f8e459
- removed version less provides
f8e459
- javadocdir moved to arched dir as it is no longer noarch
f8e459
f8e459
* Thu Sep 20 2018 Severin Gehwolf <sgehwolf@redhat.com> - 1:11.0.ea.28-6
f8e459
- Add patch, RHBZ-1630996-JDK-8210858-workaround-disable-aarch64-intrinsic-log.patch,
f8e459
  so as to disable log math intrinsic on aarch64. Work-around for
f8e459
  JDK-8210858
f8e459
f8e459
* Thu Sep 13 2018 Severin Gehwolf <sgehwolf@redhat.com> - 1:11.0.ea.28-5
f8e459
- Add patch, RHBZ-1628612-JDK-8210461-workaround-disable-aarch64-intrinsic.patch,
f8e459
  so as to disable dsin/dcos math intrinsics on aarch64. Work-around for
f8e459
  JDK-8210461.
f8e459
f8e459
* Wed Sep 12 2018 Severin Gehwolf <sgehwolf@redhat.com> - 1:11.0.ea.22-6
f8e459
- Add patch, JDK-8210416-RHBZ-1624122-fdlibm-opt-fix.patch, so as to
f8e459
  optimize compilation of fdlibm library.
f8e459
- Add patch, JDK-8210425-RHBZ-1624122-sharedRuntimeTrig-opt-fix.patch, so
f8e459
  as to optimize compilation of sharedRuntime{Trig,Trans}.cpp
f8e459
- Add patch, JDK-8210647-RHBZ-1624122-libsaproc-opt-fix.patch, so as to
f8e459
  optimize compilation of libsaproc (extra c flags won't override
f8e459
  optimization).
f8e459
- Add patch, JDK-8210703-RHBZ-1624122-vmStructs-opt-fix.patch, so as to
f8e459
  optimize compilation of vmStructs.cpp (part of libjvm.so).
f8e459
- No longer filter -O flags from C flags coming from
f8e459
  redhat-rpm-config.
f8e459
f8e459
* Mon Sep 10 2018 Jiri Vanek <jvanek@redhat.com> - 1:11.0.ea.28-4
f8e459
- link to jhsdb followed its file to ifarch jit_arches ifnarch s390x
f8e459
f8e459
* Fri Sep 7 2018 Severin Gehwolf <sgehwolf@redhat.com> - 1:11.0.ea.28-3
f8e459
- Enable ZGC on x86_64.
f8e459
f8e459
* Tue Sep 4 2018 Jiri Vanek <jvanek@redhat.com> - 1:11.0.ea.28-2
f8e459
- jfr/*jfc files listed for all arches
f8e459
- lib/classlist do not exists s390, ifarch-ed via jit_arches out
f8e459
f8e459
* Fri Aug 31 2018 Severin Gehwolf <sgehwolf@redhat.com> - 1:11.0.ea.28-1
f8e459
- Update to latest upstream build jdk11+28, the first release
f8e459
  candidate.
f8e459
f8e459
* Wed Aug 29 2018 Severin Gehwolf <sgehwolf@redhat.com> - 1:11.0.ea.22-8
f8e459
- Adjust system NSS patch, pr1983-rh1565658-support_using_the_system_installation_of_nss_with_the_sunec_provider_jdk11.patch, so
f8e459
  as to filter -Wl,--as-needed from linker flags. Fixes FTBFS issue.
f8e459
f8e459
* Thu Aug 23 2018 Jiri Vanek <jvanek@redhat.com> - 1:11.0.ea.22-6
f8e459
- dissabled accessibility, fixed provides for main package's debug variant
f8e459
f8e459
* Mon Jul 30 2018 Jiri Vanek <jvanek@redhat.com> - 1:11.0.ea.22-5
f8e459
- now buildrequires javapackages-filesystem as the  issue with macros should be fixed
f8e459
f8e459
* Wed Jul 18 2018 Jiri Vanek <jvanek@redhat.com> - 1:11.0.ea.22-2
f8e459
- changed to build by itself instead of by jdk10
f8e459
f8e459
* Tue Jul 17 2018 Jiri Vanek <jvanek@redhat.com> - 1:11.0.ea.22-1
f8e459
- added Recommends gtk3 for main package
f8e459
- changed BuildRequires from gtk2-devel to gtk3-devel (it can be more likely dropped)
f8e459
- added Suggests lksctp-tools, pcsc-lite-devel, cups for headless package
f8e459
- see RHBZ1598152
f8e459
- added trick to catch hs_err files (sgehwolf)
f8e459
- updated to shenandaoh-jdk-11+22
f8e459
f8e459
* Sat Jul 07 2018 Jiri Vanek <jvanek@redhat.com> - 1:11.0.ea.20-1
f8e459
- removed patch6 JDK-8205616-systemLcmsAndJpgFixFor-rev_f0aeede1b855.patch
f8e459
- improved a bit generate_source_tarball.sh to serve also for systemtap
f8e459
- thus deleted generate_tapsets.sh
f8e459
- simplified and cleared update_package.sh
f8e459
- moved to single source jdk - from shenandoah/jdk11
f8e459
- bumped to latest jdk11+20
f8e459
- adapted PR2126 to jdk11+20
f8e459
- adapted handling of systemtap sources to new style
f8e459
- (no (misleading) version inside (full version is in name), thus different sed on tapsets and different directory)
f8e459
- shortened summaries and descriptions to around 80 chars
f8e459
- Hunspell spell checked
f8e459
- license fixed to correct jdk11 (sgehwolf)
f8e459
- more correct handling of internal libraries (sgehwolf)
f8e459
- added lib/security/public_suffix_list.dat as +20 have added it (JDK-8201815)
f8e459
- added test for shenandaoh GC presence where expected
f8e459
- Removed workaround for broken aarch64 slowdebug build
f8e459
- Removed all defattrs
f8e459
- Removed no longer necessary cleanup of diz and  debuginfo files
f8e459
f8e459
* Fri Jun 22 2018 Jiri Vanek <jvanek@redhat.com> - 1:11.0.ea.19-1
f8e459
- updated sources to jdk-11+19
f8e459
- added patch6 systemLcmsAndJpgFixFor-f0aeede1b855.patch to fix regression of system libraries after f0aeede1b855 commit
f8e459
- adapted pr1983-rh1565658-support_using_the_system_installation_of_nss_with_the_sunec_provider_jdk11.patch to accommodate changes after f0aeede1b855 commit
f8e459
f8e459
* Thu Jun 14 2018 Severin Gehwolf <sgehwolf@redhat.com> - 1:11.0.ea.16-5
f8e459
- Revert rename: java-11-openjdk => java-openjdk.
f8e459
f8e459
* Wed Jun 13 2018 Severin Gehwolf <sgehwolf@redhat.com> - 1:11.0.ea.16-4
f8e459
- Add aarch64 to aot_arches.
f8e459
f8e459
* Wed Jun 13 2018 Severin Gehwolf <sgehwolf@redhat.com> - 1:11.0.ea.16-3
f8e459
- Rename to package java-11-openjdk.
f8e459
f8e459
* Wed Jun 13 2018 Severin Gehwolf <sgehwolf@redhat.com> - 1:11.0.ea.16-2
f8e459
- Disable Aarch64 slowdebug build (see JDK-8204331).
f8e459
- s390x doesn't have the SA even though it's a JIT arch.
f8e459
f8e459
* Wed Jun 13 2018 Severin Gehwolf <sgehwolf@redhat.com> - 1:11.0.ea.16-1
f8e459
- Initial version of JDK 11 ea based on tag jdk-11+16.
f8e459
- Removed patches no longer needed or upstream:
f8e459
  sorted-diff.patch (see JDK-8198844)
f8e459
  JDK-8201788-bootcycle-images-jobs.patch
f8e459
  JDK-8201509-s390-atomic_store.patch
f8e459
  JDK-8202262-libjsig.so-extra-link-flags.patch (never was an issue on 11)
f8e459
  JDK-8193802-npe-jar-getVersionMap.patch
f8e459
- Updated and renamed patches:
f8e459
  java-openjdk-s390-size_t.patch => JDK-8203030-s390-size_t.patch
f8e459
- Updated patches for JDK 11:
f8e459
  pr1983-rh1565658-support_using_the_system_installation_of_nss_with_the_sunec_provider_jdk11.patch
f8e459
f8e459
* Tue Jun 12 2018 Severin Gehwolf <sgehwolf@redhat.com> - 1:10.0.1.10-9
f8e459
- Use proper private_libs expression for filtering requires/provides.
f8e459
f8e459
* Fri Jun 08 2018 Severin Gehwolf <sgehwolf@redhat.com> - 1:10.0.1.10-8
f8e459
- Bump release and rebuild for fixed gdb. See RHBZ#1589118.
f8e459
f8e459
* Mon Jun 04 2018 Jiri Vanek <jvanek@redhat.com> - 1:10.0.1.10-7
f8e459
- quoted sed expressions, changed possibly confusing # by @
f8e459
- added vendor(origin) into icons
f8e459
- removed last trace of relative symlinks
f8e459
- added BuildRequires of javapackages-tools to fix build failure after Requires change to javapackages-filesystem
f8e459
f8e459
* Thu May 17 2018 Severin Gehwolf <sgehwolf@redhat.com> - 1:10.0.1.10-5
f8e459
- Move to javapackages-filesystem for directory ownership.
f8e459
  Resolves RHBZ#1500288
f8e459
f8e459
* Mon Apr 30 2018 Severin Gehwolf <sgehwolf@redhat.com> - 1:10.0.1.10-4
f8e459
- Add JDK-8193802-npe-jar-getVersionMap.patch so as to fix
f8e459
  RHBZ#1557375.
f8e459
f8e459
* Mon Apr 23 2018 Severin Gehwolf <sgehwolf@redhat.com> - 1:10.0.1.10-3
f8e459
- Inject build flags properly. See RHBZ#1571359
f8e459
- Added patch JDK-8202262-libjsig.so-extra-link-flags.patch
f8e459
  since libjsig.so doesn't get linker flags injected properly.
f8e459
f8e459
* Fri Apr 20 2018 Severin Gehwolf <sgehwolf@redhat.com> - 1:10.0.1.10-2
f8e459
- Removed unneeded patches:
f8e459
  PStack-808293.patch
f8e459
  multiple-pkcs11-library-init.patch
f8e459
  ppc_stack_overflow_fix.patch 
f8e459
- Added patches for s390 Zero builds:
f8e459
  JDK-8201495-s390-java-opts.patch
f8e459
  JDK-8201509-s390-atomic_store.patch
f8e459
- Renamed patches for clarity:
f8e459
  aarch64BuildFailure.patch => JDK-8200556-aarch64-slowdebug-crash.patch
f8e459
  systemCryptoPolicyPR3183.patch => pr3183-rh1340845-support_fedora_rhel_system_crypto_policy.patch
f8e459
  bootcycle_jobs.patch => JDK-8201788-bootcycle-images-jobs.patch
f8e459
  system-nss-ec-rh1565658.patch => pr1983-rh1565658-support_using_the_system_installation_of_nss_with_the_sunec_provider_jdk11.patch
f8e459
f8e459
* Fri Apr 20 2018 Jiri Vanek <jvanek@redhat.com> - 1:10.0.1.10-1
f8e459
- updated to security update 1
f8e459
- jexec unlinked from path
f8e459
- used java-openjdk as boot jdk
f8e459
- aligned provides/requires
f8e459
- renamed zip javadoc
f8e459
f8e459
* Tue Apr 10 2018 Severin Gehwolf <sgehwolf@redhat.com> - 1:10.0.0.46-12
f8e459
- Enable basic EC ciphers test in %%check.
f8e459
f8e459
* Tue Apr 10 2018 Severin Gehwolf <sgehwolf@redhat.com> - 1:10.0.0.46-11
f8e459
- Port Martin Balao's JDK 9 patch for system NSS support to JDK 10.
f8e459
- Resolves RHBZ#1565658
f8e459
f8e459
* Mon Apr 09 2018 Jiri Vanek <jvanek@redhat.com> - 1:10.0.0.46-10
f8e459
- jexec linked to path
f8e459
f8e459
* Fri Apr 06 2018 Jiri Vanek <jvanek@redhat.com> - 1:10.0.0.46-9
f8e459
- subpackage(s) replaced by sub-package(s) and other cosmetic changes
f8e459
f8e459
* Tue Apr 03 2018 Jiri Vanek <jvanek@redhat.com> - 1:10.0.0.46-8
f8e459
- removed accessibility sub-packages
f8e459
- kept applied patch and properties files
f8e459
- debug sub-packages renamed to slowdebug
f8e459
f8e459
* Fri Feb 23 2018 Jiri Vanek <jvanek@redhat.com> - 1:10.0.0.46-1
f8e459
- initial load