Resolves: #2167217 - enable debuginfo
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
This commit is contained in:
parent
8c81c496b9
commit
4f111212f3
@ -2,7 +2,14 @@
|
|||||||
# Latest upstream rtnetlink frequently required
|
# Latest upstream rtnetlink frequently required
|
||||||
# sha2, zbus, zvariant are currently out of date
|
# sha2, zbus, zvariant are currently out of date
|
||||||
|
|
||||||
|
%global with_debug 1
|
||||||
|
|
||||||
|
%if 0%{?with_debug}
|
||||||
|
%global _find_debuginfo_dwz_opts %{nil}
|
||||||
|
%global _dwz_low_mem_die_limit 0
|
||||||
|
%else
|
||||||
%global debug_package %{nil}
|
%global debug_package %{nil}
|
||||||
|
%endif
|
||||||
|
|
||||||
%global built_tag v1.5.0
|
%global built_tag v1.5.0
|
||||||
%global built_tag_strip %(b=%{built_tag}; echo ${b:1})
|
%global built_tag_strip %(b=%{built_tag}; echo ${b:1})
|
||||||
@ -27,6 +34,7 @@ Provides: container-network-stack = 2
|
|||||||
BuildRequires: make
|
BuildRequires: make
|
||||||
BuildRequires: protobuf-c
|
BuildRequires: protobuf-c
|
||||||
BuildRequires: protobuf-compiler
|
BuildRequires: protobuf-compiler
|
||||||
|
BuildRequires: rust-packaging
|
||||||
BuildRequires: rust-srpm-macros
|
BuildRequires: rust-srpm-macros
|
||||||
BuildRequires: git-core
|
BuildRequires: git-core
|
||||||
# Generated using:
|
# Generated using:
|
||||||
@ -279,20 +287,15 @@ directory = "vendor"
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{__make} build
|
%{__cargo} build --release
|
||||||
|
mkdir -p bin
|
||||||
|
cp target/release/%{name} bin/
|
||||||
|
|
||||||
%ifarch %{golang_arches}
|
|
||||||
cd docs
|
cd docs
|
||||||
go-md2man -in %{name}.1.md -out %{name}.1
|
go-md2man -in %{name}.1.md -out %{name}.1
|
||||||
%endif
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%ifarch %{golang_arches}
|
|
||||||
%{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} install
|
%{__make} DESTDIR=%{buildroot} PREFIX=%{_prefix} install
|
||||||
%else
|
|
||||||
# no manpage, install only the binary
|
|
||||||
install -D -m0755 bin/netavark %{buildroot}%{_libexecdir}/podman/%{name}
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%license LICENSE
|
%license LICENSE
|
||||||
|
Loading…
Reference in New Issue
Block a user