forked from pool/java-1_8_0-openjdk
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
|
|
||||||
%{!?aarch64:%global aarch64 aarch64 arm64 armv8}
|
%{!?aarch64:%global aarch64 aarch64 arm64 armv8}
|
||||||
%global jit_arches %ix86 x86_64 ppc64 ppc64le %aarch64
|
%global jit_arches %{ix86} x86_64 ppc64 ppc64le %{aarch64}
|
||||||
%global icedtea_version 3.0.1
|
%global icedtea_version 3.0.1
|
||||||
%global icedtea_sound_version 1.0.1
|
%global icedtea_sound_version 1.0.1
|
||||||
%global buildoutputdir openjdk.build/
|
%global buildoutputdir openjdk.build/
|
||||||
@@ -75,7 +75,7 @@
|
|||||||
%ifarch ppc64le
|
%ifarch ppc64le
|
||||||
%global archinstall ppc64le
|
%global archinstall ppc64le
|
||||||
%endif
|
%endif
|
||||||
%ifarch %ix86
|
%ifarch %{ix86}
|
||||||
%global archinstall i386
|
%global archinstall i386
|
||||||
%endif
|
%endif
|
||||||
%ifarch ia64
|
%ifarch ia64
|
||||||
@@ -87,10 +87,10 @@
|
|||||||
%ifarch s390x
|
%ifarch s390x
|
||||||
%global archinstall s390x
|
%global archinstall s390x
|
||||||
%endif
|
%endif
|
||||||
%ifarch %arm
|
%ifarch %{arm}
|
||||||
%global archinstall arm
|
%global archinstall arm
|
||||||
%endif
|
%endif
|
||||||
%ifarch %aarch64
|
%ifarch %{aarch64}
|
||||||
%global archinstall aarch64
|
%global archinstall aarch64
|
||||||
%endif
|
%endif
|
||||||
# 32 bit sparc, optimized for v9
|
# 32 bit sparc, optimized for v9
|
||||||
@@ -109,7 +109,7 @@
|
|||||||
%endif
|
%endif
|
||||||
# bnc#542545
|
# bnc#542545
|
||||||
# 32-bit versus 64-bit specific provides:
|
# 32-bit versus 64-bit specific provides:
|
||||||
%ifarch %ix86 ppc s390
|
%ifarch %{ix86} ppc s390
|
||||||
%global bits 32
|
%global bits 32
|
||||||
%endif
|
%endif
|
||||||
%ifarch x86_64 ia64 s390x
|
%ifarch x86_64 ia64 s390x
|
||||||
@@ -118,6 +118,7 @@
|
|||||||
%if 0%{?__isa_bits}
|
%if 0%{?__isa_bits}
|
||||||
%global bits %{__isa_bits}
|
%global bits %{__isa_bits}
|
||||||
%endif
|
%endif
|
||||||
|
%bcond_with zero
|
||||||
%if 0%{?suse_version} >= 1330 || 0%{?suse_version} == 1315
|
%if 0%{?suse_version} >= 1330 || 0%{?suse_version} == 1315
|
||||||
%if %{with bootstrap}
|
%if %{with bootstrap}
|
||||||
%global with_sunec 0
|
%global with_sunec 0
|
||||||
@@ -127,7 +128,6 @@
|
|||||||
%else
|
%else
|
||||||
%global with_sunec 0
|
%global with_sunec 0
|
||||||
%endif
|
%endif
|
||||||
%bcond_with zero
|
|
||||||
# Turn on/off some features depending on openSUSE version
|
# Turn on/off some features depending on openSUSE version
|
||||||
%if 0%{?suse_version} >= 1130
|
%if 0%{?suse_version} >= 1130
|
||||||
%if ! %{with zero}
|
%if ! %{with zero}
|
||||||
@@ -204,7 +204,6 @@ BuildRequires: gcc-c++
|
|||||||
BuildRequires: giflib-devel
|
BuildRequires: giflib-devel
|
||||||
BuildRequires: gtk2-devel
|
BuildRequires: gtk2-devel
|
||||||
BuildRequires: java-bootstrap-devel >= 1.7.0
|
BuildRequires: java-bootstrap-devel >= 1.7.0
|
||||||
BuildRequires: libXcomposite-devel
|
|
||||||
BuildRequires: libjpeg-devel
|
BuildRequires: libjpeg-devel
|
||||||
BuildRequires: liblcms2-devel
|
BuildRequires: liblcms2-devel
|
||||||
BuildRequires: libpng-devel
|
BuildRequires: libpng-devel
|
||||||
@@ -258,6 +257,7 @@ BuildRequires: libffi-devel
|
|||||||
BuildRequires: xorg-x11-devel
|
BuildRequires: xorg-x11-devel
|
||||||
%else
|
%else
|
||||||
BuildRequires: libX11-devel
|
BuildRequires: libX11-devel
|
||||||
|
BuildRequires: libXcomposite-devel
|
||||||
BuildRequires: libXi-devel
|
BuildRequires: libXi-devel
|
||||||
BuildRequires: libXinerama-devel
|
BuildRequires: libXinerama-devel
|
||||||
BuildRequires: libXt-devel
|
BuildRequires: libXt-devel
|
||||||
@@ -410,7 +410,7 @@ for file in tapset/*.in; do
|
|||||||
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
|
||||||
sed -e '/@ABS_CLIENT_LIBJVM_SO@/d' $file.1 > $OUTPUT_FILE
|
sed -e '/@ABS_CLIENT_LIBJVM_SO@/d' $file.1 > $OUTPUT_FILE
|
||||||
@@ -458,7 +458,7 @@ sh autogen.sh
|
|||||||
--disable-infinality \
|
--disable-infinality \
|
||||||
--disable-downloading \
|
--disable-downloading \
|
||||||
--with-abs-install-dir=%{_jvmdir}/%{sdkdir} \
|
--with-abs-install-dir=%{_jvmdir}/%{sdkdir} \
|
||||||
%ifnarch %arm %aarch64
|
%ifnarch %{arm} %{aarch64}
|
||||||
--with-parallel-jobs="${NUM_PROC}" \
|
--with-parallel-jobs="${NUM_PROC}" \
|
||||||
%endif
|
%endif
|
||||||
--with-pkgversion="suse-%{release}-%{_arch}" \
|
--with-pkgversion="suse-%{release}-%{_arch}" \
|
||||||
@@ -514,7 +514,7 @@ patch -p0 -i %{PATCH2001}
|
|||||||
)
|
)
|
||||||
|
|
||||||
%if 0%{?suse_version} >= 1330
|
%if 0%{?suse_version} >= 1330
|
||||||
%ifarch %ix86
|
%ifarch %{ix86}
|
||||||
for i in {1..10}; do make %{?_smp_mflags} && break; done
|
for i in {1..10}; do make %{?_smp_mflags} && break; done
|
||||||
%else
|
%else
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
Reference in New Issue
Block a user