commit aff64ecf90c6bc71b18a61784c5699d33336a999
Author: Vitaly Zaitsev <vitaly(a)easycoding.org>
Date: Sat May 18 23:17:25 2019 +0200
Use clang compiler only for Fedora 30+.
telegram-desktop.spec | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/telegram-desktop.spec b/telegram-desktop.spec
index 1038ffc..9038592 100644
--- a/telegram-desktop.spec
+++ b/telegram-desktop.spec
@@ -1,6 +1,12 @@
-# Build conditionals...
+# Enable or disable build with GTK support...
%bcond_without gtk3
+
+# Enable or disable build using clang instead of gcc...
+%if 0%{?fedora} && 0%{?fedora} >= 30
%bcond_without clang
+%else
+%bcond_with clang
+%endif
# Telegram Desktop's constants...
%global appname tdesktop
@@ -89,7 +95,7 @@ BuildRequires: clang
BuildRequires: llvm
%endif
-%if 0%{?fedora} >= 30
+%if 0%{?fedora} && 0%{?fedora} >= 30
BuildRequires: minizip-compat-devel
%else
BuildRequires: minizip-devel
Show replies by date