BR: rust-packaging

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
Lokesh Mandvekar 2023-02-07 17:26:00 +05:30
parent 2dce5e11e8
commit 6409db6f64

View File

@ -1,11 +1,8 @@
# trust-dns-{client,server} not available # trust-dns-{client,server} not available
# using vendored deps # using vendored deps
# debuginfo doesn't work yet
%global with_debug 1 %global with_debug 1
%define rust_buildflags -Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Clink-arg=-Wl,-z,relro -Clink-arg=-Wl,-z,now --cap-lints=warn
%if 0%{?with_debug} %if 0%{?with_debug}
%global _find_debuginfo_dwz_opts %{nil} %global _find_debuginfo_dwz_opts %{nil}
%global _dwz_low_mem_die_limit 0 %global _dwz_low_mem_die_limit 0
@ -30,6 +27,7 @@ Source1: %{url}/releases/download/%{built_tag}/%{name}-%{built_tag}-vendor.tar.g
BuildRequires: cargo BuildRequires: cargo
BuildRequires: git-core BuildRequires: git-core
BuildRequires: make BuildRequires: make
BuildRequires: rust-packaging
BuildRequires: rust-srpm-macros BuildRequires: rust-srpm-macros
# cargo tree --prefix none | awk '{print "Provides: bundled(crate("$1")) = "$2}' | sort | uniq # cargo tree --prefix none | awk '{print "Provides: bundled(crate("$1")) = "$2}' | sort | uniq
Provides: bundled(crate(aardvark-dns)) = v1.5.0 Provides: bundled(crate(aardvark-dns)) = v1.5.0