From 64f91cc76ac84383c1956b87ebb9b7aeba298b81 Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 00:08:37 +0100 Subject: [PATCH] update to 11.0.8_10 [release 11.0.8_10-1mamba;Sun Nov 22 2020] --- README.md | 2 + freedesktop-java.desktop | 12 + freedesktop-jconsole.desktop | 11 + freedesktop-jshell.desktop | 9 + java-openjdk11.spec | 770 +++++++++++++++++++++++++++++++++++ 5 files changed, 804 insertions(+) create mode 100644 freedesktop-java.desktop create mode 100644 freedesktop-jconsole.desktop create mode 100644 freedesktop-jshell.desktop create mode 100644 java-openjdk11.spec diff --git a/README.md b/README.md index 8523664..36e9708 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # java-openjdk11 +OpenJDK Java %(echo environment. + diff --git a/freedesktop-java.desktop b/freedesktop-java.desktop new file mode 100644 index 0000000..7235ddf --- /dev/null +++ b/freedesktop-java.desktop @@ -0,0 +1,12 @@ +[Desktop Entry] +Name=OpenJDK Java @VER@ Runtime +Name[fi]=OpenJDK Java @VER@ - ajonaikainen ympäristö +Comment=OpenJDK Java @VER@ Runtime +Comment[fi]=OpenJDK Java @VER@ - ajonaikainen ympäristö +Keywords=java;runtime +Exec=/usr/lib/jvm/java-@VER@-openjdk/bin/java -jar +Terminal=false +Type=Application +Icon=java@VER@-openjdk +MimeType=application/x-java-archive;application/java-archive;application/x-jar; +NoDisplay=true diff --git a/freedesktop-jconsole.desktop b/freedesktop-jconsole.desktop new file mode 100644 index 0000000..9152d4c --- /dev/null +++ b/freedesktop-jconsole.desktop @@ -0,0 +1,11 @@ +[Desktop Entry] +Name=OpenJDK Java @VER@ Console +Name[fi]=OpenJDK Java @VER@ - konsoli +Comment=OpenJDK Java @VER@ Monitoring & Management Console +Comment[fi]=OpenJDK Java @VER@ - valvonta- ja hallintakonsoli +Keywords=java;console;monitoring +Exec=/usr/lib/jvm/java-@VER@-openjdk/bin/jconsole +Terminal=false +Type=Application +Icon=java@VER@-openjdk +Categories=Application;System; diff --git a/freedesktop-jshell.desktop b/freedesktop-jshell.desktop new file mode 100644 index 0000000..a43f537 --- /dev/null +++ b/freedesktop-jshell.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Name=OpenJDK Java @VER@ Shell +Comment=OpenJDK Java @VER@ Shell +Keywords=java;shell +Exec=/usr/lib/jvm/java-@VER@-openjdk/bin/jshell +Terminal=true +Type=Application +Icon=java@VER@-openjdk +Categories=Application;System; diff --git a/java-openjdk11.spec b/java-openjdk11.spec new file mode 100644 index 0000000..6500d36 --- /dev/null +++ b/java-openjdk11.spec @@ -0,0 +1,770 @@ +%define javaver %(echo %version | cut -d. -f1) +%define updver %(echo %version | cut -d_ -f2) +%define srcver %(echo %version | tr _ +) +%define altver %(expr 60 + %javaver) + +# bootstrap with external binary java environment +%define bootstrap 1 + +%define archbuild %{_target_cpu} + +%ifarch %{ix86} +%define archbuild x86 +%endif + +%ifarch x86_64 +%define archbuild x86_64 +%endif + +%ifarch arm +%define archbuild aarch32 +%endif + +%ifarch aarch64 +%define archbuild aarch64 +%endif + +%define buildoutputdir build/linux-%{archbuild}-normal-server-release + +%define javaprefix %{_jvmdir} + +%define sdkdir java-%{javaver}-openjdk-%{_arch} +%define sdklnk java-%{javaver}-openjdk-%{_arch} +%define sdkbindir %{_jvmdir}/%{sdklnk}/bin +%define sdklibdir %{_jvmdir}/%{sdklnk}/lib + +%define jredir %{sdkdir}/jre +%define jrelnk jre-%{javaver}-openjdk-%{_arch} +%define jrebindir %{_jvmdir}/%{jrelnk}/bin + +# Some bootstrap binary archives taken from: https://www.azul.com/downloads/zulu-community/?package=jdk +%if "%{?bootstrap}" == "1" +%ifarch x86_64 +%define bootopt --with-boot-jdk=$HOME/jdk-11.0.9.1+1 +%endif +%ifarch %{ix86} +%define bootopt --with-boot-jdk=$HOME/zulu11.43.55-ca-jdk11.0.9.1-linux_i686 +%endif +%ifarch arm +%define bootopt --with-boot-jdk=$HOME/zulu11.43.100-ca-jdk11.0.9.1-linux_aarch32sf +%endif +%ifarch aarch64 +%define bootopt --with-boot-jdk=$HOME/zulu11.43.100-ca-jdk11.0.9.1-linux_aarch64 +%endif +%endif + +%define _jvmdir /usr/lib/jvm + +Name: java-openjdk11 +Version: 11.0.8_10 +Release: 1mamba +Summary: OpenJDK Java %{javaver} environment +Group: System/Libraries/Java +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://jdk.java.net/archive/ +Source: https://hg.openjdk.java.net/jdk-updates/jdk%{javaver}u/archive/jdk-%{srcver}.tar.gz +Source1: freedesktop-java.desktop +Source2: freedesktop-jconsole.desktop +Source3: freedesktop-jshell.desktop +License: GPL (with exceptions) +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libX11-devel +BuildRequires: libXext-devel +BuildRequires: libXi-devel +BuildRequires: libXrender-devel +BuildRequires: libXtst-devel +BuildRequires: libalsa-devel +BuildRequires: libfreetype-devel +BuildRequires: libgcc +BuildRequires: libgif-devel +BuildRequires: libjpeg-devel +BuildRequires: liblcms2-devel +BuildRequires: libpng-devel +BuildRequires: libstdc++6-devel +BuildRequires: libz-devel +## AUTOBUILDREQ-END +#BuildRequires: apache-ant +#BuildRequires: apache-ant-nodeps +BuildRequires: binutils +BuildRequires: bison +BuildRequires: ca-certificates +BuildRequires: coreutils +BuildRequires: debianutils +#BuildRequires: desktop-file-utils +BuildRequires: flex +BuildRequires: gawk +#BuildRequires: gdb +BuildRequires: ksh +BuildRequires: mercurial +BuildRequires: pkgconfig +BuildRequires: sed +BuildRequires: tar +BuildRequires: util-linux-ng +BuildRequires: unzip +BuildRequires: wget +BuildRequires: xorg-proto-devel +BuildRequires: zip +BuildRequires: ca-certificates +BuildRequires: jpackage-utils +#BuildRequires: tzdata-java +BuildRequires: libnss-devel +BuildRequires: llvm-devel +#BuildRequires: lsb-core +%if "%{?bootstrap}" != "1" +BuildRequires: java-environment >= 10 +%endif +%if "%{stage1}" == "1" +BuildRequires: eclipse-ecj +%endif +#BuildRequires: java-rhino +#BuildRequires: xalan-j2 +#BuildRequires: xerces-j2 +#BuildRequires: xml-commons-apis +%ifarch arm +BuildRequires: libatomic-devel +%endif +Requires: %{name}-runtime = %{?epoch:%epoch:}%{version}-%{release} +Requires: menu-java +Provides: java-devel = %{javaver} +Provides: java-sdk = %{javaver} +Provides: %{_bindir}/javac +Provides: %{_bindir}/jar +Provides: %{_bindir}/jarsigner +Provides: %{_bindir}/javadoc +Provides: %{_bindir}/javap +Provides: %{_bindir}/jconsole +Provides: %{_bindir}/jdb +Provides: %{_bindir}/jinfo +Provides: %{_bindir}/jmap +Provides: %{_bindir}/jps +Provides: %{_bindir}/jrunscript +Provides: %{_bindir}/jstack +Provides: %{_bindir}/jstat +Provides: %{_bindir}/jstatd +Provides: %{_bindir}/rmic +Provides: %{_bindir}/serialver +Provides: java-environment = %{javaver} +Provides: java-environment-openjdk = %{javaver} +#Provides: java-openjdk = %{javaver} +#Provides: java-openjdk +#Obsoletes: java-openjdk +Provides: sun-java +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +OpenJDK Java %{javaver} environment. + +%package headless +Summary: OpenJDK Java %{javaver} headless runtime environment +Group: System/Libraries/Java +Requires: ca-certificates +Requires: jpackage-utils +Provides: java-runtime-headless = %{javaver} +Provides: java-runtime-headless-openjdk = %{javaver} +Provides: %{_bindir}/java +Provides: %{_bindir}/keytool +Provides: %{_bindir}/pack200 +Provides: %{_bindir}/rmid +Provides: %{_bindir}/rmiregistry +Provides: %{_bindir}/unpack200 + +%description headless +OpenJDK Java %{javaver} headless runtime environment + +%package runtime +Summary: OpenJDK Java %{javaver} runtime environment +Group: System/Libraries/Java +Requires: dejavu-lgc-fonts-ttf +Requires: baekmuk-ttf-fonts +Requires: sazanami-fonts +Requires: cjkuni-ukai-ttf-fonts +Requires: cjkuni-uming-ttf-fonts +Requires: jpackage-utils +#Requires: java-rhino +Requires: menu-java +#Requires: openssl +#Requires: tzdata-java +Provides: java-runtime = %{javaver} +Provides: java-runtime-openjdk = %{javaver} +Requires: %{name}-headless = %{?epoch:%epoch:}%{version}-%{release} +#Provides: java-openjdk-runtime = %{javaver} +#Provides: java-openjdk-runtime +#Obsoletes: java-openjdk-runtime + +%description runtime +OpenJDK Java %{javaver} runtime environment + +%package demo +Summary: OpenJDK Java %{javaver} demos +Group: Development/Languages +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description demo +OpenJDK Java %{javaver} demos. + +%package src +Summary: OpenJDK Java %{javaver} source bundle +Group: Development/Languages +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Provides: java-src = %{javaver} + +%description src +OpenJDK Java %{javaver} source bundle. + +%package javadoc +Summary: OpenJDK Java %{javaver} API documentation +Group: Documentation +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} +Provides: java-javadoc = %{javaver} + +%description javadoc +OpenJDK Java %{javaver} API documentation. + +%prep +%setup -q -n jdk11u-jdk-%{srcver} +## Build workaround +#%ifnarch x86_64 +#sed "s|-Xshare:dump|-Xshare:dump -Xmx512m|" Makefile.in +#%endif + +%build +#if [[ ${CARCH} = i686 ]]; then +# echo "Removing '-fno-plt' from CFLAGS and CXXFLAGS to prevent build fail with this architecture" +# _CFLAGS=${CFLAGS/-fno-plt/} +# _CXXFLAGS=${CXXFLAGS/-fno-plt/} +# fi + +bash configure \ + %{?bootopt} \ + --with-version-build="%{updver}" \ + --with-version-pre="" \ + --with-version-opt="" \ + --with-stdc++lib=dynamic \ + --with-extra-cflags="%{optflags} -fcommon" \ + --with-extra-cxxflags="%{optflags} -fcommon" \ + --with-extra-ldflags="" \ + --with-libjpeg=system \ + --with-giflib=system \ + --with-libpng=system \ + --with-lcms=system \ + --with-zlib=system \ + --with-jvm-features=zgc \ + --enable-unlimited-crypto \ + --disable-warnings-as-errors \ + $RPM_BUILD_NCPUS + +make images legacy-jre-image docs + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +pushd %{buildoutputdir}/images/ + +# Install main files +# JDK +install -d -m 755 %{buildroot}%{_jvmdir}/%{sdkdir} +cp -a jdk/{bin,demo,include,lib} %{buildroot}%{_jvmdir}/%{sdkdir} + +# JRE +install -d -m 755 %{buildroot}%{_jvmdir}/%{jredir} +cp -a jre/{bin,lib} %{buildroot}%{_jvmdir}/%{jredir} + +# Install cacerts symlink. +rm -f %{buildroot}%{_jvmdir}/%{jredir}/lib/security/cacerts +ln -sf %{_sysconfdir}/pki/java/cacerts %{buildroot}%{_jvmdir}/%{jredir}/lib/security + +# Conf +install -d -m755 %{buildroot}%{_sysconfdir} +cp -r jdk/conf %{buildroot}%{_sysconfdir}/%{name} +ln -s %{_sysconfdir}/%{name} %{buildroot}%{_jvmdir}/%{sdkdir}/conf + +## Install JCE policy symlinks +#install -d -m 755 %{buildroot}%{_jvmprivdir}/java-%{java_version}-openjdk/jce/vanilla + +## Install versionless symlinks. +ln -sf %{jredir} %{buildroot}%{_jvmdir}/%{jrelnk} + +# Install man pages. +install -d -m 755 %{buildroot}%{_mandir}/man1 +cd jdk +for manpage in man/man1/* ; do + install -m 644 -p $manpage %{buildroot}%{_mandir}/man1/$(basename $manpage .1)-openjdk%{javaver}.1 + #ln -s $(basename $manpage .1)-openjdk%{javaver}.1 %{buildroot}%{_mandir}/man1/$(basename $manpage) +done +cd ../jre +for manpage in man/man1/* ; do + install -m 644 -p $manpage %{buildroot}%{_mandir}/man1/$(basename $manpage .1)-openjdk%{javaver}.1 + #ln -s $(basename $manpage .1)-openjdk%{javaver}.1 %{buildroot}%{_mandir}/man1/$(basename $manpage) +done +cd .. +ln -s %{_mandir} %{buildroot}%{_jvmdir}/%{sdkdir}/man + +# Install demos +cp -a jdk/demo %{buildroot}%{_jvmdir}/%{sdkdir} + +## Install samples +# rm -rf sample/rmi +# sed -i "s|PATH=.*|PATH=%{jrebindir}|" bin/java-rmi.cgi +# mkdir -p sample/rmi +# cp bin/java-rmi.cgi sample/rmi +# cp -a sample %{buildroot}%{_jvmdir}/%{sdkdir} +# rm -rf %{buildroot}%{_jvmdir}/%{sdkdir}/bin/java-rmi.cgi +popd + +# Install Javadoc documentation +install -d -m 755 %{buildroot}%{_javadocdir} +cp -a %{buildoutputdir}/images/docs %{buildroot}%{_javadocdir}/%{sdkdir} + +# Install icons and desktop files +install -d -m 755 %{buildroot}%{_datadir}/{applications,pixmaps} + +for s in 16 24 32 48; do + install -D -m0644 src/java.desktop/unix/classes/sun/awt/X11/java-icon${s}.png \ + %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps/%{name}.png +done + +install -D -m0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/java-openjdk%{javaver}.desktop +install -D -m0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/jconsole-openjdk%{javaver}.desktop +install -D -m0644 %{SOURCE3} %{buildroot}%{_datadir}/applications/jshell-openjdk%{javaver}.desktop +sed -i "s|@VER@|%{javaver}|g" %{buildroot}%{_datadir}/applications/*.desktop + +# remove debuginfo files +find %{buildroot} -name *.debuginfo -exec rm -f {} \; + +# fix library permissions +find %{buildroot} -iname '*.so' -exec chmod +x {} \; + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post +if [ $1 -ge 1 ]; then +# new install + if ! echo ${PATH} | grep -q %{sdkbindir}; then + export PATH="$PATH:%{sdkbindir}" + fi + for b in javac jar jarsigner javadoc javap jconsole jdb jinfo jmap jps jrunscript jstack jstat jstatd rmic serialver ; do + [ -L /usr/bin/$b -a "`readlink /usr/bin/$b`" != "/etc/alternatives/$b" ] && rm -f /usr/bin/$b + /usr/sbin/update-alternatives --install %{_bindir}/$b $b %{sdkbindir}/$b %{altver} + done +# legacy + /usr/sbin/update-alternatives --install %{javaprefix}/jdk jdk %{_jvmdir}/%{sdklnk} %{altver} +# default + /usr/sbin/update-alternatives --install %{javaprefix}/java-%{javaver}-openjdk jdk_%{javaver}_openjdk %{_jvmdir}/%{sdklnk} %{altver} +# x eclipse + /usr/sbin/update-alternatives --install %{javaprefix}/java-%{javaver} jdk_%{javaver} %{_jvmdir}/%{sdklnk} %{altver} + /usr/sbin/update-alternatives --install %{javaprefix}/java-openjdk jdk_openjdk %{_jvmdir}/%{sdklnk} %{altver} + /usr/sbin/update-alternatives --install %{javaprefix}/java jdk_java %{_jvmdir}/%{sdklnk} %{altver} + +# /usr/sbin/update-alternatives --install %{_jvmjardir}/jdk jdk_exports %{_jvmjardir}/%{sdklnk} %{altver} +# /usr/sbin/update-alternatives --install %{_jvmjardir}/java-%{javaver}-openjdk jdk_%{javaver}_openjdk_exports %{_jvmjardir}/%{sdklnk} %{altver} +# /usr/sbin/update-alternatives --install %{_jvmjardir}/java jdk_java_exports %{_jvmjardir}/%{sdklnk} %{altver} +# /usr/sbin/update-alternatives --install %{_jvmjardir}/java-openjdk jdk_openjdk_exports %{_jvmjardir}/%{sdklnk} %{altver} +# /usr/sbin/update-alternatives --install %{_jvmjardir}/java-%{javaver} jdk_%{javaver}_exports %{_jvmjardir}/%{sdklnk} %{altver} +fi +: + +%preun +if [ $1 -eq 0 ]; then + for b in javac jar jarsigner javadoc javap jconsole jdb jinfo jmap jps jrunscript jstack jstat jstatd rmic serialver ; do + /usr/sbin/update-alternatives --remove $b \ + %{sdkbindir}/$b + done + + /usr/sbin/update-alternatives --remove jdk %{_jvmdir}/%{sdklnk} + /usr/sbin/update-alternatives --remove jdk_%{javever}_openjdk %{_jvmdir}/%{sdklnk} + /usr/sbin/update-alternatives --remove jdk_java %{_jvmdir}/%{sdklnk} + /usr/sbin/update-alternatives --remove jdk_openjdk %{_jvmdir}/%{sdklnk} + /usr/sbin/update-alternatives --remove jdk_%{javaver} %{_jvmdir}/%{sdklnk} + +# /usr/sbin/update-alternatives --remove jdk_exports %{_jvmjardir}/%{sdklnk} +# /usr/sbin/update-alternatives --remove jdk_%{javaver}_openjdk_exports %{_jvmjardir}/%{sdklnk} +# /usr/sbin/update-alternatives --remove jdk_java_exports %{_jvmjardir}/%{sdklnk} +# /usr/sbin/update-alternatives --remove jdk_openjdk_exports %{_jvmjardir}/%{sdklnk} +# /usr/sbin/update-alternatives --remove jdk_%{javaver}_exports %{_jvmjardir}/%{sdklnk} + +fi +: + +%postun +if [ $1 -eq 0 ]; then + for b in javac jar jarsigner javadoc javap jconsole jdb jinfo jmap jps jrunscript jstack jstat jstatd rmic serialver ; do + /usr/sbin/update-alternatives --remove $b \ + %{sdkbindir}/$b + done + + /usr/sbin/update-alternatives --remove jdk %{_jvmdir}/%{sdklnk} + /usr/sbin/update-alternatives --remove jdk_%{javaver}_openjdk %{_jvmdir}/%{sdklnk} + /usr/sbin/update-alternatives --remove jdk_java %{_jvmdir}/%{sdklnk} + /usr/sbin/update-alternatives --remove jdk_openjdk %{_jvmdir}/%{sdklnk} + /usr/sbin/update-alternatives --remove jdk_%{javaver} %{_jvmdir}/%{sdklnk} + +# /usr/sbin/update-alternatives --remove jdk_exports %{_jvmjardir}/%{sdklnk} +# /usr/sbin/update-alternatives --remove jdk_%{javaver}_openjdk_exports %{_jvmjardir}/%{sdklnk} +# /usr/sbin/update-alternatives --remove jdk_java_exports %{_jvmjardir}/%{sdklnk} +# /usr/sbin/update-alternatives --remove jdk_openjdk_exports %{_jvmjardir}/%{sdklnk} +# /usr/sbin/update-alternatives --remove jdk_%{javaver}_exports %{_jvmjardir}/%{sdklnk} + +fi +: + +%post headless + if ! echo ${PATH} | grep -q %{jrebindir}; then + export PATH="$PATH:%{jrebindir}" + fi + + for b in java keytool pack200 rmid rmiregistry unpack200 ; do + [ -L /usr/bin/$b -a "`readlink /usr/bin/$b`" != "/etc/alternatives/$b" ] && + rm -f /usr/bin/$b 2>/dev/null + /usr/sbin/update-alternatives \ + --install %{_bindir}/$b $b \ + %{jrebindir}/$b %{altver} + done + + /usr/sbin/update-alternatives --install %{javaprefix}/jre jre %{_jvmdir}/%{jrelnk} %{altver} + /usr/sbin/update-alternatives --install %{javaprefix}/jre-%{javaver} jre_%{javaver} %{_jvmdir}/%{jrelnk} %{altver} + /usr/sbin/update-alternatives --install %{javaprefix}/jre-%{javaver}-openjdk jre_%{javaver}_openjdk %{_jvmdir}/%{jrelnk} %{altver} + /usr/sbin/update-alternatives --install %{javaprefix}/jre-openjdk jre_openjdk %{_jvmdir}/%{jrelnk} %{altver} + +# /usr/sbin/update-alternatives --install %{_jvmjardir}/jre jre_exports %{_jvmjardir}/%{jrelnk} %{altver} +# /usr/sbin/update-alternatives --install %{_jvmjardir}/jre-openjdk jre_openjdk_exports %{_jvmjardir}/%{jrelnk} %{altver} +# /usr/sbin/update-alternatives --install %{_jvmjardir}/jre-%{javaver}-openjdk jre_%{javaver}_openjdk_exports %{_jvmjardir}/%{jrelnk} %{altver} +# /usr/sbin/update-alternatives --install %{_jvmjardir}/jre-%{javaver} jre_%{javaver}_exports %{_jvmjardir}/%{jrelnk} %{altver} +: + +%preun headless +if [ $1 -eq 0 ]; then + + for b in java keytool pack200 rmid rmiregistry unpack200 ; do + [ -L /usr/bin/$b -a "`readlink /usr/bin/$b`" != "/etc/alternatives/$b" ] && + rm -f /usr/bin/$b + /usr/sbin/update-alternatives --remove $b %{jrebindir}/$b + done + + /usr/sbin/update-alternatives --remove jre %{_jvmdir}/%{jrelnk} + /usr/sbin/update-alternatives --remove jre_openjdk %{_jvmdir}/%{jrelnk} + /usr/sbin/update-alternatives --remove jre_%{javaver}_openjdk %{_jvmdir}/%{jrelnk} + /usr/sbin/update-alternatives --remove jre_%{javaver} %{_jvmdir}/%{jrelnk} + +# /usr/sbin/update-alternatives --remove jre_exports %{_jvmjardir}/%{jrelnk} +# /usr/sbin/update-alternatives --remove jre_openjdk_exports %{_jvmjardir}/%{jrelnk} +# /usr/sbin/update-alternatives --remove jre_%{javaver}_openjdk_exports %{_jvmjardir}/%{jrelnk} +# /usr/sbin/update-alternatives --remove jre_%{javaver}_exports %{_jvmjardir}/%{jrelnk} +fi +: + +%postun headless +if [ $1 -eq 0 ]; then + + for b in java keytool pack200 rmid rmiregistry unpack200 ; do + [ -L /usr/bin/$b -a "`readlink /usr/bin/$b`" != "/etc/alternatives/$b" ] && rm -f /usr/bin/$b + /usr/sbin/update-alternatives --remove $b %{jrebindir}/$b + done + + /usr/sbin/update-alternatives --remove jre %{_jvmdir}/%{jrelnk} + /usr/sbin/update-alternatives --remove jre_openjdk %{_jvmdir}/%{jrelnk} + /usr/sbin/update-alternatives --remove jre_%{javaver}_openjdk %{_jvmdir}/%{jrelnk} + /usr/sbin/update-alternatives --remove jre_%{javaver} %{_jvmdir}/%{jrelnk} + +# /usr/sbin/update-alternatives --remove jre_exports %{_jvmjardir}/%{jrelnk} +# /usr/sbin/update-alternatives --remove jre_openjdk_exports %{_jvmjardir}/%{jrelnk} +# /usr/sbin/update-alternatives --remove jre_%{javaver}_openjdk_exports %{_jvmjardir}/%{jrelnk} +# /usr/sbin/update-alternatives --remove jre_%{javaver}_exports %{_jvmjardir}/%{jrelnk} +fi +: + +%post runtime +# Update for jnlp handling. +update-desktop-database %{_datadir}/applications &> /dev/null || : + +touch --no-create %{_datadir}/icons/hicolor +if [ -x %{_bindir}/gtk-update-icon-cache ] ; then + %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor +fi +: + +%postun runtime +# Update for jnlp handling. +update-desktop-database %{_datadir}/applications &> /dev/null || : + +touch --no-create %{_datadir}/icons/hicolor +if [ -x %{_bindir}/gtk-update-icon-cache ] ; then + %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor +fi +: + +%post javadoc +/usr/sbin/update-alternatives --install %{_javadocdir}/java javadocdir%{javaver}-openjdk %{_javadocdir}/%{sdkdir}/api %{altver} +: + +%files +%defattr(-,root,root) +%{_jvmdir}/%{sdkdir}/bin/* +%dir %{_jvmdir}/%{sdkdir}/include +%{_jvmdir}/%{sdkdir}/include/*.h +%dir %{_jvmdir}/%{sdkdir}/include/linux +%{_jvmdir}/%{sdkdir}/include/linux/*.h +%{_jvmdir}/%{sdkdir}/lib/ct.sym +%{_jvmdir}/%{sdkdir}/lib/jexec +%{_jvmdir}/%{sdkdir}/lib/classlist +%dir %{_jvmdir}/%{sdkdir}/lib/jfr +%{_jvmdir}/%{sdkdir}/lib/jfr/* +%dir %{_jvmdir}/%{sdkdir}/lib/jli +%{_jvmdir}/%{sdkdir}/lib/jli/* +%{_jvmdir}/%{sdkdir}/lib/jrt-fs.jar +%{_jvmdir}/%{sdkdir}/lib/jspawnhelper* +%{_jvmdir}/%{sdkdir}/lib/jvm.cfg +%{_jvmdir}/%{sdkdir}/lib/lib*.so +%{_jvmdir}/%{sdkdir}/lib/modules +%{_jvmdir}/%{sdkdir}/lib/psfont.properties.ja +%{_jvmdir}/%{sdkdir}/lib/psfontj2d.properties +%dir %{_jvmdir}/%{sdkdir}/lib/security +%{_jvmdir}/%{sdkdir}/lib/security/* +%dir %{_jvmdir}/%{sdkdir}/lib/server +%{_jvmdir}/%{sdkdir}/lib/server/* +%{_jvmdir}/%{sdkdir}/lib/tzdb.dat +%{_datadir}/applications/java-openjdk%{javaver}.desktop +%{_datadir}/applications/jconsole-openjdk%{javaver}.desktop +%{_datadir}/applications/jshell-openjdk%{javaver}.desktop +%{_datadir}/icons/hicolor/*/apps/java-openjdk%{javaver}.png +%{_mandir}/man1/jar-openjdk%{javaver}.1* +%{_mandir}/man1/jarsigner-openjdk%{javaver}.1* +%{_mandir}/man1/javac-openjdk%{javaver}.1* +%{_mandir}/man1/javadoc-openjdk%{javaver}.1* +%{_mandir}/man1/javap-openjdk%{javaver}.1* +%{_mandir}/man1/jconsole-openjdk%{javaver}.1* +%{_mandir}/man1/jdb-openjdk%{javaver}.1* +%{_mandir}/man1/jcmd-openjdk%{javaver}.1* +%{_mandir}/man1/jdeps-openjdk%{javaver}.1* +%{_mandir}/man1/jinfo-openjdk%{javaver}.1* +%{_mandir}/man1/jjs-openjdk%{javaver}.1* +%{_mandir}/man1/jmap-openjdk%{javaver}.1* +%{_mandir}/man1/jps-openjdk%{javaver}.1* +%{_mandir}/man1/jrunscript-openjdk%{javaver}.1* +%{_mandir}/man1/jstack-openjdk%{javaver}.1* +%{_mandir}/man1/jstat-openjdk%{javaver}.1* +%{_mandir}/man1/jstatd-openjdk%{javaver}.1* +%{_mandir}/man1/rmic-openjdk%{javaver}.1* +%{_mandir}/man1/serialver-openjdk%{javaver}.1* + +%files headless +%defattr(-,root,root) +%dir %{_sysconfdir}/%{name} +%config(noreplace) %{_sysconfdir}/%{name}/logging.properties +%dir %{_sysconfdir}/%{name}/management +%config(noreplace) %{_sysconfdir}/%{name}/management/jmxremote.access +%{_sysconfdir}/%{name}/management/jmxremote.password.template +%config(noreplace) %{_sysconfdir}/%{name}/management/management.properties +%config(noreplace) %{_sysconfdir}/%{name}/net.properties +%dir %{_sysconfdir}/%{name}/security +%config(noreplace) %{_sysconfdir}/%{name}/security/java.policy +%config(noreplace) %{_sysconfdir}/%{name}/security/java.security +%dir %{_sysconfdir}/%{name}/security/policy +%{_sysconfdir}/%{name}/security/policy/README.txt +%dir %{_sysconfdir}/%{name}/security/policy/limited +%{_sysconfdir}/%{name}/security/policy/limited/default_US_export.policy +%{_sysconfdir}/%{name}/security/policy/limited/default_local.policy +%{_sysconfdir}/%{name}/security/policy/limited/exempt_local.policy +%dir %{_sysconfdir}/%{name}/security/policy/unlimited +%{_sysconfdir}/%{name}/security/policy/unlimited/default_US_export.policy +%{_sysconfdir}/%{name}/security/policy/unlimited/default_local.policy +%{_jvmdir}/%{jrelnk} +%dir %{_jvmdir}/%{sdkdir} +%{_jvmdir}/%{sdkdir}/conf +%{_jvmdir}/%{sdkdir}/man +%dir %{_jvmdir}/%{jredir} +%dir %{_jvmdir}/%{jredir}/bin +%{_jvmdir}/%{jredir}/bin/* +%dir %{_jvmdir}/%{jredir}/lib +%{_jvmdir}/%{jredir}/lib/classlist +%{_jvmdir}/%{jredir}/lib/tzdb.dat +%dir %{_jvmdir}/%{jredir}/lib/jli +%{_jvmdir}/%{jredir}/lib/jli/libjli.* +%{_jvmdir}/%{jredir}/lib/jvm.cfg +%{_jvmdir}/%{jredir}/lib/lib*.so +%exclude %{_jvmdir}/%{jredir}/lib/libawt_xawt.so +%exclude %{_jvmdir}/%{jredir}/lib/libjawt.so +%exclude %{_jvmdir}/%{jredir}/lib/libjsound.so +%{_jvmdir}/%{jredir}/lib/jexec* +%{_jvmdir}/%{jredir}/lib/psfont.properties.ja +%{_jvmdir}/%{jredir}/lib/*.properties +%{_jvmdir}/%{jredir}/lib/jrt-fs.jar +%{_jvmdir}/%{jredir}/lib/jspawnhelper* +%{_jvmdir}/%{jredir}/lib/modules +%dir %{_jvmdir}/%{jredir}/lib/jfr +%{_jvmdir}/%{jredir}/lib/jfr/* +%dir %{_jvmdir}/%{jredir}/lib/security +%{_jvmdir}/%{jredir}/lib/security/* +%ifnarch arm +%dir %{_jvmdir}/%{jredir}/lib/server +%{_jvmdir}/%{jredir}/lib/server/Xusage.txt +%{_jvmdir}/%{jredir}/lib/server/lib*.so +%endif +%ifarch arm +%dir %{_jvmdir}/%{jredir}/lib/client +%{_jvmdir}/%{jredir}/lib/client/* +%endif +%{_mandir}/man1/java-openjdk%{javaver}.1* +%{_mandir}/man1/keytool-openjdk%{javaver}.1* +%{_mandir}/man1/pack200-openjdk%{javaver}.1* +%{_mandir}/man1/rmid-openjdk%{javaver}.1* +%{_mandir}/man1/rmiregistry-openjdk%{javaver}.1* +%{_mandir}/man1/unpack200-openjdk%{javaver}.1* +%doc LICENSE ADDITIONAL_LICENSE_INFO ASSEMBLY_EXCEPTION + +%files runtime +%defattr(-,root,root) +%config(noreplace) %{_sysconfdir}/%{name}/sound.properties +%{_jvmdir}/%{jredir}/lib/libawt_xawt.so +%{_jvmdir}/%{jredir}/lib/libjawt.so +%{_jvmdir}/%{jredir}/lib/libjsound.so + +%files demo +%defattr(-,root,root) +%{_jvmdir}/%{sdkdir}/demo +#%{_jvmdir}/%{sdkdir}/sample + +%files src +%defattr(-,root,root) +%{_jvmdir}/%{sdkdir}/lib/src.zip + +%files javadoc +%defattr(-,root,root) +%ifnarch arm +%doc %{_javadocdir}/%{sdkdir} +%endif +%ifarch arm +%doc %{_datadir}/javadoc/java-%{javaver}-openjdk-arm +%endif +%doc README + +%changelog +* Sun Nov 22 2020 Silvan Calarco 11.0.8_10-1mamba +- update to 11.0.8_10 + +* Sat Oct 26 2019 Silvan Calarco 8u222b10_3.13.0-1mamba +- update to 8u222b10_3.13.0 +- provide sun-java and sun-java-runtime to fix multiple requiring packages from old java builds + +* Tue Jun 11 2019 Silvan Calarco 8u212b04_3.12.0-1mamba +- update to 8u212b04_3.12.0 + +* Sat Sep 15 2018 Silvan Calarco 8u171b11_3.8.0-1mamba +- update to 8u171b11_3.8.0 + +* Wed Nov 18 2015 Silvan Calarco 7u91_2.6.3-1mamba +- update to 7u91_2.6.3 + +* Wed Feb 25 2015 Silvan Calarco 7u75_2.5.4-1mamba +- update to 7u75_2.5.4 + +* Tue Feb 24 2015 Silvan Calarco 2.5.4_7u75-1mamba +- update to 2.5.4_7u75 + +* Sat Mar 22 2014 Silvan Calarco 1.6.0-29mamba +- icedtea6 update to 1.12.8 + +* Tue Jun 18 2013 Silvan Calarco 1.6.0.28mamba +- icedtea6 update to 1.12.5 +- openjdk update to 6.b27-26_oct_2012 + +* Mon Mar 14 2011 gil 1.6.0-27mamba +- rebuilt after bootstrap +- removed java-openjdk-plugin sub package (now it is in icedtea-web-plugin sub package) + +* Mon Mar 14 2011 gil 1.6.0-26mamba +- bootstrap mode +- update to b22-28_feb_2011 + +* Tue Feb 22 2011 gil 1.6.0-25mamba +- edit plugin scripts + +* Wed Feb 16 2011 gil 1.6.0-24mamba +- bootstrap mode +- rebuilt with icedtea 1.9.7 + +* Sat Feb 12 2011 gil 1.6.0-23mamba +- rebuilt after bootstrap + +* Sat Feb 12 2011 gil 1.6.0-22mamba +- bootstrap mode +- built with xerces-j2 2.11.0 and xml-commons-apis 1.4.01 support (patch 7 applied) +- built with java-gcj-compat 1.0.80-20mamba support + +* Thu Feb 10 2011 gil 1.6.0-21mamba +- rebuilt with icedtea 1.9.6 + +* Tue Feb 01 2011 gil 1.6.0-20mamba +- rebuilt with icedtea 1.9.5 + +* Fri Jan 21 2011 gil 1.6.0-19mamba +- fixed some errors + +* Thu Jan 20 2011 gil 1.6.0-18mamba +- built with libjpeg-turbo 1.0.90 support + +* Thu Jan 20 2011 gil 1.6.0-17mamba +- fixed some errors + +* Thu Jan 20 2011 gil 1.6.0-16mamba +- rebuilt after bootstrap + +* Wed Jan 19 2011 gil 1.6.0-15mamba +- bootstrap mode +- built with icedtea 1.9.4 support +- built with java-gcj-compat 1.0.80-18mamba support + +* Wed Jan 19 2011 gil 1.6.0-14mamba +- add provides to javadoc sub package + +* Sat Jan 15 2011 gil 1.6.0-13mamba +- rebuilt after bootstrap + +* Sat Jan 15 2011 gil 1.6.0-12mamba +- update to b20-21_jun_2010 +- bootstrap mode +- built with java-gcj-compat 1.0.80-17mamba + +* Tue Jan 04 2011 gil 1.6.0-11mamba +- remove libjpeg6b dep +- rebuilt with libjpeg-turbo support + +* Mon Jan 03 2011 gil 1.6.0-10mamba +- rebuilt after bootstrap + +* Mon Jan 03 2011 gil 1.6.0-9mamba +- rebuilt with new gcc 4.5.2 (bootstrap mode) +- rebuilt with java-gcj-compat 1.0.80-16mamba + +* Sat Jan 01 2011 gil 1.6.0-8mamba +- rebuilt after bootstrap + +* Sat Jan 01 2011 gil 1.6.0-7mamba +- rebuilt coreutils 8.8-2mamba support +- edit spec file +- bootstrap mode + +* Wed Dec 29 2010 gil 1.6.0-6mamba +- rebuilt with dejavu-lgc-fonts-ttf support +- remove visualvm (is now in own package) + +* Tue Dec 28 2010 gil 1.6.0-5mamba +- update visualvm 1.3.1 and netbeans platform 6.9.1 + +* Tue Dec 28 2010 gil 1.6.0-4mamba +- enable systemtap +- enable visualvm + +* Tue Dec 28 2010 gil 1.6.0-3mamba +- rebuilt after bootstrap + +* Mon Dec 27 2010 gil 1.6.0-2mamba +- update to b18-16_feb_2010 +- bootstrap + +* Wed Jun 23 2010 gil 1.6.0-1mamba +- bootstrap +- add tzdata-java support