From 5134ef47106f60dafadbbfead324e25fd3f52396e54aa917ff21c4a52ae33067 Mon Sep 17 00:00:00 2001 From: Avindra Goolcharan Date: Tue, 8 Aug 2023 00:32:18 +0000 Subject: [PATCH] rust-packaging -> cargo-packaging OBS-URL: https://build.opensuse.org/package/show/devel:languages:javascript/rusty_v8?expand=0&rev=59 --- cargo_config | 5 +++++ rusty_v8.spec | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) create mode 100644 cargo_config diff --git a/cargo_config b/cargo_config new file mode 100644 index 0000000..97852b5 --- /dev/null +++ b/cargo_config @@ -0,0 +1,5 @@ +[source.crates-io] +replace-with = "vendored-sources" + +[source.vendored-sources] +directory = "vendor" diff --git a/rusty_v8.spec b/rusty_v8.spec index e5f0b7b..1dc3938 100644 --- a/rusty_v8.spec +++ b/rusty_v8.spec @@ -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