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:
parent
7f0e3610b6
commit
5134ef4710
5
cargo_config
Normal file
5
cargo_config
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
[source.crates-io]
|
||||||
|
replace-with = "vendored-sources"
|
||||||
|
|
||||||
|
[source.vendored-sources]
|
||||||
|
directory = "vendor"
|
@ -25,6 +25,8 @@ Group: Productivity/Other
|
|||||||
URL: https://github.com/denoland/rusty_v8
|
URL: https://github.com/denoland/rusty_v8
|
||||||
Source0: %{name}-%{version}.tar.xz
|
Source0: %{name}-%{version}.tar.xz
|
||||||
Source1: vendor.tar.xz
|
Source1: vendor.tar.xz
|
||||||
|
Source2: cargo_config
|
||||||
|
BuildRequires: cargo-packaging
|
||||||
BuildRequires: clang
|
BuildRequires: clang
|
||||||
BuildRequires: gn
|
BuildRequires: gn
|
||||||
BuildRequires: lld
|
BuildRequires: lld
|
||||||
@ -32,7 +34,6 @@ BuildRequires: llvm
|
|||||||
BuildRequires: ninja
|
BuildRequires: ninja
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: python3-base
|
BuildRequires: python3-base
|
||||||
BuildRequires: rust-packaging
|
|
||||||
BuildRequires: pkgconfig(glib-2.0)
|
BuildRequires: pkgconfig(glib-2.0)
|
||||||
BuildRequires: pkgconfig(gmodule-2.0)
|
BuildRequires: pkgconfig(gmodule-2.0)
|
||||||
BuildRequires: pkgconfig(gobject-2.0)
|
BuildRequires: pkgconfig(gobject-2.0)
|
||||||
@ -48,8 +49,8 @@ Chromium, etc.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -a1 -p1
|
%autosetup -a1 -p1
|
||||||
%define cargo_registry $(pwd)/vendor
|
mkdir -p .cargo
|
||||||
%{cargo_prep}
|
cp %{SOURCE2} .cargo/config
|
||||||
|
|
||||||
%build
|
%build
|
||||||
#https://github.com/denoland/rusty_v8/#build-v8-from-source
|
#https://github.com/denoland/rusty_v8/#build-v8-from-source
|
||||||
|
Loading…
Reference in New Issue
Block a user