Accepting request 734414 from home:luke_nukem:branches:utilities
- Use `pwd`/.cargo for vendor config so that CARGO_HOME export is not required. OBS-URL: https://build.opensuse.org/request/show/734414 OBS-URL: https://build.opensuse.org/package/show/utilities/bat?expand=0&rev=13
This commit is contained in:
parent
8112623fe7
commit
3bc7556b55
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 1 19:06:41 UTC 2019 - Luke Jones <luke@ljones.dev>
|
||||
|
||||
- Use `pwd`/.cargo for vendor config so that CARGO_HOME export is
|
||||
not required.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 24 14:49:11 UTC 2019 - Dany Marcoux <dmarcoux@suse.com>
|
||||
|
||||
|
6
bat.spec
6
bat.spec
@ -40,8 +40,8 @@ programming and markup languages. It has git integration and automatic paging.
|
||||
|
||||
%prep
|
||||
%setup -qa1
|
||||
mkdir cargo-home
|
||||
cat >cargo-home/config <<EOF
|
||||
mkdir .cargo
|
||||
cat >.cargo/config <<EOF
|
||||
[source.crates-io]
|
||||
registry = 'https://github.com/rust-lang/crates.io-index'
|
||||
replace-with = 'vendored-sources'
|
||||
@ -50,11 +50,9 @@ directory = './vendor'
|
||||
EOF
|
||||
|
||||
%build
|
||||
export CARGO_HOME=$PWD/cargo-home
|
||||
cargo build --release --locked %{?_smp_mflags}
|
||||
|
||||
%install
|
||||
export CARGO_HOME=$PWD/cargo-home
|
||||
cargo install --root=%{buildroot}%{_prefix} --path .
|
||||
|
||||
# remove residue crate file
|
||||
|
Loading…
Reference in New Issue
Block a user