From c68b33fdb30fa5e795b84fd53a81edca1726f48b Mon Sep 17 00:00:00 2001 From: maminjie Date: Thu, 18 Mar 2021 09:53:15 +0800 Subject: [PATCH] Fix syntax error when macro is not defined (cherry picked from commit 204a7a0016753751807a00b9eed52ce5805b03d1) --- qt5-qtserialport.spec | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/qt5-qtserialport.spec b/qt5-qtserialport.spec index 8523481..b29795e 100644 --- a/qt5-qtserialport.spec +++ b/qt5-qtserialport.spec @@ -1,13 +1,13 @@ Name: qt5-qtserialport Version: 5.11.1 -Release: 5 +Release: 6 Summary: Serialport component of qt5 License: LGPLv2 with exceptions or LGPLv3 with exceptions URL: http://www.qt.io Source0: https://download.qt.io/new_archive/qt/5.11/5.11.1/submodules/qtserialport-everywhere-src-5.11.1.tar.xz BuildRequires: qt5-qtbase-devel >= %{version} pkgconfig(libudev) -Requires: %{_qt5} = %{_qt5_version} +%{?_qt5:Requires: %{_qt5} = %{_qt5_version}} %description Qt Serial Port provides the basic functionality, which includes configuring, I/O operations, @@ -59,8 +59,11 @@ popd %{_qt5_examplesdir}/ %changelog -* Fri Sep 18 2020 liuweibo - 5.11.1-5 -- Fix Source0 +* Thu Mar 18 2021 maminjie - 5.11.1-6 +- Fix syntax error when macro is not defined + +* Mon Sep 14 2020 liuweibo - 5.11.1-5 +- Fix Source0 * Fri Feb 14 2020 lingsheng - 5.11.1-4 - Package init