diff --git a/telegram-5.7.1-ffmpeg-7.1.patch b/telegram-5.7.1-ffmpeg-7.1.patch deleted file mode 100644 index f518a5c..0000000 --- a/telegram-5.7.1-ffmpeg-7.1.patch +++ /dev/null @@ -1,37 +0,0 @@ -From 8979066878cc8cd74d66fde68a173c5b35b26282 Mon Sep 17 00:00:00 2001 -From: xiota -Date: Mon, 4 Nov 2024 20:40:37 +0000 -Subject: [PATCH] Fix some ffmpeg 7.x related errors - ---- - Telegram/SourceFiles/ui/controls/round_video_recorder.cpp | 7 ++++++- - 1 file changed, 6 insertions(+), 1 deletion(-) - -diff --git a/Telegram/SourceFiles/ui/controls/round_video_recorder.cpp b/Telegram/SourceFiles/ui/controls/round_video_recorder.cpp -index f01df2165be3fd..4ba0e7768bd129 100644 ---- a/Telegram/SourceFiles/ui/controls/round_video_recorder.cpp -+++ b/Telegram/SourceFiles/ui/controls/round_video_recorder.cpp -@@ -107,9 +107,15 @@ class RoundVideoRecorder::Private final { - std::array lastDts = { 0 }; - }; - -+#if DA_FFMPEG_CONST_WRITE_CALLBACK -+ static int Write(void *opaque, const uint8_t *_buf, int buf_size) { -+ uint8_t *buf = const_cast(_buf); -+#else - static int Write(void *opaque, uint8_t *buf, int buf_size) { -+#endif - return static_cast(opaque)->write(buf, buf_size); - } -+ - static int64_t Seek(void *opaque, int64_t offset, int whence) { - return static_cast(opaque)->seek(offset, whence); - } -@@ -388,7 +394,6 @@ bool RoundVideoRecorder::Private::initAudio() { - _audioCodec->sample_rate = kAudioFrequency; - #if DA_FFMPEG_NEW_CHANNEL_LAYOUT - _audioCodec->ch_layout = AV_CHANNEL_LAYOUT_MONO; -- _audioCodec->channels = _audioCodec->ch_layout.nb_channels; - #else - _audioCodec->channel_layout = AV_CH_LAYOUT_MONO; - _audioCodec->channels = _audioChannels; diff --git a/telegram.spec b/telegram.spec index 14e32a0..a5fa6f2 100644 --- a/telegram.spec +++ b/telegram.spec @@ -1,7 +1,7 @@ Name: telegram Epoch: 1 -Version: 5.8.5 -Release: 1mamba +Version: 5.9.0 +Release: 2mamba Summary: The official desktop client for the Telegram messenger Group: Graphical Desktop/Applications/Internet Vendor: openmamba @@ -11,7 +11,6 @@ URL: https://telegram.org/ Source: https://github.com/telegramdesktop/tdesktop/releases/download/v%{version}/tdesktop-%{version}-full.tar.gz Source1: telegramdesktop.desktop Source2: tg.protocol -Patch0: telegram-5.7.1-ffmpeg-7.1.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel @@ -60,7 +59,7 @@ BuildRequires: qt6-qtdeclarative-devel BuildRequires: qt6-qtsvg-devel BuildRequires: qt6-qtwayland-devel ## AUTOBUILDREQ-END -BuildRequires: qt6-qtbase-devel >= 0:6.8.0-1mamba +BuildRequires: qt6-qtbase-devel >= 0:6.8.1-1mamba BuildRequires: libada-devel BuildRequires: libtg_owt-devel >= 0.1.20230105git BuildRequires: libabseil-cpp-devel >= 20230125.0 @@ -81,13 +80,14 @@ The official desktop client for the Telegram messenger. %ifnarch aarch64 %{ix86} %debug_package +%else +%define _lto_cflags %{nil} %endif + %prep -%setup -q -n tdesktop-%{version}-full -#-D -T +%setup -q -n tdesktop-%{version}-full -D -T #:<< _EOF -#%patch 0 -p1 -b .ffmpeg-7.1 rm -rf Telegram/ThirdParty/libtgvoip/webrtc_dsp/absl @@ -101,7 +101,7 @@ rm -rf Telegram/ThirdParty/libtgvoip/webrtc_dsp/absl -DTDESKTOP_LAUNCHER_BASENAME="telegramdesktop" \ -DDESKTOP_APP_SPECIAL_TARGET="" \ %ifarch aarch64 %{ix86} - -DCMAKE_CXX_FLAGS="%{optflags} -Os -s -Wl,--gc-sections -Wl,--no-keep-memory -fPIC" + -DCMAKE_CXX_FLAGS="-Os -s -Wl,--gc-sections -Wl,--no-keep-memory -fPIC" %endif %ifarch x86_64 @@ -147,6 +147,12 @@ fi %doc LICENSE LEGAL %changelog +* Mon Dec 09 2024 Silvan Calarco 5.9.0-2mamba +- rebuilt with qt 6.8.1 + +* Thu Dec 05 2024 Automatic Build System 5.9.0-1mamba +- automatic version update by autodist + * Sun Dec 01 2024 Automatic Build System 5.8.5-1mamba - automatic version update by autodist