!6 [sync] PR-5: Set CFLAGS to build debug related rpm

From: @openeuler-sync-bot
Reviewed-by: @small_leek
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2021-09-10 07:25:55 +00:00 committed by Gitee
commit 6f85f0f4e8

View File

@ -1,9 +1,7 @@
%global with_debug 0
%global debug_package %{nil}
Name: conmon Name: conmon
Epoch: 2 Epoch: 2
Version: 2.0.2 Version: 2.0.2
Release: 3 Release: 4
Summary: Monitoring program for OCI container Summary: Monitoring program for OCI container
License: ASL 2.0 License: ASL 2.0
URL: https://github.com/containers/conmon 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 %autosetup -n conmon-65fe0226d85b69fc9e527e376795c9791199153d -p1
%build %build
export CFLAGS="${RPM_OPT_FLAGS}"
%make_build all %make_build all
%install %install
@ -30,6 +29,9 @@ make PREFIX=%{buildroot}%{_prefix} install install.crio
%{_libexecdir}/crio/conmon %{_libexecdir}/crio/conmon
%changelog %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 * Mon May 31 2021 baizhonggui <baizhonggui@huawei.com> - 2:2.0.2-3
- Add gcc in BuildRequires - Add gcc in BuildRequires