rust-packaging -> cargo-packaging

OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/rusty_v8?expand=0&rev=59
This commit is contained in:
Avindra Goolcharan 2023-08-08 00:32:18 +00:00 committed by Git OBS Bridge
parent 7f0e3610b6
commit 5134ef4710
2 changed files with 9 additions and 3 deletions

5
cargo_config Normal file
View File

@ -0,0 +1,5 @@
[source.crates-io]
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "vendor"

View File

@ -25,6 +25,8 @@ Group: Productivity/Other
URL: https://github.com/denoland/rusty_v8
Source0: %{name}-%{version}.tar.xz
Source1: vendor.tar.xz
Source2: cargo_config
BuildRequires: cargo-packaging
BuildRequires: clang
BuildRequires: gn
BuildRequires: lld
@ -32,7 +34,6 @@ BuildRequires: llvm
BuildRequires: ninja
BuildRequires: pkgconfig
BuildRequires: python3-base
BuildRequires: rust-packaging
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gmodule-2.0)
BuildRequires: pkgconfig(gobject-2.0)
@ -48,8 +49,8 @@ Chromium, etc.
%prep
%autosetup -a1 -p1
%define cargo_registry $(pwd)/vendor
%{cargo_prep}
mkdir -p .cargo
cp %{SOURCE2} .cargo/config
%build
#https://github.com/denoland/rusty_v8/#build-v8-from-source