!8 fix build error

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

View File

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