mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
fix: graalvm
This commit is contained in:
@@ -1,98 +1,55 @@
|
||||
%global mxver 6.27.6
|
||||
%global jvmci 22.0-b01
|
||||
%global gsummary Universal virtual machine for running programs in different languages
|
||||
%ifarch x86_64
|
||||
%global garch amd64
|
||||
%elifarch aarch64
|
||||
%global garch aarch64
|
||||
%endif
|
||||
%global desc %{expand:
|
||||
GraalVM is a high-performance JDK distribution designed to accelerate the
|
||||
execution of applications written in Java and other JVM languages along with
|
||||
support for JavaScript, Ruby, Python, and a number of other popular languages.}
|
||||
|
||||
Name: graalvm
|
||||
Version: 22.3.2
|
||||
Release: 2%{?dist}
|
||||
URL: https://www.graalvm.org/
|
||||
Summary: %{gsummary}
|
||||
License: GPL-2.0
|
||||
Name: graalvm
|
||||
Version: 23.0.0
|
||||
Release: 1%{?dist}
|
||||
URL: https://www.graalvm.org/
|
||||
Source0: https://github.com/oracle/graal/archive/refs/tags/vm-ce-%version.tar.gz
|
||||
Source1: https://github.com/graalvm/mx/archive/refs/tags/%mxver.tar.gz
|
||||
Source2: https://github.com/graalvm/graal-jvmci-8/releases/download/jvmci-%jvmci/openjdk-8u302+06-jvmci-%jvmci-fastdebug-linux-amd64.tar.gz
|
||||
Summary: %gsummary
|
||||
License: GPL-2.0
|
||||
Requires: python3.10
|
||||
BuildRequires: fdupes
|
||||
# https://mail.openjdk.org/pipermail/graal-dev/2015-December/004050.html
|
||||
BuildRequires: libstdc++-static hg ant gcc-c++ java-1.8.0-openjdk java-11-openjdk java-17-openjdk java-latest-openjdk make cmake
|
||||
|
||||
%description
|
||||
%{desc}
|
||||
|
||||
%define _p(v) %{expand:
|
||||
%package jdk%1
|
||||
Source%1: https://github.com/graalvm/graalvm-ce-builds/releases/download/vm-%{version}/graalvm-ce-java%1-linux-%{garch}-%{version}.tar.gz
|
||||
Summary: %{gsummary} (JDK %1)
|
||||
%description jdk%1
|
||||
%{desc}
|
||||
JDK Version: %1
|
||||
|
||||
%package jdk%1-devel
|
||||
Summary: Development files for graalvm-jdk%1
|
||||
%description jdk%1-devel
|
||||
%summary.
|
||||
}
|
||||
|
||||
%_p 11
|
||||
%_p 17
|
||||
%dnl %_p 19
|
||||
|
||||
%prep
|
||||
tar -xzf %{SOURCE11}
|
||||
tar -xzf %{SOURCE17}
|
||||
%dnl tar -xzf %{SOURCE19}
|
||||
ls
|
||||
|
||||
mv graalvm-ce-java11-%version/GRAALVM-README.md .
|
||||
git clone https://github.com/oracle/graal
|
||||
cd graal
|
||||
git checkout vm-ce-%version
|
||||
cd ..
|
||||
tar xf %SOURCE1
|
||||
# tar xf %SOURCE2
|
||||
|
||||
|
||||
%build
|
||||
PATH="$PATH:$PWD/mx-%mxver"
|
||||
# JAVA_HOME=$PWD/openjdk1.8.0_302-jvmci-%jvmci-fastdebug
|
||||
cd graal/vm
|
||||
JAVA_HOME=%buildroot/usr/lib/jvm/$(alternatives --list | grep jre_1.8.0_openjdk | sed -E 's@.+?/@/@g') mx --env ce build &
|
||||
JAVA_HOME=%buildroot/usr/lib/jvm/$(alternatives --list | grep jre_11_openjdk | sed -E 's@.+?/@/@g') mx --env ce build &
|
||||
JAVA_HOME=%buildroot/usr/lib/jvm/$(alternatives --list | grep jre_17_openjdk | sed -E 's@.+?/@/@g') mx --env ce build &
|
||||
JAVA_HOME=%buildroot/usr/lib/jvm/$(alternatives --list | grep jre_20_openjdk | sed -E 's@.+?/@/@g') mx --env ce build &
|
||||
|
||||
wait
|
||||
|
||||
%install
|
||||
%define _i(v) %{expand:
|
||||
cd graalvm-ce-java%1-%{version}
|
||||
mkdir -p %{buildroot}/usr/lib/jvm/java-%1-graalvm/ %{buildroot}/usr/share/licenses/%{name}-jdk%1
|
||||
cp -a -t %{buildroot}/usr/lib/jvm/java-%1-graalvm/ *
|
||||
install -DTm644 LICENSE.txt %{buildroot}/usr/share/licenses/%{name}-jdk%1/LICENSE
|
||||
%fdupes %buildroot/usr/lib/jvm/java-%1-graalvm/
|
||||
cd ..
|
||||
}
|
||||
%_i 11
|
||||
%_i 17
|
||||
%dnl %_i 19
|
||||
chmod +x %buildroot/usr/lib/jvm/java-*-graalvm/lib/*.so
|
||||
ls -alh graal/vm
|
||||
|
||||
%files jdk11
|
||||
%doc GRAALVM-README.md
|
||||
%license LICENSE
|
||||
/usr/lib/jvm/java-11-graalvm/
|
||||
%ghost /usr/lib/jvm/java-11-graalvm/include/
|
||||
%ghost /usr/lib/jvm/java-11-graalvm/languages/nfi/include/
|
||||
%ghost /usr/lib/jvm/java-11-graalvm/lib/polyglot/polyglot_types.h
|
||||
|
||||
%files jdk17
|
||||
%doc GRAALVM-README.md
|
||||
%license LICENSE
|
||||
/usr/lib/jvm/java-17-graalvm/
|
||||
%ghost /usr/lib/jvm/java-17-graalvm/include/
|
||||
%ghost /usr/lib/jvm/java-17-graalvm/languages/nfi/include/
|
||||
%ghost /usr/lib/jvm/java-17-graalvm/lib/polyglot/polyglot_types.h
|
||||
%files
|
||||
|
||||
%dnl %files jdk19
|
||||
%dnl %doc GRAALVM-README.md
|
||||
%dnl %license LICENSE
|
||||
%dnl /usr/lib/jvm/java-19-graalvm/
|
||||
|
||||
%files jdk11-devel
|
||||
/usr/lib/jvm/java-11-graalvm/include/
|
||||
/usr/lib/jvm/java-11-graalvm/languages/nfi/include/
|
||||
/usr/lib/jvm/java-11-graalvm/lib/polyglot/polyglot_types.h
|
||||
|
||||
%files jdk17-devel
|
||||
/usr/lib/jvm/java-17-graalvm/include/
|
||||
/usr/lib/jvm/java-17-graalvm/languages/nfi/include/
|
||||
/usr/lib/jvm/java-17-graalvm/lib/polyglot/polyglot_types.h
|
||||
|
||||
%changelog
|
||||
* Sat Jun 17 2023 windowsboy111 <windowsboy111@fyralabs.com> - 22.3.2-2
|
||||
|
||||
Reference in New Issue
Block a user