From b848e58f8a48d3eb1597feaa33793a3c571a49e9 Mon Sep 17 00:00:00 2001 From: peijiankang Date: Thu, 26 May 2022 10:33:18 +0800 Subject: [PATCH] remove {%if 0 and %endif} --- kylin-photo-viewer.spec | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/kylin-photo-viewer.spec b/kylin-photo-viewer.spec index 6bfe6ed..3581ea8 100644 --- a/kylin-photo-viewer.spec +++ b/kylin-photo-viewer.spec @@ -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 - 1.0.2-2 +- remove {%if 0 and %endif} + * Fri May 20 2022 peijiankang - 1.0.2-1 - Init kylin-photo-viewer package for openEuler