!2 remove {%if 0 and %endif}

From: @peijiankang 
Reviewed-by: @dou33 
Signed-off-by: @dou33
This commit is contained in:
openeuler-ci-bot 2022-05-27 09:18:45 +00:00 committed by Gitee
commit 409f7b17ea
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,13 +1,12 @@
%define debug_package %{nil}
Name: kylin-photo-viewer
Version: 1.0.2
Release: 1
Summary: kylin-photo-viewer
License: GPL-3.0-or-later
URL: https://github.com/UbuntuKylin/kylin-photo-viewer
Source0: %{name}-%{version}.tar.gz
Name: kylin-photo-viewer
Version: 1.0.2
Release: 2
Summary: kylin-photo-viewer
License: BSL-1.0 and Libpng and zlib and GPL-2.0-or-later
URL: https://github.com/UbuntuKylin/kylin-photo-viewer
Source0: %{name}-%{version}.tar.gz
%if 0
BuildRequires: qt5-qtbase-devel
BuildRequires: qtchooser
BuildRequires: qt5-qtscript-devel
@ -23,8 +22,7 @@ BuildRequires: kf5-kwindowsystem-devel
BuildRequires: gsettings-qt-devel
BuildRequires: ukui-interface
BuildRequires: glib2-devel
BuildRequires: libpeony-dev
%endif
BuildRequires: peony libpeony-dev
%description
Photo viewer, support to view, zoom and rotate images of various formats
@ -33,7 +31,6 @@ Photo viewer, support to view, zoom and rotate images of various formats
%setup -q
%build
%if 0
export PATH=%{_qt5_bindir}:$PATH
mkdir qmake-build
pushd qmake-build
@ -45,9 +42,8 @@ popd
pushd qmake-build
%{make_install} INSTALL_ROOT=%{buildroot}
popd
%endif
%files
%if 0
%{_bindir}/kylin-photo-viewer
%{_includedir}/kylin_image_codec/kylinimagecodec.h
%{_includedir}/kylin_image_codec/kylinimagecodec_global.h
@ -66,8 +62,10 @@ popd
%{_datadir}/glib-2.0/schemas/org.ukui.log4qt.kylin-photo-viewer.gschema.xml
%{_datadir}/kylin-photo-viewer/translations/kylin-photo-viewer_zh_CN.qm
%{_datadir}/pixmaps/kyview_logo.png
%endif
%changelog
* Thu May 26 2022 peijiankang <peijiankang@kylinos.cn> - 1.0.2-2
- remove {%if 0 and %endif}
* Fri May 20 2022 peijiankang <peijiankang@kylinos.cn> - 1.0.2-1
- Init kylin-photo-viewer package for openEuler