!6 fix build error

From: @kylinsecos_admin 
Reviewed-by: @doudou19 
Signed-off-by: @doudou19
This commit is contained in:
openeuler-ci-bot 2022-02-15 05:37:18 +00:00 committed by Gitee
commit e75784c220
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,6 +1,6 @@
Name: kiran-log Name: kiran-log
Version: 2.1.1 Version: 2.1.1
Release: 5.kb1 Release: 6.kb1
Summary: kiran log out library Summary: kiran log out library
Summary(zh_CN): kiran桌面日志输出库 Summary(zh_CN): kiran桌面日志输出库
@ -8,12 +8,10 @@ License: Mulan PSL v2
#URL: #URL:
Source0: %{name}-%{version}.tar.gz Source0: %{name}-%{version}.tar.gz
%define ZLOG_AUTH true
BuildRequires: gcc-c++ BuildRequires: gcc-c++
BuildRequires: cmake BuildRequires: cmake
%if %{ZLOG_AUTH} == false %if 0%{?kylin}
BuildRequires: zlog-devel BuildRequires: zlog-devel
%else %else
BuildRequires: zlog BuildRequires: zlog
@ -61,7 +59,7 @@ Requires: %{name}-gtk3%{?_isa} = %{version}-%{release}
%build %build
%{__mkdir} -p %{buildroot} %{__mkdir} -p %{buildroot}
%if %{ZLOG_AUTH} == false %if 0%{?kylin}
%cmake %cmake
%else %else
%cmake -DENABLE_ZLOG_EX:BOOL=OFF %cmake -DENABLE_ZLOG_EX:BOOL=OFF
@ -91,6 +89,9 @@ make %{?_smp_mflags}
rm -rf %{buildroot} rm -rf %{buildroot}
%changelog %changelog
* Mon Feb 14 2022 longcheng <longcheng@kylinos.com.cn> - 2.1.1-6.kb1
- update to 2.1.1-6
* Wed Jan 19 2022 longcheng <longcheng@kylinos.com.cn> - 2.1.1-5.kb1 * Wed Jan 19 2022 longcheng <longcheng@kylinos.com.cn> - 2.1.1-5.kb1
- update to 2.1.1-5 - update to 2.1.1-5