From 817245ed5629df59c1207b6febcd6680d9a79184 Mon Sep 17 00:00:00 2001 From: peijiankang Date: Thu, 26 May 2022 10:45:27 +0800 Subject: [PATCH] remove {%if 0 and %endif} --- youker-assistant.spec | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/youker-assistant.spec b/youker-assistant.spec index eb0387c..dac9d9d 100644 --- a/youker-assistant.spec +++ b/youker-assistant.spec @@ -1,15 +1,14 @@ %define debug_package %{nil} -Name: youker-assistant -Version: 3.0.3 -Release: 1 -Summary: youker-assistant -License: GPL-2+ and GPL-3 -URL: https://github.com/UbuntuKylin/youker-assistant -Source0: %{name}-%{version}.tar.gz +Name: youker-assistant +Version: 3.0.3 +Release: 2 +Summary: youker-assistant +License: GPL-2+ and GPL-3 +URL: https://github.com/UbuntuKylin/youker-assistant +Source0: %{name}-%{version}.tar.gz -%if 0 BuildRequires: python3-devel python3-lxml python3-dbus python3-pyxdg -BuildRequires: qt5-qtcharts-devel +BuildRequires: qt5-qtcharts qt5-qtcharts-devel BuildRequires: qt5-qtbase-devel BuildRequires: qt5-qtsvg-devel BuildRequires: qt5-qtscript-devel @@ -27,7 +26,6 @@ BuildRequires: ukui-interface Requires: python3-dbus python3-psutil python3-lxml python-psutil python3-pillow python3-i2c-tools python3-pyxdg Requires: util-linux hdparm lm_sensors lshw xorg-x11-utils dmidecode pciutils ukui-interface hwinfo smartmontools net-tools -%endif %description Integrated tool to aid in routine system maintenance tasks @@ -41,7 +39,6 @@ user experience. %setup -q %build -%if 0 export PATH=%{_qt5_bindir}:$PATH mkdir qmake-build pushd qmake-build @@ -53,9 +50,8 @@ popd pushd qmake-build %{make_install} INSTALL_ROOT=%{buildroot} popd -%endif + %files -%if 0 %{_sysconfdir}/dbus-1/system.d/com.kylin.assistant.systemdaemon.conf %{_bindir}/kylin-assistant %{_prefix}/lib/python3/dist-packages/kylin-assistant-daemon/systemdaemon/* @@ -67,8 +63,10 @@ popd %{_datadir}/applications/kylin-assistant.desktop %{_datadir}/dbus-1/system-services/com.kylin.assistant.systemdaemon.service %{_datadir}/polkit-1/actions/com.kylin.assistant.systemdaemon.policy -%endif %changelog +* Thu May 26 2022 peijiankang - 3.0.3-2 +- remove {%if 0 and %endif} + * Mon May 23 2022 peijiankang - 3.0.3-1 - Init youker-assistant package for openEuler