$ git diff --patch-with-stat --summary 4098754e17175c48de9ef8534c4a3876ccdee025..9bfcffc99cd4017546afdaa57389de9d1d5df9fd
.abf.yml | 2 +-
tdesktop-2.3.2-no-underlinking.patch | 12 ------
tdesktop-2.8.5-compile.patch | 48 ----------------------
tdesktop-4.0.4-compile.patch | 11 -----
tdesktop-4.11.1-workaround-build-failure.patch | 20 +++++++++
tdesktop-4.11.3-system-libyuv.patch | 24 +++++++++++
...-compile.patch => tdesktop-4.11.3-zlib-ng.patch | 24 -----------
tdesktop-4.12.2-clang17.patch | 12 ++++++
tdesktop-4.6.5-workaround-assert-on-startup.patch | 23 +++++++++++
tdesktop-4.9.3-compile.patch | 12 ++++++
tdesktop-allow-system-gsl.patch | 19 +++++++++
telegram-2.8.6-compile.patch | 21 ----------
telegram-desktop.spec | 27 ++++++++----
13 files changed, 131 insertions(+), 124 deletions(-)
delete mode 100644 tdesktop-2.8.5-compile.patch
delete mode 100644 tdesktop-4.0.4-compile.patch
create mode 100644 tdesktop-4.11.1-workaround-build-failure.patch
create mode 100644 tdesktop-4.11.3-system-libyuv.patch
rename tdesktop-2.7.9-compile.patch => tdesktop-4.11.3-zlib-ng.patch (70%)
create mode 100644 tdesktop-4.12.2-clang17.patch
create mode 100644 tdesktop-4.6.5-workaround-assert-on-startup.patch
create mode 100644 tdesktop-4.9.3-compile.patch
create mode 100644 tdesktop-allow-system-gsl.patch
delete mode 100644 telegram-2.8.6-compile.patch
diff --git a/.abf.yml b/.abf.yml
index 4939605..cb866a0 100644
--- a/.abf.yml
+++ b/.abf.yml
@@ -1,2 +1,2 @@
sources:
- tdesktop-4.6.3-full.tar.gz: 45236ad27cc6e21c9af47e7527cebe896dea480f
+ tdesktop-4.12.2-full.tar.gz: fe90a44b336160d966492796582d4a5550103852
diff --git a/tdesktop-2.3.2-no-underlinking.patch b/tdesktop-2.3.2-no-underlinking.patch
index ebf7df6..6e54b37 100644
--- a/tdesktop-2.3.2-no-underlinking.patch
+++ b/tdesktop-2.3.2-no-underlinking.patch
@@ -9,15 +9,3 @@ diff -up tdesktop-4.0.2-full/Telegram/CMakeLists.txt.3~ tdesktop-4.0.2-full/Tele
)
target_precompile_headers(Telegram PRIVATE $<$<COMPILE_LANGUAGE:CXX,OBJCXX>:${src_loc}/stdafx.h>)
-diff -up tdesktop-4.0.2-full/Telegram/lib_lottie/lottie/lottie_icon.cpp.3~ tdesktop-4.0.2-full/Telegram/lib_lottie/lottie/lottie_icon.cpp
---- tdesktop-4.0.2-full/Telegram/lib_lottie/lottie/lottie_icon.cpp.3~ 2022-06-20 19:27:52.000000000 +0200
-+++ tdesktop-4.0.2-full/Telegram/lib_lottie/lottie/lottie_icon.cpp 2022-07-06 00:29:57.555093855 +0200
-@@ -23,7 +23,7 @@ namespace {
- const QByteArray &content,
- QColor replacement) {
- auto string = ReadUtf8(Images::UnpackGzip(content));
--#ifndef DESKTOP_APP_USE_PACKAGED_RLOTTIE
-+#if 0 // ndef DESKTOP_APP_USE_PACKAGED_RLOTTIE
- auto list = std::vector<std::pair<std::uint32_t, std::uint32_t>>();
- if (replacement != Qt::white) {
- const auto value = (uint32_t(replacement.red()) << 16)
diff --git a/tdesktop-2.8.5-compile.patch b/tdesktop-2.8.5-compile.patch
deleted file mode 100644
index f736b9b..0000000
--- a/tdesktop-2.8.5-compile.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-diff -up tdesktop-3.3.0-full/Telegram/lib_spellcheck/spellcheck/third_party/hunspell_controller.cpp.3~ tdesktop-3.3.0-full/Telegram/lib_spellcheck/spellcheck/third_party/hunspell_controller.cpp
---- tdesktop-3.3.0-full/Telegram/lib_spellcheck/spellcheck/third_party/hunspell_controller.cpp.3~ 2021-10-31 09:27:25.000000000 +0100
-+++ tdesktop-3.3.0-full/Telegram/lib_spellcheck/spellcheck/third_party/hunspell_controller.cpp 2021-12-12 04:00:51.158515762 +0100
-@@ -502,7 +502,7 @@ void HunspellService::readFile() {
- auto &&zip = ranges::views::zip(
- scripts, groupedWords
- );
-- _addedWords = zip | ranges::to<WordsMap>();
-+ _addedWords = zip | ranges::_to_::to<WordsMap>();
-
- }
-
-diff -up tdesktop-3.3.0-full/Telegram/SourceFiles/api/api_authorizations.cpp.3~ tdesktop-3.3.0-full/Telegram/SourceFiles/api/api_authorizations.cpp
---- tdesktop-3.3.0-full/Telegram/SourceFiles/api/api_authorizations.cpp.3~ 2021-12-12 04:00:51.158515762 +0100
-+++ tdesktop-3.3.0-full/Telegram/SourceFiles/api/api_authorizations.cpp 2021-12-12 04:02:02.019851055 +0100
-@@ -129,7 +129,7 @@ void Authorizations::reload() {
- auths.vauthorizations().v
- ) | ranges::views::transform([](const MTPAuthorization &d) {
- return ParseEntry(d.c_authorization());
-- }) | ranges::to<List>;
-+ }) | ranges::_to_::to<List>;
- _listChanges.fire({});
- });
- }).fail([=] {
-diff -up tdesktop-3.3.0-full/Telegram/SourceFiles/history/view/media/history_view_poll.cpp.3~ tdesktop-3.3.0-full/Telegram/SourceFiles/history/view/media/history_view_poll.cpp
---- tdesktop-3.3.0-full/Telegram/SourceFiles/history/view/media/history_view_poll.cpp.3~ 2021-12-08 05:35:03.000000000 +0100
-+++ tdesktop-3.3.0-full/Telegram/SourceFiles/history/view/media/history_view_poll.cpp 2021-12-12 04:00:51.158515762 +0100
-@@ -697,7 +697,7 @@ void Poll::updateAnswerVotes() {
- ranges::views::all(
- _poll->answers
- ) | ranges::views::transform(&PollAnswer::votes),
-- ranges::begin(VotesStorage));
-+ ranges::_::begin(VotesStorage));
-
- CountNicePercent(
- gsl::make_span(VotesStorage).subspan(0, count),
-diff -up tdesktop-3.3.0-full/Telegram/SourceFiles/ui/grouped_layout.cpp.3~ tdesktop-3.3.0-full/Telegram/SourceFiles/ui/grouped_layout.cpp
---- tdesktop-3.3.0-full/Telegram/SourceFiles/ui/grouped_layout.cpp.3~ 2021-12-08 05:35:03.000000000 +0100
-+++ tdesktop-3.3.0-full/Telegram/SourceFiles/ui/grouped_layout.cpp 2021-12-12 04:00:51.158515762 +0100
-@@ -117,7 +117,7 @@ std::string Layouter::CountProportions(c
- ratios
- ) | ranges::views::transform([](float64 ratio) {
- return (ratio > 1.2) ? 'w' : (ratio < 0.8) ? 'n' : 'q';
-- }) | ranges::to<std::string>();
-+ }) | ranges::_to_::to<std::string>();
- }
-
- std::vector<GroupMediaLayout> Layouter::layout() const {
diff --git a/tdesktop-4.0.4-compile.patch b/tdesktop-4.0.4-compile.patch
deleted file mode 100644
index 27f38c8..0000000
--- a/tdesktop-4.0.4-compile.patch
+++ /dev/null
@@ -1,11 +0,0 @@
-diff -up tdesktop-4.0.4-full/Telegram/SourceFiles/ffmpeg/ffmpeg_emoji.h.omv~ tdesktop-4.0.4-full/Telegram/SourceFiles/ffmpeg/ffmpeg_emoji.h
---- tdesktop-4.0.4-full/Telegram/SourceFiles/ffmpeg/ffmpeg_emoji.h.omv~ 2022-08-06 13:25:08.127464700 +0200
-+++ tdesktop-4.0.4-full/Telegram/SourceFiles/ffmpeg/ffmpeg_emoji.h 2022-08-06 13:25:13.852350919 +0200
-@@ -7,6 +7,7 @@ https://github.com/telegramdesktop/tdesk
- */
- #pragma once
-
-+#include <memory>
- #include "ui/effects/frame_generator.h"
-
- #include <QtGui/QImage>
diff --git a/tdesktop-4.11.1-workaround-build-failure.patch b/tdesktop-4.11.1-workaround-build-failure.patch
new file mode 100644
index 0000000..d7ab0af
--- /dev/null
+++ b/tdesktop-4.11.1-workaround-build-failure.patch
@@ -0,0 +1,20 @@
+diff -up tdesktop-4.11.1-full/Telegram/SourceFiles/payments/payments_form.cpp.omv~ tdesktop-4.11.1-full/Telegram/SourceFiles/payments/payments_form.cpp
+--- tdesktop-4.11.1-full/Telegram/SourceFiles/payments/payments_form.cpp.omv~ 2023-10-30 16:02:14.308453860 +0100
++++ tdesktop-4.11.1-full/Telegram/SourceFiles/payments/payments_form.cpp 2023-10-30 16:08:41.377917971 +0100
+@@ -290,6 +290,7 @@ MTPInputInvoice Form::inputInvoice() con
+ MTP_long(giftCode.amount));
+ const auto users = std::get_if<InvoicePremiumGiftCodeUsers>(
+ &giftCode.purpose);
++#if 0
+ if (users) {
+ using Flag = MTPDinputStorePaymentPremiumGiftCode::Flag;
+ return MTP_inputInvoicePremiumGiftCode(
+@@ -337,6 +338,8 @@ MTPInputInvoice Form::inputInvoice() con
+ MTP_long(giftCode.amount)),
+ option);
+ }
++#endif
++ return MTPInputInvoice();
+ }
+
+ void Form::requestForm() {
diff --git a/tdesktop-4.11.3-system-libyuv.patch b/tdesktop-4.11.3-system-libyuv.patch
new file mode 100644
index 0000000..7785d31
--- /dev/null
+++ b/tdesktop-4.11.3-system-libyuv.patch
@@ -0,0 +1,24 @@
+diff -up tdesktop-4.11.3-full/Telegram/ThirdParty/tgcalls/tgcalls/desktop_capturer/DesktopCaptureSourceHelper.cpp.omv~ tdesktop-4.11.3-full/Telegram/ThirdParty/tgcalls/tgcalls/desktop_capturer/DesktopCaptureSourceHelper.cpp
+--- tdesktop-4.11.3-full/Telegram/ThirdParty/tgcalls/tgcalls/desktop_capturer/DesktopCaptureSourceHelper.cpp.omv~ 2023-11-03 00:20:24.015400091 +0100
++++ tdesktop-4.11.3-full/Telegram/ThirdParty/tgcalls/tgcalls/desktop_capturer/DesktopCaptureSourceHelper.cpp 2023-11-03 00:20:31.887272290 +0100
+@@ -24,7 +24,7 @@
+ #include "modules/desktop_capture/desktop_capturer.h"
+ #include "system_wrappers/include/clock.h"
+ #include "api/video/i420_buffer.h"
+-#include "third_party/libyuv/include/libyuv.h"
++#include <libyuv.h>
+
+ #ifdef WEBRTC_MAC
+ #import <QuartzCore/QuartzCore.h>
+diff -up tdesktop-4.11.3-full/Telegram/ThirdParty/tgcalls/tgcalls/desktop_capturer/DesktopCaptureSourceManager.cpp.omv~ tdesktop-4.11.3-full/Telegram/ThirdParty/tgcalls/tgcalls/desktop_capturer/DesktopCaptureSourceManager.cpp
+--- tdesktop-4.11.3-full/Telegram/ThirdParty/tgcalls/tgcalls/desktop_capturer/DesktopCaptureSourceManager.cpp.omv~ 2023-11-03 00:21:18.732578616 +0100
++++ tdesktop-4.11.3-full/Telegram/ThirdParty/tgcalls/tgcalls/desktop_capturer/DesktopCaptureSourceManager.cpp 2023-11-03 00:21:26.263477359 +0100
+@@ -10,7 +10,7 @@
+
+ #include "modules/desktop_capture/desktop_and_cursor_composer.h"
+ #include "modules/desktop_capture/desktop_capturer_differ_wrapper.h"
+-#include "third_party/libyuv/include/libyuv.h"
++#include <libyuv.h>
+ #include "api/video/i420_buffer.h"
+ #include "tgcalls/desktop_capturer/DesktopCaptureSourceHelper.h"
+
diff --git a/tdesktop-2.7.9-compile.patch b/tdesktop-4.11.3-zlib-ng.patch
similarity index 70%
rename from tdesktop-2.7.9-compile.patch
rename to tdesktop-4.11.3-zlib-ng.patch
index 272adbc..cc75d20 100644
--- a/tdesktop-2.7.9-compile.patch
+++ b/tdesktop-4.11.3-zlib-ng.patch
@@ -86,27 +86,3 @@ diff -up tdesktop-2.7.9-full/Telegram/SourceFiles/window/themes/window_theme_edi
const auto back = std::string(parsed.tiled ? "tiled" : "background")
+ (parsed.isPng ? ".png" : ".jpg");
zip.openNewFile(
-diff -up tdesktop-2.7.9-full/Telegram/ThirdParty/tgcalls/tgcalls/desktop_capturer/DesktopCaptureSourceHelper.cpp.omv~ tdesktop-2.7.9-full/Telegram/ThirdParty/tgcalls/tgcalls/desktop_capturer/DesktopCaptureSourceHelper.cpp
---- tdesktop-2.7.9-full/Telegram/ThirdParty/tgcalls/tgcalls/desktop_capturer/DesktopCaptureSourceHelper.cpp.omv~ 2021-06-21 18:12:59.693502534 +0200
-+++ tdesktop-2.7.9-full/Telegram/ThirdParty/tgcalls/tgcalls/desktop_capturer/DesktopCaptureSourceHelper.cpp 2021-06-21 18:13:08.363564513 +0200
-@@ -24,7 +24,7 @@
- #include "modules/desktop_capture/desktop_capturer.h"
- #include "system_wrappers/include/clock.h"
- #include "api/video/i420_buffer.h"
--#include "third_party/libyuv/include/libyuv.h"
-+#include <libyuv.h>
-
- #ifdef WEBRTC_MAC
- #import <QuartzCore/QuartzCore.h>
-diff -up tdesktop-2.7.9-full/Telegram/ThirdParty/tgcalls/tgcalls/desktop_capturer/DesktopCaptureSourceManager.cpp.omv~ tdesktop-2.7.9-full/Telegram/ThirdParty/tgcalls/tgcalls/desktop_capturer/DesktopCaptureSourceManager.cpp
---- tdesktop-2.7.9-full/Telegram/ThirdParty/tgcalls/tgcalls/desktop_capturer/DesktopCaptureSourceManager.cpp.omv~ 2021-06-21 18:12:44.796396152 +0200
-+++ tdesktop-2.7.9-full/Telegram/ThirdParty/tgcalls/tgcalls/desktop_capturer/DesktopCaptureSourceManager.cpp 2021-06-21 18:12:53.876460977 +0200
-@@ -10,7 +10,7 @@
-
- #include "modules/desktop_capture/desktop_and_cursor_composer.h"
- #include "modules/desktop_capture/desktop_capturer_differ_wrapper.h"
--#include "third_party/libyuv/include/libyuv.h"
-+#include <libyuv.h>
- #include "api/video/i420_buffer.h"
- #include "tgcalls/desktop_capturer/DesktopCaptureSourceHelper.h"
-
diff --git a/tdesktop-4.12.2-clang17.patch b/tdesktop-4.12.2-clang17.patch
new file mode 100644
index 0000000..89db0dc
--- /dev/null
+++ b/tdesktop-4.12.2-clang17.patch
@@ -0,0 +1,12 @@
+diff -up tdesktop-4.12.2-full/Telegram/SourceFiles/history/view/media/history_view_web_page.cpp.omv~ tdesktop-4.12.2-full/Telegram/SourceFiles/history/view/media/history_view_web_page.cpp
+diff -up tdesktop-4.12.2-full/Telegram/SourceFiles/history/view/media/history_view_web_page.h.omv~ tdesktop-4.12.2-full/Telegram/SourceFiles/history/view/media/history_view_web_page.h
+--- tdesktop-4.12.2-full/Telegram/SourceFiles/history/view/media/history_view_web_page.h.omv~ 2023-12-01 18:23:14.991897011 +0100
++++ tdesktop-4.12.2-full/Telegram/SourceFiles/history/view/media/history_view_web_page.h 2023-12-01 18:28:55.001551006 +0100
+@@ -131,6 +131,7 @@ private:
+ mutable std::unique_ptr<Ui::RippleAnimation> _ripple;
+
+ struct SponsoredData final {
++ SponsoredData() {}
+ PeerData *peer = nullptr;
+ Ui::PeerUserpicView userpicView;
+ QString buttonText;
diff --git a/tdesktop-4.6.5-workaround-assert-on-startup.patch b/tdesktop-4.6.5-workaround-assert-on-startup.patch
new file mode 100644
index 0000000..7ea472d
--- /dev/null
+++ b/tdesktop-4.6.5-workaround-assert-on-startup.patch
@@ -0,0 +1,23 @@
+diff -up tdesktop-4.6.5-full/Telegram/lib_ui/ui/emoji_config.cpp.omv~ tdesktop-4.6.5-full/Telegram/lib_ui/ui/emoji_config.cpp
+--- tdesktop-4.6.5-full/Telegram/lib_ui/ui/emoji_config.cpp.omv~ 2023-02-26 02:00:26.884264637 +0100
++++ tdesktop-4.6.5-full/Telegram/lib_ui/ui/emoji_config.cpp 2023-02-26 02:30:15.415884716 +0100
+@@ -23,6 +23,8 @@
+
+ #include <crl/crl_async.h>
+
++#include <iostream>
++
+ namespace Ui {
+ namespace Emoji {
+ namespace {
+@@ -443,7 +445,8 @@ void UniversalImages::draw(
+
+ QImage UniversalImages::generate(int size, int index) const {
+ Expects(size > 0);
+- Expects(index < _sprites.size());
++ if(index >= _sprites.size())
++ return QImage();
+
+ const auto rows = RowsCount(index);
+ const auto large = kUniversalSize;
+diff -up tdesktop-4.6.5-full/Telegram/SourceFiles/chat_helpers/stickers_emoji_image_loader.cpp.omv~ tdesktop-4.6.5-full/Telegram/SourceFiles/chat_helpers/stickers_emoji_image_loader.cpp
diff --git a/tdesktop-4.9.3-compile.patch b/tdesktop-4.9.3-compile.patch
new file mode 100644
index 0000000..11d61e2
--- /dev/null
+++ b/tdesktop-4.9.3-compile.patch
@@ -0,0 +1,12 @@
+diff -up tdesktop-4.9.3-full/Telegram/SourceFiles/settings/settings_websites.cpp.omv~ tdesktop-4.9.3-full/Telegram/SourceFiles/settings/settings_websites.cpp
+--- tdesktop-4.9.3-full/Telegram/SourceFiles/settings/settings_websites.cpp.omv~ 2023-08-23 13:31:21.518939843 +0200
++++ tdesktop-4.9.3-full/Telegram/SourceFiles/settings/settings_websites.cpp 2023-08-23 13:31:47.755142907 +0200
+@@ -530,7 +530,7 @@ void Content::terminate(
+ *block = box->addRow(object_ptr<Ui::Checkbox>(box, blockText));
+ }
+ });
+- _terminateBox = Ui::MakeWeak(box.data());
++ _terminateBox = Ui::MakeWeak(static_cast<Ui::BoxContent*>(box.data()));
+ _controller->show(std::move(box));
+ }
+
diff --git a/tdesktop-allow-system-gsl.patch b/tdesktop-allow-system-gsl.patch
new file mode 100644
index 0000000..08616fb
--- /dev/null
+++ b/tdesktop-allow-system-gsl.patch
@@ -0,0 +1,19 @@
+diff -up tdesktop-4.9.5-full/cmake/external/gsl/CMakeLists.txt.omv~ tdesktop-4.9.5-full/cmake/external/gsl/CMakeLists.txt
+--- tdesktop-4.9.5-full/cmake/external/gsl/CMakeLists.txt.omv~ 2023-09-05 22:31:15.009130386 +0200
++++ tdesktop-4.9.5-full/cmake/external/gsl/CMakeLists.txt 2023-09-05 22:31:35.099337660 +0200
+@@ -7,7 +7,6 @@
+ add_library(external_gsl INTERFACE IMPORTED GLOBAL)
+ add_library(desktop-app::external_gsl ALIAS external_gsl)
+
+-#[[
+ if (DESKTOP_APP_USE_PACKAGED)
+ if (DESKTOP_APP_USE_PACKAGED_LAZY)
+ find_package(Microsoft.GSL 4.0.0 QUIET)
+@@ -20,7 +19,6 @@ if (DESKTOP_APP_USE_PACKAGED)
+ return()
+ endif()
+ endif()
+-]]
+
+ # https://gitlab.kitware.com/cmake/cmake/-/issues/25222
+ if (NOT EXISTS ${third_party_loc}/GSL/include)
diff --git a/telegram-2.8.6-compile.patch b/telegram-2.8.6-compile.patch
deleted file mode 100644
index 2aec9ea..0000000
--- a/telegram-2.8.6-compile.patch
+++ /dev/null
@@ -1,21 +0,0 @@
-diff -up tdesktop-4.0.2-full/Telegram/SourceFiles/api/api_media.cpp.1~ tdesktop-4.0.2-full/Telegram/SourceFiles/api/api_media.cpp
---- tdesktop-4.0.2-full/Telegram/SourceFiles/api/api_media.cpp.1~ 2022-07-05 23:33:27.228983307 +0200
-+++ tdesktop-4.0.2-full/Telegram/SourceFiles/api/api_media.cpp 2022-07-05 23:34:05.555861695 +0200
-@@ -83,7 +83,7 @@ MTPInputMedia PrepareUploadedPhoto(Remot
- MTP_flags(flags),
- info.file,
- MTP_vector<MTPInputDocument>(
-- ranges::to<QVector<MTPInputDocument>>(info.attachedStickers)),
-+ ranges::_to_::to<QVector<MTPInputDocument>>(info.attachedStickers)),
- MTP_int(0));
- }
-
-@@ -107,7 +107,7 @@ MTPInputMedia PrepareUploadedDocument(
- MTP_string(document->mimeString()),
- ComposeSendingDocumentAttributes(document),
- MTP_vector<MTPInputDocument>(
-- ranges::to<QVector<MTPInputDocument>>(info.attachedStickers)),
-+ ranges::_to_::to<QVector<MTPInputDocument>>(info.attachedStickers)),
- MTP_int(0));
- }
-
diff --git a/telegram-desktop.spec b/telegram-desktop.spec
index 410887d..dcb2bd8 100644
--- a/telegram-desktop.spec
+++ b/telegram-desktop.spec
@@ -6,7 +6,7 @@
# if built with clang.
# It works fine when built with gcc - but we need to figure
# out why at some point.
-%bcond_with clang
+%bcond_without clang
%bcond_without spellcheck
%bcond_without fonts
%bcond_without ipo
@@ -39,7 +39,7 @@
Name: telegram-desktop
# before every upgrade
# try to up tg_owt project first
-Version: 4.6.3
+Version: 4.12.2
Release: 1
# Application and 3rd-party modules licensing:
@@ -54,12 +54,17 @@ Summary: Telegram Desktop official messaging app
# Upstream frequently forgets to make the -full release. When that happens,
# use the package-source.sh script in this repository.
Source0: https://github.com/telegramdesktop/tdesktop/releases/download/v%{version}/%{appname}-%{version}%{tarsuffix}.tar.gz
-Patch1: telegram-2.8.6-compile.patch
-Patch3: tdesktop-2.8.5-compile.patch
+Patch1: tdesktop-4.11.3-system-libyuv.patch
+Patch2: tdesktop-4.6.5-workaround-assert-on-startup.patch
+Patch3: tdesktop-4.12.2-clang17.patch
+#Patch4: tdesktop-4.11.1-workaround-build-failure.patch
Patch5: tdesktop-2.3.2-no-underlinking.patch
-Patch6: tdesktop-2.7.9-compile.patch
+Patch6: tdesktop-4.11.3-zlib-ng.patch
Patch7: tdesktop-3.3.2-system-minizip.patch
-#Patch9: tdesktop-4.0.4-compile.patch
+# Allow using the system GSL library. This is forbidden upstream because
+# Telegram needs an unreleased fix, but the OM package of GSL has it, so
+# we're safe.
+Patch9: tdesktop-allow-system-gsl.patch
Requires: hicolor-icon-theme
@@ -98,6 +103,7 @@ BuildRequires: pkgconfig(xcb-keysyms)
BuildRequires: libstdc++-devel
BuildRequires: range-v3-devel
BuildRequires: atomic-devel
+BuildRequires: boost-devel
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(minizip)
BuildRequires: pkgconfig(libxxhash)
@@ -115,6 +121,12 @@ BuildRequires: pkgconfig(vpx)
BuildRequires: pkgconfig(rnnoise)
BuildRequires: pkgconfig(minizip)
BuildRequires: pkgconfig(libzip)
+BuildRequires: pkgconfig(gobject-introspection-1.0)
+# FIXME is this really necessary? It's there because
+# cppgir forces -lstdc++fs, but that may not actually
+# be needed...
+BuildRequires: stdc++-static-devel
+BuildRequires: cmake(fmt)
BuildRequires: cmake(RapidJSON)
BuildRequires: qmake-qt6
BuildRequires: qt6-qtbase-tools
@@ -266,5 +278,6 @@ appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/org.telegram.d
%license LICENSE LEGAL
%{_bindir}/%{name}
%{_datadir}/applications/org.telegram.desktop.desktop
-%{_datadir}/icons/hicolor/*/apps/*.png
+%{_datadir}/icons/hicolor/*/apps/*.*
+%{_datadir}/dbus-1/services/org.telegram.desktop.service
%optional %{_metainfodir}/org.telegram.desktop.metainfo.xml