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