automatic version update by autodist [release 5.15.3-1mamba;Wed Jun 11 2025]
This commit is contained in:
@@ -1,37 +0,0 @@
|
||||
From 3ad1b3cac8850812815058b31c0c025d975d3664 Mon Sep 17 00:00:00 2001
|
||||
From: Antonio Rojas <arojas@archlinux.org>
|
||||
Date: Sat, 1 Mar 2025 01:20:04 +0100
|
||||
Subject: [PATCH] Fix build with Qt 6.9
|
||||
|
||||
---
|
||||
base/platform/linux/base_linux_xdp_utilities.cpp | 8 ++++++++
|
||||
1 file changed, 8 insertions(+)
|
||||
|
||||
diff --git a/base/platform/linux/base_linux_xdp_utilities.cpp b/base/platform/linux/base_linux_xdp_utilities.cpp
|
||||
index 8aca67c9..80626af1 100644
|
||||
--- a/base/platform/linux/base_linux_xdp_utilities.cpp
|
||||
+++ b/base/platform/linux/base_linux_xdp_utilities.cpp
|
||||
@@ -16,7 +16,11 @@
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
|
||||
#include <qpa/qplatformintegration.h>
|
||||
#include <private/qguiapplication_p.h>
|
||||
+#if QT_VERSION >= QT_VERSION_CHECK(6, 9, 0)
|
||||
+#include <private/qdesktopunixservices_p.h>
|
||||
+#else
|
||||
#include <private/qgenericunixservices_p.h>
|
||||
+#endif // Qt >= 6.9.0
|
||||
#endif // Qt >= 6.5.0
|
||||
|
||||
#include <sstream>
|
||||
@@ -39,7 +43,11 @@ std::string ParentWindowID(QWindow *window) {
|
||||
}
|
||||
|
||||
#if QT_VERSION >= QT_VERSION_CHECK(6, 5, 0)
|
||||
+#if QT_VERSION >= QT_VERSION_CHECK(6, 9, 0)
|
||||
+ if (const auto services = dynamic_cast<QDesktopUnixServices*>(
|
||||
+#else
|
||||
if (const auto services = dynamic_cast<QGenericUnixServices*>(
|
||||
+#endif // Qt >= 6.9.0
|
||||
QGuiApplicationPrivate::platformIntegration()->services())) {
|
||||
return services->portalWindowIdentifier(window).toStdString();
|
||||
}
|
||||
@@ -1,7 +1,8 @@
|
||||
%define td_commit 51743dfd01dff6179e2d8f7095729caa4e2222e9
|
||||
Name: telegram
|
||||
Epoch: 1
|
||||
Version: 5.13.1
|
||||
Release: 2mamba
|
||||
Version: 5.15.3
|
||||
Release: 1mamba
|
||||
Summary: The official desktop client for the Telegram messenger
|
||||
Group: Graphical Desktop/Applications/Internet
|
||||
Vendor: openmamba
|
||||
@@ -9,13 +10,12 @@ Distribution: openmamba
|
||||
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
||||
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.13.1-qt6-qtbase-6.9.0.patch
|
||||
Source1: https://github.com/tdlib/td.git/master@%{td_commit}/td-%{version}.tar.bz2
|
||||
License: GPL
|
||||
## AUTOBUILDREQ-BEGIN
|
||||
BuildRequires: glibc-devel
|
||||
BuildRequires: libQt6Core
|
||||
BuildRequires: libQt6DBus
|
||||
BuildRequires: libQt6Gui
|
||||
BuildRequires: libQt6Network
|
||||
BuildRequires: libQt6OpenGL
|
||||
@@ -32,12 +32,15 @@ BuildRequires: libada-devel
|
||||
BuildRequires: libavcodec-devel
|
||||
BuildRequires: libavfilter-devel
|
||||
BuildRequires: libavformat-devel
|
||||
BuildRequires: libavif-devel
|
||||
BuildRequires: libavutil-devel
|
||||
BuildRequires: libgcc
|
||||
BuildRequires: libglib-devel
|
||||
BuildRequires: libheif-devel
|
||||
BuildRequires: libhunspell-devel
|
||||
BuildRequires: libjemalloc-devel
|
||||
BuildRequires: libjpeg-turbo
|
||||
BuildRequires: libjxl-devel
|
||||
BuildRequires: libkf6-kcoreaddons-devel
|
||||
BuildRequires: liblz4-devel
|
||||
BuildRequires: libminizip1-devel
|
||||
@@ -55,25 +58,22 @@ BuildRequires: libswscale-devel
|
||||
BuildRequires: libvpx-devel
|
||||
BuildRequires: libxcb-devel
|
||||
BuildRequires: libxcb-keysyms-devel
|
||||
BuildRequires: libxkbcommon-devel
|
||||
BuildRequires: libxxhash-devel
|
||||
BuildRequires: libz-devel
|
||||
BuildRequires: qt6-qtdeclarative-devel
|
||||
BuildRequires: qt6-qtsvg-devel
|
||||
BuildRequires: qt6-qtwayland-devel
|
||||
## AUTOBUILDREQ-END
|
||||
BuildRequires: qt6-qtbase-devel >= 0:6.9.0-1mamba
|
||||
BuildRequires: qt6-qtwayland-devel >= 0:6.9.1-1mamba
|
||||
BuildRequires: libada-devel
|
||||
BuildRequires: libtg_owt-devel >= 0.1.20230105git
|
||||
BuildRequires: libabseil-cpp-devel >= 20230125.0
|
||||
BuildRequires: libmicrosoft-gsl-devel
|
||||
BuildRequires: tl-expected-devel
|
||||
BuildRequires: librnnoise-devel
|
||||
BuildRequires: qt6-qt5compat-devel >= 6.7.2
|
||||
BuildRequires: qt6-qtdeclarative-devel >= 6.7.2
|
||||
BuildRequires: qt6-qtsvg-devel >= 6.7.2
|
||||
BuildRequires: qt6-qtwayland-devel >= 6.7.2
|
||||
BuildRequires: range-v3-devel
|
||||
Requires: qt6-qtbase-devel = %{_qt6_version}
|
||||
Requires: qt6-qtwayland-devel = %{_qt6_version}
|
||||
Requires: kconfig
|
||||
Requires: qt6-qtimageformats
|
||||
|
||||
@@ -88,17 +88,28 @@ The official desktop client for the Telegram messenger.
|
||||
#% global __rm /bin/true
|
||||
|
||||
%prep
|
||||
%setup -q -n tdesktop-%{version}-full
|
||||
%setup -q -n tdesktop-%{version}-full -a1
|
||||
#-D -T
|
||||
%patch 0 -d Telegram/lib_base -p1 -b .qt6-qtbase-6.9.0
|
||||
mv td-%{version} td
|
||||
|
||||
rm -rf Telegram/ThirdParty/libtgvoip/webrtc_dsp/absl
|
||||
#rm -rf Telegram/ThirdParty/libtgvoip/webrtc_dsp/absl
|
||||
|
||||
%build
|
||||
#:<< __EOF
|
||||
cd td
|
||||
%cmake \
|
||||
-DCMAKE_INSTALL_PREFIX="$PWD/install" \
|
||||
-Wno-dev \
|
||||
-DTD_E2E_ONLY=ON
|
||||
|
||||
%cmake_build
|
||||
DESTDIR= cmake --install build
|
||||
cd ..
|
||||
|
||||
%cmake -d build \
|
||||
-G Ninja \
|
||||
-DCMAKE_BUILD_TYPE=Release \
|
||||
-Dtde2e_DIR="$PWD/../td/install/lib/cmake/tde2e" \
|
||||
-DTDESKTOP_API_ID=17349 \
|
||||
-DTDESKTOP_API_HASH=344583e45741c457fe1862106095a5eb \
|
||||
-DTDESKTOP_LAUNCHER_BASENAME="telegramdesktop" \
|
||||
@@ -123,7 +134,7 @@ DESTDIR=%{buildroot} ninja -C build install
|
||||
|
||||
%files
|
||||
%defattr(-,root,root)
|
||||
%{_bindir}/telegram-desktop
|
||||
%{_bindir}/Telegram
|
||||
%{_datadir}/applications/org.telegram.desktop.desktop
|
||||
%{_datadir}/metainfo/org.telegram.desktop.metainfo.xml
|
||||
%{_datadir}/dbus-1/services/org.telegram.desktop.service
|
||||
@@ -132,6 +143,9 @@ DESTDIR=%{buildroot} ninja -C build install
|
||||
%doc LICENSE LEGAL
|
||||
|
||||
%changelog
|
||||
* Wed Jun 11 2025 Automatic Build System <autodist@openmamba.org> 5.15.3-1mamba
|
||||
- automatic version update by autodist
|
||||
|
||||
* Mon Apr 07 2025 Automatic Build System <autodist@mambasoft.it> 5.13.1-2mamba
|
||||
- rebuilt by autoport with build requirements: qt6-qtbase-devel>=0:6.9.0-1mamba
|
||||
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Name=Telegram Desktop
|
||||
Comment=Official desktop version of Telegram messaging app
|
||||
Exec=/usr/bin/telegram-desktop -- %u
|
||||
Icon=telegram-desktop
|
||||
Terminal=false
|
||||
StartupWMClass=telegram-desktop
|
||||
Type=Application
|
||||
Categories=Network;
|
||||
MimeType=application/x-xdg-protocol-tg;x-scheme-handler/tg;
|
||||
11
tg.protocol
11
tg.protocol
@@ -1,11 +0,0 @@
|
||||
[Protocol]
|
||||
exec=/usr/bin/telegram-desktop -- %u
|
||||
protocol=tg
|
||||
input=none
|
||||
output=none
|
||||
helper=true
|
||||
listing=false
|
||||
reading=false
|
||||
writing=false
|
||||
makedir=false
|
||||
deleting=false
|
||||
Reference in New Issue
Block a user