Set CFLAGS to build debug related rpm

(cherry picked from commit da61fd37ecfc198b40f452bac5d46e700c7af195)
This commit is contained in:
lingsheng 2021-09-09 20:38:59 +08:00 committed by openeuler-sync-bot
parent 18281b6cf8
commit 112ea3fc15

View File

@ -1,9 +1,7 @@
%global with_debug 0
%global debug_package %{nil}
Name: conmon
Epoch: 2
Version: 2.0.2
Release: 3
Release: 4
Summary: Monitoring program for OCI container
License: ASL 2.0
URL: https://github.com/containers/conmon
@ -18,6 +16,7 @@ and an OCI runtime (like runc or crun) for a single container.
%autosetup -n conmon-65fe0226d85b69fc9e527e376795c9791199153d -p1
%build
export CFLAGS="${RPM_OPT_FLAGS}"
%make_build all
%install
@ -30,6 +29,9 @@ make PREFIX=%{buildroot}%{_prefix} install install.crio
%{_libexecdir}/crio/conmon
%changelog
* Thu Sep 09 2021 lingsheng <lingsheng@huawei.com> - 2:2.0.2-4
- Set CFLAGS to build debug related rpm
* Mon May 31 2021 baizhonggui <baizhonggui@huawei.com> - 2:2.0.2-3
- Add gcc in BuildRequires