commit 81ff4de452118ff9e12497a2a13be1dbb21765b3
Author: Vitaly Zaitsev <vitaly(a)easycoding.org>
Date: Wed Dec 12 00:13:02 2018 +0100
Build for Rawhide without OpenAL effects.
telegram-desktop-build-fixes.patch | 13 +++++++------
telegram-desktop-system-fonts.patch | 2 +-
telegram-desktop-unbundle-minizip.patch | 6 +++---
telegram-desktop.spec | 2 --
4 files changed, 11 insertions(+), 12 deletions(-)
---
diff --git a/telegram-desktop-build-fixes.patch b/telegram-desktop-build-fixes.patch
index 9faf716..3e2ff94 100644
--- a/telegram-desktop-build-fixes.patch
+++ b/telegram-desktop-build-fixes.patch
@@ -1,4 +1,4 @@
-From 8f11130c80595b73069b534aebd64f6b32b7ed5d Mon Sep 17 00:00:00 2001
+From cbc71343964998db32b81502ce9675581c5e9719 Mon Sep 17 00:00:00 2001
From: Vitaly Zaitsev <vitaly(a)easycoding.org>
Date: Fri, 31 Mar 2017 14:29:58 +0200
Subject: [PATCH 1/3] Fixed build under Fedora using rpmbuild and mock.
@@ -23,7 +23,7 @@ Subject: [PATCH 1/3] Fixed build under Fedora using rpmbuild and mock.
Telegram/gyp/telegram_sources.txt | 2 +-
lib/xdg/telegramdesktop.appdata.xml | 2 +-
lib/xdg/telegramdesktop.desktop | 5 +-
- 19 files changed, 172 insertions(+), 199 deletions(-)
+ 19 files changed, 173 insertions(+), 198 deletions(-)
create mode 100644 Telegram/SourceFiles/qt_functions.cpp
create mode 100644 Telegram/gyp/CMakeLists.inj
@@ -187,7 +187,7 @@ index a0e1e0489..bd9bce0c1 100644
IMPLICIT_DEPENDS CXX "${_pch_header}"
COMMENT "Precompiling header ${_name} for ${_target} (C++)")
diff --git a/Telegram/gyp/Telegram.gyp b/Telegram/gyp/Telegram.gyp
-index ac7696e1d..783ad1da2 100644
+index ac7696e1d..f95d88a72 100644
--- a/Telegram/gyp/Telegram.gyp
+++ b/Telegram/gyp/Telegram.gyp
@@ -51,15 +51,13 @@
@@ -217,12 +217,13 @@ index ac7696e1d..783ad1da2 100644
'crl.gyp:crl',
'lib_base.gyp:lib_base',
'lib_export.gyp:lib_export',
-@@ -84,32 +79,18 @@
+@@ -84,32 +79,20 @@
],
'defines': [
- 'AL_LIBTYPE_STATIC',
-- 'AL_ALEXT_PROTOTYPES',
+ 'AL_ALEXT_PROTOTYPES',
++ 'ALC_EXT_EFX',
'TGVOIP_USE_CXX11_LIB',
- 'XXH_INLINE_ALL',
'TDESKTOP_API_ID=<(api_id)',
@@ -251,7 +252,7 @@ index ac7696e1d..783ad1da2 100644
],
'sources': [
'<@(qrc_files)',
-@@ -131,7 +112,6 @@
+@@ -131,7 +114,6 @@
'TDESKTOP_OFFICIAL_TARGET=<(official_build_target)',
],
'dependencies': [
diff --git a/telegram-desktop-system-fonts.patch b/telegram-desktop-system-fonts.patch
index 6b93d86..f667c3b 100644
--- a/telegram-desktop-system-fonts.patch
+++ b/telegram-desktop-system-fonts.patch
@@ -1,4 +1,4 @@
-From 3a7c0887f5d923dc25d852a859b775dd40382ae7 Mon Sep 17 00:00:00 2001
+From 28c14c88eeaca121af18926f35451ed4c77c4aa4 Mon Sep 17 00:00:00 2001
From: Vitaly Zaitsev <vitaly(a)easycoding.org>
Date: Sun, 24 Jun 2018 22:59:34 +0200
Subject: [PATCH 2/3] Backported and rebased patch from Debian maintainer
diff --git a/telegram-desktop-unbundle-minizip.patch
b/telegram-desktop-unbundle-minizip.patch
index cab20ec..ce8ea81 100644
--- a/telegram-desktop-unbundle-minizip.patch
+++ b/telegram-desktop-unbundle-minizip.patch
@@ -1,4 +1,4 @@
-From 2501c4ab40a418a24d0f462dc1044fb9618e5970 Mon Sep 17 00:00:00 2001
+From a7e04e9e8dc9435a26a14567b399536fd52542fe Mon Sep 17 00:00:00 2001
From: Vitaly Zaitsev <vitaly(a)easycoding.org>
Date: Wed, 17 Oct 2018 17:57:59 +0200
Subject: [PATCH 3/3] Use packaged version of minizip on Fedora <= 29.
@@ -10,7 +10,7 @@ Subject: [PATCH 3/3] Use packaged version of minizip on Fedora <=
29.
3 files changed, 2 insertions(+), 9 deletions(-)
diff --git a/Telegram/gyp/Telegram.gyp b/Telegram/gyp/Telegram.gyp
-index 783ad1da2..5a8a53557 100644
+index f95d88a72..8d8011b58 100644
--- a/Telegram/gyp/Telegram.gyp
+++ b/Telegram/gyp/Telegram.gyp
@@ -18,7 +18,6 @@
@@ -21,7 +21,7 @@ index 783ad1da2..5a8a53557 100644
'sp_media_key_tap_loc': '<(submodules_loc)/SPMediaKeyTap',
'emoji_suggestions_loc':
'<(submodules_loc)/emoji_suggestions',
'style_files': [
-@@ -88,7 +87,6 @@
+@@ -90,7 +89,6 @@
'include_dirs': [
'<(src_loc)',
'<(SHARED_INTERMEDIATE_DIR)',
diff --git a/telegram-desktop.spec b/telegram-desktop.spec
index 8d2b6dd..5e66196 100644
--- a/telegram-desktop.spec
+++ b/telegram-desktop.spec
@@ -98,9 +98,7 @@ popd
%build
# Setting build definitions...
-%if 0%{?fedora} < 30
TDESKTOP_BUILD_DEFINES+='TDESKTOP_DISABLE_OPENAL_EFFECTS,'
-%endif
TDESKTOP_BUILD_DEFINES+='TDESKTOP_DISABLE_AUTOUPDATE,'
TDESKTOP_BUILD_DEFINES+='TDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME,'
TDESKTOP_BUILD_DEFINES+='TDESKTOP_DISABLE_DESKTOP_FILE_GENERATION,'