1140 lines
41 KiB
RPMSpec
1140 lines
41 KiB
RPMSpec
%define java_version %(echo %version | cut -d_ -f1)
|
|
%define icedtea_version %(echo %version | cut -d_ -f2)
|
|
|
|
#% define openjdk_version b13
|
|
#% define openjdk_date 18_dec_2014
|
|
|
|
%define mauve_date 2008-10-22
|
|
# java-access-bridge latest release 1.26.2 do not upgrade for now
|
|
%define gnome_jab_url https://download.gnome.org/sources/java-access-bridge/
|
|
%define gnome_jab_version 1.23.0
|
|
%define gnome_jab_majorver %(echo %gnome_jab_version | cut -d. -f 1-2)
|
|
|
|
%define drops_url http://icedtea.wildebeest.org/download/drops/icedtea%{javaver}
|
|
|
|
# gcj bootstrap
|
|
%if "%{stage1}" != "1"
|
|
%define bootstrap 0
|
|
%else
|
|
%define bootstrap 1
|
|
%endif
|
|
%define enabled_systemtap 1
|
|
%define with_test 0
|
|
|
|
%if %enabled_systemtap
|
|
%define tapsetdir %{_datadir}/systemtap/tapset
|
|
%else
|
|
%define systemtapopt %{nil}
|
|
%endif
|
|
|
|
%define jitarches %{ix86} x86_64
|
|
|
|
%define archbuild %{_target_cpu}
|
|
|
|
%ifarch %{ix86}
|
|
%define archbuild i386
|
|
%endif
|
|
|
|
%ifarch x86_64
|
|
%define archbuild amd64
|
|
%endif
|
|
|
|
%ifarch arm
|
|
%define archbuild aarch32
|
|
%endif
|
|
|
|
#%define buildoutputdir openjdk/build/linux-%{archbuild}
|
|
%define buildoutputdir openjdk.build
|
|
|
|
%define javaver 8
|
|
%define origin openjdk
|
|
%define buildver 0
|
|
|
|
%define javaprefix %{_jvmdir}
|
|
|
|
%define sdkdir java-%{javaver}-%{origin}-%{_arch}
|
|
%define sdklnk java-%{javaver}-%{origin}-%{_arch}
|
|
%define sdkbindir %{_jvmdir}/%{sdklnk}/bin
|
|
%define sdklibdir %{_jvmdir}/%{sdklnk}/lib
|
|
|
|
%define jredir %{sdkdir}/jre
|
|
%define jrelnk jre-%{javaver}-%{origin}-%{_arch}
|
|
%define jrebindir %{_jvmdir}/%{jrelnk}/bin
|
|
|
|
%define jvmjardir %{_jvmjardir}/%{sdkdir}
|
|
|
|
#%if %bootstrap
|
|
#%define icedteaopt %{nil}
|
|
#%else
|
|
#%define icedteaopt --with-openjdk=%{_jvmdir}/%{jppname}
|
|
#%endif
|
|
|
|
Name: icedtea
|
|
Version: 8u292b10_3.19.0
|
|
Release: 1mamba
|
|
Summary: The IcedTea project provides a harness to build the openjdk
|
|
Group: System/Libraries/Java
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: https://openjdk.java.net/projects/icedtea/
|
|
Source0: http://icedtea.classpath.org/download/source/icedtea-%{icedtea_version}.tar.xz
|
|
Source1: %{drops_url}/icedtea%{javaver}-openjdk-%{icedtea_version}.tar.xz
|
|
Source3: icedtea-autoupdate
|
|
Source7: %{drops_url}/icedtea%{javaver}-hotspot-%{icedtea_version}.tar.xz
|
|
Source8: %{drops_url}/icedtea%{javaver}-jdk-%{icedtea_version}.tar.xz
|
|
Source10: %{drops_url}/icedtea%{javaver}-jaxp-%{icedtea_version}.tar.xz
|
|
Source11: %{drops_url}/icedtea%{javaver}-jaxws-%{icedtea_version}.tar.xz
|
|
Source12: %{drops_url}/icedtea%{javaver}-corba-%{icedtea_version}.tar.xz
|
|
Source13: %{drops_url}/icedtea%{javaver}-langtools-%{icedtea_version}.tar.xz
|
|
Source14: %{drops_url}/icedtea%{javaver}-aarch32-%{icedtea_version}.tar.xz
|
|
Source15: %{drops_url}/icedtea%{javaver}-nashorn-%{icedtea_version}.tar.xz
|
|
Source16: %{drops_url}/icedtea%{javaver}-shenandoah-%{icedtea_version}.tar.xz
|
|
License: GPL (with exceptions)
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libX11-devel
|
|
BuildRequires: libXcomposite-devel
|
|
BuildRequires: libXext-devel
|
|
BuildRequires: libXi-devel
|
|
BuildRequires: libXrender-devel
|
|
BuildRequires: libXtst-devel
|
|
BuildRequires: libalsa-devel
|
|
BuildRequires: libe2fs-devel
|
|
BuildRequires: libfreetype-devel
|
|
BuildRequires: libgcc
|
|
BuildRequires: libgif-devel
|
|
BuildRequires: libjpeg-devel
|
|
BuildRequires: libkrb5-devel
|
|
BuildRequires: liblcms2-devel
|
|
BuildRequires: libpcsclite-devel
|
|
BuildRequires: libpng-devel
|
|
BuildRequires: libsctp-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: baekmuk-ttf-fonts
|
|
#BuildRequires: cjkuni-ukai-ttf-fonts
|
|
#BuildRequires: cjkuni-uming-ttf-fonts
|
|
#BuildRequires: dejavu-lgc-fonts-ttf
|
|
#BuildRequires: sazanami-fonts
|
|
#BuildRequires: xorg-fonts-75dpi
|
|
#BuildRequires: xorg-fonts-100dpi
|
|
#BuildRequires: xorg-fonts-base
|
|
#BuildRequires: xorg-fonts-cyrillic
|
|
#BuildRequires: xorg-fonts-OTF
|
|
#BuildRequires: xorg-fonts-Speedo
|
|
#BuildRequires: xorg-fonts-TTF
|
|
#BuildRequires: xorg-fonts-Type1
|
|
BuildRequires: zip
|
|
# browser plugin deps
|
|
BuildRequires: libatk-devel
|
|
BuildRequires: libnspr-devel
|
|
#%if "%{stage1}" != "1"
|
|
#BuildRequires: xulrunner-devel
|
|
#%endif
|
|
BuildRequires: ca-certificates
|
|
BuildRequires: jpackage-utils
|
|
BuildRequires: menu-java
|
|
BuildRequires: tzdata-java
|
|
BuildRequires: libnss-devel
|
|
BuildRequires: llvm-devel
|
|
BuildRequires: lsb-core
|
|
%if "%bootstrap" == "1"
|
|
BuildRequires: gcc-java
|
|
BuildRequires: java-gcj-compat
|
|
#% else
|
|
#BuildRequires: %{name}
|
|
%endif
|
|
%if "%{stage1}" == "1"
|
|
BuildRequires: eclipse-ecj
|
|
%endif
|
|
#BuildRequires: java-rhino
|
|
#BuildRequires: xalan-j2
|
|
#BuildRequires: xerces-j2
|
|
#BuildRequires: xml-commons-apis
|
|
%if %enabled_systemtap
|
|
BuildRequires: systemtap-sdt-devel
|
|
%endif
|
|
%ifarch arm
|
|
BuildRequires: libatomic-devel
|
|
%endif
|
|
|
|
%description
|
|
The IcedTea project provides a harness to build the source code from http://openjdk.java.net using Free Software build tools and adds a number of key features to the upstream OpenJDK codebase.
|
|
|
|
%package -n java-openjdk%{javaver}
|
|
Summary: OpenJDK Development Environment
|
|
Group: System/Libraries/Java
|
|
Requires: java-openjdk%{javaver}-runtime = %{?epoch:%epoch:}%{version}-%{release}
|
|
Requires: menu-java
|
|
Provides: java-devel = %{javaver}
|
|
Provides: java-sdk = %{javaver}
|
|
Provides: %{_bindir}/appletviewer
|
|
Provides: %{_bindir}/apt
|
|
Provides: %{_bindir}/extcheck
|
|
Provides: %{_bindir}/javac
|
|
Provides: %{_bindir}/jar
|
|
Provides: %{_bindir}/jarsigner
|
|
Provides: %{_bindir}/javadoc
|
|
Provides: %{_bindir}/javah
|
|
Provides: %{_bindir}/javap
|
|
Provides: %{_bindir}/jconsole
|
|
Provides: %{_bindir}/jdb
|
|
Provides: %{_bindir}/jhat
|
|
Provides: %{_bindir}/jinfo
|
|
Provides: %{_bindir}/jmap
|
|
Provides: %{_bindir}/jps
|
|
Provides: %{_bindir}/jrunscript
|
|
Provides: %{_bindir}/jsadebugd
|
|
Provides: %{_bindir}/jstack
|
|
Provides: %{_bindir}/jstat
|
|
Provides: %{_bindir}/jstatd
|
|
Provides: %{_bindir}/native2ascii
|
|
Provides: %{_bindir}/policytool
|
|
Provides: %{_bindir}/rmic
|
|
Provides: %{_bindir}/schemagen
|
|
Provides: %{_bindir}/serialver
|
|
Provides: %{_bindir}/wsgen
|
|
Provides: %{_bindir}/wsimport
|
|
Provides: %{_bindir}/xjc
|
|
Provides: java-openjdk = %{javaver}
|
|
Provides: java-openjdk
|
|
Obsoletes: java-openjdk <= 8u222b10_3.13.0
|
|
Provides: sun-java
|
|
|
|
%description -n java-openjdk%{javaver}
|
|
The OpenJDK Development Environment.
|
|
|
|
%package -n java-openjdk%{javaver}-runtime
|
|
Summary: The OpenJDK runtime environment
|
|
Group: System/Libraries/Java
|
|
# Require /etc/pki/java/cacerts
|
|
Requires: ca-certificates
|
|
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 = %{javaver}
|
|
Provides: %{_bindir}/java
|
|
Provides: %{_bindir}/keytool
|
|
Provides: %{_bindir}/orbd
|
|
Provides: %{_bindir}/pack200
|
|
Provides: %{_bindir}/rmid
|
|
Provides: %{_bindir}/rmiregistry
|
|
Provides: %{_bindir}/servertool
|
|
Provides: %{_bindir}/tnameserv
|
|
Provides: %{_bindir}/unpack200
|
|
Provides: java-openjdk-runtime = %{javaver}
|
|
Provides: java-openjdk-runtime
|
|
Obsoletes: java-openjdk-runtime <= 8u222b10_3.13.0
|
|
Provides: sun-java-runtime
|
|
|
|
%description -n java-openjdk%{javaver}-runtime
|
|
The OpenJDK runtime environment.
|
|
|
|
%package -n java-openjdk%{javaver}-demo
|
|
Summary: OpenJDK Demos
|
|
Group: Development/Languages
|
|
Requires: java-openjdk%{javaver} = %{?epoch:%epoch:}%{version}-%{release}
|
|
Provides: java-demo = %{javaver}
|
|
Provides: java-openjdk-demo
|
|
Obsoletes: java-openjdk-demo <= 8u222b10_3.13.0
|
|
|
|
%description -n java-openjdk%{javaver}-demo
|
|
The OpenJDK demos.
|
|
|
|
%package -n java-openjdk%{javaver}-src
|
|
Summary: OpenJDK Source Bundle
|
|
Group: Development/Languages
|
|
Requires: java-openjdk%{javaver} = %{?epoch:%epoch:}%{version}-%{release}
|
|
Provides: java-src = %{javaver}
|
|
Provides: java-openjdk-src
|
|
Obsoletes: java-openjdk-src <= 8u222b10_3.13.0
|
|
|
|
%description -n java-openjdk%{javaver}-src
|
|
The OpenJDK source bundle
|
|
|
|
%package -n java-openjdk%{javaver}-javadoc
|
|
Summary: OpenJDK API Documentation
|
|
Group: Documentation
|
|
Requires: java-openjdk%{javaver} = %{?epoch:%epoch:}%{version}-%{release}
|
|
Provides: sun-java-javadoc = %{javaver}
|
|
Provides: java-javadoc = %{javaver}
|
|
Provides: java-openjdk-javadoc
|
|
Obsoletes: java-openjdk-javadoc <= 8u222b10_3.13.0
|
|
|
|
%description -n java-openjdk%{javaver}-javadoc
|
|
The OpenJDK API documentation.
|
|
|
|
%prep
|
|
%setup -q -n icedtea-%{icedtea_version}
|
|
#-D -T
|
|
#:<< _EOF
|
|
# Build workaround
|
|
%ifnarch x86_64
|
|
sed "s|-Xshare:dump|-Xshare:dump -Xmx512m|" Makefile.in
|
|
%endif
|
|
|
|
%build
|
|
#:<< _EOF
|
|
unset JAVA_HOME
|
|
#%ifarch arm
|
|
#export JAVA_HOME=/usr/lib/jvm/java-1.7.0-sun/
|
|
#%endif
|
|
|
|
export CCACHE=
|
|
|
|
#./autogen.sh
|
|
|
|
# %{icedteaopt}
|
|
./configure \
|
|
--disable-downloading \
|
|
--with-openjdk-src-zip=%{SOURCE1} \
|
|
%ifarch arm
|
|
--with-hotspot-src-zip=%{SOURCE14} \
|
|
--build=armv5-openmamba-linux-gnueabi \
|
|
--target=armv5-openmamba-linux-gnueabi \
|
|
CFLAGS="-O0" CXXFLAGS="-O0" \
|
|
%else
|
|
--with-hotspot-src-zip=%{SOURCE7} \
|
|
%endif
|
|
--with-corba-src-zip=%{SOURCE12} \
|
|
--with-jaxp-src-zip=%{SOURCE10} \
|
|
--with-jaxws-src-zip=%{SOURCE11} \
|
|
--with-jdk-src-zip=%{SOURCE8} \
|
|
--with-langtools-src-zip=%{SOURCE13} \
|
|
--with-nashorn-src-zip=%{SOURCE15} \
|
|
--with-pkgversion=%{distribution}-%{release}-%{_arch} \
|
|
--enable-nss \
|
|
--disable-ccache \
|
|
%ifarch arm
|
|
--with-jdk-home=/var/autodist/zulu8.62.0.19-ca-jdk8.0.332-linux_aarch32sf \
|
|
%else
|
|
--with-jdk-home=%{_jvmdir}/java-8-openjdk \
|
|
%endif
|
|
%if "%{bootstrap}" != "1"
|
|
--with-ecj-jar=$(build-classpath eclipse-ecj) \
|
|
--disable-bootstrap \
|
|
%else
|
|
--with-ecj-jar=%{_datadir}/java/ecj.jar \
|
|
--enable-bootstrap \
|
|
%endif
|
|
|
|
# --with-jdk-home=/usr/lib/jvm/java-1.8.0-sun/ \
|
|
|
|
# --with-rhino=$(build-classpath rhino) \
|
|
# --enable-pulse-java \
|
|
# --with-xalan2-jar=$(build-classpath xalan-j2) \
|
|
# --with-xalan2-serializer-jar=$(build-classpath xalan-j2-serializer) \
|
|
# --with-xerces2-jar=$(build-classpath xerces-j2) \
|
|
# --with-xml-commons-apis-jar=$(build-classpath xml-commons-apis) \
|
|
# --with-abs-install-dir=%{_jvmdir}/%{sdkdir}
|
|
|
|
# --with-hotspot-build=hs20 \
|
|
# --with-hotspot-src-zip=%{SOURCE7} \
|
|
|
|
#%if "%{bootstrap}" == "1"
|
|
#make stamps/patch-ecj.stamp
|
|
#%endif
|
|
|
|
#_EOF
|
|
|
|
make MEMORY_LIMIT=-J-Xmx512m patch
|
|
|
|
%ifarch arm
|
|
LD_PRELOAD=%{_libdir}/libatomic.so make MEMORY_LIMIT=-J-Xmx512m DISABLE_HOTSPOT_OS_VERSION_CHECK=ok
|
|
%else
|
|
make MEMORY_LIMIT=-J-Xmx512m DISABLE_HOTSPOT_OS_VERSION_CHECK=ok
|
|
%endif
|
|
|
|
:<< ___EOF
|
|
export JAVA_HOME=$(pwd)/%{buildoutputdir}/j2sdk-image
|
|
# Build Java Access Bridge for GNOME.
|
|
pushd java-access-bridge-%{gnome_jab_version}
|
|
patch -l -p1 < %{PATCH1}
|
|
patch -l -p1 < %{PATCH2}
|
|
OLD_PATH=$PATH
|
|
export PATH=$JAVA_HOME/bin:$OLD_PATH
|
|
./configure
|
|
make MEMORY_LIMIT=-J-Xmx512m
|
|
export PATH=$OLD_PATH
|
|
cp -a bridge/accessibility.properties $JAVA_HOME/jre/lib
|
|
cp -a gnome-java-bridge.jar $JAVA_HOME/jre/lib/ext
|
|
popd
|
|
___EOF
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
#% makeinstall DESTDIR=%{buildroot} prefix=%{_jvmdir}/%{sdkdir}
|
|
|
|
pushd %{buildoutputdir}/images/j2sdk-image
|
|
|
|
# Install main files.
|
|
install -d -m 755 %{buildroot}%{_jvmdir}/%{sdkdir}
|
|
cp -a bin include lib src.zip %{buildroot}%{_jvmdir}/%{sdkdir}
|
|
install -d -m 755 %{buildroot}%{_jvmdir}/%{jredir}
|
|
cp -a jre/bin jre/lib %{buildroot}%{_jvmdir}/%{jredir}
|
|
|
|
%if %enabled_systemtap
|
|
%ifarch %{jitarches}
|
|
# Install systemtap support files.
|
|
cp -a tapset %{buildroot}%{_jvmdir}/%{sdkdir}
|
|
install -d -m 755 %{buildroot}%{tapsetdir}
|
|
pushd %{buildroot}%{tapsetdir}
|
|
ln -sf %{_jvmdir}/%{sdkdir}/tapset/hotspot_gc.stp hostspot_gc%{javaver}.stp
|
|
ln -sf %{_jvmdir}/%{sdkdir}/tapset/hotspot.stp hostspot%{javaver}.stp
|
|
ln -sf %{_jvmdir}/%{sdkdir}/tapset/hotspot_jni.stp hotspot_jni%{javaver}.stp
|
|
ln -sf %{_jvmdir}/%{sdkdir}/tapset/jstack.stp jstack%{javaver}.stp
|
|
popd
|
|
%endif
|
|
%endif
|
|
|
|
# Install cacerts symlink.
|
|
rm -f %{buildroot}%{_jvmdir}/%{jredir}/lib/security/cacerts
|
|
pushd %{buildroot}%{_jvmdir}/%{jredir}/lib/security
|
|
ln -sf %{_sysconfdir}/pki/java/cacerts .
|
|
popd
|
|
|
|
# Install extension symlinks.
|
|
install -d -m 755 %{buildroot}%{jvmjardir}
|
|
pushd %{buildroot}%{jvmjardir}
|
|
ln -sf %{_jvmdir}/%{jredir}/lib/jsse.jar jsse-%{java_version}.jar
|
|
ln -sf %{_jvmdir}/%{jredir}/lib/jce.jar jce-%{java_version}.jar
|
|
ln -sf %{_jvmdir}/%{jredir}/lib/rt.jar jndi-%{java_version}.jar
|
|
ln -sf %{_jvmdir}/%{jredir}/lib/rt.jar jndi-ldap-%{java_version}.jar
|
|
ln -sf %{_jvmdir}/%{jredir}/lib/rt.jar jndi-cos-%{java_version}.jar
|
|
ln -sf %{_jvmdir}/%{jredir}/lib/rt.jar jndi-rmi-%{java_version}.jar
|
|
ln -sf %{_jvmdir}/%{jredir}/lib/rt.jar jaas-%{java_version}.jar
|
|
ln -sf %{_jvmdir}/%{jredir}/lib/rt.jar jdbc-stdext-%{java_version}.jar
|
|
ln -sf jdbc-stdext-%{java_version}.jar jdbc-stdext-3.0.jar
|
|
ln -sf %{_jvmdir}/%{jredir}/lib/rt.jar sasl-%{java_version}.jar
|
|
for jar in *-%{java_version}.jar
|
|
do
|
|
if [ x%{java_version} != x%{javaver} ]; then
|
|
ln -sf $jar $(echo $jar | sed "s|-%{java_version}.jar|-%{javaver}.jar|g")
|
|
fi
|
|
ln -sf $jar $(echo $jar | sed "s|-%{java_version}.jar|.jar|g")
|
|
done
|
|
popd
|
|
|
|
# Install JCE policy symlinks.
|
|
install -d -m 755 %{buildroot}%{_jvmprivdir}/java-%{java_version}-%{origin}/jce/vanilla
|
|
|
|
# Install versionless symlinks.
|
|
pushd %{buildroot}%{_jvmdir}
|
|
ln -sf %{jredir} %{jrelnk}
|
|
# ln -sf %{sdkdir} %{sdklnk}
|
|
popd
|
|
|
|
pushd %{buildroot}%{_jvmjardir}
|
|
ln -sf %{sdkdir} %{jrelnk}
|
|
# ln -sf %{sdkdir} %{sdklnk}
|
|
popd
|
|
|
|
# Install man pages.
|
|
install -d -m 755 %{buildroot}%{_mandir}/man1
|
|
for manpage in man/man1/* ; do
|
|
# Convert man pages to UTF8 encoding.
|
|
iconv -f ISO_8859-1 -t UTF8 $manpage -o $manpage.tmp
|
|
mv -f $manpage.tmp $manpage
|
|
install -m 644 -p $manpage %{buildroot}%{_mandir}/man1/$(basename $manpage .1)-%{origin}%{javaver}.1
|
|
ln -s $(basename $manpage .1)-%{origin}%{javaver}.1 %{buildroot}%{_mandir}/man1/$(basename $manpage)
|
|
done
|
|
|
|
# Install demos and samples.
|
|
cp -a demo %{buildroot}%{_jvmdir}/%{sdkdir}
|
|
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}/docs %{buildroot}%{_javadocdir}/%{sdkdir}
|
|
|
|
# Install icons and menu entries.
|
|
for s in 16 24 32 48 ; do
|
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps
|
|
install -pm 644 \
|
|
openjdk/jdk/src/solaris/classes/sun/awt/X11/java-icon${s}.png \
|
|
%{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps/java-%{javaver}-%{origin}.png
|
|
done
|
|
|
|
# Install desktop files.
|
|
install -d -m 755 %{buildroot}%{_datadir}/{applications,pixmaps}
|
|
|
|
cp openjdk/jdk/src/solaris/classes/sun/awt/X11/java-icon32.png \
|
|
%{buildroot}%{_datadir}/pixmaps/java-%{javaver}-%{origin}.png
|
|
|
|
sed -i "s|Icon=java|Icon=java-%{javaver}-%{origin}|" \
|
|
jconsole.desktop \
|
|
policytool.desktop
|
|
|
|
desktop-file-install --remove-category=Monitor --mode=644 \
|
|
--dir=%{buildroot}%{_datadir}/applications jconsole.desktop
|
|
desktop-file-install --mode=644 \
|
|
--dir=%{buildroot}%{_datadir}/applications policytool.desktop
|
|
|
|
mv %{buildroot}%{_datadir}/applications/jconsole.desktop \
|
|
%{buildroot}%{_datadir}/applications/jconsole%{javaver}.desktop
|
|
|
|
mv %{buildroot}%{_datadir}/applications/policytool.desktop \
|
|
%{buildroot}%{_datadir}/applications/policytool%{javaver}.desktop
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%post -n java-openjdk%{javaver}
|
|
if [ $1 -ge 1 ]; then
|
|
# new install
|
|
if ! echo ${PATH} | grep -q %{sdkbindir}; then
|
|
export PATH="$PATH:%{sdkbindir}"
|
|
fi
|
|
for b in appletviewer apt extcheck javac jar jarsigner javadoc javah javap jconsole jdb jhat jinfo jmap jps jrunscript jsadebugd jstack jstat jstatd native2ascii policytool rmic schemagen serialver wsgen wsimport xjc ; 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 70
|
|
done
|
|
# legacy
|
|
/usr/sbin/update-alternatives --install %{javaprefix}/jdk jdk %{_jvmdir}/%{sdklnk} 70
|
|
# default
|
|
/usr/sbin/update-alternatives --install %{javaprefix}/java-%{javaver}-%{origin} jdk_%{javaver}_%{origin} %{_jvmdir}/%{sdklnk} 70
|
|
# x eclipse
|
|
/usr/sbin/update-alternatives --install %{javaprefix}/java-%{javaver} jdk_%{javaver} %{_jvmdir}/%{sdklnk} 70
|
|
/usr/sbin/update-alternatives --install %{javaprefix}/java-%{origin} jdk_%{origin} %{_jvmdir}/%{sdklnk} 70
|
|
/usr/sbin/update-alternatives --install %{javaprefix}/java jdk_java %{_jvmdir}/%{sdklnk} 70
|
|
|
|
# /usr/sbin/update-alternatives --install %{_jvmjardir}/jdk jdk_exports %{_jvmjardir}/%{sdklnk} 70
|
|
# /usr/sbin/update-alternatives --install %{_jvmjardir}/java-%{javaver}-%{origin} jdk_%{javaver}_%{origin}_exports %{_jvmjardir}/%{sdklnk} 70
|
|
# /usr/sbin/update-alternatives --install %{_jvmjardir}/java jdk_java_exports %{_jvmjardir}/%{sdklnk} 70
|
|
# /usr/sbin/update-alternatives --install %{_jvmjardir}/java-%{origin} jdk_%{origin}_exports %{_jvmjardir}/%{sdklnk} 70
|
|
# /usr/sbin/update-alternatives --install %{_jvmjardir}/java-%{javaver} jdk_%{javaver}_exports %{_jvmjardir}/%{sdklnk} 70
|
|
fi
|
|
|
|
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
|
|
|
|
exit 0
|
|
|
|
%preun -n java-openjdk%{javaver}
|
|
if [ $1 -eq 0 ]; then
|
|
for b in appletviewer apt extcheck javac jar jarsigner javadoc javah javap jconsole jdb jhat jinfo jmap jps jrunscript jsadebugd jstack jstat jstatd native2ascii policytool rmic schemagen serialver wsgen wsimport xjc; 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}_%{origin} %{_jvmdir}/%{sdklnk}
|
|
/usr/sbin/update-alternatives --remove jdk_java %{_jvmdir}/%{sdklnk}
|
|
/usr/sbin/update-alternatives --remove jdk_%{origin} %{_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}_%{origin}_exports %{_jvmjardir}/%{sdklnk}
|
|
# /usr/sbin/update-alternatives --remove jdk_java_exports %{_jvmjardir}/%{sdklnk}
|
|
# /usr/sbin/update-alternatives --remove jdk_%{origin}_exports %{_jvmjardir}/%{sdklnk}
|
|
# /usr/sbin/update-alternatives --remove jdk_%{javaver}_exports %{_jvmjardir}/%{sdklnk}
|
|
|
|
fi
|
|
exit 0
|
|
|
|
%postun -n java-openjdk%{javaver}
|
|
if [ $1 -eq 0 ]; then
|
|
for b in appletviewer apt extcheck javac jar jarsigner javadoc javah javap jconsole jdb jhat jinfo jmap jps jrunscript jsadebugd jstack jstat jstatd native2ascii policytool rmic schemagen serialver wsgen wsimport xjc; 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}_%{origin} %{_jvmdir}/%{sdklnk}
|
|
/usr/sbin/update-alternatives --remove jdk_java %{_jvmdir}/%{sdklnk}
|
|
/usr/sbin/update-alternatives --remove jdk_%{origin} %{_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}_%{origin}_exports %{_jvmjardir}/%{sdklnk}
|
|
# /usr/sbin/update-alternatives --remove jdk_java_exports %{_jvmjardir}/%{sdklnk}
|
|
# /usr/sbin/update-alternatives --remove jdk_%{origin}_exports %{_jvmjardir}/%{sdklnk}
|
|
# /usr/sbin/update-alternatives --remove jdk_%{javaver}_exports %{_jvmjardir}/%{sdklnk}
|
|
|
|
fi
|
|
|
|
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 -n java-openjdk%{javaver}-runtime
|
|
if ! echo ${PATH} | grep -q %{jrebindir}; then
|
|
export PATH="$PATH:%{jrebindir}"
|
|
fi
|
|
|
|
for b in java keytool orbd pack200 rmid rmiregistry servertool tnameserv 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 70
|
|
done
|
|
|
|
/usr/sbin/update-alternatives --install %{javaprefix}/jre jre %{_jvmdir}/%{jrelnk} 70
|
|
/usr/sbin/update-alternatives --install %{javaprefix}/jre-%{javaver} jre_%{javaver} %{_jvmdir}/%{jrelnk} 70
|
|
/usr/sbin/update-alternatives --install %{javaprefix}/jre-%{javaver}-%{origin} jre_%{javaver}_%{origin} %{_jvmdir}/%{jrelnk} 70
|
|
/usr/sbin/update-alternatives --install %{javaprefix}/jre-%{origin} jre_%{origin} %{_jvmdir}/%{jrelnk} 70
|
|
|
|
# /usr/sbin/update-alternatives --install %{_jvmjardir}/jre jre_exports %{_jvmjardir}/%{jrelnk} 70
|
|
# /usr/sbin/update-alternatives --install %{_jvmjardir}/jre-%{origin} jre_%{origin}_exports %{_jvmjardir}/%{jrelnk} 70
|
|
# /usr/sbin/update-alternatives --install %{_jvmjardir}/jre-%{javaver}-%{origin} jre_%{javaver}_%{origin}_exports %{_jvmjardir}/%{jrelnk} 70
|
|
# /usr/sbin/update-alternatives --install %{_jvmjardir}/jre-%{javaver} jre_%{javaver}_exports %{_jvmjardir}/%{jrelnk} 70
|
|
|
|
# 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
|
|
:
|
|
|
|
%preun -n java-openjdk%{javaver}-runtime
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
for b in java keytool orbd pack200 rmid rmiregistry servertool tnameserv 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_%{origin} %{_jvmdir}/%{jrelnk}
|
|
/usr/sbin/update-alternatives --remove jre_%{javaver}_%{origin} %{_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_%{origin}_exports %{_jvmjardir}/%{jrelnk}
|
|
# /usr/sbin/update-alternatives --remove jre_%{javaver}_%{origin}_exports %{_jvmjardir}/%{jrelnk}
|
|
# /usr/sbin/update-alternatives --remove jre_%{javaver}_exports %{_jvmjardir}/%{jrelnk}
|
|
fi
|
|
:
|
|
|
|
%postun -n java-openjdk%{javaver}-runtime
|
|
if [ $1 -eq 0 ]; then
|
|
|
|
for b in java keytool orbd pack200 rmid rmiregistry servertool tnameserv 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_%{origin} %{_jvmdir}/%{jrelnk}
|
|
/usr/sbin/update-alternatives --remove jre_%{javaver}_%{origin} %{_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_%{origin}_exports %{_jvmjardir}/%{jrelnk}
|
|
# /usr/sbin/update-alternatives --remove jre_%{javaver}_%{origin}_exports %{_jvmjardir}/%{jrelnk}
|
|
# /usr/sbin/update-alternatives --remove jre_%{javaver}_exports %{_jvmjardir}/%{jrelnk}
|
|
|
|
fi
|
|
# 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
|
|
:
|
|
|
|
%files -n java-openjdk%{javaver}
|
|
%defattr(-,root,root)
|
|
#%{_jvmdir}/%{sdklnk}
|
|
#%{_jvmjardir}/%{sdklnk}
|
|
%{_jvmdir}/%{sdkdir}/bin/appletviewer
|
|
#%{_jvmdir}/%{sdkdir}/bin/apt
|
|
%{_jvmdir}/%{sdkdir}/bin/clhsdb
|
|
%{_jvmdir}/%{sdkdir}/bin/hsdb
|
|
%{_jvmdir}/%{sdkdir}/bin/extcheck
|
|
%{_jvmdir}/%{sdkdir}/bin/idlj
|
|
%{_jvmdir}/%{sdkdir}/bin/jar
|
|
%{_jvmdir}/%{sdkdir}/bin/jarsigner
|
|
%{_jvmdir}/%{sdkdir}/bin/java
|
|
#%{_jvmdir}/%{sdkdir}/bin/java-rmi.cgi
|
|
%{_jvmdir}/%{sdkdir}/bin/javac
|
|
%{_jvmdir}/%{sdkdir}/bin/javadoc
|
|
%{_jvmdir}/%{sdkdir}/bin/javah
|
|
%{_jvmdir}/%{sdkdir}/bin/javap
|
|
%{_jvmdir}/%{sdkdir}/bin/jconsole
|
|
%{_jvmdir}/%{sdkdir}/bin/jcmd
|
|
%{_jvmdir}/%{sdkdir}/bin/jdb
|
|
%{_jvmdir}/%{sdkdir}/bin/jdeps
|
|
%{_jvmdir}/%{sdkdir}/bin/jhat
|
|
%{_jvmdir}/%{sdkdir}/bin/jfr
|
|
%{_jvmdir}/%{sdkdir}/bin/jinfo
|
|
%{_jvmdir}/%{sdkdir}/bin/jjs
|
|
%{_jvmdir}/%{sdkdir}/bin/jmap
|
|
%{_jvmdir}/%{sdkdir}/bin/jps
|
|
%{_jvmdir}/%{sdkdir}/bin/jrunscript
|
|
%{_jvmdir}/%{sdkdir}/bin/jsadebugd
|
|
%{_jvmdir}/%{sdkdir}/bin/jstack
|
|
%{_jvmdir}/%{sdkdir}/bin/jstat
|
|
%{_jvmdir}/%{sdkdir}/bin/jstatd
|
|
%{_jvmdir}/%{sdkdir}/bin/keytool
|
|
%{_jvmdir}/%{sdkdir}/bin/native2ascii
|
|
%{_jvmdir}/%{sdkdir}/bin/orbd
|
|
%{_jvmdir}/%{sdkdir}/bin/pack200
|
|
%{_jvmdir}/%{sdkdir}/bin/policytool
|
|
%{_jvmdir}/%{sdkdir}/bin/rmic
|
|
%{_jvmdir}/%{sdkdir}/bin/rmid
|
|
%{_jvmdir}/%{sdkdir}/bin/rmiregistry
|
|
%{_jvmdir}/%{sdkdir}/bin/schemagen
|
|
%{_jvmdir}/%{sdkdir}/bin/serialver
|
|
%{_jvmdir}/%{sdkdir}/bin/servertool
|
|
%{_jvmdir}/%{sdkdir}/bin/tnameserv
|
|
%{_jvmdir}/%{sdkdir}/bin/unpack200
|
|
%{_jvmdir}/%{sdkdir}/bin/wsgen
|
|
%{_jvmdir}/%{sdkdir}/bin/wsimport
|
|
%{_jvmdir}/%{sdkdir}/bin/xjc
|
|
%{_jvmdir}/%{sdkdir}/include/classfile_constants.h
|
|
%{_jvmdir}/%{sdkdir}/include/jawt.h
|
|
%{_jvmdir}/%{sdkdir}/include/jdwpTransport.h
|
|
%{_jvmdir}/%{sdkdir}/include/jni.h
|
|
%{_jvmdir}/%{sdkdir}/include/jvmti.h
|
|
%{_jvmdir}/%{sdkdir}/include/jvmticmlr.h
|
|
%{_jvmdir}/%{sdkdir}/include/linux/jawt_md.h
|
|
%{_jvmdir}/%{sdkdir}/include/linux/jni_md.h
|
|
%{_jvmdir}/%{sdkdir}/lib/ct.sym
|
|
%{_jvmdir}/%{sdkdir}/lib/dt.jar
|
|
%{_jvmdir}/%{sdkdir}/lib/ir.idl
|
|
%{_jvmdir}/%{sdkdir}/lib/jconsole.jar
|
|
%{_jvmdir}/%{sdkdir}/lib/jexec
|
|
%{_jvmdir}/%{sdkdir}/lib/orb.idl
|
|
%ifnarch arm
|
|
%{_jvmdir}/%{sdkdir}/lib/sa-jdi.jar
|
|
%endif
|
|
%dir %{_jvmdir}/%{sdkdir}/lib/%{archbuild}
|
|
%{_jvmdir}/%{sdkdir}/lib/%{archbuild}/libjawt.so
|
|
%dir %{_jvmdir}/%{sdkdir}/lib/%{archbuild}/jli
|
|
%{_jvmdir}/%{sdkdir}/lib/%{archbuild}/jli/libjli.so
|
|
%{_jvmdir}/%{sdkdir}/lib/tools.jar
|
|
%{_datadir}/applications/jconsole%{javaver}.desktop
|
|
%{_datadir}/applications/policytool%{javaver}.desktop
|
|
%if %enabled_systemtap
|
|
%ifarch %{jitarches}
|
|
%dir %{_jvmdir}/%{sdkdir}/tapset
|
|
%{_jvmdir}/%{sdkdir}/tapset/*.stp
|
|
%{tapsetdir}/*.stp
|
|
%endif
|
|
%endif
|
|
%{_mandir}/man1/appletviewer-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/appletviewer.1*
|
|
#%{_mandir}/man1/apt-%{origin}%{javaver}.1*
|
|
#%{_mandir}/man1/apt.1*
|
|
%{_mandir}/man1/extcheck-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/extcheck.1*
|
|
%{_mandir}/man1/idlj-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/idlj.1*
|
|
%{_mandir}/man1/jar-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/jar.1*
|
|
%{_mandir}/man1/jarsigner-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/jarsigner.1*
|
|
%{_mandir}/man1/javac-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/javac.1*
|
|
%{_mandir}/man1/javadoc-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/javadoc.1*
|
|
%{_mandir}/man1/javah-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/javah.1*
|
|
%{_mandir}/man1/javap-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/javap.1*
|
|
%{_mandir}/man1/jconsole-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/jconsole.1*
|
|
%{_mandir}/man1/jdb-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/jdb.1*
|
|
%{_mandir}/man1/jcmd-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/jcmd.1*
|
|
%{_mandir}/man1/jdeps-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/jdeps.1*
|
|
%{_mandir}/man1/jhat-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/jhat.1*
|
|
%{_mandir}/man1/jinfo-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/jinfo.1*
|
|
%{_mandir}/man1/jjs-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/jjs.1*
|
|
%{_mandir}/man1/jmap-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/jmap.1*
|
|
%{_mandir}/man1/jps-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/jps.1*
|
|
%{_mandir}/man1/jrunscript-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/jrunscript.1*
|
|
%{_mandir}/man1/jsadebugd-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/jsadebugd.1*
|
|
%{_mandir}/man1/jstack-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/jstack.1*
|
|
%{_mandir}/man1/jstat-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/jstat.1*
|
|
%{_mandir}/man1/jstatd-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/jstatd.1*
|
|
%{_mandir}/man1/native2ascii-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/native2ascii.1*
|
|
%{_mandir}/man1/policytool-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/policytool.1*
|
|
%{_mandir}/man1/rmic-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/rmic.1*
|
|
%{_mandir}/man1/schemagen-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/schemagen.1*
|
|
%{_mandir}/man1/serialver-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/serialver.1*
|
|
%{_mandir}/man1/wsgen-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/wsgen.1*
|
|
%{_mandir}/man1/wsimport-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/wsimport.1*
|
|
%{_mandir}/man1/xjc-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/xjc.1*
|
|
%doc AUTHORS COPYING
|
|
%doc openjdk/LICENSE openjdk/THIRD_PARTY_README openjdk/ASSEMBLY_EXCEPTION
|
|
|
|
%files -n java-openjdk%{javaver}-runtime
|
|
%defattr(-,root,root)
|
|
%dir %{_jvmdir}/%{sdkdir}
|
|
%{_jvmdir}/%{jrelnk}
|
|
#%{_jvmjardir}/%{jrelnk}
|
|
#%{_jvmjardir}/%{sdkdir}/jaas*.jar
|
|
#%{_jvmjardir}/%{sdkdir}/jce*jar
|
|
#%{_jvmjardir}/%{sdkdir}/jdbc-stdext*jar
|
|
#%{_jvmjardir}/%{sdkdir}/jndi*.jar
|
|
#%{_jvmjardir}/%{sdkdir}/jsse*.jar
|
|
#%{_jvmjardir}/%{sdkdir}/sasl*.jar
|
|
%dir %{_jvmdir}/%{jredir}
|
|
%dir %{_jvmdir}/%{jredir}/bin
|
|
%{_jvmdir}/%{jredir}/bin/java
|
|
%{_jvmdir}/%{jredir}/bin/jjs
|
|
%{_jvmdir}/%{jredir}/bin/keytool
|
|
%{_jvmdir}/%{jredir}/bin/orbd
|
|
%{_jvmdir}/%{jredir}/bin/pack200
|
|
%{_jvmdir}/%{jredir}/bin/policytool
|
|
%{_jvmdir}/%{jredir}/bin/rmid
|
|
%{_jvmdir}/%{jredir}/bin/rmiregistry
|
|
%{_jvmdir}/%{jredir}/bin/servertool
|
|
%{_jvmdir}/%{jredir}/bin/tnameserv
|
|
%{_jvmdir}/%{jredir}/bin/unpack200
|
|
%dir %{_jvmdir}/%{jredir}/lib
|
|
%dir %{_jvmdir}/%{jredir}/lib/applet
|
|
#%ifnarch x86_64
|
|
#%{_jvmdir}/%{jredir}/lib/ct.sym
|
|
#%endif
|
|
%{_jvmdir}/%{jredir}/lib/charsets.jar
|
|
%{_jvmdir}/%{jredir}/lib/classlist
|
|
%{_jvmdir}/%{jredir}/lib/cmm
|
|
%{_jvmdir}/%{jredir}/lib/currency.data
|
|
%{_jvmdir}/%{jredir}/lib/ext
|
|
%{_jvmdir}/%{jredir}/lib/tzdb.dat
|
|
#%{_jvmdir}/%{jredir}/lib/fontconfig*.bfc
|
|
#%{_jvmdir}/%{jredir}/lib/fontconfig*.src
|
|
%dir %{_jvmdir}/%{jredir}/lib/%{archbuild}
|
|
%ifarch arm
|
|
%dir %{_jvmdir}/%{jredir}/lib/%{archbuild}/client
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/client/Xusage.txt
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/client/classes.jsa
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/client/libjsig.so
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/client/libjvm.so
|
|
%endif
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/libawt_headless.so
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/libawt_xawt.so
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/libj2sctp.so
|
|
#%dir %{_jvmdir}/%{jredir}/lib/%{archbuild}/headless
|
|
#%{_jvmdir}/%{jredir}/lib/%{archbuild}/headless/libmawt.so
|
|
#%{_jvmdir}/%{jredir}/lib/%{archbuild}/libjavasctp.so
|
|
%dir %{_jvmdir}/%{jredir}/lib/%{archbuild}/jli
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/jli/libjli.so
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/jvm.cfg
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/libattach.so
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/libawt.so
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/libdt_socket.so
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/libfontmanager.so
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/libhprof.so
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/libinstrument.so
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/libj2gss.so
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/libj2krb5.so
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/libj2pcsc.so
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/libj2pkcs11.so
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/libjaas_unix.so
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/libjava.so
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/libjava_crw_demo.so
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/libjawt.so
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/libjdwp.so
|
|
#%{_jvmdir}/%{jredir}/lib/%{archbuild}/libjavagtk.so
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/libjavajpeg.so
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/libjavalcms.so
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/libjsig.so
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/libjsdt.so
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/libjsound.so
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/libjsoundalsa.so
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/libmanagement.so
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/libmlib_image.so
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/libnet.so
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/libnio.so
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/libnpt.so
|
|
#%{_jvmdir}/%{jredir}/lib/%{archbuild}/libpulse-java.so
|
|
#%{_jvmdir}/%{jredir}/lib/%{archbuild}/librmi.so
|
|
%ifnarch arm
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/libsaproc.so
|
|
%endif
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/libsplashscreen.so
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/libsunec.so
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/libunpack.so
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/libverify.so
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/libzip.so
|
|
#%dir %{_jvmdir}/%{jredir}/lib/%{archbuild}/native_threads
|
|
#%{_jvmdir}/%{jredir}/lib/%{archbuild}/native_threads/libhpi.so
|
|
%ifnarch arm
|
|
%dir %{_jvmdir}/%{jredir}/lib/%{archbuild}/server
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/server/Xusage.txt
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/server/classes.jsa
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/server/libjsig.so
|
|
%{_jvmdir}/%{jredir}/lib/%{archbuild}/server/libjvm.so
|
|
%endif
|
|
#%dir %{_jvmdir}/%{jredir}/lib/%{archbuild}/xawt
|
|
#%{_jvmdir}/%{jredir}/lib/%{archbuild}/xawt/libmawt.so
|
|
#%{_jvmdir}/%{jredir}/lib/im
|
|
%{_jvmdir}/%{jredir}/lib/images
|
|
%{_jvmdir}/%{jredir}/lib/jce.jar
|
|
%{_jvmdir}/%{jredir}/lib/jfr.jar
|
|
%dir %{_jvmdir}/%{jredir}/lib/jfr
|
|
%{_jvmdir}/%{jredir}/lib/jfr/*.jfc
|
|
%{_jvmdir}/%{jredir}/lib/jexec
|
|
%{_jvmdir}/%{jredir}/lib/jsse.jar
|
|
%{_jvmdir}/%{jredir}/lib/jvm.hprof.txt
|
|
%{_jvmdir}/%{jredir}/lib/management-agent.jar
|
|
%{_jvmdir}/%{jredir}/lib/management
|
|
%{_jvmdir}/%{jredir}/lib/meta-index
|
|
%{_jvmdir}/%{jredir}/lib/psfont.properties.ja
|
|
%{_jvmdir}/%{jredir}/lib/resources.jar
|
|
#%{_jvmdir}/%{jredir}/lib/rhino.jar
|
|
%{_jvmdir}/%{jredir}/lib/rt.jar
|
|
%{_jvmdir}/%{jredir}/lib/*.properties
|
|
#%dir %{_jvmdir}/%{jredir}/lib/zi
|
|
#%{_jvmdir}/%{jredir}/lib/zi/*
|
|
%dir %{_jvmdir}/%{jredir}/lib/security
|
|
%{_jvmdir}/%{jredir}/lib/security/blacklisted.certs
|
|
%{_jvmdir}/%{jredir}/lib/security/policy/limited/US_export_policy.jar
|
|
%{_jvmdir}/%{jredir}/lib/security/policy/limited/local_policy.jar
|
|
%{_jvmdir}/%{jredir}/lib/security/policy/unlimited/US_export_policy.jar
|
|
%{_jvmdir}/%{jredir}/lib/security/policy/unlimited/local_policy.jar
|
|
%{_jvmdir}/%{jredir}/lib/security/cacerts
|
|
%config(noreplace) %{_jvmdir}/%{jredir}/lib/security/java.policy
|
|
%config(noreplace) %{_jvmdir}/%{jredir}/lib/security/java.security
|
|
#%dir %{_jvmprivdir}/java-%{version}-%{origin}/jce/vanilla
|
|
%{_jvmdir}/%{jredir}/lib/security/nss.cfg
|
|
%{_datadir}/pixmaps/java-%{javaver}-%{origin}.png
|
|
%{_datadir}/icons/hicolor/*x*/apps/java-%{javaver}-%{origin}.png
|
|
%{_mandir}/man1/java-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/java.1*
|
|
%{_mandir}/man1/keytool-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/keytool.1*
|
|
%{_mandir}/man1/orbd-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/orbd.1*
|
|
%{_mandir}/man1/pack200-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/pack200.1*
|
|
%{_mandir}/man1/rmid-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/rmid.1*
|
|
%{_mandir}/man1/rmiregistry-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/rmiregistry.1*
|
|
%{_mandir}/man1/servertool-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/servertool.1*
|
|
%{_mandir}/man1/tnameserv-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/tnameserv.1*
|
|
%{_mandir}/man1/unpack200-%{origin}%{javaver}.1*
|
|
%{_mandir}/man1/unpack200.1*
|
|
%doc AUTHORS COPYING ChangeLog
|
|
%doc NEWS openjdk/LICENSE README
|
|
|
|
%files -n java-openjdk%{javaver}-demo
|
|
%defattr(-,root,root)
|
|
%{_jvmdir}/%{sdkdir}/demo
|
|
%{_jvmdir}/%{sdkdir}/sample
|
|
|
|
%files -n java-openjdk%{javaver}-src
|
|
%defattr(-,root,root)
|
|
%{_jvmdir}/%{sdkdir}/src.zip
|
|
%if %with_test
|
|
# TODO: put these in a separate testresults subpackage.
|
|
%doc mauve_tests
|
|
%doc mauve-%{mauve_date}/mauve_output
|
|
%doc test/jtreg-summary.log
|
|
%endif
|
|
|
|
%post -n java-openjdk%{javaver}-javadoc
|
|
/usr/sbin/update-alternatives --install %{_javadocdir}/java javadocdir%{javaver}-%{origin} %{_javadocdir}/%{sdkdir}/api 70
|
|
exit 0
|
|
|
|
%files -n java-openjdk%{javaver}-javadoc
|
|
%defattr(-,root,root)
|
|
%ifnarch arm
|
|
%doc %{_javadocdir}/%{sdkdir}
|
|
%endif
|
|
%ifarch arm
|
|
%doc %{_datadir}/javadoc/java-8-openjdk-arm
|
|
%endif
|
|
#%doc ChangeLog NEWS
|
|
#%doc README*
|
|
|
|
%changelog
|
|
* Thu Jun 09 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 8u292b10_3.19.0-1mamba
|
|
- update to 8u292b10_3.19.0
|
|
|
|
* Sat Oct 26 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 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 <silvan.calarco@mambasoft.it> 8u212b04_3.12.0-1mamba
|
|
- update to 8u212b04_3.12.0
|
|
|
|
* Sat Sep 15 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 8u171b11_3.8.0-1mamba
|
|
- update to 8u171b11_3.8.0
|
|
|
|
* Wed Nov 18 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 7u91_2.6.3-1mamba
|
|
- update to 7u91_2.6.3
|
|
|
|
* Wed Feb 25 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 7u75_2.5.4-1mamba
|
|
- update to 7u75_2.5.4
|
|
|
|
* Tue Feb 24 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.5.4_7u75-1mamba
|
|
- update to 2.5.4_7u75
|
|
|
|
* Sat Mar 22 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.0-29mamba
|
|
- icedtea6 update to 1.12.8
|
|
|
|
* Tue Jun 18 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6.0.28mamba
|
|
- icedtea6 update to 1.12.5
|
|
- openjdk update to 6.b27-26_oct_2012
|
|
|
|
* Mon Mar 14 2011 gil <puntogil@libero.it> 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 <puntogil@libero.it> 1.6.0-26mamba
|
|
- bootstrap mode
|
|
- update to b22-28_feb_2011
|
|
|
|
* Tue Feb 22 2011 gil <puntogil@libero.it> 1.6.0-25mamba
|
|
- edit plugin scripts
|
|
|
|
* Wed Feb 16 2011 gil <puntogil@libero.it> 1.6.0-24mamba
|
|
- bootstrap mode
|
|
- rebuilt with icedtea 1.9.7
|
|
|
|
* Sat Feb 12 2011 gil <puntogil@libero.it> 1.6.0-23mamba
|
|
- rebuilt after bootstrap
|
|
|
|
* Sat Feb 12 2011 gil <puntogil@libero.it> 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 <puntogil@libero.it> 1.6.0-21mamba
|
|
- rebuilt with icedtea 1.9.6
|
|
|
|
* Tue Feb 01 2011 gil <puntogil@libero.it> 1.6.0-20mamba
|
|
- rebuilt with icedtea 1.9.5
|
|
|
|
* Fri Jan 21 2011 gil <puntogil@libero.it> 1.6.0-19mamba
|
|
- fixed some errors
|
|
|
|
* Thu Jan 20 2011 gil <puntogil@libero.it> 1.6.0-18mamba
|
|
- built with libjpeg-turbo 1.0.90 support
|
|
|
|
* Thu Jan 20 2011 gil <puntogil@libero.it> 1.6.0-17mamba
|
|
- fixed some errors
|
|
|
|
* Thu Jan 20 2011 gil <puntogil@libero.it> 1.6.0-16mamba
|
|
- rebuilt after bootstrap
|
|
|
|
* Wed Jan 19 2011 gil <puntogil@libero.it> 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 <puntogil@libero.it> 1.6.0-14mamba
|
|
- add provides to javadoc sub package
|
|
|
|
* Sat Jan 15 2011 gil <puntogil@libero.it> 1.6.0-13mamba
|
|
- rebuilt after bootstrap
|
|
|
|
* Sat Jan 15 2011 gil <puntogil@libero.it> 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 <puntogil@libero.it> 1.6.0-11mamba
|
|
- remove libjpeg6b dep
|
|
- rebuilt with libjpeg-turbo support
|
|
|
|
* Mon Jan 03 2011 gil <puntogil@libero.it> 1.6.0-10mamba
|
|
- rebuilt after bootstrap
|
|
|
|
* Mon Jan 03 2011 gil <puntogil@libero.it> 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 <puntogil@libero.it> 1.6.0-8mamba
|
|
- rebuilt after bootstrap
|
|
|
|
* Sat Jan 01 2011 gil <puntogil@libero.it> 1.6.0-7mamba
|
|
- rebuilt coreutils 8.8-2mamba support
|
|
- edit spec file
|
|
- bootstrap mode
|
|
|
|
* Wed Dec 29 2010 gil <puntogil@libero.it> 1.6.0-6mamba
|
|
- rebuilt with dejavu-lgc-fonts-ttf support
|
|
- remove visualvm (is now in own package)
|
|
|
|
* Tue Dec 28 2010 gil <puntogil@libero.it> 1.6.0-5mamba
|
|
- update visualvm 1.3.1 and netbeans platform 6.9.1
|
|
|
|
* Tue Dec 28 2010 gil <puntogil@libero.it> 1.6.0-4mamba
|
|
- enable systemtap
|
|
- enable visualvm
|
|
|
|
* Tue Dec 28 2010 gil <puntogil@libero.it> 1.6.0-3mamba
|
|
- rebuilt after bootstrap
|
|
|
|
* Mon Dec 27 2010 gil <puntogil@libero.it> 1.6.0-2mamba
|
|
- update to b18-16_feb_2010
|
|
- bootstrap
|
|
|
|
* Wed Jun 23 2010 gil <puntogil@libero.it> 1.6.0-1mamba
|
|
- bootstrap
|
|
- add tzdata-java support
|