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
ee473e
# by default we build debug build during main build only on intel arches
ee473e
%ifarch %{ix86} x86_64
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
8ba7a7
%global bootstrap_build 0
8ba7a7
8ba7a7
%if %{bootstrap_build}
8ba7a7
%global targets bootcycle-images docs
8ba7a7
%else
8ba7a7
%global targets all
8ba7a7
%endif
9bf359
9bf359
%global aarch64         aarch64 arm64 armv8
9bf359
# sometimes we need to distinguish big and little endian PPC64
9bf359
%global ppc64le         ppc64le
9bf359
%global ppc64be         ppc64 ppc64p7
9bf359
%global multilib_arches %{power64} sparc64 x86_64
9bf359
%global jit_arches      %{ix86} x86_64 sparcv9 sparc64 %{aarch64} %{power64}
9bf359
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)
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
b8989a
%global revision        aarch64-jdk8u77-b03
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
8ba7a7
%global priority        %(TIP=18000%{updatever};  echo ${TIP/tip/99})
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
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
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 \\
8ba7a7
       "${sum}" = '321342219bb130d238ff144b9e5dbfc1' ]; 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 \\
8ba7a7
  --install %{_bindir}/java java %{jrebindir %%1}/java $PRIORITY  \\
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" \\
8ba7a7
    jre_"$X" %{_jvmdir}/%{jredir %%1} $PRIORITY \\
ee473e
    --slave %{_jvmjardir}/jre-"$X" \\
ee473e
    jre_"$X"_exports %{_jvmdir}/%{jredir %%1}
ee473e
done
ee473e
8ba7a7
update-alternatives --install %{_jvmdir}/jre-%{javaver}-%{origin} jre_%{javaver}_%{origin} %{_jvmdir}/%{jrelnk %%1} $PRIORITY \\
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 \\
8ba7a7
  --install %{_bindir}/javac javac %{sdkbindir %%1}/javac $PRIORITY \\
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" \\
8ba7a7
    java_sdk_"$X" %{_jvmdir}/%{sdkdir %%1} $PRIORITY  \\
ee473e
    --slave %{_jvmjardir}/java-"$X" \\
ee473e
    java_sdk_"$X"_exports %{_jvmjardir}/%{sdkdir %%1}
ee473e
done
ee473e
8ba7a7
update-alternatives --install %{_jvmdir}/java-%{javaver}-%{origin} java_sdk_%{javaver}_%{origin} %{_jvmdir}/%{sdkdir %%1} $PRIORITY  \\
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 \\
8ba7a7
  $PRIORITY
ee473e
exit 0
ee473e
}
ee473e
ee473e
%global postun_javadoc() %{expand:
ee473e
  alternatives --remove javadocdir %{_javadocdir}/%{uniquejavadocdir %%1}/api
ee473e
exit 0
ee473e
}
ee473e
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
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:
ee473e
Requires: fontconfig
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
ee473e
Requires: lksctp-tools
ee473e
# Post requires alternatives to install tool alternatives.
ee473e
Requires(post):   %{_sbindir}/alternatives
ee473e
# Postun requires alternatives to uninstall tool alternatives.
ee473e
Requires(postun): %{_sbindir}/alternatives
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
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
ee473e
# Postun requires alternatives to uninstall tool alternatives.
ee473e
Requires(postun): %{_sbindir}/alternatives
ee473e
ee473e
# Standard JPackage devel provides.
ee473e
#Provides: java-sdk-%{javaver}-%{origin}%1 = %{epoch}:%{version}
ee473e
#Provides: java-sdk-%{javaver}%1 = %{epoch}:%{version}
ee473e
#Provides: java-sdk-%{origin}%1 = %{epoch}:%{version}
ee473e
#Provides: java-sdk%1 = %{epoch}:%{javaver}
ee473e
#Provides: java-%{javaver}-devel%1 = %{epoch}:%{version}
ee473e
#Provides: java-devel-%{origin}%1 = %{epoch}:%{version}
ee473e
#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
ee473e
# Postun requires alternatives to uninstall javadoc alternative.
ee473e
Requires(postun): %{_sbindir}/alternatives
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}
b8989a
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
b8989a
# VERSION=aarch64-jdk8u77-b03 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.
9bf359
Source8: systemtap-tapset.tar.gz
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
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
8ba7a7
# S4890063, PR2304, RH1214835: HPROF: default text truncated when using doe=n option (upstreaming post-CPU 2015/07)
8ba7a7
Patch511: rh1214835.patch
8ba7a7
# Turn off strict overflow on IndicRearrangementProcessor{,2}.cpp following 8140543: Arrange font actions
8ba7a7
Patch512: no_strict_overflow.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
8ba7a7
# S8140620, PR2769: Find and load default.sf2 as the default soundbank on Linux
8ba7a7
Patch605: soundFontPatch.patch
8ba7a7
8ba7a7
# Patches upstream and appearing in 8u76
9e49de
# Fixes StackOverflowError on ARM32 bit Zero. See RHBZ#1206656
8ba7a7
# 8087120: [GCC5] java.lang.StackOverflowError on Zero JVM initialization on non x86 platforms
9e49de
Patch403: rhbz1206656_fix_current_stack_pointer.patch
8ba7a7
# S8143855: Bad printf formatting in frame_zero.cpp 
8ba7a7
Patch505: 8143855.patch
9e49de
8ba7a7
# Patches ineligible for 8u
8ba7a7
# 8043805: Allow using a system-installed libjpeg
8ba7a7
Patch201: system-libjpeg.patch
c2cb23
8ba7a7
# Local fixes
8ba7a7
# Turns off ECC support as we don't ship the SunEC provider currently
8ba7a7
Patch12: removeSunEcProvider-RH1154143.patch
d934b5
8ba7a7
# Non-OpenJDK fixes
8ba7a7
Patch300: jstack-pr1845.patch
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: redhat-lsb
9bf359
BuildRequires: zip
ee473e
BuildRequires: java-1.8.0-openjdk-devel
9bf359
# Zero-assembler build requirement.
9bf359
%ifnarch %{jit_arches}
9bf359
BuildRequires: libffi-devel
9bf359
%endif
ee473e
BuildRequires: tzdata-java >= 2015d
9bf359
9bf359
# cacerts build requirement.
9bf359
BuildRequires: openssl
9bf359
%if %{with_systemtap}
9bf359
BuildRequires: systemtap-sdt-devel
9bf359
%endif
9bf359
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
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
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
%patch12
9bf359
9bf359
# s390 build fixes
9bf359
%patch100
9bf359
%patch102
8ba7a7
%patch103
9bf359
9bf359
# Zero PPC fixes.
9e49de
%patch403
9bf359
9e49de
%patch603
9e49de
%patch601
9e49de
%patch602
8ba7a7
%patch605
5338de
8ba7a7
%patch502
5338de
%patch504
8ba7a7
%patch505
5338de
%patch511
8ba7a7
%patch512
d934b5
9bf359
# Extract systemtap tapsets
9bf359
%if %{with_systemtap}
9bf359
tar xzf %{SOURCE8}
9bf359
%patch300
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
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
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
8ba7a7
# pass these to the HotSpot C++ compiler...
8ba7a7
EXTRA_CFLAGS="%ourcppflags"
8ba7a7
# Disable various optimizations to fix miscompliation. See:
8ba7a7
# - https://bugzilla.redhat.com/show_bug.cgi?id=1120792
8ba7a7
EXTRA_CPP_FLAGS="%ourcppflags -fno-tree-vrp"
9bf359
# PPC/PPC64 needs -fno-tree-vectorize since -O3 would
9bf359
# otherwise generate wrong code producing segfaults.
9bf359
%ifarch %{power64} ppc
9bf359
EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-tree-vectorize"
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
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 \
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
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
9bf359
# Check unlimited policy has been used
9bf359
$JAVA_HOME/bin/javac -d . %{SOURCE13}
9bf359
$JAVA_HOME/bin/java TestCryptoLevel
9bf359
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
ee473e
#build cycles
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}
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}
9e49de
ee473e
# end, dual install
ee473e
done
ee473e
ee473e
%if %{include_normal_build} 
ee473e
# intentioanlly only for non-debug
9bf359
%pretrans headless -p <lua>
9bf359
-- see https://bugzilla.redhat.com/show_bug.cgi?id=1038092 for whole issue 
9bf359
9bf359
local posix = require "posix"
9bf359
ee473e
local currentjvm = "%{uniquesuffix %{nil}}"
ee473e
local jvmdir = "%{_jvmdir %{nil}}"
9bf359
local jvmDestdir = jvmdir
9bf359
local origname = "%{name}"
9bf359
local origjavaver = "%{javaver}"
9bf359
--trasnform substitute names to lua patterns
9bf359
--all percentages must be doubled for case of RPM escapingg
9bf359
local name = string.gsub(string.gsub(origname, "%%-", "%%%%-"), "%%.", "%%%%.")
9bf359
local javaver = string.gsub(origjavaver, "%%.", "%%%%.")
9bf359
local arch ="%{_arch}"
9bf359
local  debug = false;
9bf359
9bf359
local jvms = { }
9bf359
9bf359
local caredFiles = {"jre/lib/calendars.properties",
9bf359
              "jre/lib/content-types.properties",
9bf359
              "jre/lib/flavormap.properties",
9bf359
              "jre/lib/logging.properties",
9bf359
              "jre/lib/net.properties",
9bf359
              "jre/lib/psfontj2d.properties",
9bf359
              "jre/lib/sound.properties",
9bf359
              "jre/lib/deployment.properties",
9bf359
              "jre/lib/deployment.config",
9bf359
              "jre/lib/security/US_export_policy.jar",
9bf359
              "jre/lib/security/java.policy",
9bf359
              "jre/lib/security/java.security",
9bf359
              "jre/lib/security/local_policy.jar",
9bf359
              "jre/lib/security/nss.cfg,",
9bf359
              "jre/lib/ext"}
9bf359
9bf359
function splitToTable(source, pattern)
9bf359
  local i1 = string.gmatch(source, pattern) 
9bf359
  local l1 = {}
9bf359
  for i in i1 do
9bf359
    table.insert(l1, i)
9bf359
  end
9bf359
  return l1
9bf359
end
9bf359
9bf359
if (debug) then
9bf359
  print("started")
9bf359
end;
9bf359
9bf359
foundJvms = posix.dir(jvmdir);
9bf359
if (foundJvms == nil) then
9bf359
  if (debug) then
9bf359
    print("no, or nothing in "..jvmdir.." exit")
9bf359
  end;
9bf359
  return
9bf359
end
9bf359
9bf359
if (debug) then
9bf359
  print("found "..#foundJvms.."jvms")
9bf359
end;
9bf359
9bf359
for i,p in pairs(foundJvms) do
9bf359
-- regex similar to %{_jvmdir}/%{name}-%{javaver}*%{_arch} bash command
9bf359
--all percentages must be doubled for case of RPM escapingg
9bf359
  if (string.find(p, name.."%%-"..javaver..".*"..arch) ~= nil ) then
9bf359
    if (debug) then
9bf359
      print("matched:  "..p)
9bf359
    end;
9bf359
    if (currentjvm ==  p) then
9bf359
      if (debug) then
9bf359
        print("this jdk is already installed. exiting lua script")
9bf359
      end;
9bf359
      return
9bf359
    end ;
9bf359
    table.insert(jvms, p)
9bf359
  else
9bf359
    if (debug) then
9bf359
      print("NOT matched:  "..p)
9bf359
    end;
9bf359
  end
9bf359
end
9bf359
9bf359
if (#jvms <=0) then 
9bf359
  if (debug) then
9bf359
    print("no matching jdk in "..jvmdir.." exit")
9bf359
  end;
9bf359
  return
9bf359
end;
9bf359
9bf359
if (debug) then
9bf359
  print("matched "..#jvms.." jdk in "..jvmdir)
9bf359
end;
9bf359
9bf359
--full names are like java-1.7.0-openjdk-1.7.0.60-2.4.5.1.fc20.x86_64
9bf359
table.sort(jvms , function(a,b) 
9bf359
-- version-sort
9bf359
-- split on non word: . - 
9bf359
  local l1 = splitToTable(a, "[^%.-]+") 
9bf359
  local l2 = splitToTable(b, "[^%.-]+") 
9bf359
  for x = 1, math.min(#l1, #l2) do
9bf359
    local l1x = tonumber(l1[x])
9bf359
    local l2x = tonumber(l2[x])
9bf359
    if (l1x ~= nil and l2x ~= nil)then
9bf359
--if hunks are numbers, go with them 
9bf359
      if (l1x < l2x) then return true; end
9bf359
      if (l1x > l2x) then return false; end
9bf359
    else
9bf359
      if (l1[x] < l2[x]) then return true; end
9bf359
      if (l1[x] > l2[x]) then return false; end
9bf359
    end
9bf359
-- if hunks are equals then move to another pair of hunks
9bf359
  end
9bf359
return a
9bf359
9bf359
end)
9bf359
9bf359
if (debug) then
9bf359
  print("sorted lsit of jvms")
9bf359
  for i,file in pairs(jvms) do
9bf359
    print(file)
9bf359
  end
9bf359
end
9bf359
9bf359
latestjvm = jvms[#jvms]
9bf359
9bf359
9bf359
for i,file in pairs(caredFiles) do
9bf359
  local SOURCE=jvmdir.."/"..latestjvm.."/"..file
9bf359
  local DEST=jvmDestdir.."/"..currentjvm.."/"..file
9bf359
  if (debug) then
9bf359
    print("going to copy "..SOURCE)
9bf359
    print("to  "..DEST)
9bf359
  end;
9bf359
  local stat1 = posix.stat(SOURCE, "type");
9bf359
  if (stat1 ~= nil) then
9bf359
  if (debug) then
9bf359
    print(SOURCE.." exists")
9bf359
  end;
9bf359
  local s = ""
9bf359
  local dirs = splitToTable(DEST, "[^/]+") 
9bf359
  for i,d in pairs(dirs) do
9bf359
    if (i == #dirs) then
9bf359
      break
9bf359
    end
9bf359
    s = s.."/"..d
9bf359
    local stat2 = posix.stat(s, "type");
9bf359
    if (stat2 == nil) then
9bf359
      if (debug) then
9bf359
        print(s.." does not exists, creating")
9bf359
      end;
9bf359
      posix.mkdir(s)
9bf359
    else
9bf359
      if (debug) then
9bf359
        print(s.." exists,not creating")
9bf359
      end;
9bf359
    end
9bf359
  end
9bf359
-- Copy with -a to keep everything intact
9bf359
    local exe = "cp".." -ar "..SOURCE.." "..DEST
9bf359
    if (debug) then
9bf359
      print("executing "..exe)
9bf359
    end;    
9bf359
    os.execute(exe)
9bf359
  else
9bf359
    if (debug) then
9bf359
      print(SOURCE.." does not exists")
9bf359
    end;
9bf359
  end
9bf359
end
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}}
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}}
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
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
ee473e
%files accessibility-debug
ee473e
%{files_accessibility %{debug_suffix_unquoted}}
ee473e
%endif
9bf359
9bf359
%changelog
b8989a
* Wed Mar 23 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.77-0.b03
b8989a
- Remove what remains of the SunEC sources in the remove-intree-libraries script.
b8989a
- Resolves: rhbz#1320664
b8989a
b8989a
* Wed Mar 23 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.77-0.b03
b8989a
- Update to u77b03.
b8989a
- Drop 8146566 which is applied upstream.
b8989a
- Replace s390 Java options patch with general version from IcedTea.
b8989a
- Apply s390 patches unconditionally to avoid arch-specific patch failures.
b8989a
- Remove fragment of s390 size_t patch that unnecessarily removes a cast, breaking ppc64le.
b8989a
- Remove aarch64-specific suffix as update/build version are now the same as for other archs.
b8989a
- Only use z format specifier on s390, not s390x.
b8989a
- Adjust tarball generation script to allow ecc_impl.h to be included.
b8989a
- Correct spelling mistakes in tarball generation script.
b8989a
- Synchronise minor changes from Fedora.
b8989a
- Use a simple backport for PR2462/8074839.
b8989a
- Don't backport the crc check for pack.gz. It's not tested well upstream.
b8989a
- Resolves: rhbz#1320664
b8989a
8ba7a7
* Fri Jan 15 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.71-2.b15
8ba7a7
- Add md5sum for previous java.security file so it gets updated.
8ba7a7
- Resolves: rhbz#1295753
8ba7a7
8ba7a7
* Thu Jan 14 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.71-1.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
8ba7a7
- Resolves: rhbz#1295753
8ba7a7
8ba7a7
* Wed Jan 13 2016 Andrew Hughes <gnu.andrew@redhat.com> - 1:1.8.0.71-0.b15
8ba7a7
- January 2016 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.
8ba7a7
- Provide optional boostrap build and turn it off by default.
8ba7a7
- Turn off additional CFLAGS/LDFLAGS on AArch64 as bootstrapping failed.
8ba7a7
- Add patch for size_t formatting on s390 as size_t != intptr_t there.
8ba7a7
- Resolves: rhbz#1295753
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)
8ba7a7
- Resolves: rhbz#1295753
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