From 907860f8480b87d6eb25e699fbb565157b37348c Mon Sep 17 00:00:00 2001 From: Liquor <1692257904@qq.com> Date: Mon, 22 Mar 2021 16:10:59 +0800 Subject: [PATCH] Remove the -g option and the debug package --- cmake.spec | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/cmake.spec b/cmake.spec index a7adf56..e6f5461 100644 --- a/cmake.spec +++ b/cmake.spec @@ -1,3 +1,4 @@ +%define debug_package %{nil} %bcond_with bootstrap %bcond_without ncurses %bcond_without sphinx @@ -10,7 +11,7 @@ Name: cmake Version: 3.18.0 -Release: 1 +Release: 2 Summary: Cross-platform make system License: BSD and MIT and zlib URL: http://www.cmake.org @@ -103,8 +104,8 @@ sed '1c #!%{__python3}' %{SOURCE4} > cmake.prov sed '1c #!%{__python3}' %{SOURCE5} > cmake.req %build -export CFLAGS="%{optflags}" -export CXXFLAGS="%{optflags}" +export CFLAGS=`echo %{optflags} | sed 's/-g\b/-s/g'` +export CXXFLAGS=`echo %{optflags}| sed 's/-g\b/-s/g'` export LDFLAGS="%{?__global_ldflags}" mkdir build pushd build @@ -233,6 +234,10 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %exclude %{_pkgdocdir}/Copyright.txt %changelog +* Mon Mar 22 2021 lirui - 3.18.0-2 +- Remove the -g option and the debug package +- add the -s option + * Thu Jul 30 2020 wangchen - 3.18.0-1 - Update to cmake-3.18.0 -- Gitee