template jvm interpreter for ppc64le + reformat with spec cleaner
OBS-URL: https://build.opensuse.org/package/show/Java:Factory/java-1_8_0-openjdk?expand=0&rev=17
This commit is contained in:
parent
c75c2604dd
commit
8a4a75545e
@ -1,3 +1,10 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Sep 29 06:36:58 UTC 2014 - fstrba@suse.com
|
||||||
|
|
||||||
|
- Build template jvm interpreter on ppc64le
|
||||||
|
* It was ported for this architecture in jdk8u49-b06
|
||||||
|
- Reformat the spec file with spec-cleaner
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Sep 26 07:35:47 UTC 2014 - fstrba@suse.com
|
Fri Sep 26 07:35:47 UTC 2014 - fstrba@suse.com
|
||||||
|
|
||||||
|
@ -63,6 +63,7 @@
|
|||||||
%global cacerts %{_jvmdir}/%{jredir}/lib/security/cacerts
|
%global cacerts %{_jvmdir}/%{jredir}/lib/security/cacerts
|
||||||
# real file made by update-ca-certificates
|
# real file made by update-ca-certificates
|
||||||
%global javacacerts %{_var}/lib/ca-certificates/java-cacerts
|
%global javacacerts %{_var}/lib/ca-certificates/java-cacerts
|
||||||
|
%{!?aarch64:%global aarch64 aarch64 arm64 armv8}
|
||||||
%ifarch x86_64
|
%ifarch x86_64
|
||||||
%global archinstall amd64
|
%global archinstall amd64
|
||||||
%endif
|
%endif
|
||||||
@ -248,19 +249,18 @@ Provides: java = %{javaver}
|
|||||||
Provides: java-%{javaver} = %{version}-%{release}
|
Provides: java-%{javaver} = %{version}-%{release}
|
||||||
Provides: java-openjdk = %{version}-%{release}
|
Provides: java-openjdk = %{version}-%{release}
|
||||||
Provides: jre = %{javaver}
|
Provides: jre = %{javaver}
|
||||||
%ifarch %{ix86} ppc
|
|
||||||
Provides: jre-32 = %{javaver}
|
|
||||||
%endif
|
|
||||||
%ifarch x86_64
|
|
||||||
Provides: jre-64 = %{javaver}
|
|
||||||
%endif
|
|
||||||
Provides: jre-%{javaver} = %{version}-%{release}
|
Provides: jre-%{javaver} = %{version}-%{release}
|
||||||
Provides: jre-%{javaver}-openjdk = %{version}-%{release}
|
Provides: jre-%{javaver}-openjdk = %{version}-%{release}
|
||||||
Provides: jre-openjdk = %{version}-%{release}
|
Provides: jre-openjdk = %{version}-%{release}
|
||||||
# Standard JPackage extensions provides.
|
# Standard JPackage extensions provides.
|
||||||
Provides: java-fonts = %{version}
|
Provides: java-fonts = %{version}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%{!?aarch64:%global aarch64 aarch64 arm64 armv8}
|
%ifarch %ix86 ppc
|
||||||
|
Provides: jre-32 = %{javaver}
|
||||||
|
%endif
|
||||||
|
%ifarch x86_64
|
||||||
|
Provides: jre-64 = %{javaver}
|
||||||
|
%endif
|
||||||
%if %{bootcycle}
|
%if %{bootcycle}
|
||||||
BuildRequires: java-devel >= 1.6.0
|
BuildRequires: java-devel >= 1.6.0
|
||||||
%else
|
%else
|
||||||
@ -409,6 +409,7 @@ need to.
|
|||||||
%setup -q -D -n %{root_repository}-%{root_revision} -T -a 5
|
%setup -q -D -n %{root_repository}-%{root_revision} -T -a 5
|
||||||
%setup -q -D -n %{root_repository}-%{root_revision} -T -a 6
|
%setup -q -D -n %{root_repository}-%{root_revision} -T -a 6
|
||||||
%setup -q -D -n %{root_repository}-%{root_revision} -T -a 7
|
%setup -q -D -n %{root_repository}-%{root_revision} -T -a 7
|
||||||
|
|
||||||
%if %{with_pulseaudio}
|
%if %{with_pulseaudio}
|
||||||
%setup -q -D -n %{root_repository}-%{root_revision} -T -a 9
|
%setup -q -D -n %{root_repository}-%{root_revision} -T -a 9
|
||||||
%endif
|
%endif
|
||||||
@ -416,6 +417,7 @@ need to.
|
|||||||
# Set up the build tree using the subrepository tarballs
|
# Set up the build tree using the subrepository tarballs
|
||||||
pwd
|
pwd
|
||||||
mv corba-%{corba_revision} corba
|
mv corba-%{corba_revision} corba
|
||||||
|
|
||||||
%ifarch %{aarch64}
|
%ifarch %{aarch64}
|
||||||
mv hotspot-%{aarch64_hotspot_revision} hotspot
|
mv hotspot-%{aarch64_hotspot_revision} hotspot
|
||||||
%else
|
%else
|
||||||
@ -426,6 +428,7 @@ mv jaxws-%{jaxws_revision} jaxws
|
|||||||
mv jdk-%{jdk_revision} jdk
|
mv jdk-%{jdk_revision} jdk
|
||||||
mv langtools-%{langtools_revision} langtools
|
mv langtools-%{langtools_revision} langtools
|
||||||
mv nashorn-%{nashorn_revision} nashorn
|
mv nashorn-%{nashorn_revision} nashorn
|
||||||
|
|
||||||
%if %{with_pulseaudio}
|
%if %{with_pulseaudio}
|
||||||
mv icedtea-sound-%{icedtea_sound_version} icedtea-sound
|
mv icedtea-sound-%{icedtea_sound_version} icedtea-sound
|
||||||
%endif
|
%endif
|
||||||
@ -467,6 +470,7 @@ rm -rvf jdk/src/share/native/sun/java2d/cmm/lcms/lcms2*
|
|||||||
%patch99 -p1
|
%patch99 -p1
|
||||||
|
|
||||||
# s390 build fixes
|
# s390 build fixes
|
||||||
|
|
||||||
%ifarch s390
|
%ifarch s390
|
||||||
%patch100 -p1
|
%patch100 -p1
|
||||||
%patch101 -p1
|
%patch101 -p1
|
||||||
@ -478,6 +482,7 @@ rm -rvf jdk/src/share/native/sun/java2d/cmm/lcms/lcms2*
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Extract systemtap tapsets
|
# Extract systemtap tapsets
|
||||||
|
|
||||||
%if %{with_systemtap}
|
%if %{with_systemtap}
|
||||||
|
|
||||||
tar xzf %{SOURCE10}
|
tar xzf %{SOURCE10}
|
||||||
@ -487,6 +492,7 @@ for file in tapset/*.in; do
|
|||||||
OUTPUT_FILE=`echo $file | sed -e s:\.in$::g`
|
OUTPUT_FILE=`echo $file | sed -e s:\.in$::g`
|
||||||
sed -e s:@ABS_SERVER_LIBJVM_SO@:%{_jvmdir}/%{jredir}/lib/%{archinstall}/server/libjvm.so:g $file > $file.1
|
sed -e s:@ABS_SERVER_LIBJVM_SO@:%{_jvmdir}/%{jredir}/lib/%{archinstall}/server/libjvm.so:g $file > $file.1
|
||||||
# TODO find out which architectures other than ix86 have a client vm
|
# TODO find out which architectures other than ix86 have a client vm
|
||||||
|
|
||||||
%ifarch %ix86
|
%ifarch %ix86
|
||||||
sed -e s:@ABS_CLIENT_LIBJVM_SO@:%{_jvmdir}/%{jredir}/lib/%{archinstall}/client/libjvm.so:g $file.1 > $OUTPUT_FILE
|
sed -e s:@ABS_CLIENT_LIBJVM_SO@:%{_jvmdir}/%{jredir}/lib/%{archinstall}/client/libjvm.so:g $file.1 > $OUTPUT_FILE
|
||||||
%else
|
%else
|
||||||
@ -518,9 +524,11 @@ export ZLIB_LIBS="-L/%{_lib} -lz"
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
# Build IcedTea and OpenJDK.
|
# Build IcedTea and OpenJDK.
|
||||||
|
|
||||||
%ifarch s390x sparc64 alpha ppc64 ppc64le %{aarch64}
|
%ifarch s390x sparc64 alpha ppc64 ppc64le %{aarch64}
|
||||||
export ARCH_DATA_MODEL=64
|
export ARCH_DATA_MODEL=64
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%ifarch alpha
|
%ifarch alpha
|
||||||
export CFLAGS="$CFLAGS -mieee"
|
export CFLAGS="$CFLAGS -mieee"
|
||||||
%endif
|
%endif
|
||||||
@ -534,6 +542,7 @@ mkdir -p %{buildoutputdir}
|
|||||||
pushd %{buildoutputdir}
|
pushd %{buildoutputdir}
|
||||||
|
|
||||||
bash ../configure \
|
bash ../configure \
|
||||||
|
|
||||||
%ifnarch %{jit_arches}
|
%ifnarch %{jit_arches}
|
||||||
--with-jvm-variants=zero \
|
--with-jvm-variants=zero \
|
||||||
%endif
|
%endif
|
||||||
@ -549,11 +558,9 @@ bash ../configure \
|
|||||||
--with-libpng=system \
|
--with-libpng=system \
|
||||||
--with-lcms=system \
|
--with-lcms=system \
|
||||||
--with-stdc++lib=dynamic \
|
--with-stdc++lib=dynamic \
|
||||||
|
|
||||||
%ifnarch %{arm}
|
%ifnarch %{arm}
|
||||||
--with-num-cores="$NUM_PROC" \
|
--with-num-cores="$NUM_PROC" \
|
||||||
%endif
|
|
||||||
%ifarch ppc64le
|
|
||||||
--with-jvm-interpreter=cpp \
|
|
||||||
%endif
|
%endif
|
||||||
--with-extra-cflags="-fno-devirtualize" \
|
--with-extra-cflags="-fno-devirtualize" \
|
||||||
--with-extra-cxxflags="-fno-devirtualize"
|
--with-extra-cxxflags="-fno-devirtualize"
|
||||||
@ -585,6 +592,7 @@ export JAVA_HOME=$(pwd)/%{buildoutputdir}/%{imagesdir}/j2sdk-image
|
|||||||
if [ -f %{buildoutputdir}/%{imagesdir}/j2sdk-image/jre/lib/security/cacerts ]; then
|
if [ -f %{buildoutputdir}/%{imagesdir}/j2sdk-image/jre/lib/security/cacerts ]; then
|
||||||
rm %{buildoutputdir}/%{imagesdir}/j2sdk-image/jre/lib/security/cacerts
|
rm %{buildoutputdir}/%{imagesdir}/j2sdk-image/jre/lib/security/cacerts
|
||||||
fi
|
fi
|
||||||
|
|
||||||
%if 0%{?suse_version} < 1130
|
%if 0%{?suse_version} < 1130
|
||||||
# ========== a default keystore ==========
|
# ========== a default keystore ==========
|
||||||
# a cacerts generation - 11.3+ use java-ca-certificates package
|
# a cacerts generation - 11.3+ use java-ca-certificates package
|
||||||
@ -883,7 +891,6 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%if 0%{?suse_version} >= 1130
|
%if 0%{?suse_version} >= 1130
|
||||||
|
|
||||||
%posttrans headless
|
%posttrans headless
|
||||||
# bnc#781690#c11: don't trust user defined JAVA_HOME and use the current VM
|
# bnc#781690#c11: don't trust user defined JAVA_HOME and use the current VM
|
||||||
# XXX: this might conflict between various versions of openjdk
|
# XXX: this might conflict between various versions of openjdk
|
||||||
@ -1112,6 +1119,7 @@ fi
|
|||||||
%{_jvmdir}/%{sdkdir}/bin/*
|
%{_jvmdir}/%{sdkdir}/bin/*
|
||||||
%{_jvmdir}/%{sdkdir}/include/*
|
%{_jvmdir}/%{sdkdir}/include/*
|
||||||
%{_jvmdir}/%{sdkdir}/lib/*
|
%{_jvmdir}/%{sdkdir}/lib/*
|
||||||
|
|
||||||
%if %{with_systemtap}
|
%if %{with_systemtap}
|
||||||
%{_jvmdir}/%{sdkdir}/tapset/*.stp
|
%{_jvmdir}/%{sdkdir}/tapset/*.stp
|
||||||
%endif
|
%endif
|
||||||
@ -1147,6 +1155,7 @@ fi
|
|||||||
%{_mandir}/man1/wsgen-%{sdklnk}.1*
|
%{_mandir}/man1/wsgen-%{sdklnk}.1*
|
||||||
%{_mandir}/man1/wsimport-%{sdklnk}.1*
|
%{_mandir}/man1/wsimport-%{sdklnk}.1*
|
||||||
%{_mandir}/man1/xjc-%{sdklnk}.1*
|
%{_mandir}/man1/xjc-%{sdklnk}.1*
|
||||||
|
|
||||||
%if %{with_systemtap}
|
%if %{with_systemtap}
|
||||||
%{tapsetroot}
|
%{tapsetroot}
|
||||||
%endif
|
%endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user