2021-01-26 17:33:15 +01:00
|
|
|
#
|
|
|
|
# spec file for package rusty_v8
|
|
|
|
#
|
2024-02-09 05:26:36 +01:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2021-01-26 17:33:15 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: rusty_v8
|
2024-09-29 22:59:26 +02:00
|
|
|
Version: 129.0.0
|
2021-01-26 17:33:15 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Build tooling for Deno (do not install or use!)
|
|
|
|
License: MIT
|
|
|
|
Group: Productivity/Other
|
|
|
|
URL: https://github.com/denoland/rusty_v8
|
|
|
|
Source0: %{name}-%{version}.tar.xz
|
|
|
|
Source1: vendor.tar.xz
|
2023-08-08 02:32:18 +02:00
|
|
|
Source2: cargo_config
|
2024-06-28 04:41:03 +02:00
|
|
|
Patch0: deno-v8-arm.patch
|
2024-09-29 22:59:26 +02:00
|
|
|
Patch1: https://gitlab.archlinux.org/archlinux/packaging/packages/chromium/-/raw/main/compiler-rt-adjust-paths.patch
|
|
|
|
#Patch2: fix-prefix.patch
|
2023-08-08 02:32:18 +02:00
|
|
|
BuildRequires: cargo-packaging
|
2024-09-29 22:59:26 +02:00
|
|
|
BuildRequires: clang18
|
2021-01-26 17:33:15 +01:00
|
|
|
BuildRequires: gn
|
2024-09-29 22:59:26 +02:00
|
|
|
#BuildRequires: lld
|
|
|
|
BuildRequires: llvm18
|
2021-01-26 17:33:15 +01:00
|
|
|
BuildRequires: ninja
|
|
|
|
BuildRequires: pkgconfig
|
2022-06-21 21:34:33 +02:00
|
|
|
BuildRequires: python3-base
|
2021-01-26 17:33:15 +01:00
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
|
|
|
BuildRequires: pkgconfig(gmodule-2.0)
|
|
|
|
BuildRequires: pkgconfig(gobject-2.0)
|
|
|
|
BuildRequires: pkgconfig(gthread-2.0)
|
|
|
|
%ifarch ppc64 # wants g++ for some reason
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
V8 build tooling for Deno. This represents all of the common
|
|
|
|
cruft that is dragged along into the deno build from V8,
|
|
|
|
Chromium, etc.
|
|
|
|
|
|
|
|
%prep
|
2022-06-19 02:05:25 +02:00
|
|
|
%autosetup -a1 -p1
|
2023-08-08 02:32:18 +02:00
|
|
|
mkdir -p .cargo
|
|
|
|
cp %{SOURCE2} .cargo/config
|
2024-09-29 22:59:26 +02:00
|
|
|
rm Cargo.lock
|
2021-01-26 17:33:15 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
#https://github.com/denoland/rusty_v8/#build-v8-from-source
|
|
|
|
export V8_FROM_SOURCE=1
|
|
|
|
export CLANG_BASE_PATH=%{_prefix}
|
|
|
|
# note: built in debug mode to
|
|
|
|
# emit symbols for linker in deno build
|
2024-09-29 22:59:26 +02:00
|
|
|
## is_debug=true
|
|
|
|
export GN_ARGS="clang_version=18 use_lld=false"
|
|
|
|
#export RUST_BACKTRACE=full
|
2021-01-26 17:33:15 +01:00
|
|
|
%{__cargo} build %{__cargo_common_opts}
|
|
|
|
|
2024-09-29 22:59:26 +02:00
|
|
|
# -DLLVM_ENABLE_RUNTIMES="libcxx;libcxxabi;libunwind;compilER-RT"
|
|
|
|
|
2021-01-26 17:33:15 +01:00
|
|
|
%install
|
|
|
|
mkdir -p %{buildroot}%{_libdir}
|
|
|
|
cp target/debug/*.rlib %{buildroot}%{_libdir}
|
|
|
|
|
|
|
|
%files
|
|
|
|
%license LICENSE
|
|
|
|
%doc README.md
|
2022-04-22 02:08:59 +02:00
|
|
|
%{_libdir}/libv8.rlib
|
2021-01-26 17:33:15 +01:00
|
|
|
|
|
|
|
%changelog
|