remove {%if 0 and %endif}

This commit is contained in:
peijiankang 2022-05-26 10:45:27 +08:00
parent 4895a7bd96
commit 817245ed56

View File

@ -1,15 +1,14 @@
%define debug_package %{nil} %define debug_package %{nil}
Name: youker-assistant Name: youker-assistant
Version: 3.0.3 Version: 3.0.3
Release: 1 Release: 2
Summary: youker-assistant Summary: youker-assistant
License: GPL-2+ and GPL-3 License: GPL-2+ and GPL-3
URL: https://github.com/UbuntuKylin/youker-assistant URL: https://github.com/UbuntuKylin/youker-assistant
Source0: %{name}-%{version}.tar.gz Source0: %{name}-%{version}.tar.gz
%if 0
BuildRequires: python3-devel python3-lxml python3-dbus python3-pyxdg 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-qtbase-devel
BuildRequires: qt5-qtsvg-devel BuildRequires: qt5-qtsvg-devel
BuildRequires: qt5-qtscript-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: 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 Requires: util-linux hdparm lm_sensors lshw xorg-x11-utils dmidecode pciutils ukui-interface hwinfo smartmontools net-tools
%endif
%description %description
Integrated tool to aid in routine system maintenance tasks Integrated tool to aid in routine system maintenance tasks
@ -41,7 +39,6 @@ user experience.
%setup -q %setup -q
%build %build
%if 0
export PATH=%{_qt5_bindir}:$PATH export PATH=%{_qt5_bindir}:$PATH
mkdir qmake-build mkdir qmake-build
pushd qmake-build pushd qmake-build
@ -53,9 +50,8 @@ popd
pushd qmake-build pushd qmake-build
%{make_install} INSTALL_ROOT=%{buildroot} %{make_install} INSTALL_ROOT=%{buildroot}
popd popd
%endif
%files %files
%if 0
%{_sysconfdir}/dbus-1/system.d/com.kylin.assistant.systemdaemon.conf %{_sysconfdir}/dbus-1/system.d/com.kylin.assistant.systemdaemon.conf
%{_bindir}/kylin-assistant %{_bindir}/kylin-assistant
%{_prefix}/lib/python3/dist-packages/kylin-assistant-daemon/systemdaemon/* %{_prefix}/lib/python3/dist-packages/kylin-assistant-daemon/systemdaemon/*
@ -67,8 +63,10 @@ popd
%{_datadir}/applications/kylin-assistant.desktop %{_datadir}/applications/kylin-assistant.desktop
%{_datadir}/dbus-1/system-services/com.kylin.assistant.systemdaemon.service %{_datadir}/dbus-1/system-services/com.kylin.assistant.systemdaemon.service
%{_datadir}/polkit-1/actions/com.kylin.assistant.systemdaemon.policy %{_datadir}/polkit-1/actions/com.kylin.assistant.systemdaemon.policy
%endif
%changelog %changelog
* Thu May 26 2022 peijiankang <peijiankang@kylinos.cn> - 3.0.3-2
- remove {%if 0 and %endif}
* Mon May 23 2022 peijiankang <peijiankang@kylinos.cn> - 3.0.3-1 * Mon May 23 2022 peijiankang <peijiankang@kylinos.cn> - 3.0.3-1
- Init youker-assistant package for openEuler - Init youker-assistant package for openEuler