Remove the -g option and the debug package
This commit is contained in:
parent
f854a8b6c4
commit
275660140c
11
cmake.spec
11
cmake.spec
@ -1,3 +1,4 @@
|
|||||||
|
%define debug_package %{nil}
|
||||||
%bcond_with bootstrap
|
%bcond_with bootstrap
|
||||||
%bcond_without ncurses
|
%bcond_without ncurses
|
||||||
%bcond_without sphinx
|
%bcond_without sphinx
|
||||||
@ -10,7 +11,7 @@
|
|||||||
|
|
||||||
Name: cmake
|
Name: cmake
|
||||||
Version: 3.16.5
|
Version: 3.16.5
|
||||||
Release: 4
|
Release: 5
|
||||||
Summary: Cross-platform make system
|
Summary: Cross-platform make system
|
||||||
License: BSD and MIT and zlib
|
License: BSD and MIT and zlib
|
||||||
URL: http://www.cmake.org
|
URL: http://www.cmake.org
|
||||||
@ -104,8 +105,8 @@ sed '1c #!%{__python3}' %{SOURCE4} > cmake.prov
|
|||||||
sed '1c #!%{__python3}' %{SOURCE5} > cmake.req
|
sed '1c #!%{__python3}' %{SOURCE5} > cmake.req
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags}"
|
export CFLAGS=`echo %{optflags} | sed 's/-g\b/-s/g'`
|
||||||
export CXXFLAGS="%{optflags}"
|
export CXXFLAGS=`echo %{optflags} | sed 's/-g\b/-s/g'`
|
||||||
export LDFLAGS="%{?__global_ldflags}"
|
export LDFLAGS="%{?__global_ldflags}"
|
||||||
mkdir build
|
mkdir build
|
||||||
pushd build
|
pushd build
|
||||||
@ -232,6 +233,10 @@ gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|||||||
%exclude %{_pkgdocdir}/Copyright.txt
|
%exclude %{_pkgdocdir}/Copyright.txt
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Mar 22 2021 lirui <lirui130@huawei.com> - 3.16.5-5
|
||||||
|
- Remove the -g option and the debug package
|
||||||
|
- add the -s option
|
||||||
|
|
||||||
* Thu Dec 10 2020 wangchen <wangchen137@huawei.com> - 3.16.5-4
|
* Thu Dec 10 2020 wangchen <wangchen137@huawei.com> - 3.16.5-4
|
||||||
- Correct invalid Source0
|
- Correct invalid Source0
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user