Blame SPECS/java-1.8.0-openjdk.spec

ee473e
# note, parametrised macros are order-senisitve (unlike not-parametrized) even with normal macros
ee473e
# also necessary when passing it as parameter other macros. If not macro, then it is considered as switch
ee473e
%global debug_suffix_unquoted -debug
ee473e
# quoted one for shell operations
ee473e
%global debug_suffix "%{debug_suffix_unquoted}"
ee473e
%global normal_suffix ""
ee473e
ee473e
#if you wont only debug build, but providing java, build only normal build, but  set normalbuild_parameter
ee473e
%global debugbuild_parameter  slowdebug
ee473e
%global normalbuild_parameter release
ee473e
%global debug_warning This package have full debug on. Install only in need, and remove asap.
ee473e
%global debug_on with full debug on
ee473e
%global for_debug for packages with debug on
ee473e
ee473e
# by default we build normal build always.
ee473e
%global include_normal_build 1
ee473e
%if %{include_normal_build}
ee473e
%global build_loop1 %{normal_suffix}
ee473e
%else
ee473e
%global build_loop1 %{nil}
ee473e
%endif
ee473e
0f5aa1
%global aarch64         aarch64 arm64 armv8
0f5aa1
# sometimes we need to distinguish big and little endian PPC64
0f5aa1
%global ppc64le         ppc64le
0f5aa1
%global ppc64be         ppc64 ppc64p7
0f5aa1
%global multilib_arches %{power64} sparc64 x86_64
0f5aa1
%global jit_arches      %{ix86} x86_64 sparcv9 sparc64 %{aarch64} %{power64}
0f5aa1
0f5aa1
# By default, we build a debug build during main build on JIT architectures
0f5aa1
%ifarch %{jit_arches}
ee473e
%global include_debug_build 1
ee473e
%else
ee473e
%global include_debug_build 0
ee473e
%endif
ee473e
ee473e
%if %{include_debug_build}
ee473e
%global build_loop2 %{debug_suffix}
ee473e
%else
ee473e
%global build_loop2 %{nil}
ee473e
%endif
ee473e
ee473e
# if you disable both builds, then build fails
ee473e
%global build_loop  %{build_loop1} %{build_loop2}
ee473e
# note, that order  normal_suffix debug_suffix, in case of both enabled,
ee473e
# is expected in one single case at the end of build
b8989a
%global rev_build_loop  %{build_loop2} %{build_loop1}
ee473e
f8968f
%ifarch %{jit_arches}
f8968f
%global bootstrap_build 1
f8968f
%else
2b939e
%global bootstrap_build 1
f8968f
%endif
8ba7a7
8ba7a7
%if %{bootstrap_build}
8ba7a7
%global targets bootcycle-images docs
8ba7a7
%else
8ba7a7
%global targets all
8ba7a7
%endif
9bf359
2b939e
8ba7a7
%ifarch %{aarch64}
8ba7a7
# Disable hardened build on AArch64 as it didn't bootcycle
8ba7a7
%undefine _hardened_build
8ba7a7
%global ourcppflags "-fstack-protector-strong"
8ba7a7
%global ourldflags %{nil}
8ba7a7
%else
8ba7a7
# Filter out flags from the optflags macro that cause problems with the OpenJDK build
8ba7a7
# We filter out -O flags so that the optimisation of HotSpot is not lowered from O3 to O2
8ba7a7
# We filter out -Wall which will otherwise cause HotSpot to produce hundreds of thousands of warnings (100+mb logs)
8ba7a7
# We replace it with -Wformat (required by -Werror=format-security) and -Wno-cpp to avoid FORTIFY_SOURCE warnings
8ba7a7
# We filter out -fexceptions as the HotSpot build explicitly does -fno-exceptions and it's otherwise the default for C++
8ba7a7
%global ourflags %(echo %optflags | sed -e 's|-Wall|-Wformat -Wno-cpp|' | sed -r -e 's|-O[0-9]*||')
8ba7a7
%global ourcppflags %(echo %ourflags | sed -e 's|-fexceptions||') "-fstack-protector-strong"
8ba7a7
%global ourldflags %{__global_ldflags}
8ba7a7
%endif
8ba7a7
9bf359
# With diabled nss is NSS deactivated, so in NSS_LIBDIR can be wrong path
9bf359
# the initialisation must be here. LAter the pkg-connfig have bugy behaviour
9bf359
#looks liekopenjdk RPM specific bug
9bf359
# Always set this so the nss.cfg file is not broken
9bf359
%global NSS_LIBDIR %(pkg-config --variable=libdir nss)
2b939e
%global NSS_LIBS %(pkg-config --libs nss)
2b939e
%global NSS_CFLAGS %(pkg-config --cflags nss-softokn)
2b939e
# see https://bugzilla.redhat.com/show_bug.cgi?id=1332456
2b939e
%global NSSSOFTOKN_BUILDTIME_NUMBER %(pkg-config --modversion nss-softokn || : )
2b939e
%global NSS_BUILDTIME_NUMBER %(pkg-config --modversion nss || : )
2b939e
#this is worakround for processing of requires during srpm creation
2b939e
%global NSSSOFTOKN_BUILDTIME_VERSION %(if [ "x%{NSSSOFTOKN_BUILDTIME_NUMBER}" == "x" ] ; then echo "" ;else echo ">= %{NSSSOFTOKN_BUILDTIME_NUMBER}" ;fi)
2b939e
%global NSS_BUILDTIME_VERSION %(if [ "x%{NSS_BUILDTIME_NUMBER}" == "x" ] ; then echo "" ;else echo ">= %{NSS_BUILDTIME_NUMBER}" ;fi)
2b939e
9bf359
9e49de
# fix for https://bugzilla.redhat.com/show_bug.cgi?id=1111349
9bf359
%global _privatelibs libmawt[.]so.*
9bf359
%global __provides_exclude ^(%{_privatelibs})$
9bf359
%global __requires_exclude ^(%{_privatelibs})$
9bf359
9bf359
%ifarch x86_64
9bf359
%global archinstall amd64
9bf359
%endif
9bf359
%ifarch ppc
9bf359
%global archinstall ppc
9bf359
%endif
d934b5
%ifarch %{ppc64be}
9bf359
%global archinstall ppc64
9bf359
%endif
d934b5
%ifarch %{ppc64le}
d934b5
%global archinstall ppc64le
d934b5
%endif
9bf359
%ifarch %{ix86}
9bf359
%global archinstall i386
9bf359
%endif
9bf359
%ifarch ia64
9bf359
%global archinstall ia64
9bf359
%endif
9bf359
%ifarch s390
9bf359
%global archinstall s390
9bf359
%endif
9bf359
%ifarch s390x
9bf359
%global archinstall s390x
9bf359
%endif
9bf359
%ifarch %{arm}
9bf359
%global archinstall arm
9bf359
%endif
9bf359
%ifarch %{aarch64}
9bf359
%global archinstall aarch64
9bf359
%endif
9bf359
# 32 bit sparc, optimized for v9
9bf359
%ifarch sparcv9
9bf359
%global archinstall sparc
9bf359
%endif
9bf359
# 64 bit sparc
9bf359
%ifarch sparc64
9bf359
%global archinstall sparcv9
9bf359
%endif
9bf359
%ifnarch %{jit_arches}
9bf359
%global archinstall %{_arch}
9bf359
%endif
9bf359
9bf359
9bf359
9bf359
%ifarch %{jit_arches}
9bf359
%global with_systemtap 1
9bf359
%else
9bf359
%global with_systemtap 0
9bf359
%endif
9bf359
9bf359
# Convert an absolute path to a relative path.  Each symbolic link is
9bf359
# specified relative to the directory in which it is installed so that
9bf359
# it will resolve properly within chrooted installations.
9bf359
%global script 'use File::Spec; print File::Spec->abs2rel($ARGV[0], $ARGV[1])'
9bf359
%global abs2rel %{__perl} -e %{script}
9bf359
9bf359
9bf359
# Standard JPackage naming and versioning defines.
9bf359
%global origin          openjdk
8ba7a7
# note, following three variables are sedded from update_sources if used correctly. Hardcode them rather there.
8ba7a7
%global project         aarch64-port
b8989a
%global repo            jdk8u
c4ba7e
%global revision        aarch64-jdk8u121-b13
8ba7a7
# eg # jdk8u60-b27 -> jdk8u60 or # aarch64-jdk8u60-b27 -> aarch64-jdk8u60  (dont forget spec escape % by %%)
8ba7a7
%global whole_update    %(VERSION=%{revision}; echo ${VERSION%%-*})
8ba7a7
# eg  jdk8u60 -> 60 or aarch64-jdk8u60 -> 60
8ba7a7
%global updatever       %(VERSION=%{whole_update}; echo ${VERSION##*u})
8ba7a7
# eg jdk8u60-b27 -> b27
8ba7a7
%global buildver        %(VERSION=%{revision}; echo ${VERSION##*-})
8ba7a7
# priority must be 7 digits in total. The expression is workarounding tip
8f84c8
%global priority        %(TIP=1800%{updatever};  echo ${TIP/tip/999})
8ba7a7
9bf359
%global javaver         1.8.0
9bf359
ee473e
# parametrized macros are order-sensitive
9bf359
%global fullversion     %{name}-%{version}-%{release}
ee473e
#images stub
ee473e
%global j2sdkimage       j2sdk-image
ee473e
# output dir stub
ee473e
%global buildoutputdir() %{expand:openjdk/build/jdk8.build%1}
9bf359
#we can copy the javadoc to not arched dir, or made it not noarch
ee473e
%global uniquejavadocdir()    %{expand:%{fullversion}%1}
ee473e
#main id and dir of this jdk
ee473e
%global uniquesuffix()        %{expand:%{fullversion}.%{_arch}%1}
ee473e
ee473e
# Standard JPackage directories and symbolic links.
ee473e
%global sdkdir()        %{expand:%{uniquesuffix %%1}}
ee473e
%global jrelnk()        %{expand:jre-%{javaver}-%{origin}-%{version}-%{release}.%{_arch}%1}
ee473e
ee473e
%global jredir()        %{expand:%{sdkdir %%1}/jre}
ee473e
%global sdkbindir()     %{expand:%{_jvmdir}/%{sdkdir %%1}/bin}
ee473e
%global jrebindir()     %{expand:%{_jvmdir}/%{jredir %%1}/bin}
ee473e
%global jvmjardir()     %{expand:%{_jvmjardir}/%{uniquesuffix %%1}}
9bf359
2b939e
%global rpm_state_dir %{_localstatedir}/lib/rpm-state/
2b939e
9bf359
%if %{with_systemtap}
9bf359
# Where to install systemtap tapset (links)
9bf359
# We would like these to be in a package specific subdir,
9bf359
# but currently systemtap doesn't support that, so we have to
9bf359
# use the root tapset dir for now. To distinquish between 64
9bf359
# and 32 bit architectures we place the tapsets under the arch
9bf359
# specific dir (note that systemtap will only pickup the tapset
9bf359
# for the primary arch for now). Systemtap uses the machine name
9bf359
# aka build_cpu as architecture specific directory name.
9bf359
%global tapsetroot /usr/share/systemtap
9bf359
%global tapsetdir %{tapsetroot}/tapset/%{_build_cpu}
9bf359
%endif
9bf359
ee473e
# not-duplicated scriplets for normal/debug packages
ee473e
%global update_desktop_icons /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
ee473e
ab03fc
%global check_sum_presented_in_spec() %{expand:
ab03fc
md5sum %1
ab03fc
currentMd5sum=`md5sum %1 | sed "s;\\s.*;;"`
ab03fc
specfile=%{_specdir}/%{name}.spec
ab03fc
grep -e md5sum -A 20 $specfile  | grep $currentMd5sum
ab03fc
}
ab03fc
ee473e
%global post_script() %{expand:
ee473e
update-desktop-database %{_datadir}/applications &> /dev/null || :
ee473e
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
ee473e
exit 0
ee473e
}
ee473e
ee473e
ee473e
%global post_headless() %{expand:
ee473e
# FIXME: identical binaries are copied, not linked. This needs to be
ee473e
# fixed upstream.
ee473e
# The pretrans lua scriptlet prevents an unmodified java.security
ee473e
# from being replaced via an update. It gets created as
ee473e
# java.security.rpmnew instead. This invalidates the patch of
8ba7a7
# JDK-8061210 of the January 2015 CPU, JDK-8043201 of the
8ba7a7
# July 2015 CPU and JDK-8141287 of the January 2016 CPU. We
8ba7a7
# fix this via a post scriptlet which runs on updates.
ee473e
if [ "$1" -gt 1 ]; then
ee473e
  javasecurity="%{_jvmdir}/%{uniquesuffix}/jre/lib/security/java.security"
ee473e
  sum=$(md5sum "${javasecurity}" | cut -d' ' -f1)
ee473e
  # This is the md5sum of an unmodified java.security file
ee473e
  if [ "${sum}" = '1690ac33955594f71dc952c9e83fd396' -o \\
ee473e
       "${sum}" = 'b138695d0c0ea947e64a21a627d973ba' -o \\
ee473e
       "${sum}" = 'd17958676bdb9f9d941c8a59655311fb' -o \\
ee473e
       "${sum}" = '5463aef7dbf0bbcfe79e0336a7f92701' -o \\
8ba7a7
       "${sum}" = '400cc64d4dd31f36dc0cc2c701d603db' -o \\
ab03fc
       "${sum}" = '321342219bb130d238ff144b9e5dbfc1' -o \\
ab03fc
       "${sum}" = '134a37a84983b620f4d8d51a550c0c38' -o \\
0f5aa1
       "${sum}" = '5ea976e209d0d0b5b6ab148416123e02' -o \\
c4ba7e
       "${sum}" = '5ab4c77cf14fbd7f7ee6f51a7a73d88c' -o \\
c4ba7e
       "${sum}" = 'b727442b4ac0e3b8a26ec9741ad463e5' -o \\
c4ba7e
       "${sum}" = 'a59c6d96aeae1303fb8ba85e97588e9d' ]; then
ee473e
    if [ -f "${javasecurity}.rpmnew" ]; then
ee473e
      mv -f "${javasecurity}.rpmnew" "${javasecurity}"
ee473e
    fi
ee473e
  fi
ee473e
fi
ee473e
ee473e
%ifarch %{jit_arches}
ee473e
# MetaspaceShared::generate_vtable_methods not implemented for PPC JIT
ee473e
%ifnarch %{power64}
ee473e
#see https://bugzilla.redhat.com/show_bug.cgi?id=513605
ee473e
%{jrebindir %%1}/java -Xshare:dump >/dev/null 2>/dev/null
ee473e
%endif
ee473e
%endif
ee473e
8ba7a7
PRIORITY=%{priority}
8ba7a7
if [ "%1" == %{debug_suffix} ]; then
8ba7a7
  let PRIORITY=PRIORITY-1
8ba7a7
fi
8ba7a7
ee473e
ext=.gz
ee473e
alternatives \\
2b939e
  --install %{_bindir}/java java %{jrebindir %%1}/java $PRIORITY  --family %{name}.%{_arch} \\
ee473e
  --slave %{_jvmdir}/jre jre %{_jvmdir}/%{jredir %%1} \\
ee473e
  --slave %{_jvmjardir}/jre jre_exports %{_jvmjardir}/%{jrelnk %%1} \\
ee473e
  --slave %{_bindir}/jjs jjs %{jrebindir %%1}/jjs \\
ee473e
  --slave %{_bindir}/keytool keytool %{jrebindir %%1}/keytool \\
ee473e
  --slave %{_bindir}/orbd orbd %{jrebindir %%1}/orbd \\
ee473e
  --slave %{_bindir}/pack200 pack200 %{jrebindir %%1}/pack200 \\
ee473e
  --slave %{_bindir}/rmid rmid %{jrebindir %%1}/rmid \\
ee473e
  --slave %{_bindir}/rmiregistry rmiregistry %{jrebindir %%1}/rmiregistry \\
ee473e
  --slave %{_bindir}/servertool servertool %{jrebindir %%1}/servertool \\
ee473e
  --slave %{_bindir}/tnameserv tnameserv %{jrebindir %%1}/tnameserv \\
8ba7a7
  --slave %{_bindir}/policytool policytool %{jrebindir %%1}/policytool \\
ee473e
  --slave %{_bindir}/unpack200 unpack200 %{jrebindir %%1}/unpack200 \\
ee473e
  --slave %{_mandir}/man1/java.1$ext java.1$ext \\
ee473e
  %{_mandir}/man1/java-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/jjs.1$ext jjs.1$ext \\
ee473e
  %{_mandir}/man1/jjs-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/keytool.1$ext keytool.1$ext \\
ee473e
  %{_mandir}/man1/keytool-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/orbd.1$ext orbd.1$ext \\
ee473e
  %{_mandir}/man1/orbd-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/pack200.1$ext pack200.1$ext \\
ee473e
  %{_mandir}/man1/pack200-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/rmid.1$ext rmid.1$ext \\
ee473e
  %{_mandir}/man1/rmid-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/rmiregistry.1$ext rmiregistry.1$ext \\
ee473e
  %{_mandir}/man1/rmiregistry-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/servertool.1$ext servertool.1$ext \\
ee473e
  %{_mandir}/man1/servertool-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/tnameserv.1$ext tnameserv.1$ext \\
ee473e
  %{_mandir}/man1/tnameserv-%{uniquesuffix %%1}.1$ext \\
8ba7a7
  --slave %{_mandir}/man1/policytool.1$ext policytool.1$ext \\
8ba7a7
  %{_mandir}/man1/policytool-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/unpack200.1$ext unpack200.1$ext \\
ee473e
  %{_mandir}/man1/unpack200-%{uniquesuffix %%1}.1$ext
ee473e
ee473e
for X in %{origin} %{javaver} ; do
ee473e
  alternatives \\
ee473e
    --install %{_jvmdir}/jre-"$X" \\
2b939e
    jre_"$X" %{_jvmdir}/%{jredir %%1} $PRIORITY  --family %{name}.%{_arch} \\
ee473e
    --slave %{_jvmjardir}/jre-"$X" \\
ee473e
    jre_"$X"_exports %{_jvmdir}/%{jredir %%1}
ee473e
done
ee473e
2b939e
update-alternatives --install %{_jvmdir}/jre-%{javaver}-%{origin} jre_%{javaver}_%{origin} %{_jvmdir}/%{jrelnk %%1} $PRIORITY  --family %{name}.%{_arch} \\
ee473e
--slave %{_jvmjardir}/jre-%{javaver}       jre_%{javaver}_%{origin}_exports      %{jvmjardir %%1}
ee473e
ee473e
update-desktop-database %{_datadir}/applications &> /dev/null || :
ee473e
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
ee473e
exit 0
ee473e
}
ee473e
ee473e
%global postun_script() %{expand:
ee473e
update-desktop-database %{_datadir}/applications &> /dev/null || :
ee473e
if [ $1 -eq 0 ] ; then
ee473e
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
ee473e
    %{update_desktop_icons}
ee473e
fi
ee473e
exit 0
ee473e
}
ee473e
ee473e
ee473e
%global postun_headless() %{expand:
ee473e
  alternatives --remove java %{jrebindir %%1}/java
ee473e
  alternatives --remove jre_%{origin} %{_jvmdir}/%{jredir %%1}
ee473e
  alternatives --remove jre_%{javaver} %{_jvmdir}/%{jredir %%1}
ee473e
  alternatives --remove jre_%{javaver}_%{origin} %{_jvmdir}/%{jrelnk %%1}
ee473e
}
ee473e
ee473e
%global posttrans_script() %{expand:
ee473e
%{update_desktop_icons}
ee473e
}
ee473e
ee473e
%global post_devel() %{expand:
8ba7a7
8ba7a7
PRIORITY=%{priority}
8ba7a7
if [ "%1" == %{debug_suffix} ]; then
8ba7a7
  let PRIORITY=PRIORITY-1
8ba7a7
fi
8ba7a7
ee473e
ext=.gz
ee473e
alternatives \\
2b939e
  --install %{_bindir}/javac javac %{sdkbindir %%1}/javac $PRIORITY  --family %{name}.%{_arch} \\
ee473e
  --slave %{_jvmdir}/java java_sdk %{_jvmdir}/%{sdkdir %%1} \\
ee473e
  --slave %{_jvmjardir}/java java_sdk_exports %{_jvmjardir}/%{sdkdir %%1} \\
ee473e
  --slave %{_bindir}/appletviewer appletviewer %{sdkbindir %%1}/appletviewer \\
ee473e
  --slave %{_bindir}/extcheck extcheck %{sdkbindir %%1}/extcheck \\
ee473e
  --slave %{_bindir}/idlj idlj %{sdkbindir %%1}/idlj \\
ee473e
  --slave %{_bindir}/jar jar %{sdkbindir %%1}/jar \\
ee473e
  --slave %{_bindir}/jarsigner jarsigner %{sdkbindir %%1}/jarsigner \\
ee473e
  --slave %{_bindir}/javadoc javadoc %{sdkbindir %%1}/javadoc \\
ee473e
  --slave %{_bindir}/javah javah %{sdkbindir %%1}/javah \\
ee473e
  --slave %{_bindir}/javap javap %{sdkbindir %%1}/javap \\
ee473e
  --slave %{_bindir}/jcmd jcmd %{sdkbindir %%1}/jcmd \\
ee473e
  --slave %{_bindir}/jconsole jconsole %{sdkbindir %%1}/jconsole \\
ee473e
  --slave %{_bindir}/jdb jdb %{sdkbindir %%1}/jdb \\
ee473e
  --slave %{_bindir}/jdeps jdeps %{sdkbindir %%1}/jdeps \\
ee473e
  --slave %{_bindir}/jhat jhat %{sdkbindir %%1}/jhat \\
ee473e
  --slave %{_bindir}/jinfo jinfo %{sdkbindir %%1}/jinfo \\
ee473e
  --slave %{_bindir}/jmap jmap %{sdkbindir %%1}/jmap \\
ee473e
  --slave %{_bindir}/jps jps %{sdkbindir %%1}/jps \\
ee473e
  --slave %{_bindir}/jrunscript jrunscript %{sdkbindir %%1}/jrunscript \\
ee473e
  --slave %{_bindir}/jsadebugd jsadebugd %{sdkbindir %%1}/jsadebugd \\
ee473e
  --slave %{_bindir}/jstack jstack %{sdkbindir %%1}/jstack \\
ee473e
  --slave %{_bindir}/jstat jstat %{sdkbindir %%1}/jstat \\
ee473e
  --slave %{_bindir}/jstatd jstatd %{sdkbindir %%1}/jstatd \\
ee473e
  --slave %{_bindir}/native2ascii native2ascii %{sdkbindir %%1}/native2ascii \\
ee473e
  --slave %{_bindir}/rmic rmic %{sdkbindir %%1}/rmic \\
ee473e
  --slave %{_bindir}/schemagen schemagen %{sdkbindir %%1}/schemagen \\
ee473e
  --slave %{_bindir}/serialver serialver %{sdkbindir %%1}/serialver \\
ee473e
  --slave %{_bindir}/wsgen wsgen %{sdkbindir %%1}/wsgen \\
ee473e
  --slave %{_bindir}/wsimport wsimport %{sdkbindir %%1}/wsimport \\
ee473e
  --slave %{_bindir}/xjc xjc %{sdkbindir %%1}/xjc \\
ee473e
  --slave %{_mandir}/man1/appletviewer.1$ext appletviewer.1$ext \\
ee473e
  %{_mandir}/man1/appletviewer-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/extcheck.1$ext extcheck.1$ext \\
ee473e
  %{_mandir}/man1/extcheck-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/idlj.1$ext idlj.1$ext \\
ee473e
  %{_mandir}/man1/idlj-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/jar.1$ext jar.1$ext \\
ee473e
  %{_mandir}/man1/jar-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/jarsigner.1$ext jarsigner.1$ext \\
ee473e
  %{_mandir}/man1/jarsigner-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/javac.1$ext javac.1$ext \\
ee473e
  %{_mandir}/man1/javac-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/javadoc.1$ext javadoc.1$ext \\
ee473e
  %{_mandir}/man1/javadoc-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/javah.1$ext javah.1$ext \\
ee473e
  %{_mandir}/man1/javah-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/javap.1$ext javap.1$ext \\
ee473e
  %{_mandir}/man1/javap-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/jcmd.1$ext jcmd.1$ext \\
ee473e
  %{_mandir}/man1/jcmd-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/jconsole.1$ext jconsole.1$ext \\
ee473e
  %{_mandir}/man1/jconsole-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/jdb.1$ext jdb.1$ext \\
ee473e
  %{_mandir}/man1/jdb-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/jdeps.1$ext jdeps.1$ext \\
ee473e
  %{_mandir}/man1/jdeps-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/jhat.1$ext jhat.1$ext \\
ee473e
  %{_mandir}/man1/jhat-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/jinfo.1$ext jinfo.1$ext \\
ee473e
  %{_mandir}/man1/jinfo-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/jmap.1$ext jmap.1$ext \\
ee473e
  %{_mandir}/man1/jmap-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/jps.1$ext jps.1$ext \\
ee473e
  %{_mandir}/man1/jps-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/jrunscript.1$ext jrunscript.1$ext \\
ee473e
  %{_mandir}/man1/jrunscript-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/jsadebugd.1$ext jsadebugd.1$ext \\
ee473e
  %{_mandir}/man1/jsadebugd-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/jstack.1$ext jstack.1$ext \\
ee473e
  %{_mandir}/man1/jstack-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/jstat.1$ext jstat.1$ext \\
ee473e
  %{_mandir}/man1/jstat-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/jstatd.1$ext jstatd.1$ext \\
ee473e
  %{_mandir}/man1/jstatd-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/native2ascii.1$ext native2ascii.1$ext \\
ee473e
  %{_mandir}/man1/native2ascii-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/rmic.1$ext rmic.1$ext \\
ee473e
  %{_mandir}/man1/rmic-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/schemagen.1$ext schemagen.1$ext \\
ee473e
  %{_mandir}/man1/schemagen-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/serialver.1$ext serialver.1$ext \\
ee473e
  %{_mandir}/man1/serialver-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/wsgen.1$ext wsgen.1$ext \\
ee473e
  %{_mandir}/man1/wsgen-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/wsimport.1$ext wsimport.1$ext \\
ee473e
  %{_mandir}/man1/wsimport-%{uniquesuffix %%1}.1$ext \\
ee473e
  --slave %{_mandir}/man1/xjc.1$ext xjc.1$ext \\
ee473e
  %{_mandir}/man1/xjc-%{uniquesuffix %%1}.1$ext
ee473e
ee473e
for X in %{origin} %{javaver} ; do
ee473e
  alternatives \\
ee473e
    --install %{_jvmdir}/java-"$X" \\
2b939e
    java_sdk_"$X" %{_jvmdir}/%{sdkdir %%1} $PRIORITY  --family %{name}.%{_arch} \\
ee473e
    --slave %{_jvmjardir}/java-"$X" \\
ee473e
    java_sdk_"$X"_exports %{_jvmjardir}/%{sdkdir %%1}
ee473e
done
ee473e
2b939e
update-alternatives --install %{_jvmdir}/java-%{javaver}-%{origin} java_sdk_%{javaver}_%{origin} %{_jvmdir}/%{sdkdir %%1} $PRIORITY  --family %{name}.%{_arch} \\
ee473e
--slave %{_jvmjardir}/java-%{javaver}-%{origin}       java_sdk_%{javaver}_%{origin}_exports      %{_jvmjardir}/%{sdkdir %%1}
ee473e
ee473e
update-desktop-database %{_datadir}/applications &> /dev/null || :
ee473e
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
ee473e
ee473e
exit 0
ee473e
}
ee473e
ee473e
%global postun_devel() %{expand:
ee473e
  alternatives --remove javac %{sdkbindir %%1}/javac
ee473e
  alternatives --remove java_sdk_%{origin} %{_jvmdir}/%{sdkdir %%1}
ee473e
  alternatives --remove java_sdk_%{javaver} %{_jvmdir}/%{sdkdir %%1}
ee473e
  alternatives --remove java_sdk_%{javaver}_%{origin} %{_jvmdir}/%{sdkdir %%1}
ee473e
ee473e
update-desktop-database %{_datadir}/applications &> /dev/null || :
ee473e
ee473e
if [ $1 -eq 0 ] ; then
ee473e
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
ee473e
    %{update_desktop_icons}
ee473e
fi
ee473e
exit 0
ee473e
}
ee473e
ee473e
%global posttrans_devel() %{expand:
ee473e
%{update_desktop_icons}
ee473e
}
ee473e
ee473e
%global post_javadoc() %{expand:
8ba7a7
8ba7a7
PRIORITY=%{priority}
8ba7a7
if [ "%1" == %{debug_suffix} ]; then
8ba7a7
  let PRIORITY=PRIORITY-1
8ba7a7
fi
8ba7a7
ee473e
alternatives \\
ee473e
  --install %{_javadocdir}/java javadocdir %{_javadocdir}/%{uniquejavadocdir %%1}/api \\
2b939e
  $PRIORITY  --family %{name}
ee473e
exit 0
ee473e
}
ee473e
ee473e
%global postun_javadoc() %{expand:
ee473e
  alternatives --remove javadocdir %{_javadocdir}/%{uniquejavadocdir %%1}/api
ee473e
exit 0
ee473e
}
ee473e
2b939e
%global post_javadoc_zip() %{expand:
2b939e
2b939e
PRIORITY=%{priority}
2b939e
if [ "%1" == %{debug_suffix} ]; then
2b939e
  let PRIORITY=PRIORITY-1
2b939e
fi
2b939e
2b939e
alternatives \\
2b939e
  --install %{_javadocdir}/java-zip javadoczip %{_javadocdir}/%{uniquejavadocdir %%1}.zip \\
2b939e
  $PRIORITY  --family %{name}
2b939e
exit 0
2b939e
}
2b939e
2b939e
%global postun_javadoc_zip() %{expand:
2b939e
  alternatives --remove javadoczip %{_javadocdir}/%{uniquejavadocdir %%1}.zip
2b939e
exit 0
2b939e
}
2b939e
ee473e
%global files_jre() %{expand:
ee473e
%{_datadir}/icons/hicolor/*x*/apps/java-%{javaver}.png
ee473e
%{_datadir}/applications/*policytool%1.desktop
ee473e
}
ee473e
ee473e
ee473e
%global files_jre_headless() %{expand:
ee473e
%defattr(-,root,root,-)
ee473e
%doc %{buildoutputdir %%1}/images/%{j2sdkimage}/jre/ASSEMBLY_EXCEPTION
ee473e
%doc %{buildoutputdir %%1}/images/%{j2sdkimage}/jre/LICENSE
ee473e
%doc %{buildoutputdir %%1}/images/%{j2sdkimage}/jre/THIRD_PARTY_README
ee473e
%dir %{_jvmdir}/%{sdkdir %%1}
ee473e
%{_jvmdir}/%{jrelnk %%1}
ee473e
%{_jvmjardir}/%{jrelnk %%1}
ee473e
%{_jvmprivdir}/*
ee473e
%{jvmjardir %%1}
ee473e
%dir %{_jvmdir}/%{jredir %%1}/lib/security
ee473e
%{_jvmdir}/%{jredir %%1}/lib/security/cacerts
ee473e
%config(noreplace) %{_jvmdir}/%{jredir %%1}/lib/security/US_export_policy.jar
ee473e
%config(noreplace) %{_jvmdir}/%{jredir %%1}/lib/security/local_policy.jar
ee473e
%config(noreplace) %{_jvmdir}/%{jredir %%1}/lib/security/java.policy
ee473e
%config(noreplace) %{_jvmdir}/%{jredir %%1}/lib/security/java.security
ee473e
%config(noreplace) %{_jvmdir}/%{jredir %%1}/lib/security/blacklisted.certs
ee473e
%config(noreplace) %{_jvmdir}/%{jredir %%1}/lib/logging.properties
ee473e
%{_mandir}/man1/java-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/jjs-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/keytool-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/orbd-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/pack200-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/rmid-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/rmiregistry-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/servertool-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/tnameserv-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/unpack200-%{uniquesuffix %%1}.1*
8ba7a7
%{_mandir}/man1/policytool-%{uniquesuffix %%1}.1*
ee473e
%config(noreplace) %{_jvmdir}/%{jredir %%1}/lib/security/nss.cfg
ee473e
%ifarch %{jit_arches}
ee473e
%ifnarch %{power64}
ee473e
%attr(664, root, root) %ghost %{_jvmdir}/%{jredir %%1}/lib/%{archinstall}/server/classes.jsa
ee473e
%attr(664, root, root) %ghost %{_jvmdir}/%{jredir %%1}/lib/%{archinstall}/client/classes.jsa
ee473e
%endif
ee473e
%endif
ee473e
%{_jvmdir}/%{jredir %%1}/lib/%{archinstall}/server/
ee473e
%{_jvmdir}/%{jredir %%1}/lib/%{archinstall}/client/
ee473e
}
ee473e
ee473e
%global files_devel() %{expand:
ee473e
%defattr(-,root,root,-)
ee473e
%doc %{buildoutputdir %%1}/images/%{j2sdkimage}/ASSEMBLY_EXCEPTION
ee473e
%doc %{buildoutputdir %%1}/images/%{j2sdkimage}/LICENSE
ee473e
%doc %{buildoutputdir %%1}/images/%{j2sdkimage}/THIRD_PARTY_README
ee473e
%dir %{_jvmdir}/%{sdkdir %%1}/bin
ee473e
%dir %{_jvmdir}/%{sdkdir %%1}/include
ee473e
%dir %{_jvmdir}/%{sdkdir %%1}/lib
ee473e
%{_jvmdir}/%{sdkdir %%1}/bin/*
ee473e
%{_jvmdir}/%{sdkdir %%1}/include/*
ee473e
%{_jvmdir}/%{sdkdir %%1}/lib/*
ee473e
%{_jvmjardir}/%{sdkdir %%1}
ee473e
%{_datadir}/applications/*jconsole%1.desktop
ee473e
%{_mandir}/man1/appletviewer-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/extcheck-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/idlj-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/jar-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/jarsigner-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/javac-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/javadoc-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/javah-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/javap-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/jconsole-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/jcmd-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/jdb-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/jdeps-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/jhat-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/jinfo-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/jmap-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/jps-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/jrunscript-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/jsadebugd-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/jstack-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/jstat-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/jstatd-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/native2ascii-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/rmic-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/schemagen-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/serialver-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/wsgen-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/wsimport-%{uniquesuffix %%1}.1*
ee473e
%{_mandir}/man1/xjc-%{uniquesuffix %%1}.1*
ee473e
%if %{with_systemtap}
ee473e
%dir %{tapsetroot}
ee473e
%dir %{tapsetdir}
ee473e
%{tapsetdir}/*%{version}-%{release}.%{_arch}%1.stp
ee473e
%dir %{_jvmdir}/%{sdkdir %%1}/tapset
ee473e
%{_jvmdir}/%{sdkdir %%1}/tapset/*.stp
ee473e
%endif
ee473e
}
ee473e
ee473e
%global files_demo() %{expand:
ee473e
%defattr(-,root,root,-)
ee473e
%doc %{buildoutputdir %%1}/images/%{j2sdkimage}/jre/LICENSE
ee473e
}
ee473e
ee473e
%global files_src() %{expand:
ee473e
%defattr(-,root,root,-)
ee473e
%doc README.src
ee473e
%{_jvmdir}/%{sdkdir %%1}/src.zip
ee473e
}
ee473e
ee473e
%global files_javadoc() %{expand:
ee473e
%defattr(-,root,root,-)
ee473e
%doc %{_javadocdir}/%{uniquejavadocdir %%1}
ee473e
%doc %{buildoutputdir %%1}/images/%{j2sdkimage}/jre/LICENSE
ee473e
}
ee473e
2b939e
%global files_javadoc_zip() %{expand:
2b939e
%defattr(-,root,root,-)
2b939e
%doc %{_javadocdir}/%{uniquejavadocdir %%1}.zip
2b939e
%doc %{buildoutputdir %%1}/images/%{j2sdkimage}/jre/LICENSE
2b939e
}
2b939e
ee473e
%global files_accessibility() %{expand:
ee473e
%{_jvmdir}/%{jredir %%1}/lib/%{archinstall}/libatk-wrapper.so
ee473e
%{_jvmdir}/%{jredir %%1}/lib/ext/java-atk-wrapper.jar
ee473e
%{_jvmdir}/%{jredir %%1}/lib/accessibility.properties
ee473e
}
ee473e
ee473e
# not-duplicated requires/provides/obsolate for normal/debug packages
ee473e
%global java_rpo() %{expand:
2b939e
Requires: fontconfig%{?_isa}
ee473e
Requires: xorg-x11-fonts-Type1
ee473e
ee473e
# Requires rest of java
ee473e
Requires: %{name}-headless%1 = %{epoch}:%{version}-%{release}
ee473e
OrderWithRequires: %{name}-headless%1 = %{epoch}:%{version}-%{release}
ee473e
ee473e
ee473e
# Standard JPackage base provides.
ee473e
Provides: jre-%{javaver}-%{origin}%1 = %{epoch}:%{version}-%{release}
ee473e
Provides: jre-%{origin}%1 = %{epoch}:%{version}-%{release}
ee473e
Provides: jre-%{javaver}%1 = %{epoch}:%{version}-%{release}
ee473e
Provides: java-%{javaver}%1 = %{epoch}:%{version}-%{release}
ee473e
Provides: jre = %{javaver}%1
ee473e
Provides: java-%{origin}%1 = %{epoch}:%{version}-%{release}
ee473e
Provides: java%1 = %{epoch}:%{javaver}
ee473e
# Standard JPackage extensions provides.
ee473e
Provides: java-fonts%1 = %{epoch}:%{version}
ee473e
ee473e
#Obsoletes: java-1.7.0-openjdk%1
ee473e
Obsoletes: java-1.5.0-gcj%1
ee473e
Obsoletes: sinjdoc
ee473e
}
ee473e
ee473e
%global java_headless_rpo() %{expand:
ee473e
# Require /etc/pki/java/cacerts.
ee473e
Requires: ca-certificates
ee473e
# Require jpackage-utils for ownership of /usr/lib/jvm/
ee473e
Requires: jpackage-utils
ee473e
# Require zoneinfo data provided by tzdata-java subpackage.
ee473e
Requires: tzdata-java >= 2015d
ee473e
# libsctp.so.1 is being `dlopen`ed on demand
2b939e
Requires: lksctp-tools%{?_isa}
2b939e
# there is a need to depend on the exact version of NSS
2b939e
Requires: nss%{?_isa} %{NSS_BUILDTIME_VERSION}
2b939e
Requires: nss-softokn%{?_isa} %{NSSSOFTOKN_BUILDTIME_VERSION}
2b939e
# tool to copy jdk's configs - should be Recommends only, but then only dnf/yum eforce it, not rpm transaction and so no configs are persisted when pure rpm -u is run. I t may be consiedered as regression
2b939e
Requires:	copy-jdk-configs >= 1.1-3
2b939e
OrderWithRequires: copy-jdk-configs
ee473e
# Post requires alternatives to install tool alternatives.
ee473e
Requires(post):   %{_sbindir}/alternatives
2b939e
# in version 1.7 and higher for --family switch
2b939e
Requires(post):   chkconfig >= 1.7
ee473e
# Postun requires alternatives to uninstall tool alternatives.
ee473e
Requires(postun): %{_sbindir}/alternatives
2b939e
# in version 1.7 and higher for --family switch
2b939e
Requires(postun):   chkconfig >= 1.7
ee473e
ee473e
# Standard JPackage base provides.
ee473e
Provides: jre-%{javaver}-%{origin}-headless%1 = %{epoch}:%{version}-%{release}
ee473e
Provides: jre-%{origin}-headless%1 = %{epoch}:%{version}-%{release}
ee473e
Provides: jre-%{javaver}-headless%1 = %{epoch}:%{version}-%{release}
ee473e
Provides: java-%{javaver}-headless%1 = %{epoch}:%{version}-%{release}
ee473e
Provides: jre-headless%1 = %{epoch}:%{javaver}
ee473e
Provides: java-%{origin}-headless%1 = %{epoch}:%{version}-%{release}
ee473e
Provides: java-headless%1 = %{epoch}:%{javaver}
ee473e
# Standard JPackage extensions provides.
ee473e
Provides: jndi%1 = %{epoch}:%{version}
ee473e
Provides: jndi-ldap%1 = %{epoch}:%{version}
ee473e
Provides: jndi-cos%1 = %{epoch}:%{version}
ee473e
Provides: jndi-rmi%1 = %{epoch}:%{version}
ee473e
Provides: jndi-dns%1 = %{epoch}:%{version}
ee473e
Provides: jaas%1 = %{epoch}:%{version}
ee473e
Provides: jsse%1 = %{epoch}:%{version}
ee473e
Provides: jce%1 = %{epoch}:%{version}
ee473e
Provides: jdbc-stdext%1 = 4.1
ee473e
Provides: java-sasl%1 = %{epoch}:%{version}
ee473e
2b939e
#https://bugzilla.redhat.com/show_bug.cgi?id=1312019
2b939e
Provides: /usr/bin/jjs
2b939e
ee473e
#Obsoletes: java-1.7.0-openjdk-headless%1
ee473e
}
ee473e
ee473e
%global java_devel_rpo() %{expand:
ee473e
# Require base package.
ee473e
Requires:         %{name}%1 = %{epoch}:%{version}-%{release}
ee473e
OrderWithRequires: %{name}-headless%1 = %{epoch}:%{version}-%{release}
ee473e
# Post requires alternatives to install tool alternatives.
ee473e
Requires(post):   %{_sbindir}/alternatives
2b939e
# in version 1.7 and higher for --family switch
2b939e
Requires(post):   chkconfig >= 1.7
ee473e
# Postun requires alternatives to uninstall tool alternatives.
ee473e
Requires(postun): %{_sbindir}/alternatives
2b939e
# in version 1.7 and higher for --family switch
2b939e
Requires(postun):   chkconfig >= 1.7
ee473e
ee473e
# Standard JPackage devel provides.
2b939e
Provides: java-sdk-%{javaver}-%{origin}%1 = %{epoch}:%{version}
2b939e
Provides: java-sdk-%{javaver}%1 = %{epoch}:%{version}
2b939e
Provides: java-sdk-%{origin}%1 = %{epoch}:%{version}
2b939e
Provides: java-sdk%1 = %{epoch}:%{javaver}
2b939e
Provides: java-%{javaver}-devel%1 = %{epoch}:%{version}
2b939e
Provides: java-devel-%{origin}%1 = %{epoch}:%{version}
2b939e
Provides: java-devel%1 = %{epoch}:%{javaver}
ee473e
ee473e
#Obsoletes: java-1.7.0-openjdk-devel%1
ee473e
#Obsoletes: java-1.5.0-gcj-devel%1
ee473e
}
ee473e
ee473e
ee473e
%global java_demo_rpo() %{expand:
ee473e
Requires: %{name}%1 = %{epoch}:%{version}-%{release}
ee473e
OrderWithRequires: %{name}-headless%1 = %{epoch}:%{version}-%{release}
ee473e
ee473e
#Obsoletes: java-1.7.0-openjdk-demo%1
ee473e
}
ee473e
ee473e
%global java_javadoc_rpo() %{expand:
ee473e
OrderWithRequires: %{name}-headless%1 = %{epoch}:%{version}-%{release}
ee473e
# Post requires alternatives to install javadoc alternative.
ee473e
Requires(post):   %{_sbindir}/alternatives
2b939e
# in version 1.7 and higher for --family switch
2b939e
Requires(post):   chkconfig >= 1.7
ee473e
# Postun requires alternatives to uninstall javadoc alternative.
ee473e
Requires(postun): %{_sbindir}/alternatives
2b939e
# in version 1.7 and higher for --family switch
2b939e
Requires(postun):   chkconfig >= 1.7
ee473e
ee473e
# Standard JPackage javadoc provides.
ee473e
Provides: java-javadoc%1 = %{epoch}:%{version}-%{release}
ee473e
Provides: java-%{javaver}-javadoc%1 = %{epoch}:%{version}-%{release}
ee473e
ee473e
#Obsoletes: java-1.7.0-openjdk-javadoc%1
ee473e
ee473e
}
ee473e
ee473e
%global java_src_rpo() %{expand:
ee473e
Requires: %{name}-headless%1 = %{epoch}:%{version}-%{release}
ee473e
ee473e
#Obsoletes: java-1.7.0-openjdk-src%1
ee473e
}
ee473e
ee473e
%global java_accessibility_rpo() %{expand:
ee473e
Requires: java-atk-wrapper
ee473e
Requires: %{name}%1 = %{epoch}:%{version}-%{release}
ee473e
OrderWithRequires: %{name}-headless%1 = %{epoch}:%{version}-%{release}
ee473e
ee473e
#Obsoletes: java-1.7.0-openjdk-accessibility%1
ee473e
}
ee473e
9bf359
# Prevent brp-java-repack-jars from being run.
9bf359
%global __jar_repack 0
9bf359
9bf359
Name:    java-%{javaver}-%{origin}
9bf359
Version: %{javaver}.%{updatever}
c4ba7e
Release: 0.%{buildver}%{?dist}
9bf359
# java-1.5.0-ibm from jpackage.org set Epoch to 1 for unknown reasons,
9bf359
# and this change was brought into RHEL-4.  java-1.5.0-ibm packages
9bf359
# also included the epoch in their virtual provides.  This created a
9bf359
# situation where in-the-wild java-1.5.0-ibm packages provided "java =
9bf359
# 1:1.5.0".  In RPM terms, "1.6.0 < 1:1.5.0" since 1.6.0 is
9bf359
# interpreted as 0:1.6.0.  So the "java >= 1.6.0" requirement would be
9bf359
# satisfied by the 1:1.5.0 packages.  Thus we need to set the epoch in
9bf359
# JDK package >= 1.6.0 to 1, and packages referring to JDK virtual
9bf359
# provides >= 1.6.0 must specify the epoch, "java >= 1:1.6.0".
9bf359
9bf359
Epoch:   1
9bf359
Summary: OpenJDK Runtime Environment
9bf359
Group:   Development/Languages
9bf359
9bf359
License:  ASL 1.1 and ASL 2.0 and GPL+ and GPLv2 and GPLv2 with exceptions and LGPL+ and LGPLv2 and MPLv1.0 and MPLv1.1 and Public Domain and W3C
9bf359
URL:      http://openjdk.java.net/
9bf359
8ba7a7
# aarch64-port now contains integration forest of both aarch64 and normal jdk
8ba7a7
# Source from upstream OpenJDK8 project. To regenerate, use
c4ba7e
# VERSION=aarch64-jdk8u121-b13 FILE_NAME_ROOT=aarch64-port-jdk8u-${VERSION}
8ba7a7
# REPO_ROOT=<path to checked-out repository> generate_source_tarball.sh
b8989a
# where the source is obtained from http://hg.openjdk.java.net/%%{project}/%%{repo}
b8989a
Source0: %{project}-%{repo}-%{revision}.tar.xz
9bf359
9bf359
# Custom README for -src subpackage
9bf359
Source2:  README.src
9bf359
9bf359
# Use 'generate_tarballs.sh' to generate the following tarballs
9bf359
# They are based on code contained in the IcedTea7 project.
9bf359
9bf359
# Systemtap tapsets. Zipped up to keep it small.
05234b
Source8: systemtap-tapset-3.1.0.tar.xz
9bf359
9bf359
# Desktop files. Adapated from IcedTea.
9bf359
Source9: jconsole.desktop.in
9bf359
Source10: policytool.desktop.in
9bf359
9bf359
# nss configuration file
9bf359
Source11: nss.cfg
9bf359
9bf359
# Removed libraries that we link instead
d934b5
Source12: %{name}-remove-intree-libraries.sh
9bf359
9bf359
# Ensure we aren't using the limited crypto policy
9bf359
Source13: TestCryptoLevel.java
9bf359
2b939e
# Ensure ECDSA is working
2b939e
Source14: TestECDSA.java
2b939e
9e49de
Source20: repackReproduciblePolycies.sh
d934b5
9bf359
# New versions of config files with aarch64 support. This is not upstream yet.
9bf359
Source100: config.guess
9bf359
Source101: config.sub
9bf359
9bf359
# RPM/distribution specific patches
9bf359
8ba7a7
# Accessibility patches
9bf359
# Ignore AWTError when assistive technologies are loaded 
9bf359
Patch1:   %{name}-accessible-toolkit.patch
9bf359
# Restrict access to java-atk-wrapper classes
9bf359
Patch3: java-atk-wrapper-security.patch
9bf359
8ba7a7
# Upstreamable patches
8ba7a7
# PR2737: Allow multiple initialization of PKCS11 libraries
8ba7a7
Patch5: multiple-pkcs11-library-init.patch
8ba7a7
# PR2095, RH1163501: 2048-bit DH upper bound too small for Fedora infrastructure (sync with IcedTea 2.x)
8ba7a7
Patch504: rh1163501.patch
2b939e
# S4890063, PR2304, RH1214835: HPROF: default text truncated when using doe=n option
8ba7a7
Patch511: rh1214835.patch
8ba7a7
# Turn off strict overflow on IndicRearrangementProcessor{,2}.cpp following 8140543: Arrange font actions
8ba7a7
Patch512: no_strict_overflow.patch
2b939e
# Support for building the SunEC provider with the system NSS installation
2b939e
# PR1983: Support using the system installation of NSS with the SunEC provider
2b939e
# PR2127: SunEC provider crashes when built using system NSS
2b939e
# PR2815: Race condition in SunEC provider with system NSS
2b939e
# PR2899: Don't use WithSeed versions of NSS functions as they don't fully process the seed
2b939e
# PR2934: SunEC provider throwing KeyException with current NSS
2b939e
Patch513: pr1983-jdk.patch
2b939e
Patch514: pr1983-root.patch
2b939e
Patch515: pr2127.patch
2b939e
Patch516: pr2815.patch
2b939e
Patch517: pr2899.patch
2b939e
Patch518: pr2934.patch
2b939e
# S8150954, RH1176206, PR2866: Taking screenshots on x11 composite desktop produces wrong result
2b939e
# In progress: http://mail.openjdk.java.net/pipermail/awt-dev/2016-March/010742.html
2b939e
Patch508: rh1176206-jdk.patch
2b939e
Patch509: rh1176206-root.patch
2296bf
# RH1337583, PR2974: PKCS#10 certificate requests now use CRLF line endings rather than system line endings
2b939e
Patch523: pr2974-rh1337583.patch
05234b
# PR3083, RH1346460: Regression in SSL debug output without an ECC provider
05234b
Patch528: pr3083-rh1346460.patch
5338de
8ba7a7
# Arch-specific upstreamable patches
b8989a
# PR2415: JVM -Xmx requirement is too high on s390
9bf359
Patch100: %{name}-s390-java-opts.patch
9bf359
# Type fixing for s390
9bf359
Patch102: %{name}-size_t.patch
8ba7a7
# Use "%z" for size_t on s390 as size_t != intptr_t
8ba7a7
Patch103: s390-size_t_format_flags.patch
9bf359
8ba7a7
# Patches which need backporting to 8u
8ba7a7
# S8073139, RH1191652; fix name of ppc64le architecture
8ba7a7
Patch601: %{name}-rh1191652-root.patch
8ba7a7
Patch602: %{name}-rh1191652-jdk.patch
8ba7a7
Patch603: %{name}-rh1191652-hotspot-aarch64.patch
8ba7a7
# Include all sources in src.zip
8ba7a7
Patch7: include-all-srcs.patch
8ba7a7
# 8035341: Allow using a system installed libpng
9bf359
Patch202: system-libpng.patch
8ba7a7
# 8042159: Allow using a system-installed lcms2
9bf359
Patch203: system-lcms.patch
8ba7a7
# PR2462: Backport "8074839: Resolve disabled warnings for libunpack and the unpack200 binary"
8ba7a7
# This fixes printf warnings that lead to build failure with -Werror=format-security from optflags
b8989a
Patch502: pr2462.patch
2b939e
# S8148351, PR2842: Only display resolved symlink for compiler, do not change path
2b939e
Patch506: pr2842-01.patch
2b939e
Patch507: pr2842-02.patch
2b939e
# S8154313: Generated javadoc scattered all over the place
2b939e
Patch400: 8154313.patch
8f84c8
# S6260348, PR3066: GTK+ L&F JTextComponent not respecting desktop caret blink rate
8f84c8
Patch526: 6260348-pr3066.patch
2b939e
# S8162384, PR3122, RH1358661: Performance regression: bimorphic inlining may be bypassed by type speculation
2b939e
Patch532: 8162384-pr3122-rh1358661.patch
8f84c8
8ba7a7
# Patches ineligible for 8u
8ba7a7
# 8043805: Allow using a system-installed libjpeg
8ba7a7
Patch201: system-libjpeg.patch
c2cb23
8ba7a7
# Local fixes
2b939e
# PR1834, RH1022017: Reduce curves reported by SSL to those in NSS
2b939e
Patch525: pr1834-rh1022017.patch
0f5aa1
# RH1367357: lcms2: Out-of-bounds read in Type_MLU_Read()
0f5aa1
Patch533: rh1367357.patch
0f5aa1
# Turn on AssumeMP by default on RHEL systems
0f5aa1
Patch534: always_assumemp.patch
d934b5
8ba7a7
# Non-OpenJDK fixes
9bf359
9bf359
BuildRequires: autoconf
9bf359
BuildRequires: automake
9bf359
BuildRequires: alsa-lib-devel
9bf359
BuildRequires: binutils
9bf359
BuildRequires: cups-devel
9bf359
BuildRequires: desktop-file-utils
9bf359
BuildRequires: fontconfig
9bf359
BuildRequires: freetype-devel
9bf359
BuildRequires: giflib-devel
9bf359
BuildRequires: gcc-c++
9bf359
BuildRequires: gtk2-devel
9bf359
BuildRequires: lcms2-devel
9bf359
BuildRequires: libjpeg-devel
9bf359
BuildRequires: libpng-devel
9bf359
BuildRequires: libxslt
9bf359
BuildRequires: libX11-devel
9bf359
BuildRequires: libXi-devel
9bf359
BuildRequires: libXinerama-devel
9bf359
BuildRequires: libXt-devel
9bf359
BuildRequires: libXtst-devel
9bf359
# Requirements for setting up the nss.cfg
9bf359
BuildRequires: nss-devel
9bf359
BuildRequires: pkgconfig
9bf359
BuildRequires: xorg-x11-proto-devel
9bf359
BuildRequires: zip
c4ba7e
# Use OpenJDK 7 where available (on RHEL) to avoid
c4ba7e
# having to use the rhel-7.x-java-unsafe-candidate hack
c4ba7e
%if 0%{?rhel}
c4ba7e
BuildRequires: java-1.7.0-openjdk-devel
c4ba7e
%else
ee473e
BuildRequires: java-1.8.0-openjdk-devel
c4ba7e
%endif
9bf359
# Zero-assembler build requirement.
9bf359
%ifnarch %{jit_arches}
9bf359
BuildRequires: libffi-devel
9bf359
%endif
ee473e
BuildRequires: tzdata-java >= 2015d
2b939e
# Earlier versions have a bug in tree vectorization on PPC
2b939e
BuildRequires: gcc >= 4.8.3-8
2b939e
# Build requirements for SunEC system NSS support
2b939e
BuildRequires: nss-softokn-freebl-devel >= 3.16.1
9bf359
9bf359
# cacerts build requirement.
9bf359
BuildRequires: openssl
9bf359
%if %{with_systemtap}
9bf359
BuildRequires: systemtap-sdt-devel
9bf359
%endif
9bf359
ee473e
# this is built always, also during debug-only build
ee473e
# when it is built in debug-only, then this package is just placeholder
ee473e
%{java_rpo %{nil}}
9bf359
ee473e
%description
ee473e
The OpenJDK runtime environment.
9bf359
ee473e
%if %{include_debug_build}
ee473e
%package debug
ee473e
Summary: OpenJDK Runtime Environment %{debug_on}
ee473e
Group:   Development/Languages
9bf359
ee473e
%{java_rpo %{debug_suffix_unquoted}}
ee473e
%description debug
9bf359
The OpenJDK runtime environment.
ee473e
%{debug_warning}
ee473e
%endif
9bf359
ee473e
%if %{include_normal_build}
9bf359
%package headless
9bf359
Summary: OpenJDK Runtime Environment
9bf359
Group:   Development/Languages
9bf359
ee473e
%{java_headless_rpo %{nil}}
9bf359
9bf359
%description headless
9bf359
The OpenJDK runtime environment without audio and video support.
ee473e
%endif
ee473e
ee473e
%if %{include_debug_build}
ee473e
%package headless-debug
ee473e
Summary: OpenJDK Runtime Environment %{debug_on}
ee473e
Group:   Development/Languages
ee473e
ee473e
%{java_headless_rpo %{debug_suffix_unquoted}}
ee473e
ee473e
%description headless-debug
ee473e
The OpenJDK runtime environment without audio and video support.
ee473e
%{debug_warning}
ee473e
%endif
9bf359
ee473e
%if %{include_normal_build}
9bf359
%package devel
9bf359
Summary: OpenJDK Development Environment
9bf359
Group:   Development/Tools
9bf359
ee473e
%{java_devel_rpo %{nil}}
9bf359
ee473e
%description devel
ee473e
The OpenJDK development tools.
ee473e
%endif
9bf359
ee473e
%if %{include_debug_build}
ee473e
%package devel-debug
ee473e
Summary: OpenJDK Development Environment %{debug_on}
ee473e
Group:   Development/Tools
9e49de
ee473e
%{java_devel_rpo %{debug_suffix_unquoted}}
ee473e
ee473e
%description devel-debug
9bf359
The OpenJDK development tools.
ee473e
%{debug_warning}
ee473e
%endif
9bf359
ee473e
%if %{include_normal_build}
9bf359
%package demo
9bf359
Summary: OpenJDK Demos
9bf359
Group:   Development/Languages
9bf359
ee473e
%{java_demo_rpo %{nil}}
9bf359
9bf359
%description demo
9bf359
The OpenJDK demos.
ee473e
%endif
ee473e
ee473e
%if %{include_debug_build}
ee473e
%package demo-debug
ee473e
Summary: OpenJDK Demos %{debug_on}
ee473e
Group:   Development/Languages
ee473e
ee473e
%{java_demo_rpo %{debug_suffix_unquoted}}
ee473e
ee473e
%description demo-debug
ee473e
The OpenJDK demos.
ee473e
%{debug_warning}
ee473e
%endif
9bf359
ee473e
%if %{include_normal_build}
9bf359
%package src
9bf359
Summary: OpenJDK Source Bundle
9bf359
Group:   Development/Languages
9bf359
ee473e
%{java_src_rpo %{nil}}
9bf359
9bf359
%description src
9bf359
The OpenJDK source bundle.
ee473e
%endif
ee473e
ee473e
%if %{include_debug_build}
ee473e
%package src-debug
ee473e
Summary: OpenJDK Source Bundle %{for_debug}
ee473e
Group:   Development/Languages
ee473e
ee473e
%{java_src_rpo %{debug_suffix_unquoted}}
ee473e
ee473e
%description src-debug
ee473e
The OpenJDK source bundle %{for_debug}.
ee473e
%endif
9bf359
ee473e
%if %{include_normal_build}
9bf359
%package javadoc
9bf359
Summary: OpenJDK API Documentation
9bf359
Group:   Documentation
9bf359
Requires: jpackage-utils
9bf359
BuildArch: noarch
9bf359
ee473e
%{java_javadoc_rpo %{nil}}
9bf359
9bf359
%description javadoc
9bf359
The OpenJDK API documentation.
ee473e
%endif
ee473e
2b939e
%if %{include_normal_build}
2b939e
%package javadoc-zip
2b939e
Summary: OpenJDK API Documentation compressed in single archive
2b939e
Group:   Documentation
2b939e
Requires: javapackages-tools
2b939e
BuildArch: noarch
2b939e
2b939e
%{java_javadoc_rpo %{nil}}
2b939e
2b939e
%description javadoc-zip
2b939e
The OpenJDK API documentation compressed in single archive.
2b939e
%endif
2b939e
ee473e
%if %{include_debug_build}
ee473e
%package javadoc-debug
ee473e
Summary: OpenJDK API Documentation %{for_debug}
ee473e
Group:   Documentation
ee473e
Requires: jpackage-utils
ee473e
BuildArch: noarch
9bf359
ee473e
%{java_javadoc_rpo %{debug_suffix_unquoted}}
ee473e
ee473e
%description javadoc-debug
ee473e
The OpenJDK API documentation %{for_debug}.
ee473e
%endif
ee473e
2b939e
%if %{include_debug_build}
2b939e
%package javadoc-zip-debug
2b939e
Summary: OpenJDK API Documentation compressed in single archive %{for_debug}
2b939e
Group:   Documentation
2b939e
Requires: javapackages-tools
2b939e
BuildArch: noarch
2b939e
2b939e
%{java_javadoc_rpo %{debug_suffix_unquoted}}
2b939e
2b939e
%description javadoc-zip-debug
2b939e
The OpenJDK API documentation compressed in single archive %{for_debug}.
2b939e
%endif
2b939e
2b939e
ee473e
%if %{include_normal_build}
9bf359
%package accessibility
9bf359
Summary: OpenJDK accessibility connector
ee473e
ee473e
%{java_accessibility_rpo %{nil}}
9bf359
9bf359
%description accessibility
9bf359
Enables accessibility support in OpenJDK by using java-atk-wrapper. This allows
9bf359
compatible at-spi2 based accessibility programs to work for AWT and Swing-based
9bf359
programs.
9bf359
9bf359
Please note, the java-atk-wrapper is still in beta, and OpenJDK itself is still
9bf359
being tuned to be working with accessibility features. There are known issues
9bf359
with accessibility on, so please do not install this package unless you really
9bf359
need to.
ee473e
%endif
ee473e
ee473e
%if %{include_debug_build}
ee473e
%package accessibility-debug
ee473e
Summary: OpenJDK accessibility connector %{for_debug}
ee473e
ee473e
%{java_accessibility_rpo %{debug_suffix_unquoted}}
9bf359
ee473e
%description accessibility-debug
ee473e
See normal java-%{version}-openjdk-accessibility description.
ee473e
%endif
9bf359
9bf359
%prep
ee473e
if [ %{include_normal_build} -eq 0 -o  %{include_normal_build} -eq 1 ] ; then
ee473e
  echo "include_normal_build is %{include_normal_build}"
ee473e
else
ee473e
  echo "include_normal_build is %{include_normal_build}, thats invalid. Use 1 for yes or 0 for no"
ee473e
  exit 11
ee473e
fi
ee473e
if [ %{include_debug_build} -eq 0 -o  %{include_debug_build} -eq 1 ] ; then
ee473e
  echo "include_debug_build is %{include_debug_build}"
ee473e
else
ee473e
  echo "include_debug_build is %{include_debug_build}, thats invalid. Use 1 for yes or 0 for no"
ee473e
  exit 12
ee473e
fi
ee473e
if [ %{include_debug_build} -eq 0 -a  %{include_normal_build} -eq 0 ] ; then
ee473e
  echo "you have disabled both include_debug_build and include_debug_build. no go."
ee473e
  exit 13
ee473e
fi
8ba7a7
%setup -q -c -n %{uniquesuffix ""} -T -a 0
9e49de
# https://bugzilla.redhat.com/show_bug.cgi?id=1189084
9e49de
prioritylength=`expr length %{priority}`
9e49de
if [ $prioritylength -ne 7 ] ; then
9e49de
 echo "priority must be 7 digits in total, violated"
9e49de
 exit 14
9e49de
fi
8ba7a7
# For old patches
5338de
ln -s openjdk jdk8
5338de
9bf359
cp %{SOURCE2} .
9bf359
9bf359
# replace outdated configure guess script
9bf359
#
9bf359
# the configure macro will do this too, but it also passes a few flags not
9bf359
# supported by openjdk configure script
c2cb23
cp %{SOURCE100} openjdk/common/autoconf/build-aux/
c2cb23
cp %{SOURCE101} openjdk/common/autoconf/build-aux/
9bf359
9bf359
# OpenJDK patches
9bf359
9bf359
# Remove libraries that are linked
9bf359
sh %{SOURCE12}
9bf359
9bf359
%patch201
9bf359
%patch202
9bf359
%patch203
5338de
9bf359
%patch1
9bf359
%patch3
9bf359
%patch5
9bf359
%patch7
9bf359
9bf359
# s390 build fixes
9bf359
%patch100
9bf359
%patch102
8ba7a7
%patch103
9bf359
8f84c8
# ppc64le fixes
8f84c8
f8968f
# Zero fixes.
f8968f
9e49de
%patch603
9e49de
%patch601
9e49de
%patch602
5338de
8ba7a7
%patch502
5338de
%patch504
2b939e
%patch506
2b939e
%patch507
2b939e
%patch508
2b939e
%patch509
5338de
%patch511
8ba7a7
%patch512
2b939e
%patch513
2b939e
%patch514
2b939e
%patch515
2b939e
%patch516
2b939e
%patch517
2b939e
%patch518
2b939e
%patch400
2296bf
%patch523
2b939e
%patch525
8f84c8
%patch526
05234b
%patch528
2b939e
%patch532
0f5aa1
%patch533
0f5aa1
0f5aa1
# RHEL-only patches
0f5aa1
%if 0%{?rhel}
0f5aa1
%patch534
0f5aa1
%endif
d934b5
9bf359
# Extract systemtap tapsets
9bf359
%if %{with_systemtap}
05234b
tar -x -I xz -f %{SOURCE8}
ee473e
%if %{include_debug_build}
ee473e
cp -r tapset tapset%{debug_suffix}
ee473e
%endif
9bf359
9bf359
ee473e
for suffix in %{build_loop} ; do
ee473e
  for file in "tapset"$suffix/*.in; do
9bf359
    OUTPUT_FILE=`echo $file | sed -e s:%{javaver}\.stp\.in$:%{version}-%{release}.%{_arch}.stp:g`
ee473e
    sed -e s:@ABS_SERVER_LIBJVM_SO@:%{_jvmdir}/%{sdkdir $suffix}/jre/lib/%{archinstall}/server/libjvm.so:g $file > $file.1
9bf359
# TODO find out which architectures other than i686 have a client vm
9bf359
%ifarch %{ix86}
ee473e
    sed -e s:@ABS_CLIENT_LIBJVM_SO@:%{_jvmdir}/%{sdkdir $suffix}/jre/lib/%{archinstall}/client/libjvm.so:g $file.1 > $OUTPUT_FILE
9bf359
%else
9bf359
    sed -e '/@ABS_CLIENT_LIBJVM_SO@/d' $file.1 > $OUTPUT_FILE
9bf359
%endif
ee473e
    sed -i -e s:@ABS_JAVA_HOME_DIR@:%{_jvmdir}/%{sdkdir $suffix}:g $OUTPUT_FILE
9bf359
    sed -i -e s:@INSTALL_ARCH_DIR@:%{archinstall}:g $OUTPUT_FILE
05234b
    sed -i -e s:@prefix@:%{_jvmdir}/%{sdkdir $suffix}/:g $OUTPUT_FILE
ee473e
  done
9bf359
done
9e49de
# systemtap tapsets ends
9bf359
%endif
9bf359
9bf359
# Prepare desktop files
ee473e
for suffix in %{build_loop} ; do
9bf359
for file in %{SOURCE9} %{SOURCE10} ; do
ee473e
    FILE=`basename $file | sed -e s:\.in$::g`
ee473e
    EXT="${FILE##*.}"
ee473e
    NAME="${FILE%.*}"
ee473e
    OUTPUT_FILE=$NAME$suffix.$EXT
ee473e
    sed -e s:#JAVA_HOME#:%{sdkbindir $suffix}:g $file > $OUTPUT_FILE
ee473e
    sed -i -e  s:#JRE_HOME#:%{jrebindir $suffix}:g $OUTPUT_FILE
ee473e
    sed -i -e  s:#ARCH#:%{version}-%{release}.%{_arch}$suffix:g $OUTPUT_FILE
ee473e
done
9bf359
done
9bf359
ab03fc
# this is check which controls, that latest java.security is included in post(_headless)
ab03fc
%{check_sum_presented_in_spec openjdk/jdk/src/share/lib/security/java.security-linux}
ab03fc
ab03fc
9bf359
%build
9bf359
# How many cpu's do we have?
8ba7a7
export NUM_PROC=%(/usr/bin/getconf _NPROCESSORS_ONLN 2> /dev/null || :)
9bf359
export NUM_PROC=${NUM_PROC:-1}
8ba7a7
%if 0%{?_smp_ncpus_max}
8ba7a7
# Honor %%_smp_ncpus_max
8ba7a7
[ ${NUM_PROC} -gt %{?_smp_ncpus_max} ] && export NUM_PROC=%{?_smp_ncpus_max}
8ba7a7
%endif
9bf359
9bf359
# Build IcedTea and OpenJDK.
9bf359
%ifarch s390x sparc64 alpha %{power64} %{aarch64}
9bf359
export ARCH_DATA_MODEL=64
9bf359
%endif
9bf359
%ifarch alpha
9bf359
export CFLAGS="$CFLAGS -mieee"
9bf359
%endif
9bf359
8ba7a7
# We use ourcppflags because the OpenJDK build seems to
2b939e
# pass EXTRA_CFLAGS to the HotSpot C++ compiler...
8ba7a7
EXTRA_CFLAGS="%ourcppflags"
2b939e
EXTRA_CPP_FLAGS="%ourcppflags"
9bf359
%ifarch %{power64} ppc
9bf359
# fix rpmlint warnings
9bf359
EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
9bf359
%endif
9bf359
export EXTRA_CFLAGS
9bf359
c2cb23
(cd openjdk/common/autoconf
9bf359
 bash ./autogen.sh
9bf359
)
9bf359
ee473e
for suffix in %{build_loop} ; do
ee473e
if [ "$suffix" = "%{debug_suffix}" ] ; then
ee473e
debugbuild=%{debugbuild_parameter}
ee473e
else
ee473e
debugbuild=%{normalbuild_parameter}
ee473e
fi
9bf359
ee473e
mkdir -p %{buildoutputdir $suffix}
ee473e
pushd %{buildoutputdir $suffix}
9bf359
2b939e
NSS_LIBS="%{NSS_LIBS} -lfreebl" \
2b939e
NSS_CFLAGS="%{NSS_CFLAGS}" \
9bf359
bash ../../configure \
9bf359
%ifnarch %{jit_arches}
9bf359
    --with-jvm-variants=zero \
9bf359
%endif
9bf359
    --disable-zip-debug-info \
9bf359
    --with-milestone="fcs" \
9bf359
    --with-update-version=%{updatever} \
9bf359
    --with-build-number=%{buildver} \
ee473e
    --with-boot-jdk=/usr/lib/jvm/java-openjdk \
ee473e
    --with-debug-level=$debugbuild \
9bf359
    --enable-unlimited-crypto \
2b939e
    --enable-system-nss \
9bf359
    --with-zlib=system \
9bf359
    --with-libjpeg=system \
9bf359
    --with-giflib=system \
9bf359
    --with-libpng=system \
a9a030
    --with-lcms=bundled \
9bf359
    --with-stdc++lib=dynamic \
9bf359
    --with-extra-cxxflags="$EXTRA_CPP_FLAGS" \
9bf359
    --with-extra-cflags="$EXTRA_CFLAGS" \
8ba7a7
    --with-extra-ldflags="%{ourldflags}" \
9bf359
    --with-num-cores="$NUM_PROC"
9bf359
d934b5
cat spec.gmk
d934b5
cat hotspot-spec.gmk
d934b5
9bf359
# The combination of FULL_DEBUG_SYMBOLS=0 and ALT_OBJCOPY=/does_not_exist
9bf359
# disables FDS for all build configs and reverts to pre-FDS make logic.
9bf359
# STRIP_POLICY=none says don't do any stripping. DEBUG_BINARIES=true says
9bf359
# ignore all the other logic about which debug options and just do '-g'.
9bf359
9bf359
make \
9bf359
    DEBUG_BINARIES=true \
9e49de
    JAVAC_FLAGS=-g \
9bf359
    STRIP_POLICY=no_strip \
9bf359
    POST_STRIP_CMD="" \
9bf359
    LOG=trace \
8ba7a7
    %{targets}
9bf359
2b939e
make zip-docs
2b939e
9bf359
# the build (erroneously) removes read permissions from some jars
9bf359
# this is a regression in OpenJDK 7 (our compiler):
9bf359
# http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1437
ee473e
find images/%{j2sdkimage} -iname '*.jar' -exec chmod ugo+r {} \;
ee473e
chmod ugo+r images/%{j2sdkimage}/lib/ct.sym
9bf359
9bf359
# remove redundant *diz and *debuginfo files
ee473e
find images/%{j2sdkimage} -iname '*.diz' -exec rm {} \;
ee473e
find images/%{j2sdkimage} -iname '*.debuginfo' -exec rm {} \;
9bf359
9bf359
popd >& /dev/null
9bf359
9bf359
# Install nss.cfg right away as we will be using the JRE above
ee473e
export JAVA_HOME=$(pwd)/%{buildoutputdir $suffix}/images/%{j2sdkimage}
9bf359
9bf359
# Install nss.cfg right away as we will be using the JRE above
9bf359
install -m 644 %{SOURCE11} $JAVA_HOME/jre/lib/security/
9bf359
ee473e
# Use system-wide tzdata
ee473e
rm $JAVA_HOME/jre/lib/tzdb.dat
ee473e
ln -s %{_datadir}/javazi-1.8/tzdb.dat $JAVA_HOME/jre/lib/tzdb.dat
9bf359
b8989a
#build cycles
b8989a
done
b8989a
b8989a
%check
b8989a
b8989a
# We test debug first as it will give better diagnostics on a crash
b8989a
for suffix in %{rev_build_loop} ; do
b8989a
b8989a
export JAVA_HOME=$(pwd)/%{buildoutputdir $suffix}/images/%{j2sdkimage}
b8989a
ab03fc
# check java.security in this build is also in this specfile
ab03fc
%{check_sum_presented_in_spec $JAVA_HOME/jre/lib/security/java.security}
ab03fc
9bf359
# Check unlimited policy has been used
9bf359
$JAVA_HOME/bin/javac -d . %{SOURCE13}
9bf359
$JAVA_HOME/bin/java TestCryptoLevel
9bf359
2b939e
# Check ECC is working
2b939e
$JAVA_HOME/bin/javac -d . %{SOURCE14}
2b939e
$JAVA_HOME/bin/java $(echo $(basename %{SOURCE14})|sed "s|\.java||")
2b939e
9bf359
# Check debug symbols are present and can identify code
9bf359
SERVER_JVM="$JAVA_HOME/jre/lib/%{archinstall}/server/libjvm.so"
9bf359
if [ -f "$SERVER_JVM" ] ; then
9bf359
  nm -aCl "$SERVER_JVM" | grep javaCalls.cpp
9bf359
fi
9bf359
CLIENT_JVM="$JAVA_HOME/jre/lib/%{archinstall}/client/libjvm.so"
9bf359
if [ -f "$CLIENT_JVM" ] ; then
9bf359
  nm -aCl "$CLIENT_JVM" | grep javaCalls.cpp
9bf359
fi
9bf359
ZERO_JVM="$JAVA_HOME/jre/lib/%{archinstall}/zero/libjvm.so"
9bf359
if [ -f "$ZERO_JVM" ] ; then
9bf359
  nm -aCl "$ZERO_JVM" | grep javaCalls.cpp
9bf359
fi
9bf359
9bf359
# Check src.zip has all sources. See RHBZ#1130490
ee473e
jar -tf $JAVA_HOME/src.zip | grep 'sun.misc.Unsafe'
ee473e
ee473e
# Check class files include useful debugging information
ee473e
$JAVA_HOME/bin/javap -l java.lang.Object | grep "Compiled from"
ee473e
$JAVA_HOME/bin/javap -l java.lang.Object | grep LineNumberTable
ee473e
$JAVA_HOME/bin/javap -l java.lang.Object | grep LocalVariableTable
ee473e
ee473e
# Check generated class files include useful debugging information
ee473e
$JAVA_HOME/bin/javap -l java.nio.ByteBuffer | grep "Compiled from"
ee473e
$JAVA_HOME/bin/javap -l java.nio.ByteBuffer | grep LineNumberTable
ee473e
$JAVA_HOME/bin/javap -l java.nio.ByteBuffer | grep LocalVariableTable
ee473e
done
9bf359
9bf359
%install
9bf359
rm -rf $RPM_BUILD_ROOT
9bf359
STRIP_KEEP_SYMTAB=libjvm*
9bf359
ee473e
for suffix in %{build_loop} ; do
ee473e
ee473e
pushd %{buildoutputdir  $suffix}/images/%{j2sdkimage}
9bf359
9bf359
#install jsa directories so we can owe them
ee473e
mkdir -p $RPM_BUILD_ROOT%{_jvmdir}/%{jredir $suffix}/lib/%{archinstall}/server/
ee473e
mkdir -p $RPM_BUILD_ROOT%{_jvmdir}/%{jredir $suffix}/lib/%{archinstall}/client/
9bf359
9bf359
  # Install main files.
ee473e
  install -d -m 755 $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir $suffix}
ee473e
  cp -a bin include lib src.zip $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir $suffix}
ee473e
  install -d -m 755 $RPM_BUILD_ROOT%{_jvmdir}/%{jredir $suffix}
ee473e
  cp -a jre/bin jre/lib $RPM_BUILD_ROOT%{_jvmdir}/%{jredir $suffix}
9bf359
9bf359
%if %{with_systemtap}
9bf359
  # Install systemtap support files.
ee473e
  install -dm 755 $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir $suffix}/tapset
ee473e
  # note, that uniquesuffix  is in BUILD dir in this case
ee473e
  cp -a $RPM_BUILD_DIR/%{uniquesuffix ""}/tapset$suffix/*.stp $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir $suffix}/tapset/
ee473e
  pushd  $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir $suffix}/tapset/
ee473e
   tapsetFiles=`ls *.stp`
ee473e
  popd
9bf359
  install -d -m 755 $RPM_BUILD_ROOT%{tapsetdir}
9bf359
  pushd $RPM_BUILD_ROOT%{tapsetdir}
ee473e
    RELATIVE=$(%{abs2rel} %{_jvmdir}/%{sdkdir $suffix}/tapset %{tapsetdir})
ee473e
    for name in $tapsetFiles ; do
ee473e
      targetName=`echo $name | sed "s/.stp/$suffix.stp/"`
ee473e
      ln -sf $RELATIVE/$name $targetName
ee473e
    done
9bf359
  popd
9bf359
%endif
9bf359
9bf359
  # Install cacerts symlink.
ee473e
  rm -f $RPM_BUILD_ROOT%{_jvmdir}/%{jredir $suffix}/lib/security/cacerts
ee473e
  pushd $RPM_BUILD_ROOT%{_jvmdir}/%{jredir $suffix}/lib/security
9bf359
    RELATIVE=$(%{abs2rel} %{_sysconfdir}/pki/java \
ee473e
      %{_jvmdir}/%{jredir $suffix}/lib/security)
9bf359
    ln -sf $RELATIVE/cacerts .
9bf359
  popd
9bf359
9bf359
  # Install extension symlinks.
ee473e
  install -d -m 755 $RPM_BUILD_ROOT%{jvmjardir $suffix}
ee473e
  pushd $RPM_BUILD_ROOT%{jvmjardir $suffix}
ee473e
    RELATIVE=$(%{abs2rel} %{_jvmdir}/%{jredir $suffix}/lib %{jvmjardir $suffix})
9bf359
    ln -sf $RELATIVE/jsse.jar jsse-%{version}.jar
9bf359
    ln -sf $RELATIVE/jce.jar jce-%{version}.jar
9bf359
    ln -sf $RELATIVE/rt.jar jndi-%{version}.jar
9bf359
    ln -sf $RELATIVE/rt.jar jndi-ldap-%{version}.jar
9bf359
    ln -sf $RELATIVE/rt.jar jndi-cos-%{version}.jar
9bf359
    ln -sf $RELATIVE/rt.jar jndi-rmi-%{version}.jar
9bf359
    ln -sf $RELATIVE/rt.jar jaas-%{version}.jar
9bf359
    ln -sf $RELATIVE/rt.jar jdbc-stdext-%{version}.jar
9bf359
    ln -sf jdbc-stdext-%{version}.jar jdbc-stdext-3.0.jar
9bf359
    ln -sf $RELATIVE/rt.jar sasl-%{version}.jar
9bf359
    for jar in *-%{version}.jar
9bf359
    do
9bf359
      if [ x%{version} != x%{javaver} ]
9bf359
      then
9bf359
        ln -sf $jar $(echo $jar | sed "s|-%{version}.jar|-%{javaver}.jar|g")
9bf359
      fi
9bf359
      ln -sf $jar $(echo $jar | sed "s|-%{version}.jar|.jar|g")
9bf359
    done
9bf359
  popd
9bf359
9bf359
  # Install JCE policy symlinks.
ee473e
  install -d -m 755 $RPM_BUILD_ROOT%{_jvmprivdir}/%{uniquesuffix $suffix}/jce/vanilla
9bf359
9bf359
  # Install versioned symlinks.
9bf359
  pushd $RPM_BUILD_ROOT%{_jvmdir}
ee473e
    ln -sf %{jredir $suffix} %{jrelnk $suffix}
9bf359
  popd
9bf359
9bf359
  pushd $RPM_BUILD_ROOT%{_jvmjardir}
ee473e
    ln -sf %{sdkdir $suffix} %{jrelnk $suffix}
9bf359
  popd
9bf359
9bf359
  # Remove javaws man page
9bf359
  rm -f man/man1/javaws*
9bf359
9bf359
  # Install man pages.
9bf359
  install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man1
9bf359
  for manpage in man/man1/*
9bf359
  do
9bf359
    # Convert man pages to UTF8 encoding.
9bf359
    iconv -f ISO_8859-1 -t UTF8 $manpage -o $manpage.tmp
9bf359
    mv -f $manpage.tmp $manpage
9bf359
    install -m 644 -p $manpage $RPM_BUILD_ROOT%{_mandir}/man1/$(basename \
ee473e
      $manpage .1)-%{uniquesuffix $suffix}.1
9bf359
  done
9bf359
9bf359
  # Install demos and samples.
ee473e
  cp -a demo $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir $suffix}
9bf359
  mkdir -p sample/rmi
ee473e
  if [ ! -e sample/rmi/java-rmi.cgi ] ; then 
ee473e
    # hack to allow --short-circuit on install
ee473e
    mv bin/java-rmi.cgi sample/rmi
ee473e
  fi
ee473e
  cp -a sample $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir $suffix}
9bf359
9bf359
popd
9bf359
9bf359
9bf359
# Install Javadoc documentation.
9bf359
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}
ee473e
cp -a %{buildoutputdir $suffix}/docs $RPM_BUILD_ROOT%{_javadocdir}/%{uniquejavadocdir $suffix}
2b939e
cp -a %{buildoutputdir $suffix}/bundles/jdk-%{javaver}_%{updatever}$suffix-%{buildver}-docs.zip  $RPM_BUILD_ROOT%{_javadocdir}/%{uniquejavadocdir $suffix}.zip
9bf359
9bf359
# Install icons and menu entries.
9bf359
for s in 16 24 32 48 ; do
9bf359
  install -D -p -m 644 \
c2cb23
    openjdk/jdk/src/solaris/classes/sun/awt/X11/java-icon${s}.png \
9bf359
    $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${s}x${s}/apps/java-%{javaver}.png
9bf359
done
9bf359
9bf359
# Install desktop files.
9bf359
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/{applications,pixmaps}
ee473e
for e in jconsole$suffix policytool$suffix ; do
ee473e
    desktop-file-install --vendor=%{uniquesuffix $suffix} --mode=644 \
9bf359
        --dir=$RPM_BUILD_ROOT%{_datadir}/applications $e.desktop
9bf359
done
9bf359
9bf359
# Install /etc/.java/.systemPrefs/ directory
9bf359
# See https://bugzilla.redhat.com/show_bug.cgi?id=741821
9bf359
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/.java/.systemPrefs
9bf359
9bf359
# Find JRE directories.
ee473e
find $RPM_BUILD_ROOT%{_jvmdir}/%{jredir $suffix} -type d \
9bf359
  | grep -v jre/lib/security \
9bf359
  | sed 's|'$RPM_BUILD_ROOT'|%dir |' \
ee473e
  > %{name}.files-headless"$suffix"
9bf359
# Find JRE files.
ee473e
find $RPM_BUILD_ROOT%{_jvmdir}/%{jredir $suffix} -type f -o -type l \
9bf359
  | grep -v jre/lib/security \
9bf359
  | sed 's|'$RPM_BUILD_ROOT'||' \
ee473e
  > %{name}.files.all"$suffix"
9bf359
#split %%{name}.files to %%{name}.files-headless and %%{name}.files
9bf359
#see https://bugzilla.redhat.com/show_bug.cgi?id=875408
9bf359
NOT_HEADLESS=\
ee473e
"%{_jvmdir}/%{uniquesuffix $suffix}/jre/lib/%{archinstall}/libjsoundalsa.so
ee473e
%{_jvmdir}/%{uniquesuffix $suffix}/jre/lib/%{archinstall}/libpulse-java.so
ee473e
%{_jvmdir}/%{uniquesuffix $suffix}/jre/lib/%{archinstall}/libsplashscreen.so
ee473e
%{_jvmdir}/%{uniquesuffix $suffix}/jre/lib/%{archinstall}/libawt_xawt.so
ee473e
%{_jvmdir}/%{uniquesuffix $suffix}/jre/lib/%{archinstall}/libjawt.so
ee473e
%{_jvmdir}/%{uniquesuffix $suffix}/jre/bin/policytool"
9bf359
#filter  %%{name}.files from  %%{name}.files.all to %%{name}.files-headless
ee473e
ALL=`cat %{name}.files.all"$suffix"`
9bf359
for file in $ALL ; do 
9bf359
  INLCUDE="NO" ; 
9bf359
  for blacklist in $NOT_HEADLESS ; do
9bf359
#we can not match normally, because rpmbuild will evaluate !0 result as script failure
9bf359
    q=`expr match "$file" "$blacklist"` || :
9bf359
    l=`expr length  "$blacklist"` || :
9bf359
    if [ $q -eq $l  ]; then 
9bf359
      INLCUDE="YES" ; 
9bf359
    fi;
9bf359
done
9bf359
if [ "x$INLCUDE" = "xNO"  ]; then 
ee473e
    echo "$file" >> %{name}.files-headless"$suffix"
9bf359
else
ee473e
    echo "$file" >> %{name}.files"$suffix"
9bf359
fi
9bf359
done
9bf359
# Find demo directories.
ee473e
find $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir $suffix}/demo \
ee473e
  $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir $suffix}/sample -type d \
9bf359
  | sed 's|'$RPM_BUILD_ROOT'|%dir |' \
ee473e
  > %{name}-demo.files"$suffix"
9bf359
9bf359
# FIXME: remove SONAME entries from demo DSOs.  See
9bf359
# https://bugzilla.redhat.com/show_bug.cgi?id=436497
9bf359
9bf359
# Find non-documentation demo files.
ee473e
find $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir $suffix}/demo \
ee473e
  $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir $suffix}/sample \
9bf359
  -type f -o -type l | sort \
9bf359
  | grep -v README \
9bf359
  | sed 's|'$RPM_BUILD_ROOT'||' \
ee473e
  >> %{name}-demo.files"$suffix"
9bf359
# Find documentation demo files.
ee473e
find $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir $suffix}/demo \
ee473e
  $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir $suffix}/sample \
9bf359
  -type f -o -type l | sort \
9bf359
  | grep README \
9bf359
  | sed 's|'$RPM_BUILD_ROOT'||' \
9bf359
  | sed 's|^|%doc |' \
ee473e
  >> %{name}-demo.files"$suffix"
9bf359
9bf359
# intentionally after the files generation, as it goes to separate package
9bf359
# Create links which leads to separately installed java-atk-bridge and allow configuration
9bf359
# links points to java-atk-wrapper - an dependence
ee473e
  pushd $RPM_BUILD_ROOT/%{_jvmdir}/%{jredir $suffix}/lib/%{archinstall}
9bf359
    ln -s %{_libdir}/java-atk-wrapper/libatk-wrapper.so.0 libatk-wrapper.so
9bf359
  popd
ee473e
  pushd $RPM_BUILD_ROOT/%{_jvmdir}/%{jredir $suffix}/lib/ext
9bf359
     ln -s %{_libdir}/java-atk-wrapper/java-atk-wrapper.jar  java-atk-wrapper.jar
9bf359
  popd
ee473e
  pushd $RPM_BUILD_ROOT/%{_jvmdir}/%{jredir $suffix}/lib/
9bf359
    echo "#Config file to  enable java-atk-wrapper" > accessibility.properties
9bf359
    echo "" >> accessibility.properties
9bf359
    echo "assistive_technologies=org.GNOME.Accessibility.AtkWrapper" >> accessibility.properties
9bf359
    echo "" >> accessibility.properties
9bf359
  popd
9bf359
9e49de
bash %{SOURCE20} $RPM_BUILD_ROOT/%{_jvmdir}/%{jredir $suffix} %{javaver}
2b939e
# https://bugzilla.redhat.com/show_bug.cgi?id=1183793
2b939e
touch -t 201401010000 $RPM_BUILD_ROOT/%{_jvmdir}/%{jredir $suffix}/lib/security/java.security
9e49de
ee473e
# end, dual install
ee473e
done
ee473e
ee473e
%if %{include_normal_build} 
ee473e
# intentioanlly only for non-debug
9bf359
%pretrans headless -p <lua>
2b939e
-- see https://bugzilla.redhat.com/show_bug.cgi?id=1038092 for whole issue
2b939e
-- see https://bugzilla.redhat.com/show_bug.cgi?id=1290388 for pretrans over pre
2b939e
-- if copy-jdk-configs is in transaction, it installs in pretrans to temp
2b939e
-- if copy_jdk_configs is in temp, then it means that copy-jdk-configs is in tranasction  and so is
2b939e
-- preferred over one in %%{_libexecdir}. If it is not in transaction, then depends 
2b939e
-- whether copy-jdk-configs is installed or not. If so, then configs are copied
2b939e
-- (copy_jdk_configs from %%{_libexecdir} used) or not copied at all
9bf359
local posix = require "posix"
2b939e
local debug = false
9bf359
2b939e
SOURCE1 = "%{rpm_state_dir}/copy_jdk_configs.lua"
2b939e
SOURCE2 = "%{_libexecdir}/copy_jdk_configs.lua"
9bf359
2b939e
local stat1 = posix.stat(SOURCE1, "type");
2b939e
local stat2 = posix.stat(SOURCE2, "type");
9bf359
2b939e
  if (stat1 ~= nil) then
9bf359
  if (debug) then
2b939e
    print(SOURCE1 .." exists - copy-jdk-configs in transaction, using this one.")
9bf359
  end;
2b939e
  package.path = package.path .. ";" .. SOURCE1
2b939e
else 
2b939e
  if (stat2 ~= nil) then
9bf359
  if (debug) then
2b939e
    print(SOURCE2 .." exists - copy-jdk-configs alrady installed and NOT in transation. Using.")
9bf359
  end;
2b939e
  package.path = package.path .. ";" .. SOURCE2
9bf359
  else
9bf359
    if (debug) then
2b939e
      print(SOURCE1 .." does NOT exists")
2b939e
      print(SOURCE2 .." does NOT exists")
2b939e
      print("No config files will be copied")
2b939e
    end
2b939e
  return
9bf359
  end
9bf359
end
2b939e
-- run contetn of included file with fake args
2b939e
arg = {"--currentjvm", "%{uniquesuffix %{nil}}", "--jvmdir", "%{_jvmdir %{nil}}", "--origname", "%{name}", "--origjavaver", "%{javaver}", "--arch", "%{_arch}"}
2b939e
require "copy_jdk_configs.lua"
9bf359
9bf359
%post 
ee473e
%{post_script %{nil}}
9bf359
9bf359
%post headless
ee473e
%{post_headless %{nil}}
9bf359
9bf359
%postun
ee473e
%{postun_script %{nil}}
9bf359
9bf359
%postun headless
ee473e
%{postun_headless %{nil}}
9bf359
9bf359
%posttrans
ee473e
%{posttrans_script %{nil}}
9bf359
9bf359
%post devel
ee473e
%{post_devel %{nil}}
9bf359
ee473e
%postun devel
ee473e
%{postun_devel %{nil}}
9bf359
ee473e
%posttrans  devel
ee473e
%{posttrans_devel %{nil}}
9bf359
ee473e
%post javadoc
ee473e
%{post_javadoc %{nil}}
9bf359
ee473e
%postun javadoc
ee473e
%{postun_javadoc %{nil}}
2b939e
2b939e
%post javadoc-zip
2b939e
%{post_javadoc_zip %{nil}}
2b939e
2b939e
%postun javadoc-zip
2b939e
%{postun_javadoc_zip %{nil}}
ee473e
%endif
9bf359
ee473e
%if %{include_debug_build} 
ee473e
%post debug
ee473e
%{post_script %{debug_suffix_unquoted}}
9bf359
ee473e
%post headless-debug
ee473e
%{post_headless %{debug_suffix_unquoted}}
9bf359
ee473e
%postun debug
ee473e
%{postun_script %{debug_suffix_unquoted}}
9bf359
ee473e
%postun headless-debug
ee473e
%{postun_headless %{debug_suffix_unquoted}}
9bf359
ee473e
%posttrans debug
ee473e
%{posttrans_script %{debug_suffix_unquoted}}
9bf359
ee473e
%post devel-debug
ee473e
%{post_devel %{debug_suffix_unquoted}}
9bf359
ee473e
%postun devel-debug
ee473e
%{postun_devel %{debug_suffix_unquoted}}
9bf359
ee473e
%posttrans  devel-debug
ee473e
%{posttrans_devel %{debug_suffix_unquoted}}
9bf359
ee473e
%post javadoc-debug
ee473e
%{post_javadoc %{debug_suffix_unquoted}}
9bf359
ee473e
%postun javadoc-debug
ee473e
%{postun_javadoc %{debug_suffix_unquoted}}
2b939e
2b939e
%post javadoc-zip-debug
2b939e
%{post_javadoc_zip %{debug_suffix_unquoted}}
2b939e
2b939e
%postun javadoc-zip-debug
2b939e
%{postun_javadoc_zip %{debug_suffix_unquoted}}
ee473e
%endif
9bf359
ee473e
%if %{include_normal_build} 
9bf359
%files -f %{name}.files
ee473e
# main package builds always
ee473e
%{files_jre %{nil}}
ee473e
%else
ee473e
%files
ee473e
# placeholder
ee473e
%endif
ee473e
9bf359
ee473e
%if %{include_normal_build} 
ee473e
%files headless  -f %{name}.files-headless
9bf359
# important note, see https://bugzilla.redhat.com/show_bug.cgi?id=1038092 for whole issue 
9bf359
# all config/norepalce files (and more) have to be declared in pretrans. See pretrans
ee473e
%{files_jre_headless %{nil}}
9bf359
9bf359
%files devel
ee473e
%{files_devel %{nil}}
9bf359
9bf359
%files demo -f %{name}-demo.files
ee473e
%{files_demo %{nil}}
9bf359
9bf359
%files src
ee473e
%{files_src %{nil}}
9bf359
9bf359
%files javadoc
ee473e
%{files_javadoc %{nil}}
9bf359
2b939e
%files javadoc-zip
2b939e
%{files_javadoc_zip %{nil}}
2b939e
9bf359
%files accessibility
ee473e
%{files_accessibility %{nil}}
ee473e
%endif
ee473e
ee473e
%if %{include_debug_build} 
ee473e
%files debug -f %{name}.files-debug
ee473e
%{files_jre %{debug_suffix_unquoted}}
ee473e
ee473e
%files headless-debug  -f %{name}.files-headless-debug
ee473e
%{files_jre_headless %{debug_suffix_unquoted}}
ee473e
ee473e
%files devel-debug
ee473e
%{files_devel %{debug_suffix_unquoted}}
ee473e
ee473e
%files demo-debug -f %{name}-demo.files-debug
ee473e
%{files_demo %{debug_suffix_unquoted}}
ee473e
ee473e
%files src-debug
ee473e
%{files_src %{debug_suffix_unquoted}}
ee473e
ee473e
%files javadoc-debug
ee473e
%{files_javadoc %{debug_suffix_unquoted}}
ee473e
2b939e
%files javadoc-zip-debug
2b939e
%{files_javadoc_zip %{debug_suffix_unquoted}}
2b939e
ee473e
%files accessibility-debug
ee473e
%{files_accessibility %{debug_suffix_unquoted}}
ee473e
%endif
9bf359
9bf359
%changelog
c4ba7e
* Mon Jan 16 2017 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.121-0.b13
c4ba7e
- Update to aarch64-jdk8u121-b13.
c4ba7e
- Add MD5 checksum for the new java.security file (EC < 224, DSA < 1024 restricted)
c4ba7e
- Update PR1834/RH1022017 fix to reduce curves reported by SSL to apply against u121.
c4ba7e
- Resolves: rhbz#1410612
c4ba7e
c4ba7e
* Sun Jan 15 2017 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.112-0.b16
c4ba7e
- Update to aarch64-jdk8u112-b16.
c4ba7e
- Drop upstreamed patches for 8044762, 8049226, 8154210, 8158260 and 8160122.
c4ba7e
- Re-generate size_t and key size (RH1163501) patches against u112.
c4ba7e
- Resolves: rhbz#1410612
c4ba7e
c4ba7e
* Thu Jan 12 2017 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.111-4.b18
c4ba7e
- Use java-1.7.0-openjdk to bootstrap on RHEL to allow us to use main build target
c4ba7e
- Resolves: rhbz#1410612
c4ba7e
c4ba7e
* Mon Jan 09 2017 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.111-4.b18
c4ba7e
- Update to aarch64-jdk8u111-b18, synced with upstream u111, S8170873 and new AArch64 fixes
c4ba7e
- Replace our correct version of 8159244 with the amendment to the 8u version from 8160122.
c4ba7e
- Resolves: rhbz#1410612
c4ba7e
c4ba7e
* Mon Nov 07 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.111-3.b15
c4ba7e
- Add MD5 checksum from RHEL 7.2 security update so the 7.3 one overwrites it.
c4ba7e
- Resolves: rhbz#1382736
c4ba7e
0f5aa1
* Mon Oct 10 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.111-2.b15
0f5aa1
- Turn debug builds on for all JIT architectures. Always AssumeMP on RHEL.
0f5aa1
- Resolves: rhbz#1382736
0f5aa1
0f5aa1
* Fri Oct 07 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.111-1.b15
0f5aa1
- Update to aarch64-jdk8u111-b15, with AArch64 fix for S8160591.
0f5aa1
- Resolves: rhbz#1382736
0f5aa1
0f5aa1
* Fri Oct 07 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.111-0.b14
0f5aa1
- Update to aarch64-jdk8u111-b14.
0f5aa1
- Add latest md5sum for java.security file due to jar signing property addition.
0f5aa1
- Drop S8157306 and the CORBA typo fix, both of which appear upstream in u111.
0f5aa1
- Add LCMS 2 patch to fix Red Hat security issue RH1367357 in the local OpenJDK copy.
0f5aa1
- Resolves: rhbz#1350037
0f5aa1
0f5aa1
* Wed Oct 5 2016  Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.102-5.b14
0f5aa1
- debug subpackages allowed on aarch64 and ppc64le
0f5aa1
- Resolves: rhbz#1375224
0f5aa1
2b939e
* Wed Sep 14 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.102-4.b14
2b939e
- Runtime native library requirements need to match the architecture of the JDK
2b939e
- Resolves: rhbz#1375224
2b939e
2b939e
* Mon Sep 05 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.102-3.b14
2b939e
- Rebuild java-1.8.0-openjdk for GCC aarch64 stack epilogue code generation fix (RH1372750)
2b939e
- Resolves: rhbz#1359857
2b939e
2b939e
* Wed Aug 31 2016 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.102-2.b14
ab03fc
- declared check_sum_presented_in_spec and used in prep and check
ab03fc
- it is checking that latest packed java.security is mentioned in listing
2b939e
- Resolves: rhbz#1295754
2b939e
2b939e
* Mon Aug 29 2016 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.102-2.b14
2b939e
- @prefix@ in tapsetfiles substitued by prefix as necessary to work with systemtap3 (rhbz1371005)
2b939e
- Resolves: rhbz#1295754
ab03fc
2b939e
* Thu Aug 25 2016 jvanek <jvanek@redhat.com> - 1:1.8.0.102-1.b14
2b939e
- jjs provides moved to headless
2b939e
- Resolves: rhbz#1312019
05234b
2b939e
* Mon Aug 08 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.102-0.b14
05234b
- Update to aarch64-jdk8u102-b14.
05234b
- Drop 8140620, 8148752 and 6961123, all of which appear upstream in u102.
05234b
- Move 8159244 to 8u111 section as it only appears to be in unpublished u102 b31.
05234b
- Move 8158260 to 8u112 section following its backport to 8u.
2b939e
- Resolves: rhbz#1359857
05234b
2b939e
* Wed Aug 03 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.101-9.b15
05234b
- Update to aarch64-jdk8u101-b15.
05234b
- Rebase SystemTap tarball on IcedTea 3.1.0 versions so as to avoid patching.
05234b
- Drop additional hunk for 8147771 which is now applied upstream.
2b939e
- Resolves: rhbz#1359857
2b939e
2b939e
* Mon Aug 01 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.101-8.b13
2b939e
- Replace patch for S8162384 with upstream version. Document correctly along with SystemTap RH1204159 patch.
2b939e
- Resolves: rhbz#1358661
2b939e
2b939e
* Mon Aug 01 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.101-8.b13
2b939e
- Replace patch for S8157306 with upstream version, documented & applied on all archs with conditional in patch
2b939e
- Resolves: rhbz#1360863
2b939e
2b939e
* Thu Jul 28 2016 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.101-7.b13
2b939e
- added patch532 hotspot-1358661.patch - to fix performance of bimorphic inlining may be bypassed by type speculation
2b939e
- rhbz1358661
2b939e
- added patch301 bz1204159_java8.patch - to fix systemtap on multiple jdks
2b939e
- rhbz1204159
2b939e
- added patch531 hotspot-8157306.changeset - to fix rare NPE injavac on aarch64
2b939e
- rhbz1360863
2b939e
- added all virtual provides of java-devel
2b939e
- Resolves: rhbz#1216018
2b939e
2b939e
* Tue Jul 12 2016 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.101-5.b13
2b939e
- added Provides: /usr/bin/jjs
2b939e
- Resolves: rhbz#1312019
2b939e
2b939e
* Mon Jul 11 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.101-4.b13
8f84c8
- Replace bad 8159244 patch from upstream 8u with fresh backport from OpenJDK 9.
2b939e
- Resolves: rhbz#1335322
8f84c8
2b939e
* Sun Jul 10 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.101-3.b13
8f84c8
- Add missing hunk from 8147771, missed due to inclusion of unneeded 8138811
2b939e
- Resolves: rhbz#1350037
8f84c8
2b939e
* Mon Jul 04 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.101-2.b13
8f84c8
- Add workaround for a typo in the CORBA security fix, 8079718
2b939e
- Resolves: rhbz#1350037
2b939e
2b939e
* Mon Jul 04 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.101-2.b13
2b939e
- Fix regression in SSL debug output when no ECC provider is available.
2b939e
- Resolves: rhbz#1346460
8f84c8
2b939e
* Fri Jul 01 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.101-1.b13
8f84c8
- Update to u101b13.
2b939e
- Document REPOS option in generate_source_tarball.sh
8f84c8
- Drop a leading zero from the priority as the update version is now three digits
2b939e
- Resolves: rhbz#1350037
8f84c8
2b939e
* Fri Jul 01 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.92-9.b14
8f84c8
- Add additional fixes (S6260348, S8159244) for u92 update.
2b939e
- Add bug ID to Javadoc patch.
2b939e
- Resolves: rhbz#1335322
8f84c8
2b939e
* Tue Jun 21 2016 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.92-7.b14
2b939e
- family restricted by arch
2b939e
- Resolves: rhbz#1296442
2b939e
- Resolves: rhbz#1296414
2b939e
2b939e
* Mon Jun 20 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.92-6.b14
8f84c8
- Update ppc64le fix with upstream version, S8158260.
2b939e
- Resolves: rhbz#1341258
2b939e
2b939e
* Tue Jun 07 2016 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.92-5.b14
2b939e
- added --family option with chkconfig version full dependence
2b939e
- added nss restricting requires
2b939e
- added zipped javadoc subpackage
2b939e
- extracted lua scripts
2b939e
- Resolves: rhbz#1296442
2b939e
- Resolves: rhbz#1296414
2b939e
2b939e
* Tue Jun 07 2016 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.92-4.b14
2b939e
- added requires for copy-jdk-configs, to help with https://projects.engineering.redhat.com/browse/RCM-3654
2b939e
- Resolves: rhbz#1296442
8f84c8
2b939e
* Thu Jun 02 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.92-3.b14
2b939e
- Forwardport SSL fix to only report curves supported by NSS.
2b939e
- Resolves: rhbz#1245810
2b939e
2b939e
* Thu Jun 02 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.92-3.b14
8f84c8
- Add fix for ppc64le crash due to illegal instruction.
2b939e
- Resolves: rhbz#1341258
8f84c8
2b939e
* Wed Jun 01 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.92-2.b14
2b939e
- Add fix for PKCS#10 output regression, adding -systemlineendings option.
2b939e
- Move S8150954/RH1176206/PR2866 fix to correct section, as not in 9 yet.
2b939e
- Resolves: rhbz#1337583
8f84c8
2b939e
* Thu May 26 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.92-1.b14
8f84c8
- Update to u92b14.
8f84c8
- Remove upstreamed patches for AArch64 byte behaviour and template issue.
8f84c8
- Remove upstreamed patches for Zero build failures 8087120 & 8143855.
8f84c8
- Replace 8132051 Zero fix with version upstreamed as 8154210 in 8u112.
8f84c8
- Add upstreamed patch 6961123 from u102 to fix application name in GNOME Shell.
8f84c8
- Add upstreamed patches 8044762 & 8049226 from u112 to fix JDI issues.
8f84c8
- Regenerate java-1.8.0-openjdk-rh1191652-root.patch against u92
2b939e
- Resolves: rhbz#1335322
8f84c8
2b939e
* Fri May 13 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.91-3.b14
2b939e
- Add backport for S8148752.
2b939e
- Resolves: rhbz#1330188
2b939e
2b939e
* Fri Apr 22 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.91-2.b14
2b939e
- Add fix for PR2934 / RH1329342
2b939e
- Re-enable ECDSA test which now passes.
2b939e
- Resolves: rhbz#1245810
2296bf
2b939e
* Tue Apr 12 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.91-1.b14
2b939e
- Roll back release number as release 1 never succeeded, even with tests disabled.
2b939e
- Resolves: rhbz#1325423
2b939e
2b939e
* Tue Apr 12 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.91-1.b14
f8968f
- Add additional fix to Zero patch to properly handle result on 64-bit big-endian
2b939e
- Revert debugging options (aarch64 back to JIT, product build, no -Wno-error)
2b939e
- Enable full bootstrap on all architectures to check we are good to go.
2b939e
- Resolves: rhbz#1325423
f8968f
2b939e
* Tue Apr 12 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.91-1.b14
2b939e
- Turn tests back on or build will not fail.
2b939e
- Resolves: rhbz#1325423
f8968f
2b939e
* Tue Apr 12 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.91-1.b14
2b939e
- Temporarily remove power64 from JIT arches to see if endian issue appears on Zero.
2b939e
- Resolves: rhbz#1325423
2b939e
2b939e
* Tue Apr 12 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.91-1.b14
2b939e
- Turn off Java-based checks in a vain attempt to get a complete build.
2b939e
- Resolves: rhbz#1325423
2b939e
2b939e
* Tue Apr 12 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.91-1.b14
2b939e
- Turn off -Werror so s390 can build in slowdebug mode.
2b939e
- Add fix for formatting issue found by previous s390 build.
2b939e
- Resolves: rhbz#1325423
2b939e
2b939e
* Tue Apr 12 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.91-1.b14
2b939e
- Revert settings to production defaults so we can at least get a build.
f8968f
- Switch to a slowdebug build to try and unearth remaining issue on s390x.
2b939e
- Resolves: rhbz#1325423
f8968f
2b939e
* Mon Apr 11 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.91-1.b14
2b939e
- Disable ECDSA test for now until failure on RHEL 7 is fixed.
2b939e
- Resolves: rhbz#1325423
f8968f
2b939e
* Mon Apr 11 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.91-1.b14
f8968f
- Add 8132051 port to Zero.
f8968f
- Turn on bootstrap build for all to ensure we are now good to go.
2b939e
- Resolves: rhbz#1325423
f8968f
2b939e
* Mon Apr 11 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.91-1.b14
f8968f
- Add 8132051 port to AArch64.
2b939e
- Resolves: rhbz#1325423
f8968f
2b939e
* Mon Apr 11 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.91-1.b14
f8968f
- Enable a full bootstrap on JIT archs. Full build held back by Zero archs anyway.
2b939e
- Resolves: rhbz#1325423
2b939e
2b939e
* Sun Apr 10 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.91-1.b14
2b939e
- Use basename of test file to avoid misinterpretation of full path as a package
2b939e
- Resolves: rhbz#1325423
f8968f
2b939e
* Sun Apr 10 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.91-1.b14
f8968f
- Update to u91b14.
2b939e
- Resolves: rhbz#1325423
f8968f
2b939e
* Thu Mar 31 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.77-3.b03
2b939e
- Fix typo in test invocation.
2b939e
- Resolves: rhbz#1245810
2b939e
2b939e
* Thu Mar 31 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.77-3.b03
2b939e
- Add ECDSA test to ensure ECC is working.
2b939e
- Resolves: rhbz#1245810
2b939e
2b939e
* Wed Mar 30 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.77-2.b03
2b939e
- Avoid WithSeed versions of NSS functions as they do not fully process the seed
2b939e
- List current java.security md5sum so that java.security is replaced and ECC gets enabled.
2b939e
- Resolves: rhbz#1245810
2b939e
2b939e
* Wed Mar 23 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.77-1.b03
2b939e
- Bump release so 7.3 stays greater than 7.2.z
2b939e
- Resolves: rhbz#1320665
b8989a
b8989a
* Wed Mar 23 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.77-0.b03
b8989a
- Update to u77b03.
2b939e
- Resolves: rhbz#1320665
2b939e
2b939e
* Thu Mar 03 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.72-13.b16
2b939e
- When using a compositing WM, the overlay window should be used, not the root window.
2b939e
- Resolves: rhbz#1176206
2b939e
2b939e
* Mon Feb 29 2016 Omair Majid <omajid@redhat.com> - 1:1.8.0.72-12.b15
b8989a
- Use a simple backport for PR2462/8074839.
b8989a
- Don't backport the crc check for pack.gz. It's not tested well upstream.
2b939e
- Resolves: rhbz#1307108
2b939e
2b939e
* Mon Feb 29 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.72-5.b16
2b939e
- Fix regression introduced on s390 by large code cache change.
2b939e
- Resolves: rhbz#1307108
2b939e
2b939e
* Mon Feb 29 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.72-5.b16
2b939e
- Update to u72b16.
2b939e
- Drop 8147805 and jvm.cfg fix which are applied upstream.
2b939e
- Resolves: rhbz#1307108
2b939e
2b939e
* Wed Feb 24 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.72-4.b15
2b939e
- Add patches to allow the SunEC provider to be built with the system NSS install.
2b939e
- Re-generate source tarball so it includes ecc_impl.h.
2b939e
- Adjust tarball generation script to allow ecc_impl.h to be included.
2b939e
- Bring over NSS changes from java-1.7.0-openjdk spec file (NSS_CFLAGS/NSS_LIBS)
2b939e
- Remove patch which disables the SunEC provider as it is now usable.
2b939e
- Correct spelling mistakes in tarball generation script.
2b939e
- Resolves: rhbz#1245810
2b939e
2b939e
* Wed Feb 24 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.72-4.b15
2b939e
- Move completely unrelated AArch64 gcc 6 patch into separate file.
2b939e
- Resolves: rhbz#1300630
2b939e
2b939e
* Tue Feb 23 2016 jvanek <jvanek@redhat.com> - 1:1.8.0.72-3.b15
2b939e
- returning accidentlay removed hunk from renamed and so wrongly merged remove_aarch64_jvm.cfg_divergence.patch
2b939e
- Resolves: rhbz#1300630
2b939e
2b939e
* Mon Feb 22 2016 jvanek <jvanek@redhat.com> - 1:1.8.0.72-2.b15
2b939e
- sync from fedora
2b939e
- Resolves: rhbz#1300630
2b939e
2b939e
* Fri Feb 19 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.72-1.b15
2b939e
- Actually add the patch...
2b939e
- Resolves: rhbz#1300630
b8989a
2b939e
* Fri Feb 19 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.72-1.b15
2b939e
- Add backport of 8147805: aarch64: C1 segmentation fault due to inline Unsafe.getAndSetObject
2b939e
- Resolves: rhbz#1300630
2b939e
2b939e
* Thu Feb 18 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.72-0.b15
2b939e
- Remove unnecessary AArch64 port divergence on parsing jvm.cfg, broken by 9399aa7ef558
2b939e
- Resolves: rhbz#1307108
2b939e
2b939e
* Thu Feb 18 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.72-0.b15
2b939e
- Only use z format specifier on s390, not s390x.
2b939e
- Resolves: rhbz#1307108
2b939e
2b939e
* Wed Feb 17 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.72-0.b15
2b939e
- Remove fragment of s390 size_t patch that unnecessarily removes a cast, breaking ppc64le.
2b939e
- Remove aarch64-specific suffix as update/build version are now the same as for other archs.
2b939e
- Resolves: rhbz#1307108
2b939e
2b939e
* Wed Feb 17 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.72-0.b15
2b939e
- Replace s390 Java options patch with general version from IcedTea.
2b939e
- Apply s390 patches unconditionally to avoid arch-specific patch failures.
2b939e
- Resolves: rhbz#1307108
2b939e
2b939e
* Tue Feb 16 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.72-0.b15
2b939e
- Update to u72b15.
2b939e
- Drop 8146566 which is applied upstream.
2b939e
- Resolves: rhbz#1307108
2b939e
2b939e
* Tue Feb 09 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.71-6.b15
2b939e
- Define EXTRA_CPP_FLAGS again, after it was removed in the fix for 1146897.
2b939e
- Resolves: rhbz#1146897
2b939e
2b939e
* Fri Feb 05 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.71-5.b15
2b939e
- Backport S8148351: Only display resolved symlink for compiler, do not change path
2b939e
- Resolves: rhbz#1256464
2b939e
2b939e
* Thu Feb 04 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.71-4.b15
2b939e
- Resetting bootstrap after successful build.
2b939e
- Resolves: rhbz#1146897
2b939e
2b939e
* Wed Feb 03 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.71-4.b15
2b939e
- Remove -fno-tree-vectorize now a GCC is available with this bug fixed.
2b939e
- Add build requirement on a GCC with working tree vectorization.
2b939e
- Enable bootstrap temporarily to ensure the JDK is functional.
2b939e
- Resolves: rhbz#1146897
2b939e
2b939e
* Fri Jan 15 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.71-3.b15
8ba7a7
- Add md5sum for previous java.security file so it gets updated.
2b939e
- Resolves: rhbz#1295754
8ba7a7
2b939e
* Thu Jan 14 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.71-2.b15
8ba7a7
- Restore upstream version of system LCMS patch removed by 'sync with Fedora'
8ba7a7
- Add patch to turn off strict overflow on IndicRearrangementProcessor{,2}.cpp
2b939e
- Resolves: rhbz#1295754
8ba7a7
2b939e
* Wed Jan 13 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.71-1.b15
2b939e
- Change correct specifier in src/share/vm/gc_implementation/g1/g1StringDedupTable.cpp
2b939e
- Resolves: rhbz#1295754
2b939e
2b939e
* Wed Jan 13 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.71-1.b15
2b939e
- Change correct specifier in src/share/vm/memory/blockOffsetTable.cpp
2b939e
- Resolves: rhbz#1295754
2b939e
2b939e
* Wed Jan 13 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.71-1.b15
2b939e
- Make bootstrap build optional and turn it off by default.
2b939e
- Fix remaining warnings in s390 fix and re-enable -Werror
2b939e
- Resolves: rhbz#1295754
2b939e
2b939e
* Wed Jan 13 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.71-1.b15
2b939e
- Add additional fixes for s390 warnings in arguments.cpp
2b939e
- Temporarily turn off -Werror on s390 to make progress
2b939e
- Resolves: rhbz#1295754
2b939e
2b939e
* Wed Jan 13 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.71-1.b15
2b939e
- Actually apply the S390 fix...
2b939e
- Resolves: rhbz#1295754
2b939e
2b939e
* Wed Jan 13 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.71-1.b15
2b939e
- Turn off additional CFLAGS/LDFLAGS on AArch64 as bootstrapping failed.
2b939e
- Add patch for size_t formatting on s390 as size_t != intptr_t there.
2b939e
- Resolves: rhbz#1295754
2b939e
2b939e
* Tue Jan 12 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.71-1.b15
2b939e
- October 2015 security update to u71b15.
8ba7a7
- Improve verbosity and helpfulness of tarball generation script.
8ba7a7
- Remove RH1290936 workaround as RHEL does not have the hardened flags nor ARM32.
8ba7a7
- Update patch documentation using version originally written for Fedora.
8ba7a7
- Drop prelink requirement as we no longer use execstack.
8ba7a7
- Drop ifdefbugfix patch as this is fixed upstream.
2b939e
- Temporarily enable a full bootcycle to ensure flag changes don't break anything.
2b939e
- Resolves: rhbz#1295754
8ba7a7
8ba7a7
* Tue Jan 12 2016 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.65-4.b17
8ba7a7
- moved to integration forest 
8ba7a7
- sync with fedora (all but extracted luas and family)
2b939e
- Resolves: rhbz#1295754
8ba7a7
ee473e
* Mon Oct 19 2015 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.65-3.b17
ee473e
- bumped release X.el7_1 is obviously > X.el7 :-/
ee473e
- Resolves: rhbz#1257657
a9a030
a9a030
* Fri Oct 16 2015 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.65-1.b17
a9a030
- moved to bundled lcms
ee473e
- Resolves: rhbz#1257657
a9a030
a9a030
* Thu Oct 15 2015 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.65-0.b17
a9a030
- October 2015 security update to u65b17.
a9a030
- Add script for generating OpenJDK tarballs from a local Mercurial tree.
a9a030
- Update RH1191652 patch to build against current AArch64 tree.
a9a030
- Use appropriate source ID to avoid unpacking both tarballs on AArch64.
a9a030
- Add MD5 checksums for java.security from 8u51 and 8u60 RPMs.
ee473e
- Resolves: rhbz#1257657
a9a030
ee473e
* Wed Oct 14 2015 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.60-6.b27
a9a030
- removed link to soundfont. Unused in rhel7 and will be fixed upstream
a9a030
- Resolves: rhbz#1257653
a9a030
ee473e
* Fri Sep 04 2015 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.60-4.b27
ee473e
- priority aligned to 7digits (sync with 6.8)
ee473e
- Resolves: rhbz#1255350
5338de
ee473e
* Fri Aug 28 2015 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.60-2.b27
5338de
- updated to u60
ee473e
- Resolves: rhbz#1255350
ee473e
ee473e
* Thu Jul 16 2015 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.51-2.b16
ee473e
- doubled slash in md5sum test in post
ee473e
- Resolves: rhbz#1235163
5338de
ee473e
* Fri Jul 03 2015 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.51-1.b16
ee473e
- Re-introduce handling of java.security updates, with new md5sum of Jan 2015 version.
ee473e
- Resolves: rhbz#1235163
c2cb23
c2cb23
* Thu Jul 02 2015 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.51-0.b16
c2cb23
- July 2015 security update to u51b16.
c2cb23
- Add script for generating OpenJDK tarballs from a local Mercurial tree.
c2cb23
- Add %%{name} prefix to patches to avoid conflicts with OpenJDK 7 versions.
c2cb23
- Add patches for RH issues fixed in IcedTea 2.x and/or the upcoming u60.
c2cb23
- Use 'openjdk' as directory prefix to allow patch interchange with IcedTea.
c2cb23
- Re-generate EC disablement patch following CPU DH changes.
ee473e
- Resolves: rhbz#1235163
ee473e
ee473e
* Wed May 13 2015 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.45-37.b13
ee473e
- added build requires on tzdata
ee473e
- Resolves: rhbz#1212571
ee473e
ee473e
* Wed May 13 2015 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.45-36.b13
ee473e
- Correctly fix system timezone data issue by depending on correct tzdata version.
ee473e
- Remove reference to tz.properties which is no longer used.
ee473e
- Resolves: rhbz#1212571
ee473e
ee473e
* Wed Apr 29 2015 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.45-35.b13
ee473e
- Make use of system timezone data for OpenJDK 8.
ee473e
- moved to boot build by openjdk8
ee473e
- priority set  gcj < lengthOffFour < otherJdks (RH1175457)
ee473e
- misusing already fixed bug
ee473e
- Resolves: rhbz#1189530
c2cb23
ee473e
* Wed Apr 29 2015 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.45-34.b13
ee473e
- Omit jsa files from power64 file list as well, as they are never generated
ee473e
- Resolves: rhbz#1202726
ee473e
ee473e
* Mon Apr 27 2015 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.45-33.b13
ee473e
- -Xshare:dump is not implemented for the PPC JIT port (both ppc64be & le)
ee473e
- Resolves: rhbz#1202726
ee473e
ee473e
* Mon Apr 20 2015 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.45-32.b13
ee473e
- Use the template interpreter on ppc64le
ee473e
- Resolves: rhbz#1213042
ee473e
ee473e
* Fri Apr 10 2015 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.45-31.b13
9e49de
- repacked sources
ee473e
- Resolves: RHBZ#1209077
9e49de
ee473e
* Thu Apr 09 2015 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.45-30.b13
ee473e
- do not obsolete openjdk7
ee473e
- Resolves: rhbz#1210006
ee473e
ee473e
* Tue Apr 07 2015 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.45-28.b13
ee473e
- Fix filenames broken by sync
ee473e
- Resolves: rhbz#1209077
9e49de
9e49de
* Tue Apr 07 2015 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.45-27.b13
9e49de
- updated to security u45
9e49de
- minor sync with 7.2
9e49de
 - generate_source_tarball.sh
9e49de
 - adapted java-1.8.0-openjdk-s390-java-opts.patch and java-1.8.0-openjdk-size_t.patch
9e49de
 - reworked (synced) zero patches (removed 103,11 added 204, 400-403)
9e49de
 - family of 5XX patches renamed to 6XX
9e49de
 - added upstreamed patch 501 and 505
9e49de
 - included removeSunEcProvider-RH1154143.patch
9e49de
- returned java (jre only) provides
9e49de
- repacked policies (source20)
9e49de
- removed duplicated NVR provides
9e49de
- added automated test for priority (length7)
ee473e
- Resolves: RHBZ#1209077
9e49de
d934b5
* Wed Mar 18 2015 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.31-7.b13
d934b5
- Set archinstall to ppc64le on that platform.
d934b5
- Resolves: rhbz#1194378
d934b5
d934b5
* Wed Mar 04 2015 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.31-6.b13
d934b5
- Adjust ppc64le HotSpot patch for OpenJDK 8.
d934b5
- Enable AArch64 configure/JDK patch on all archs to minimise patching issues.
d934b5
- Adjust ppc64le patches to apply after the enableAArch64 patch.
d934b5
- Add %%{name} prefix to patches to avoid conflicts with OpenJDK 7 versions.
d934b5
- Resolves: rhbz#1194378
d934b5
d934b5
* Tue Mar 03 2015 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.31-5.b13
d934b5
- Provide AArch64 version of RH1191652 HotSpot patch.
d934b5
- Resolves: rhbz#1194378
d934b5
d934b5
* Wed Feb 18 2015 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.31-4.b13
d934b5
- Actually add test case Java file.
d934b5
- Resolves: rhbz#1194378
d934b5
d934b5
* Wed Feb 18 2015 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.31-4.b13
d934b5
- Override ppc64le as ppc64 only in hotspot-spec.gmk so as not to disrupt JDK build.
d934b5
- Add property test case from java-1.7.0-openjdk build.
d934b5
- Resolves: rhbz#1194378
d934b5
d934b5
* Wed Feb 18 2015 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.31-4.b13
d934b5
- Set OPENJDK_TARGET_CPU_LEGACY to ppc64 so as not to mess up HotSpot build.
d934b5
- Add -DABI_ELFv2 to CFLAGS on ppc64le to match OpenJDK 7.
d934b5
- Print contents of hotspot-spec.gmk
d934b5
- Resolves: rhbz#1194378
d934b5
d934b5
* Wed Feb 18 2015 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.31-4.b13
d934b5
- Fix path to spec.gmk.
d934b5
- Resolves: rhbz#1194378
d934b5
d934b5
* Tue Feb 17 2015 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.31-4.b13
d934b5
- Print contents of spec.gmk to see what is being passed to the HotSpot build.
d934b5
- Resolves: rhbz#1194378
d934b5
d934b5
* Tue Feb 17 2015 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.31-4.b13
d934b5
- Remove patch to generated-configure.sh as RPM re-generates it.
d934b5
- Resolves: rhbz#1194378
d934b5
d934b5
* Tue Feb 17 2015 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.31-4.b13
d934b5
- Fix configure script to use ppc64le, not ppc64.
d934b5
- Add ppc64le support to LIBJSOUND_CFLAGS.
d934b5
- Add a jvm.cfg for ppc64le
d934b5
- Resolves: rhbz#1194378
d934b5
d934b5
* Tue Feb 17 2015 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.31-4.b13
d934b5
- Report ppc64le as the architecture on ppc64le, not ppc64.
d934b5
- Resolves: rhbz#1194378
d934b5
d934b5
* Tue Jan 27 2015 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.31-3.b13
d934b5
- Depend on java-1.7.0-openjdk to build instead.
d934b5
- Resolves: rhbz#1194378
d934b5
9bf359
* Fri Jan 16 2015 Severin Gehwolf <sgehwolf@redhat.com> - 1:1.8.0.31-2.b13
9bf359
- Replace unmodified java.security file via headless post scriptlet.
9bf359
- Resolves: RHBZ#1180301
9bf359
9bf359
* Fri Jan 09 2015 Severin Gehwolf <sgehwolf@redhat.com> - 1:1.8.0.31-1.b13
9bf359
- Update to January CPU patch update.
9bf359
- Resolves: RHBZ#1180301
9bf359
9bf359
* Wed Dec 17 2014 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.25-5.b17
9bf359
- epoch synced to 1
9bf359
- Resolves: rhbz#1125260
9bf359
9bf359
* Fri Oct 24 2014 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.25-4.b17
9bf359
- updated aarch64 sources
9bf359
- all ppcs excluded from classes dump(1156151)
9bf359
- Resolves: rhbz#1125260
9bf359
9bf359
* Fri Oct 24 2014 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.25-3.b17
9bf359
- added patch12,removeSunEcProvider-RH1154143
9bf359
- xdump excluded from ppc64le (rh1156151)
9bf359
- Add check for src.zip completeness. See RH1130490 (by sgehwolf@redhat.com)
9bf359
- Resolves: rhbz#1125260
9bf359
9bf359
* Wed Oct 22 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.25-3.b17
9bf359
- Do not provide JPackage java-* provides. (see RH1155783)
9bf359
- Resolves: rhbz#1155786
9bf359
9bf359
* Mon Oct 20 2014 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.25-2.b17
9bf359
- ec/impl removed from source tarball
9bf359
- Resolves: rhbz#1125260
9bf359
9bf359
* Mon Oct 06 2014 Severin Gehwolf <sgehwolf@redhat.com> - 1:1.8.0.25-1.b17
9bf359
- Update to October CPU patch update.
9bf359
9bf359
* Thu Sep 25 2014 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.20-11.b26
9bf359
- Fix rpmlint warnings about vectoriesed ppcs
9bf359
- Resolves: rhbz#1125260
9bf359
9bf359
* Thu Sep 25 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.20-10.b26
9bf359
- Remove LIBDIR and funny definition of _libdir.
9bf359
- Fix rpmlint warnings about macros in comments.
9bf359
- Resolves: rhbz#1125260
9bf359
9bf359
* Mon Sep 22 2014 Severin Gehwolf <sgehwolf@redhat.com> - 1:1.8.0.20-10.b26
9bf359
- BR changed to java-1.8.0-openjdk in order to verify build by itself.
9bf359
- Resolves: rhbz#1125260
9bf359
9bf359
* Mon Sep 22 2014 Severin Gehwolf <sgehwolf@redhat.com> - 1:1.8.0.20-9.b26
9bf359
- Add hotspot compiler flag -fno-tree-vectorize which fixes the segfault in
9bf359
  the bytecode verifier on ppc/ppc64.
9bf359
- Resolves: rhbz#1125260
9bf359
9bf359
* Fri Sep 19 2014 Severin Gehwolf <sgehwolf@redhat.com> - 1:1.8.0.20-8.b26
9bf359
- Add patches for PPC zero build.
9bf359
- Fixes stack overflow problem. See RHBZ#1015432.
9bf359
- Fixes missing memory barrier in Atomic::xchg*
9bf359
- Fixes missing PPC32/PPC64 defines for Zero builds on power.
9bf359
- Resolves: rhbz#1125260
9bf359
9bf359
* Wed Sep 17 2014 Severin Gehwolf <sgehwolf@redhat.com> - 1:1.8.0.20-7.b26
9bf359
- Remove ppc/64 patches.
9bf359
- Build with java-1.7.0-openjdk.
9bf359
- Resolves: rhbz#1125260
9bf359
9bf359
* Wed Sep 10 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.20-6.b26
9bf359
- Revert to building against java-1.8.0-openjdk
9bf359
- Resolves: rhbz#1125260
9bf359
9bf359
* Wed Sep 10 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.20-5.b26
9bf359
- Update aarch64 hotspot to latest upstream version
9bf359
- Depend on java-1.7.0-openjdk to work around self-building issues
9bf359
- Resolves: rhbz#1125260
9bf359
9bf359
* Mon Sep 08 2014 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.20-4.b26
9bf359
- forcing build by itself (jdk8 by jdk8)
9bf359
- Resolves: rhbz#1125260
9bf359
9bf359
* Fri Sep 05 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.20-3.b26
9bf359
- Update aarch64 hotspot to latest version
9bf359
- Resolves: rhbz#1125260
9bf359
9bf359
* Fri Sep 05 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.20-2.b26
9bf359
- Enable jit for all ppc64 variants
9bf359
- Resolves: rhbz#1125260
9bf359
9bf359
* Fri Sep 05 2014 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.20-2.b26
9bf359
- moving all ppc64 to jit arches
9bf359
- using cpp interpreter for ppc64le
9bf359
- removing requirement on datadir/javazi-1.8/tzdb.dat
9bf359
- Resolves: rhbz#1125260
9bf359
9bf359
* Fri Sep 05 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.20-1.b26
9bf359
- Switch back to 8u20
9bf359
- Build using java-1.7.0-openjdk
9bf359
- Resolves: rhbz#1125260
9bf359
9bf359
* Thu Sep 04 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.40-5.b26
9bf359
- Update aarch64 hotspot to jdk7u40-b02 to match the rest of the JDK
9bf359
- Do not obsolete java-1.7.0-openjdk
9bf359
- Resolves: rhbz#1125260
9bf359
9bf359
* Wed Sep 03 2014 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.20-4.b26
9bf359
- forcing build by itself (jdk8 by jdk8)
9bf359
- Resolves: rhbz#1125260
9bf359
9bf359
* Wed Sep 03 2014 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.20-3.b26
9bf359
- fixed RH1136544, orriginal issue, state of pc64le jit remians mistery
9bf359
- Resolves: rhbz#1125260
9bf359
9bf359
* Thu Aug 28 2014 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.40-1.b02
9bf359
- adapted aarch64 patch
9bf359
- removed upstreamed patch  0001-PPC64LE-arch-support-in-openjdk-1.8.patch
9bf359
- added patch666 stackoverflow-ppc32_64-20140828.patch
9bf359
- commented out patch2 1015432.patch (does nearly the same as new patch666)
9bf359
- Resolves: rhbz#1125260
9bf359
9bf359
* Wed Aug 27 2014 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.40-1.b02
9bf359
- updated to u40-b02
9bf359
- adapted aarch64 patches
9bf359
9bf359
* Wed Aug 27 2014 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.40-1.b01
9bf359
- updated to u40-b01
9bf359
- adapted  java-1.8.0-openjdk-accessible-toolkit.patch
9bf359
- adapted  system-lcms.patch
9bf359
- removed patch8 set-active-window.patch
9bf359
- removed patch9 javadoc-error-jdk-8029145.patch
9bf359
- removed patch10 javadoc-error-jdk-8037484.patch
9bf359
- removed patch99 applet-hole.patch - itw 1.5.1 is able to ive without it
9bf359
9bf359
* Tue Aug 19 2014 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.11-19.b12
9bf359
- fixed desktop icons
9bf359
- Icon set to java-1.8.0
9bf359
- Development removed from policy tool
9bf359
9bf359
* Mon Aug 18 2014 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.11-18.b12
9bf359
- fixed jstack
9bf359
9bf359
* Mon Aug 18 2014 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.11-17.b12
9bf359
- added build requires and requires for headles  _datadir/javazi-1.8/tzdb.dat
9bf359
- restriction of tzdata provider, so we will be aware of another possible failure
9bf359
9bf359
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
9bf359
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
9bf359
9bf359
* Thu Aug 14 2014 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.11-15.b12
9bf359
- fixed provides/obsolates
9bf359
9bf359
* Tue Aug 12 2014 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.11-14.b12
9bf359
- forced to build in fully versioned dir
9bf359
9bf359
* Tue Aug 12 2014 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.11-13.b12
9bf359
- fixing tapset to support multipleinstalls
9bf359
- added more config/norepalce
9bf359
- policitool moved to jre
9bf359
9bf359
* Tue Aug 12 2014 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.11-12.b12
9bf359
- bumped release to build by previous release.
9bf359
- forcing rebuild by jdk8
9bf359
- uncommenting forgotten comment on tzdb link
9bf359
9bf359
* Tue Aug 12 2014 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.11-11.b12
9bf359
- backporting old fixes:
9bf359
- get rid of jre-abrt, uniquesuffix, parallel install, jsa files,
9bf359
  config(norepalce) bug, -fstack-protector-strong, OrderWithRequires,
9bf359
  nss config, multilib arches, provides/requires excludes
9bf359
- some additional cosmetic changes
9bf359
9bf359
* Tue Jul 22 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.11-8.b12
9bf359
- Modify aarch64-specific jvm.cfg to list server vm first
9bf359
9bf359
* Mon Jul 21 2014 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.11-7.b12
9bf359
- removed legacy aarch64 switches
9bf359
 - --with-jvm-variants=client and  --disable-precompiled-headers
9bf359
9bf359
* Tue Jul 15 2014 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.11-6.b12
9bf359
- added patch patch9999 enableArm64.patch to enable new hotspot
9bf359
9bf359
* Tue Jul 15 2014 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.11-5.b12
9bf359
- Attempt to update aarch64 *jdk* to u11b12, by resticting aarch64 sources to hotpot only
9bf359
9bf359
* Tue Jul 15 2014 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.11-1.b12
9bf359
- updated to security u11b12
9bf359
9bf359
* Tue Jun 24 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.5-13.b13
9bf359
- Obsolete java-1.7.0-openjdk
9bf359
9bf359
* Wed Jun 18 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.5-12.b13
9bf359
- Use system tzdata from tzdata-java
9bf359
9bf359
* Thu Jun 12 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.5-11.b13
9bf359
- Add patch from IcedTea to handle -j and -I correctly
9bf359
9bf359
* Wed Jun 11 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.5-11.b13
9bf359
- Backport javadoc fixes from upstream
9bf359
- Related: rhbz#1107273
9bf359
9bf359
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.8.0.5-10.b13
9bf359
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
9bf359
9bf359
* Mon Jun 02 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.5-9.b13
9bf359
- Build with OpenJDK 8
9bf359
9bf359
* Wed May 28 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.5-8.b13
9bf359
- Backport fix for JDK-8012224
9bf359
9bf359
* Wed May 28 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.5-7.b13
9bf359
- Require fontconfig and minimal fonts (xorg-x11-fonts-Type1) explicitly
9bf359
- Resolves rhbz#1101394
9bf359
9bf359
* Fri May 23 2014 Dan Horák <dan[at]danny.cz> - 1:1.8.0.5-6.b13
9bf359
- Enable build on s390/s390x
9bf359
9bf359
* Tue May 20 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.5-5.b13
9bf359
- Only check for debug symbols in libjvm if it exists.
9bf359
9bf359
* Fri May 16 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.5-4.b13
9bf359
- Include all sources in src.zip
9bf359
9bf359
* Mon Apr 28 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.5-4.b13
9bf359
- Check for debug symbols in libjvm.so
9bf359
9bf359
* Thu Apr 24 2014 Brent Baude <baude@us.ibm.com> - 1:1.8.0.5-3.b13
9bf359
- Add ppc64le support, bz# 1088344
9bf359
9bf359
* Wed Apr 23 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.5-2.b13
9bf359
- Build with -fno-devirtualize
9bf359
- Don't strip debuginfo from files
9bf359
9bf359
* Wed Apr 16 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.5-1.b13
9bf359
- Instrument build with various sanitizers.
9bf359
9bf359
* Tue Apr 15 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.5-1.b13
9bf359
- Update to the latest security release: OpenJDK8 u5 b13
9bf359
9bf359
* Fri Mar 28 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.0-2.b132
9bf359
- Include version information in desktop files
9bf359
- Move desktop files from tarball to top level source
9bf359
9bf359
* Tue Mar 25 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.0-1.0.b132
9bf359
- Switch from java8- style provides to java- style
9bf359
- Bump priority to reflect java version
9bf359
9bf359
* Fri Mar 21 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.0-0.35.b132
9bf359
- Disable doclint for compatiblity
9bf359
- Patch contributed by Andrew John Hughes
9bf359
9bf359
* Tue Mar 11 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.0-0.34.b132
9bf359
- Include jdeps and jjs for aarch64. These are present in b128.
9bf359
9bf359
* Mon Mar 10 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.0-0.33.b132
9bf359
- Update aarch64 tarball to the latest upstream release
9bf359
9bf359
* Fri Mar 07 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.0-0.32.b132
9bf359
- Fix `java -version` output
9bf359
9bf359
* Fri Mar 07 2014 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.0-0.31.b132
9bf359
- updated to rc4 aarch64 tarball
9bf359
- outdated removed: patch2031 system-lcmsAARCH64.patch patch2011 system-libjpeg-aarch64.patch
9bf359
  patch2021 system-libpng-aarch64.patch
9bf359
9bf359
* Thu Mar 06 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.0-0.30.b132
9bf359
- Update to b132
9bf359
9bf359
* Thu Mar 06 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.0-0.29.b129
9bf359
- Fix typo in STRIP_POLICY
9bf359
9bf359
* Mon Mar 03 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.0-0.28.b129
9bf359
- Remove redundant debuginfo files
9bf359
- Generate complete debug information for libjvm
9bf359
9bf359
* Tue Feb 25 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.0-0.27.b129
9bf359
- Fix non-headless libraries
9bf359
9bf359
* Tue Feb 25 2014 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.0-0.26.b129
9bf359
- Fix incorrect Requires
9bf359
9bf359
* Thu Feb 13 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.0-0.26.b129
9bf359
- Add -headless subpackage based on java-1.7.0-openjdk
9bf359
- Add abrt connector support
9bf359
- Add -accessibility subpackage
9bf359
9bf359
* Thu Feb 13 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.0-0.26.b129
9bf359
- Update to b129.
9bf359
9bf359
* Fri Feb 07 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.0-0.25.b126
9bf359
- Update to candidate Reference Implementation release.
9bf359
9bf359
* Fri Jan 31 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.0-0.24.b123
9bf359
- Forward port more patches from java-1.7.0-openjdk
9bf359
9bf359
* Mon Jan 20 2014 Omair Majid <omajid@redhat.com> - 1:1.8.0.0-0.23.b123
9bf359
- Update to jdk8-b123
9bf359
9bf359
* Thu Nov 14 2013 Omair Majid <omajid@redhat.com> - 1:1.8.0.0-0.22.b115
9bf359
- Update to jdk8-b115
9bf359
9bf359
* Wed Oct 30 2013 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.0-0.21.b106
9bf359
- added jre/lib/security/blacklisted.certs for aarch64
9bf359
- updated to preview_rc2 aarch64 tarball
9bf359
9bf359
* Sun Oct 06 2013 Omair Majid <omajid@redhat.com> - 1:1.8.0.0-0.20.b106
9bf359
- Fix paths in tapsets to work on non-x86_64
9bf359
- Use system libjpeg
9bf359
9bf359
* Thu Sep 05 2013 Omair Majid <omajid@redhat.com> - 1:1.8.0.0-0.19.b106
9bf359
- Fix with_systemtap conditionals
9bf359
9bf359
* Thu Sep 05 2013 Omair Majid <omajid@redhat.com> - 1:1.8.0.0-0.18.b106
9bf359
- Update to jdk8-b106
9bf359
9bf359
* Tue Aug 13 2013 Deepak Bhole <dbhole@redhat.com> - 1:1.8.0.0-0.17.b89x
9bf359
- Updated aarch64 to latest head
9bf359
- Dropped upstreamed patches
9bf359
9bf359
* Wed Aug 07 2013 Omair Majid <omajid@redhat.com> - 1:1.8.0.0-0.16.b89x
9bf359
- The zero fix only applies on b89 tarball
9bf359
9bf359
* Tue Aug 06 2013 Omair Majid <omajid@redhat.com> - 1:1.8.0.0-0.16.b89x
9bf359
- Add patch to fix zero on 32-bit build
9bf359
9bf359
* Mon Aug 05 2013 Omair Majid <omajid@redhat.com> - 1:1.8.0.0-0.16.b89x
9bf359
- Added additional build fixes for aarch64
9bf359
9bf359
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.8.0.0-0.16.b89x
9bf359
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
9bf359
9bf359
* Fri Aug 02 2013 Deepak Bhole <dbhole@redhat.com> - 1:1.8.0.0-0.15.b89
9bf359
- Added a missing includes patch (#302/%%{name}-arm64-missing-includes.patch)
9bf359
- Added --disable-precompiled-headers for arm64 build
9bf359
9bf359
* Mon Jul 29 2013 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.0-0.14.b89
9bf359
- added patch 301 - removeMswitchesFromx11.patch
9bf359
9bf359
* Fri Jul 26 2013 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.0-0.13.b89
9bf359
- added new aarch64 tarball
9bf359
9bf359
* Thu Jul 25 2013 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.0-0.12.b89
9bf359
- ifarchaarch64 then --with-jvm-variants=client
9bf359
9bf359
* Tue Jul 23 2013 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.0-0.11.b89
9bf359
- prelink dependence excluded also for aaech64
9bf359
- arm64 added to jitarches
9bf359
- added source100 config.guess to repalce the outdated one in-tree
9bf359
- added source101 config.sub  to repalce the outdated one in-tree
9bf359
- added patch2011 system-libjpegAARCH64.patch (as aarch64-port is little bit diferent)
9bf359
- added patch2031 system-lcmsAARCH64.patch (as aarch64-port is little bit diferent)
9bf359
- added gcc-c++ build depndece so builddep will  result to better situation
9bf359
9bf359
* Tue Jul 23 2013 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.0-0.10.b89
9bf359
- moved to latest working osurces
9bf359
9bf359
* Tue Jul 23 2013 Omair Majid <omajid@redhat.com> - 1:1.8.0.0-0.10.b89
9bf359
- Moved  to hg clone for generating sources.
9bf359
9bf359
* Sun Jul 21 2013 Jiri Vanek <jvanek@redhat.com> - 1:1.8.0.0-0.9.b89
9bf359
- added aarch 64 tarball, proposed usage of clone instead of tarballs
9bf359
9bf359
* Mon Jul 15 2013 Omair Majid <omajid@redhat.com> - 1:1.8.0.0-0.9.b89
9bf359
- Switch to xz for compression
9bf359
- Fixes RHBZ#979823
9bf359
9bf359
* Mon Jul 15 2013 Omair Majid <omajid@redhat.com> - 1:1.8.0.0-0.9.b89
9bf359
- Priority should be 0 until openjdk8 is released by upstream
9bf359
- Fixes RHBZ#964409
9bf359
9bf359
* Mon Jun 3 2013 Omair Majid <omajid@redhat.com> - 1:1.8.0.0-0.8.b89
9bf359
- Fix incorrect permissions on ct.sym
9bf359
9bf359
* Mon May 20 2013 Omair Majid <omajid@redhat.com> - 1:1.8.0.0-0.7.b89
9bf359
- Fix incorrect permissions on jars
9bf359
9bf359
* Fri May 10 2013 Adam Williamson <awilliam@redhat.com>
9bf359
- update scriptlets to follow current guidelines for updating icon cache
9bf359
9bf359
* Tue Apr 30 2013 Omair Majid <omajid@redhat.com> 1:1.8.0.0-0.5.b87
9bf359
- Update to b87
9bf359
- Remove all rhino support; use nashorn instead
9bf359
- Remove upstreamed/unapplied patches
9bf359
9bf359
* Tue Apr 23 2013 Karsten Hopp <karsten@redhat.com> 1:1.8.0.0-0.4.b79
9bf359
- update java-1.8.0-openjdk-ppc-zero-hotspot patch
9bf359
- use power64 macro
9bf359
9bf359
* Thu Mar 28 2013 Omair Majid <omajid@redhat.com> 1:1.8.0.0-0.3.b79
9bf359
- Add build fix for zero
9bf359
- Drop gstabs fixes; enable full debug info instead
9bf359
9bf359
* Wed Mar 13 2013 Omair Majid <omajid@redhat.com> 1:1.8.0.0-0.2.b79
9bf359
- Fix alternatives priority
9bf359
9bf359
* Tue Mar 12 2013 Omair Majid <omajid@redhat.com> 1:1.8.0.0-0.1.b79.f19
9bf359
- Update to jdk8-b79
9bf359
- Initial version for Fedora 19
9bf359
9bf359
* Tue Sep 04 2012 Andrew John Hughes <gnu.andrew@redhat.com> - 1:1.8.0.0-b53.1
9bf359
- Initial build from java-1.7.0-openjdk RPM