1
0
telegram-desktop/telegram-desktop.spec

322 lines
11 KiB
RPMSpec
Raw Normal View History

#
# spec file for package telegram-desktop
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
# Disable LTO on TW due to build failures
%if 0%{?suse_version} > 01500
%define _lto_cflags %{nil}
%endif
%define __builder ninja
# gcc12 or higher is required
%if 0%{?suse_version} && ( 0%{?suse_version} < 1500 || ( 0%{?is_opensuse} && 0%{?suse_version} == 1500 && 0%{?sle_version} && 0%{?sle_version} <= 150600 ) )
%bcond_without compiler_upgrade
%endif
%if 0%{?suse_version} && 0%{?suse_version} > 01500 || (0%{?sle_version} && 0%{?sle_version} >= 150500)
%bcond_without use_system_rnnoise
%endif
%define _dwz_low_mem_die_limit 40000000
%define _dwz_max_die_limit 200000000
Accepting request 984925 from home:manfred-h - Update tg_owt; this does not include pipewire anymore, therefore: * Add BuildRequires: pkgconfig(libpipewire-0.3) - Remove patches no longer needed: * 0002-tg_owt-fix-name-confliction.patch * 0005-add-wayland-include-path.patch * fix-unused-variable-error.patch - Add suport for Qt version 6 - Update to version 4.0.0 * Premium: Send media and files each up to 4 GB in size. * Premium: Download media and files at the fastest possible speed, with no limits. * Premium: Double most of the limits in the app. * Premium: Get a new button next to any voice message to generate a transcript of its audio. * Premium: React with even more emoji, including :clown: and 😍. * Premium: Send unique stickers with additional effects, updated monthly. * Premium: Set a default chat folder or enable tools to auto-archive and hide new chats. * Premium: Subscribers have a badge next to their name, showing they help support Telegram. * Premium: Show off your profile video that will be animated for everyone in chats and the chat list. * Premium: Sponsored Messages that are sometimes shown in public channels will no longer appear. * Enable join requests for your public groups – no invite links required. * Users who open the group will see an Apply to Join Group button. * Once approved by an admin, users will be able to participate in the chat. * Bots that are integrated into the attachment menu can be programmed to work in groups and channels. - Update to version 3.7.6 * Settings > Advanced > Experimental adds an option to open chats in separate windows. * Fix possible crash in video chat reconnection. * Fix possible crash after account switch. - Update to version 3.7.5 * Improve cloud password management design. * Fix a crash in shared media search. * Fix audio recording on macOS. - Update to version 3.7.4 * More icons for chat folders. * Improve some more sections design. * Update the OpenAL library to 1.22.0. OBS-URL: https://build.opensuse.org/request/show/984925 OBS-URL: https://build.opensuse.org/package/show/server:messaging/telegram-desktop?expand=0&rev=226
2022-06-24 20:02:14 +02:00
%define qt_major_version 6
Name: telegram-desktop
Version: 4.16.8
Release: 0
Summary: Messaging application with a focus on speed and security
License: GPL-3.0-only
Group: Productivity/Networking/Instant Messenger
URL: https://github.com/telegramdesktop/tdesktop
Source0: https://github.com/telegramdesktop/tdesktop/releases/download/v%{version}/tdesktop-%{version}-full.tar.gz
# Use tg_owt-packager.py to prepare tg_owt-master.zip
# Usage: python tg_owt-packager.py --repo-dir $PWD/tg_owt-master
# Or use tg_owt-packager.sh to prepare tg_owt-master.zip
# Usage: bash tg_owt-packager.sh
Source1: tg_owt-packager.py
Source2: tg_owt-packager.sh
Source3: tg_owt-master.zip
%if %{with use_system_rnnoise}
# PATCH-FIX-OPENSUSE
Patch1: 0001-use-bundled-webrtc.patch
%else
Source4: rnnoise-git20210122.tar.gz
# PATCH-FIX-OPENSUSE
Patch1: 0002-use-bundled-rnnoise-expected-gsl-ranges-webrtc.patch
%endif
# PATCH-FIX-OPENSUSE
Patch3: 0003-revert-webrtc-cmake-target-file.patch
# PATCH-FIX-OPENSUSE
Patch4: 0004-use-dynamic-x-libraries.patch
# There is an (incomplete) patch available for part of the source:
# https://github.com/desktop-app/lib_base.git 3582bca53a1e195a31760978dc41f67ce44fc7e4
# but tdesktop itself still falls short, and it looks to be something
# that would affect all ILP32 platforms.
ExcludeArch: %ix86 aarch64_ilp32 ppc riscv32
BuildRequires: appstream-glib
BuildRequires: chrpath
BuildRequires: clang
BuildRequires: cmake >= 3.16
BuildRequires: desktop-file-utils
BuildRequires: enchant-devel
BuildRequires: ffmpeg-devel
%if %{with compiler_upgrade} || %{with compiler_downgrade}
BuildRequires: gcc12
BuildRequires: gcc12-c++
%else
BuildRequires: gcc-c++
%endif
BuildRequires: glibc-devel
BuildRequires: libboost_program_options-devel
BuildRequires: libboost_regex-devel
BuildRequires: libjpeg-devel
BuildRequires: liblz4-devel
BuildRequires: ninja
BuildRequires: pkgconfig
BuildRequires: unzip
BuildRequires: wayland-devel
BuildRequires: webkit2gtk3-devel
BuildRequires: xxhash-devel
BuildRequires: xz
BuildRequires: yasm
BuildRequires: cmake(KF5Wayland)
Accepting request 984925 from home:manfred-h - Update tg_owt; this does not include pipewire anymore, therefore: * Add BuildRequires: pkgconfig(libpipewire-0.3) - Remove patches no longer needed: * 0002-tg_owt-fix-name-confliction.patch * 0005-add-wayland-include-path.patch * fix-unused-variable-error.patch - Add suport for Qt version 6 - Update to version 4.0.0 * Premium: Send media and files each up to 4 GB in size. * Premium: Download media and files at the fastest possible speed, with no limits. * Premium: Double most of the limits in the app. * Premium: Get a new button next to any voice message to generate a transcript of its audio. * Premium: React with even more emoji, including :clown: and 😍. * Premium: Send unique stickers with additional effects, updated monthly. * Premium: Set a default chat folder or enable tools to auto-archive and hide new chats. * Premium: Subscribers have a badge next to their name, showing they help support Telegram. * Premium: Show off your profile video that will be animated for everyone in chats and the chat list. * Premium: Sponsored Messages that are sometimes shown in public channels will no longer appear. * Enable join requests for your public groups – no invite links required. * Users who open the group will see an Apply to Join Group button. * Once approved by an admin, users will be able to participate in the chat. * Bots that are integrated into the attachment menu can be programmed to work in groups and channels. - Update to version 3.7.6 * Settings > Advanced > Experimental adds an option to open chats in separate windows. * Fix possible crash in video chat reconnection. * Fix possible crash after account switch. - Update to version 3.7.5 * Improve cloud password management design. * Fix a crash in shared media search. * Fix audio recording on macOS. - Update to version 3.7.4 * More icons for chat folders. * Improve some more sections design. * Update the OpenAL library to 1.22.0. OBS-URL: https://build.opensuse.org/request/show/984925 OBS-URL: https://build.opensuse.org/package/show/server:messaging/telegram-desktop?expand=0&rev=226
2022-06-24 20:02:14 +02:00
BuildRequires: cmake(Qt%{qt_major_version}Concurrent)
BuildRequires: cmake(Qt%{qt_major_version}Core)
BuildRequires: cmake(Qt%{qt_major_version}DBus)
BuildRequires: cmake(Qt%{qt_major_version}Network)
BuildRequires: cmake(Qt%{qt_major_version}OpenGL)
BuildRequires: cmake(Qt%{qt_major_version}Qml)
BuildRequires: cmake(Qt%{qt_major_version}Quick)
Accepting request 984925 from home:manfred-h - Update tg_owt; this does not include pipewire anymore, therefore: * Add BuildRequires: pkgconfig(libpipewire-0.3) - Remove patches no longer needed: * 0002-tg_owt-fix-name-confliction.patch * 0005-add-wayland-include-path.patch * fix-unused-variable-error.patch - Add suport for Qt version 6 - Update to version 4.0.0 * Premium: Send media and files each up to 4 GB in size. * Premium: Download media and files at the fastest possible speed, with no limits. * Premium: Double most of the limits in the app. * Premium: Get a new button next to any voice message to generate a transcript of its audio. * Premium: React with even more emoji, including :clown: and 😍. * Premium: Send unique stickers with additional effects, updated monthly. * Premium: Set a default chat folder or enable tools to auto-archive and hide new chats. * Premium: Subscribers have a badge next to their name, showing they help support Telegram. * Premium: Show off your profile video that will be animated for everyone in chats and the chat list. * Premium: Sponsored Messages that are sometimes shown in public channels will no longer appear. * Enable join requests for your public groups – no invite links required. * Users who open the group will see an Apply to Join Group button. * Once approved by an admin, users will be able to participate in the chat. * Bots that are integrated into the attachment menu can be programmed to work in groups and channels. - Update to version 3.7.6 * Settings > Advanced > Experimental adds an option to open chats in separate windows. * Fix possible crash in video chat reconnection. * Fix possible crash after account switch. - Update to version 3.7.5 * Improve cloud password management design. * Fix a crash in shared media search. * Fix audio recording on macOS. - Update to version 3.7.4 * More icons for chat folders. * Improve some more sections design. * Update the OpenAL library to 1.22.0. OBS-URL: https://build.opensuse.org/request/show/984925 OBS-URL: https://build.opensuse.org/package/show/server:messaging/telegram-desktop?expand=0&rev=226
2022-06-24 20:02:14 +02:00
BuildRequires: cmake(Qt%{qt_major_version}Svg)
BuildRequires: cmake(Qt%{qt_major_version}WaylandClient)
BuildRequires: cmake(Qt%{qt_major_version}Widgets)
BuildRequires: pkgconfig(webrtc-audio-processing-1)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xcomposite)
BuildRequires: pkgconfig(xdamage)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xfixes)
BuildRequires: pkgconfig(xproto)
BuildRequires: pkgconfig(xrandr)
BuildRequires: pkgconfig(xtst)
Accepting request 984925 from home:manfred-h - Update tg_owt; this does not include pipewire anymore, therefore: * Add BuildRequires: pkgconfig(libpipewire-0.3) - Remove patches no longer needed: * 0002-tg_owt-fix-name-confliction.patch * 0005-add-wayland-include-path.patch * fix-unused-variable-error.patch - Add suport for Qt version 6 - Update to version 4.0.0 * Premium: Send media and files each up to 4 GB in size. * Premium: Download media and files at the fastest possible speed, with no limits. * Premium: Double most of the limits in the app. * Premium: Get a new button next to any voice message to generate a transcript of its audio. * Premium: React with even more emoji, including :clown: and 😍. * Premium: Send unique stickers with additional effects, updated monthly. * Premium: Set a default chat folder or enable tools to auto-archive and hide new chats. * Premium: Subscribers have a badge next to their name, showing they help support Telegram. * Premium: Show off your profile video that will be animated for everyone in chats and the chat list. * Premium: Sponsored Messages that are sometimes shown in public channels will no longer appear. * Enable join requests for your public groups – no invite links required. * Users who open the group will see an Apply to Join Group button. * Once approved by an admin, users will be able to participate in the chat. * Bots that are integrated into the attachment menu can be programmed to work in groups and channels. - Update to version 3.7.6 * Settings > Advanced > Experimental adds an option to open chats in separate windows. * Fix possible crash in video chat reconnection. * Fix possible crash after account switch. - Update to version 3.7.5 * Improve cloud password management design. * Fix a crash in shared media search. * Fix audio recording on macOS. - Update to version 3.7.4 * More icons for chat folders. * Improve some more sections design. * Update the OpenAL library to 1.22.0. OBS-URL: https://build.opensuse.org/request/show/984925 OBS-URL: https://build.opensuse.org/package/show/server:messaging/telegram-desktop?expand=0&rev=226
2022-06-24 20:02:14 +02:00
%if %{qt_major_version} >= 6
BuildRequires: qt%{qt_major_version}-gui-private-devel
BuildRequires: qt%{qt_major_version}-waylandclient-private-devel
BuildRequires: qt%{qt_major_version}-widgets-private-devel
Accepting request 984925 from home:manfred-h - Update tg_owt; this does not include pipewire anymore, therefore: * Add BuildRequires: pkgconfig(libpipewire-0.3) - Remove patches no longer needed: * 0002-tg_owt-fix-name-confliction.patch * 0005-add-wayland-include-path.patch * fix-unused-variable-error.patch - Add suport for Qt version 6 - Update to version 4.0.0 * Premium: Send media and files each up to 4 GB in size. * Premium: Download media and files at the fastest possible speed, with no limits. * Premium: Double most of the limits in the app. * Premium: Get a new button next to any voice message to generate a transcript of its audio. * Premium: React with even more emoji, including :clown: and 😍. * Premium: Send unique stickers with additional effects, updated monthly. * Premium: Set a default chat folder or enable tools to auto-archive and hide new chats. * Premium: Subscribers have a badge next to their name, showing they help support Telegram. * Premium: Show off your profile video that will be animated for everyone in chats and the chat list. * Premium: Sponsored Messages that are sometimes shown in public channels will no longer appear. * Enable join requests for your public groups – no invite links required. * Users who open the group will see an Apply to Join Group button. * Once approved by an admin, users will be able to participate in the chat. * Bots that are integrated into the attachment menu can be programmed to work in groups and channels. - Update to version 3.7.6 * Settings > Advanced > Experimental adds an option to open chats in separate windows. * Fix possible crash in video chat reconnection. * Fix possible crash after account switch. - Update to version 3.7.5 * Improve cloud password management design. * Fix a crash in shared media search. * Fix audio recording on macOS. - Update to version 3.7.4 * More icons for chat folders. * Improve some more sections design. * Update the OpenAL library to 1.22.0. OBS-URL: https://build.opensuse.org/request/show/984925 OBS-URL: https://build.opensuse.org/package/show/server:messaging/telegram-desktop?expand=0&rev=226
2022-06-24 20:02:14 +02:00
BuildRequires: cmake(Qt%{qt_major_version}OpenGLWidgets)
%else
BuildRequires: libQt5Gui-private-headers-devel
BuildRequires: libqt5-qtwayland-private-headers-devel
BuildRequires: pkgconfig(dbusmenu-qt%{qt_major_version})
%endif
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(expat)
BuildRequires: pkgconfig(fmt)
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(gbm)
BuildRequires: pkgconfig(glib-2.0) >= 2.77
BuildRequires: pkgconfig(glibmm-2.68) >= 2.77
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(harfbuzz)
BuildRequires: pkgconfig(hunspell)
BuildRequires: pkgconfig(jemalloc)
BuildRequires: pkgconfig(libavcodec)
BuildRequires: pkgconfig(libavdevice)
BuildRequires: pkgconfig(libavfilter)
BuildRequires: pkgconfig(libavformat)
BuildRequires: pkgconfig(libavutil)
BuildRequires: pkgconfig(libcrypto)
BuildRequires: pkgconfig(liblzma)
BuildRequires: pkgconfig(libmng)
BuildRequires: pkgconfig(libpcre)
BuildRequires: pkgconfig(libpcre16)
BuildRequires: pkgconfig(libpcrecpp)
BuildRequires: pkgconfig(libpcreposix)
Accepting request 984925 from home:manfred-h - Update tg_owt; this does not include pipewire anymore, therefore: * Add BuildRequires: pkgconfig(libpipewire-0.3) - Remove patches no longer needed: * 0002-tg_owt-fix-name-confliction.patch * 0005-add-wayland-include-path.patch * fix-unused-variable-error.patch - Add suport for Qt version 6 - Update to version 4.0.0 * Premium: Send media and files each up to 4 GB in size. * Premium: Download media and files at the fastest possible speed, with no limits. * Premium: Double most of the limits in the app. * Premium: Get a new button next to any voice message to generate a transcript of its audio. * Premium: React with even more emoji, including :clown: and 😍. * Premium: Send unique stickers with additional effects, updated monthly. * Premium: Set a default chat folder or enable tools to auto-archive and hide new chats. * Premium: Subscribers have a badge next to their name, showing they help support Telegram. * Premium: Show off your profile video that will be animated for everyone in chats and the chat list. * Premium: Sponsored Messages that are sometimes shown in public channels will no longer appear. * Enable join requests for your public groups – no invite links required. * Users who open the group will see an Apply to Join Group button. * Once approved by an admin, users will be able to participate in the chat. * Bots that are integrated into the attachment menu can be programmed to work in groups and channels. - Update to version 3.7.6 * Settings > Advanced > Experimental adds an option to open chats in separate windows. * Fix possible crash in video chat reconnection. * Fix possible crash after account switch. - Update to version 3.7.5 * Improve cloud password management design. * Fix a crash in shared media search. * Fix audio recording on macOS. - Update to version 3.7.4 * More icons for chat folders. * Improve some more sections design. * Update the OpenAL library to 1.22.0. OBS-URL: https://build.opensuse.org/request/show/984925 OBS-URL: https://build.opensuse.org/package/show/server:messaging/telegram-desktop?expand=0&rev=226
2022-06-24 20:02:14 +02:00
BuildRequires: pkgconfig(libpipewire-0.3)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(libproxy-1.0)
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(libtiff-4)
BuildRequires: pkgconfig(libva)
BuildRequires: pkgconfig(libva-glx)
BuildRequires: pkgconfig(libva-x11)
BuildRequires: pkgconfig(libwebp)
BuildRequires: pkgconfig(minizip)
BuildRequires: pkgconfig(mtdev)
BuildRequires: pkgconfig(openal)
Accepting request 1110928 from home:manfred-h:server:messaging - Updated to 4.9.5. * Several new bot web-app features. * Bug fixes and other minor improvements. - Update tg_owt-master.zip - Add 0006-sigc-track_obj.patch - Relax usage of openssl versions - Updated to 4.9.4. * Default private chats / groups / channels notification settings. * Forwarded / reply-to-a-story icon in chats list message preview. * Bug fixes and other minor improvements. - Updated to 4.9.3. * Fix audio output on macOS. - Updated to 4.9.2. * Remove single recently used emoji or reset the list from context menu. * Change all emoji skin colors from Emoji & People section. * Connected Websites section in Settings > Advanced. * Bug fixes and other minor improvements. - Updated to 4.9.1. * Fix a crash in reply area ripple animation. * Fix a crash on start in some Linux distributions. - Updated to 4.9.0. * Gradual stories rollout. - Updated to 4.8.12. * Fix crash by a full rebuild on macOS. - Updated to 4.8.11. * Fix initial video playback speed. * Use native window resize on Windows 11. * Fix memory leak in Direct3D 11 media viewer on Windows. - Updated to 4.8.10. * Send story sharing comments as separate messages. * Fix stories explanation tooltip ordering. - Updated to 4.8.9. * Bug fixes and other minor improvements. - Updated to 4.8.8. * Several crash fixes and story viewer improvements. - Updated to 4.8.7. * Several crash fixes and small stories improvements. - Updated to 4.8.6. * Fix langpack keys by a full rebuild on macOS. - Updated to 4.8.5. * Bug fixes and other minor improvements. And stories preview. OBS-URL: https://build.opensuse.org/request/show/1110928 OBS-URL: https://build.opensuse.org/package/show/server:messaging/telegram-desktop?expand=0&rev=266
2023-09-13 19:53:52 +02:00
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(opus)
BuildRequires: pkgconfig(opusfile)
BuildRequires: pkgconfig(opusurl)
BuildRequires: pkgconfig(portaudio-2.0)
BuildRequires: pkgconfig(portaudiocpp)
BuildRequires: pkgconfig(protobuf)
# Use system rnnoise on TW, self-build on others
%if %{with use_system_rnnoise}
BuildRequires: expect-devel
BuildRequires: range-v3-devel
BuildRequires: pkgconfig(gsl)
BuildRequires: pkgconfig(rnnoise)
%else
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
%endif
BuildRequires: pkgconfig(tslib)
BuildRequires: pkgconfig(vdpau)
BuildRequires: pkgconfig(vpx)
BuildRequires: pkgconfig(webkit2gtk-4.0)
BuildRequires: pkgconfig(xcb-ewmh)
BuildRequires: pkgconfig(xcb-icccm)
BuildRequires: pkgconfig(xcb-image)
BuildRequires: pkgconfig(xcb-keysyms)
BuildRequires: pkgconfig(xcb-record)
BuildRequires: pkgconfig(xcb-renderutil)
BuildRequires: pkgconfig(xcb-util)
BuildRequires: pkgconfig(xfixes)
BuildRequires: pkgconfig(xkbcommon)
BuildRequires: pkgconfig(xkbcommon-x11)
BuildRequires: pkgconfig(zlib)
# Runtime requirements
Requires: hicolor-icon-theme
Requires: icu
# Require the same version of glib2 used to *build* the package:
Requires: glib2 >= 2.77
Accepting request 984925 from home:manfred-h - Update tg_owt; this does not include pipewire anymore, therefore: * Add BuildRequires: pkgconfig(libpipewire-0.3) - Remove patches no longer needed: * 0002-tg_owt-fix-name-confliction.patch * 0005-add-wayland-include-path.patch * fix-unused-variable-error.patch - Add suport for Qt version 6 - Update to version 4.0.0 * Premium: Send media and files each up to 4 GB in size. * Premium: Download media and files at the fastest possible speed, with no limits. * Premium: Double most of the limits in the app. * Premium: Get a new button next to any voice message to generate a transcript of its audio. * Premium: React with even more emoji, including :clown: and 😍. * Premium: Send unique stickers with additional effects, updated monthly. * Premium: Set a default chat folder or enable tools to auto-archive and hide new chats. * Premium: Subscribers have a badge next to their name, showing they help support Telegram. * Premium: Show off your profile video that will be animated for everyone in chats and the chat list. * Premium: Sponsored Messages that are sometimes shown in public channels will no longer appear. * Enable join requests for your public groups – no invite links required. * Users who open the group will see an Apply to Join Group button. * Once approved by an admin, users will be able to participate in the chat. * Bots that are integrated into the attachment menu can be programmed to work in groups and channels. - Update to version 3.7.6 * Settings > Advanced > Experimental adds an option to open chats in separate windows. * Fix possible crash in video chat reconnection. * Fix possible crash after account switch. - Update to version 3.7.5 * Improve cloud password management design. * Fix a crash in shared media search. * Fix audio recording on macOS. - Update to version 3.7.4 * More icons for chat folders. * Improve some more sections design. * Update the OpenAL library to 1.22.0. OBS-URL: https://build.opensuse.org/request/show/984925 OBS-URL: https://build.opensuse.org/package/show/server:messaging/telegram-desktop?expand=0&rev=226
2022-06-24 20:02:14 +02:00
%if %{qt_major_version} >= 6
Requires: qt%{qt_major_version}-imageformats
Recommends: qt%{qt_major_version}-wayland
%else
Requires: libqt%{qt_major_version}-qtimageformats
Recommends: libqt%{qt_major_version}-qtwayland
%endif
# TDesktop can fall back to a simple GTK file picker but prefers the portal
Recommends: xdg-desktop-portal
Recommends: google-opensans-fonts
%description
Telegram is a non-profit cloud-based instant messaging service.
Users can send messages and exchange photos, videos, stickers, audio and files of any type.
Its client-side code is open-source software but the source code for recent versions is not
always immediately published, whereas its server-side code is closed-source and proprietary.
The service also provides APIs to independent developers.
%prep
%setup -q -n tdesktop-%{version}-full
%autopatch -p1
mkdir ../Libraries
# If not TW, unpack rnnoise source
%if %{without use_system_rnnoise}
%setup -q -T -D -b 4 -n tdesktop-%{version}-full
mv ../rnnoise-git20210122 ../Libraries/rnnoise
%endif
cd ../
unzip -q %{SOURCE3}
mv tg_owt-master Libraries/tg_owt
%build
%if %{with compiler_upgrade} || %{with compiler_downgrade}
export CC=gcc-12
export CXX=g++-12
%endif
# Fix build failures due to not finding installed headers for xkbcommon and wayland-client
export CXXFLAGS+="`pkg-config --cflags xkbcommon wayland-client` -DBOOST_NO_STD_ALLOCATOR"
%if 0%{?suse_version} == 1500
export CXXFLAGS+=" -DBOOST_NO_STD_ALLOCATOR"
%endif
# If not TW, build rnnoise
%if %{without use_system_rnnoise}
pushd %{_builddir}/Libraries/rnnoise
./autogen.sh
%configure
%make_build
popd
%endif
cd %{_builddir}/Libraries/tg_owt
mkdir -p out/Release
cd out/Release
cmake -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
%ifarch armv7l armv7hl
-DTG_OWT_ARCH_ARMV7_USE_NEON=OFF \
%endif
-DTG_OWT_SPECIAL_TARGET=linux \
-DTG_OWT_LIBJPEG_INCLUDE_PATH=/usr/include \
-DTG_OWT_OPENSSL_INCLUDE_PATH=/usr/include/openssl \
-DTG_OWT_OPUS_INCLUDE_PATH=/usr/include/opus \
-DTG_OWT_FFMPEG_INCLUDE_PATH=/usr/include/ffmpeg \
-DTG_OWT_LIBVPX_INCLUDE_PATH=/usr/include/vpx \
../..
sed -i 's,gnu++2a,gnu++17,g' build.ninja
ninja
cd %{_builddir}/tdesktop-%{version}-full
# Use the official API key that telegram uses for their snap builds:
# https://github.com/telegramdesktop/tdesktop/blob/8fab9167beb2407c1153930ed03a4badd0c2b59f/snap/snapcraft.yaml#L87-L88
# Thanks to @primeos on Github.
%cmake \
-DCMAKE_INSTALL_PREFIX=%{_prefix} \
-DCMAKE_BUILD_TYPE=Release \
Accepting request 984925 from home:manfred-h - Update tg_owt; this does not include pipewire anymore, therefore: * Add BuildRequires: pkgconfig(libpipewire-0.3) - Remove patches no longer needed: * 0002-tg_owt-fix-name-confliction.patch * 0005-add-wayland-include-path.patch * fix-unused-variable-error.patch - Add suport for Qt version 6 - Update to version 4.0.0 * Premium: Send media and files each up to 4 GB in size. * Premium: Download media and files at the fastest possible speed, with no limits. * Premium: Double most of the limits in the app. * Premium: Get a new button next to any voice message to generate a transcript of its audio. * Premium: React with even more emoji, including :clown: and 😍. * Premium: Send unique stickers with additional effects, updated monthly. * Premium: Set a default chat folder or enable tools to auto-archive and hide new chats. * Premium: Subscribers have a badge next to their name, showing they help support Telegram. * Premium: Show off your profile video that will be animated for everyone in chats and the chat list. * Premium: Sponsored Messages that are sometimes shown in public channels will no longer appear. * Enable join requests for your public groups – no invite links required. * Users who open the group will see an Apply to Join Group button. * Once approved by an admin, users will be able to participate in the chat. * Bots that are integrated into the attachment menu can be programmed to work in groups and channels. - Update to version 3.7.6 * Settings > Advanced > Experimental adds an option to open chats in separate windows. * Fix possible crash in video chat reconnection. * Fix possible crash after account switch. - Update to version 3.7.5 * Improve cloud password management design. * Fix a crash in shared media search. * Fix audio recording on macOS. - Update to version 3.7.4 * More icons for chat folders. * Improve some more sections design. * Update the OpenAL library to 1.22.0. OBS-URL: https://build.opensuse.org/request/show/984925 OBS-URL: https://build.opensuse.org/package/show/server:messaging/telegram-desktop?expand=0&rev=226
2022-06-24 20:02:14 +02:00
%if %{qt_major_version} == 6
-DDESKTOP_APP_QT6=ON \
-DQT_VERSION_MAJOR=6 \
Accepting request 984925 from home:manfred-h - Update tg_owt; this does not include pipewire anymore, therefore: * Add BuildRequires: pkgconfig(libpipewire-0.3) - Remove patches no longer needed: * 0002-tg_owt-fix-name-confliction.patch * 0005-add-wayland-include-path.patch * fix-unused-variable-error.patch - Add suport for Qt version 6 - Update to version 4.0.0 * Premium: Send media and files each up to 4 GB in size. * Premium: Download media and files at the fastest possible speed, with no limits. * Premium: Double most of the limits in the app. * Premium: Get a new button next to any voice message to generate a transcript of its audio. * Premium: React with even more emoji, including :clown: and 😍. * Premium: Send unique stickers with additional effects, updated monthly. * Premium: Set a default chat folder or enable tools to auto-archive and hide new chats. * Premium: Subscribers have a badge next to their name, showing they help support Telegram. * Premium: Show off your profile video that will be animated for everyone in chats and the chat list. * Premium: Sponsored Messages that are sometimes shown in public channels will no longer appear. * Enable join requests for your public groups – no invite links required. * Users who open the group will see an Apply to Join Group button. * Once approved by an admin, users will be able to participate in the chat. * Bots that are integrated into the attachment menu can be programmed to work in groups and channels. - Update to version 3.7.6 * Settings > Advanced > Experimental adds an option to open chats in separate windows. * Fix possible crash in video chat reconnection. * Fix possible crash after account switch. - Update to version 3.7.5 * Improve cloud password management design. * Fix a crash in shared media search. * Fix audio recording on macOS. - Update to version 3.7.4 * More icons for chat folders. * Improve some more sections design. * Update the OpenAL library to 1.22.0. OBS-URL: https://build.opensuse.org/request/show/984925 OBS-URL: https://build.opensuse.org/package/show/server:messaging/telegram-desktop?expand=0&rev=226
2022-06-24 20:02:14 +02:00
%else
-DDESKTOP_APP_QT6=OFF \
-DDESKTOP_APP_DISABLE_WAYLAND_INTEGRATION=ON \
-DDESKTOP_APP_USE_ENCHANT=ON \
%endif
%if 0%{?suse_version} && ( 0%{?suse_version} < 1500 || ( 0%{?is_opensuse} && 0%{?suse_version} == 1500 && 0%{?sle_version} && 0%{?sle_version} < 150600 ) )
-DDESKTOP_APP_DISABLE_DBUS_INTEGRATION=ON \
Accepting request 984925 from home:manfred-h - Update tg_owt; this does not include pipewire anymore, therefore: * Add BuildRequires: pkgconfig(libpipewire-0.3) - Remove patches no longer needed: * 0002-tg_owt-fix-name-confliction.patch * 0005-add-wayland-include-path.patch * fix-unused-variable-error.patch - Add suport for Qt version 6 - Update to version 4.0.0 * Premium: Send media and files each up to 4 GB in size. * Premium: Download media and files at the fastest possible speed, with no limits. * Premium: Double most of the limits in the app. * Premium: Get a new button next to any voice message to generate a transcript of its audio. * Premium: React with even more emoji, including :clown: and 😍. * Premium: Send unique stickers with additional effects, updated monthly. * Premium: Set a default chat folder or enable tools to auto-archive and hide new chats. * Premium: Subscribers have a badge next to their name, showing they help support Telegram. * Premium: Show off your profile video that will be animated for everyone in chats and the chat list. * Premium: Sponsored Messages that are sometimes shown in public channels will no longer appear. * Enable join requests for your public groups – no invite links required. * Users who open the group will see an Apply to Join Group button. * Once approved by an admin, users will be able to participate in the chat. * Bots that are integrated into the attachment menu can be programmed to work in groups and channels. - Update to version 3.7.6 * Settings > Advanced > Experimental adds an option to open chats in separate windows. * Fix possible crash in video chat reconnection. * Fix possible crash after account switch. - Update to version 3.7.5 * Improve cloud password management design. * Fix a crash in shared media search. * Fix audio recording on macOS. - Update to version 3.7.4 * More icons for chat folders. * Improve some more sections design. * Update the OpenAL library to 1.22.0. OBS-URL: https://build.opensuse.org/request/show/984925 OBS-URL: https://build.opensuse.org/package/show/server:messaging/telegram-desktop?expand=0&rev=226
2022-06-24 20:02:14 +02:00
%endif
-DTDESKTOP_API_ID=611335 \
-DTDESKTOP_API_HASH=d524b414d21f4d37f08684c1df41ac9c \
-DDESKTOP_APP_USE_GLIBC_WRAPS=OFF \
-DDESKTOP_APP_USE_PACKAGED=ON \
-DDESKTOP_APP_QTWAYLANDCLIENT_PRIVATE_HEADERS=OFF \
-DDESKTOP_APP_USE_PACKAGED_FONTS=ON \
-DDESKTOP_APP_DISABLE_CRASH_REPORTS=ON \
-DTDESKTOP_LAUNCHER_BASENAME=%{name} \
-DDESKTOP_APP_SPECIAL_TARGET=""
%cmake_build
%install
%cmake_install
%if 0%{?suse_version} > 01500 || ( 0%{?is_opensuse} && 0%{?suse_version} == 1500 && 0%{?sle_version} && 0%{?sle_version} >= 150600 )
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.metainfo.xml
%endif
%files
%license LICENSE LEGAL
%doc README.md changelog.txt
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
Accepting request 1110928 from home:manfred-h:server:messaging - Updated to 4.9.5. * Several new bot web-app features. * Bug fixes and other minor improvements. - Update tg_owt-master.zip - Add 0006-sigc-track_obj.patch - Relax usage of openssl versions - Updated to 4.9.4. * Default private chats / groups / channels notification settings. * Forwarded / reply-to-a-story icon in chats list message preview. * Bug fixes and other minor improvements. - Updated to 4.9.3. * Fix audio output on macOS. - Updated to 4.9.2. * Remove single recently used emoji or reset the list from context menu. * Change all emoji skin colors from Emoji & People section. * Connected Websites section in Settings > Advanced. * Bug fixes and other minor improvements. - Updated to 4.9.1. * Fix a crash in reply area ripple animation. * Fix a crash on start in some Linux distributions. - Updated to 4.9.0. * Gradual stories rollout. - Updated to 4.8.12. * Fix crash by a full rebuild on macOS. - Updated to 4.8.11. * Fix initial video playback speed. * Use native window resize on Windows 11. * Fix memory leak in Direct3D 11 media viewer on Windows. - Updated to 4.8.10. * Send story sharing comments as separate messages. * Fix stories explanation tooltip ordering. - Updated to 4.8.9. * Bug fixes and other minor improvements. - Updated to 4.8.8. * Several crash fixes and story viewer improvements. - Updated to 4.8.7. * Several crash fixes and small stories improvements. - Updated to 4.8.6. * Fix langpack keys by a full rebuild on macOS. - Updated to 4.8.5. * Bug fixes and other minor improvements. And stories preview. OBS-URL: https://build.opensuse.org/request/show/1110928 OBS-URL: https://build.opensuse.org/package/show/server:messaging/telegram-desktop?expand=0&rev=266
2023-09-13 19:53:52 +02:00
%{_datadir}/dbus-1/services/org.telegram.desktop.service
%{_datadir}/icons/hicolor/*/apps/*.png
%{_datadir}/icons/hicolor/*/apps/*.svg
%{_datadir}/metainfo/*.metainfo.xml
%changelog