Try to fix debuginfo package generation

OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/rav1e?expand=0&rev=3
This commit is contained in:
Andreas Schneider 2019-12-05 10:11:12 +00:00 committed by Git OBS Bridge
parent c91328de02
commit 7da6a7f7ca
2 changed files with 11 additions and 2 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Thu Dec 5 09:31:43 UTC 2019 - Andreas Schneider <asn@cryptomilk.org>
- Try to fix debuginfo package generation
-------------------------------------------------------------------
Wed Nov 20 08:11:45 UTC 2019 - Andreas Schneider <asn@cryptomilk.org>

View File

@ -83,22 +83,26 @@ registry = 'https://github.com/rust-lang/crates.io-index'
replace-with = 'vendored-sources'
[source.vendored-sources]
directory = './vendor'
[build]
rustc = "%{__rustc}"
rustdoc = "%{__rustdoc}"
rustflags = %{__global_rustflags_toml}
[install]
root = '%{buildroot}%{_prefix}'
[term]
verbose = true
EOF
%{__rm} -f Cargo.lock
%build
%cargo_build
%__cargo cbuild --release
CFLAGS="%{optflags}" %__cargo cbuild
%install
%cargo_install
rm -rf %{buildroot}%{_datadir}/cargo
%__cargo cinstall \
--release \
--destdir=%{buildroot} \
--prefix=%{_prefix} \
--libdir=%{_libdir} \