mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-01 01:21:57 +00:00
Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 06f61cc2f2 | |||
| 998fac79b3 | |||
| 5b2ca7855d | |||
| ad966c81cc | |||
| e3a946b4b9 | |||
| 41fd80a888 | |||
| 236eefc62b | |||
| 3ac1e99229 | |||
| 8bda74f818 | |||
| ae7329fd0f | |||
| 3744c62071 | |||
| b52b9e3da2 | |||
| 6031fa1cd7 | |||
| 3e2457d3d0 | |||
| fc2014cce7 |
@@ -1,98 +1,50 @@
|
|||||||
|
%global mxver 6.27.6
|
||||||
|
%global jvmci 22.0-b01
|
||||||
%global gsummary Universal virtual machine for running programs in different languages
|
%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:
|
%global desc %{expand:
|
||||||
GraalVM is a high-performance JDK distribution designed to accelerate the
|
GraalVM is a high-performance JDK distribution designed to accelerate the
|
||||||
execution of applications written in Java and other JVM languages along with
|
execution of applications written in Java and other JVM languages along with
|
||||||
support for JavaScript, Ruby, Python, and a number of other popular languages.}
|
support for JavaScript, Ruby, Python, and a number of other popular languages.}
|
||||||
|
|
||||||
Name: graalvm
|
Name: graalvm
|
||||||
Version: 22.3.2
|
Version: 23.0.0
|
||||||
Release: 2%{?dist}
|
Release: 1%{?dist}
|
||||||
URL: https://www.graalvm.org/
|
URL: https://www.graalvm.org/
|
||||||
Summary: %{gsummary}
|
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
|
License: GPL-2.0
|
||||||
|
Requires: python3.10
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
|
# https://mail.openjdk.org/pipermail/graal-dev/2015-December/004050.html
|
||||||
|
BuildRequires: libstdc++-static hg ant gcc-c++ make cmake git java-latest-openjdk-devel
|
||||||
|
# java-1.8.0-openjdk-devel java-11-openjdk-devel java-17-openjdk-devel java-latest-openjdk-devel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
%{desc}
|
%{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
|
%prep
|
||||||
tar -xzf %{SOURCE11}
|
git clone https://github.com/oracle/graal
|
||||||
tar -xzf %{SOURCE17}
|
cd graal
|
||||||
%dnl tar -xzf %{SOURCE19}
|
git checkout vm-ce-%version
|
||||||
ls
|
cd ..
|
||||||
|
tar xf %SOURCE1
|
||||||
mv graalvm-ce-java11-%version/GRAALVM-README.md .
|
tar xf %SOURCE2
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
PATH="$PATH:$PWD/mx-%mxver"
|
||||||
|
JAVA_HOME=$PWD/openjdk1.8.0_302-jvmci-%jvmci-fastdebug
|
||||||
|
cd graal/vm
|
||||||
|
mx --java-home $JAVA_HOME --env ce build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%define _i(v) %{expand:
|
ls -alh graal/vm
|
||||||
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
|
|
||||||
|
|
||||||
%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
|
%files
|
||||||
%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
|
|
||||||
|
|
||||||
%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
|
%changelog
|
||||||
* Sat Jun 17 2023 windowsboy111 <windowsboy111@fyralabs.com> - 22.3.2-2
|
* Sat Jun 17 2023 windowsboy111 <windowsboy111@fyralabs.com> - 22.3.2-2
|
||||||
|
|||||||
Reference in New Issue
Block a user