From b89d94d90f82fa13b360b6394beb337e102b075e Mon Sep 17 00:00:00 2001 From: zou_lin77 <422351577@qq.com> Date: Sat, 4 Sep 2021 16:23:53 +0800 Subject: [PATCH] Add "%{optflags}" for %build --- os-prober.spec | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/os-prober.spec b/os-prober.spec index 5a93d34..04a5134 100644 --- a/os-prober.spec +++ b/os-prober.spec @@ -1,6 +1,6 @@ Name: os-prober Version: 1.77 -Release: 2 +Release: 3 Summary: Probe disks on the system for other operating systems License: GPLv2+ and GPL+ URL: http://kitenet.net/~joey/code/os-prober/ @@ -31,7 +31,7 @@ sed -i -e 's|grub-mount|grub2-mount|g' os-probes/common/50mounted-tests \ linux-boot-probes/common/50mounted-tests common.sh %build -%make_build +%make_build CFLAGS="%{optflags}" %install install -m 0755 -d $RPM_BUILD_ROOT%{_bindir} @@ -84,6 +84,9 @@ fi %{_libexecdir}/* %changelog +* Sat Sep 4 2021 zoulin - 1.77-3 +- Add "%%{optflags}" for %build + * Wed May 26 2021 yangzhuangzhuang - 1.77-2 - Remove code using device mapper