commit 9511f4391711d0c50d366ba3eeb661f8a7f36b44
Author: Alex Fails <afails(a)localhost.localdomain>
Date: Sat Mar 20 17:17:27 2021 +0300
Revert
"https://lists.rpmfusion.org/archives/list/rpmfusion-developers@lists.rpmfusion.org/thread/5A7MRE3BG66PQXSP263FUZ7XS5PMDNUV/"
This reverts commit 0a028940d147e2c3e7e90816b33526bcd94989d9.
.gitignore | 163 ++++++++++++++++++++++++++++++++++++
dead.package | 1 -
sources | 1 +
telegram-desktop.spec | 224 ++++++++++++++++++++++++++++++++++++++++++++++++++
4 files changed, 388 insertions(+), 1 deletion(-)
---
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..4452047
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,163 @@
+/GSL-3819df6.tar.gz
+/gyp-a7055b3.tar.gz
+/tdesktop-1.0.32.tar.gz
+/variant-916139a.tar.gz
+/tdesktop-1.0.33.tar.gz
+/tdesktop-1.0.34.tar.gz
+/tdesktop-1.0.35.tar.gz
+/gyp-a478c1a.tar.gz
+/libtgvoip-61eeaba.tar.gz
+/tdesktop-1.0.37.tar.gz
+/libtgvoip-6dcf281.tar.gz
+/tdesktop-1.0.38.tar.gz
+/tdesktop-1.1.0.tar.gz
+/GSL-c5851a8.tar.gz
+/libtgvoip-2ed5a50.tar.gz
+/tdesktop-1.1.1.tar.gz
+/variant-550ac2f.tar.gz
+/tdesktop-1.1.2.tar.gz
+/libtgvoip-2993da5.tar.gz
+/tdesktop-1.1.7.tar.gz
+/tdesktop-1.1.9.tar.gz
+/libtgvoip-445433f.tar.gz
+/tdesktop-1.1.10.tar.gz
+/tdesktop-1.1.11.tar.gz
+/libtgvoip-de33700.tar.gz
+/tdesktop-1.1.13.tar.gz
+/tdesktop-1.1.14.tar.gz
+/libtgvoip-e42287b.tar.gz
+/tdesktop-1.1.15.tar.gz
+/tdesktop-1.1.17.tar.gz
+/tdesktop-1.1.18.tar.gz
+/tdesktop-1.1.19.tar.gz
+/tdesktop-1.1.22.tar.gz
+/tdesktop-1.1.23.tar.gz
+/tdesktop-1.2.0.tar.gz
+/tdesktop-1.2.1.tar.gz
+/crl-9e11a5c.tar.gz
+/tdesktop-1.2.6.tar.gz
+/crl-344cbde.tar.gz
+/tdesktop-1.2.8.tar.gz
+/tdesktop-1.2.10.tar.gz
+/tdesktop-1.2.12.tar.gz
+/tdesktop-1.2.13.tar.gz
+/tdesktop-1.2.14.tar.gz
+/tdesktop-1.2.15.tar.gz
+/tdesktop-1.2.16.tar.gz
+/tdesktop-1.2.17.tar.gz
+/tdesktop-1.3.0.tar.gz
+/crl-c739b14.tar.gz
+/tdesktop-1.3.7.tar.gz
+/crl-9bc641f.tar.gz
+/tdesktop-1.3.8.tar.gz
+/tdesktop-1.3.9.tar.gz
+/tdesktop-1.3.10.tar.gz
+/tdesktop-1.3.11.tar.gz
+/tdesktop-1.3.12.tar.gz
+/crl-4291015.tar.gz
+/tdesktop-1.3.14.tar.gz
+/tdesktop-1.3.15.tar.gz
+/tdesktop-1.3.16.tar.gz
+/tdesktop-1.3.17.tar.gz
+/tdesktop-1.4.0.tar.gz
+/tdesktop-1.4.2.tar.gz
+/tdesktop-1.4.3.tar.gz
+/tdesktop-1.5.1.tar.gz
+/tdesktop-1.5.2.tar.gz
+/tdesktop-1.5.3.tar.gz
+/tdesktop-1.5.4.tar.gz
+/crl-9b7c6b5.tar.gz
+/tdesktop-1.5.7.tar.gz
+/tdesktop-1.5.8.tar.gz
+/tdesktop-1.5.11.tar.gz
+/crl-40063ab.tar.gz
+/tdesktop-1.5.12.tar.gz
+/tdesktop-1.5.13.tar.gz
+/tdesktop-1.5.15.tar.gz
+/crl-84072fb.tar.gz
+/tdesktop-1.6.0.tar.gz
+/tdesktop-1.6.1.tar.gz
+/tdesktop-1.6.2.tar.gz
+/tdesktop-1.6.3.tar.gz
+/tdesktop-1.6.7.tar.gz
+/tdesktop-1.7.0.tar.gz
+/crl-d259aeb.tar.gz
+/qtlottie-6cd5e32.tar.gz
+/tdesktop-1.7.1.tar.gz
+/qtlottie-ddccffe.tar.gz
+/tdesktop-1.7.3.tar.gz
+/qtlottie-a3fac9d.tar.gz
+/tdesktop-1.7.7.tar.gz
+/qtlottie-eeeb4ed.tar.gz
+/tdesktop-1.7.9.tar.gz
+/tdesktop-1.7.10.tar.gz
+/crl-9ea8700.tar.gz
+/tdesktop-1.7.14.tar.gz
+/crl-52baf11.tar.gz
+/rlottie-d08a03b.tar.gz
+/tdesktop-1.8.0.tar.gz
+/tdesktop-1.8.1.tar.gz
+/tdesktop-1.8.2.tar.gz
+/tdesktop-1.8.3.tar.gz
+/tdesktop-1.8.4.tar.gz
+/rlottie-589db02.tar.gz
+/tdesktop-1.8.8.tar.gz
+/tdesktop-1.8.9.tar.gz
+/tdesktop-1.8.12.tar.gz
+/tdesktop-1.8.13.tar.gz
+/tdesktop-1.8.15.tar.gz
+/cmake_helpers-652bbaf.tar.gz
+/codegen-d14ae77.tar.gz
+/lib_base-baae6cd.tar.gz
+/lib_crl-5a740bf.tar.gz
+/lib_lottie-a0a0269.tar.gz
+/lib_qr-9877397.tar.gz
+/lib_rpl-2888aab.tar.gz
+/lib_spellcheck-d305de6.tar.gz
+/lib_storage-b0388a1.tar.gz
+/lib_storage-cb56ad4.tar.gz
+/lib_ui-4ec9e32.tar.gz
+/rlottie-c490c7a.tar.gz
+/tdesktop-1.9.3.tar.gz
+/cmake_helpers-458fec9.tar.gz
+/lib_base-8ba8607.tar.gz
+/lib_spellcheck-4784796.tar.gz
+/lib_ui-c0b0745.tar.gz
+/tdesktop-1.9.4.tar.gz
+/tdesktop-1.9.7-full.tar.gz
+/tdesktop-1.9.8-full.tar.gz
+/tdesktop-1.9.9-full.tar.gz
+/tdesktop-1.9.12-full.tar.gz
+/tdesktop-1.9.13-full.tar.gz
+/tdesktop-1.9.14-full.tar.gz
+/tdesktop-1.9.21-full.tar.gz
+/tdesktop-2.0.0-full.tar.gz
+/tdesktop-2.0.1-full.tar.gz
+/tdesktop-2.1.0-full.tar.gz
+/tdesktop-2.1.1-full.tar.gz
+/tdesktop-2.1.2-full.tar.gz
+/tdesktop-2.1.3-full.tar.gz
+/tdesktop-2.1.4-full.tar.gz
+/tdesktop-2.1.5-full.tar.gz
+/tdesktop-2.1.6-full.tar.gz
+/tdesktop-2.1.7-full.tar.gz
+/tdesktop-2.1.10-full.tar.gz
+/tdesktop-2.1.11-full.tar.gz
+/tdesktop-2.1.12-full.tar.gz
+/tdesktop-2.1.13-full.tar.gz
+/tdesktop-2.2.0-full.tar.gz
+/owt-a803835.tar.gz
+/tdesktop-2.3.2-full.tar.gz
+/owt-7a9d4bd.tar.gz
+/tdesktop-2.4.1-full.tar.gz
+/tdesktop-2.4.2-full.tar.gz
+/tdesktop-2.4.3-full.tar.gz
+/owt-c73a471.tar.gz
+/tdesktop-2.4.4-full.tar.gz
+/tdesktop-2.4.6-full.tar.gz
+/tdesktop-2.4.7-full.tar.gz
+/tdesktop-2.5.1-full.tar.gz
+/tdesktop-2.5.8-full.tar.gz
+/tdesktop-2.5.9-full.tar.gz
+/tdesktop-2.6.0-full.tar.gz
+/tdesktop-2.6.1-full.tar.gz
diff --git a/sources b/sources
new file mode 100644
index 0000000..e66f371
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (tdesktop-2.6.1-full.tar.gz) =
92506477ee1778f7528d8b914406cbf04abf1941d4f1a5d61b75dbf393df2184da1f4f83bbc343e221a539c7a01d3e3b3fe5286453d2bf1863b75ea922b70d5a
diff --git a/telegram-desktop.spec b/telegram-desktop.spec
new file mode 100644
index 0000000..9b15823
--- /dev/null
+++ b/telegram-desktop.spec
@@ -0,0 +1,224 @@
+%undefine __cmake_in_source_build
+
+# Build conditionals (with - OFF, without - ON)...
+%bcond_with clang
+%bcond_with gtk3
+%bcond_with libtgvoip
+%bcond_with rlottie
+%bcond_with wayland
+%bcond_without x11
+
+# Telegram Desktop's constants...
+%global appname tdesktop
+%global launcher telegramdesktop
+
+# Applying toolchain configuration...
+%if %{with clang}
+%global toolchain clang
+%endif
+
+Name: telegram-desktop
+Version: 2.6.1
+Release: 1%{?dist}
+
+# Application and 3rd-party modules licensing:
+# * Telegram Desktop - GPLv3+ with OpenSSL exception -- main tarball;
+# * rlottie - LGPLv2+ -- static dependency;
+# * qt_functions.cpp - LGPLv3 -- build-time dependency.
+License: GPLv3+ and LGPLv2+ and LGPLv3
+URL:
https://github.com/telegramdesktop/%{appname}
+Summary: Telegram Desktop official messaging app
+Source0: %{url}/releases/download/v%{version}/%{appname}-%{version}-full.tar.gz
+
+# Telegram Desktop require more than 8 GB of RAM on linking stage.
+# Disabling all low-memory architectures.
+ExclusiveArch: x86_64
+
+BuildRequires: cmake(Microsoft.GSL)
+BuildRequires: cmake(OpenAL)
+BuildRequires: cmake(Qt5Core)
+BuildRequires: cmake(Qt5DBus)
+BuildRequires: cmake(Qt5Gui)
+BuildRequires: cmake(Qt5Network)
+BuildRequires: cmake(Qt5Widgets)
+BuildRequires: cmake(Qt5XkbCommonSupport)
+BuildRequires: cmake(dbusmenu-qt5)
+BuildRequires: cmake(range-v3)
+BuildRequires: cmake(tg_owt)
+BuildRequires: cmake(tl-expected)
+
+BuildRequires: pkgconfig(gio-2.0)
+BuildRequires: pkgconfig(glib-2.0)
+BuildRequires: pkgconfig(gobject-2.0)
+BuildRequires: pkgconfig(hunspell)
+BuildRequires: pkgconfig(libavcodec)
+BuildRequires: pkgconfig(libavformat)
+BuildRequires: pkgconfig(libavresample)
+BuildRequires: pkgconfig(libavutil)
+BuildRequires: pkgconfig(libcrypto)
+BuildRequires: pkgconfig(liblz4)
+BuildRequires: pkgconfig(liblzma)
+BuildRequires: pkgconfig(libswscale)
+BuildRequires: pkgconfig(libxxhash)
+BuildRequires: pkgconfig(openssl)
+BuildRequires: pkgconfig(opus)
+
+BuildRequires: cmake
+BuildRequires: desktop-file-utils
+BuildRequires: gcc
+BuildRequires: gcc-c++
+BuildRequires: libappstream-glib
+BuildRequires: libatomic
+BuildRequires: libqrcodegencpp-devel
+BuildRequires: libstdc++-devel
+BuildRequires: minizip-compat-devel
+BuildRequires: ninja-build
+BuildRequires: python3
+BuildRequires: qt5-qtbase-private-devel
+
+%if %{with clang}
+BuildRequires: compiler-rt
+BuildRequires: clang
+BuildRequires: llvm
+%endif
+
+%if %{with gtk3}
+BuildRequires: pkgconfig(gtk+-3.0)
+Requires: gtk3%{?_isa}
+%endif
+
+%if %{with libtgvoip}
+BuildRequires: pkgconfig(tgvoip) >= 2.4.4
+%else
+Provides: bundled(libtgvoip) = 2.4.4
+%endif
+
+%if %{with rlottie}
+BuildRequires: cmake(rlottie)
+%else
+Provides: bundled(rlottie) = 0~git
+%endif
+
+%if %{with wayland}
+BuildRequires: cmake(KF5Wayland)
+BuildRequires: cmake(Qt5WaylandClient)
+BuildRequires: pkgconfig(wayland-client)
+BuildRequires: qt5-qtbase-static
+%endif
+
+%if %{with x11}
+BuildRequires: pkgconfig(xcb)
+BuildRequires: pkgconfig(xcb-keysyms)
+BuildRequires: pkgconfig(xcb-record)
+BuildRequires: pkgconfig(xcb-screensaver)
+%endif
+
+# Telegram Desktop require exact version of Qt due to Qt private API usage.
+%{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}}
+Requires: hicolor-icon-theme
+Requires: open-sans-fonts
+Requires: qt5-qtimageformats%{?_isa}
+
+# Short alias for the main package...
+Provides: telegram = %{?epoch:%{epoch}:}%{version}-%{release}
+Provides: telegram%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release}
+
+%description
+Telegram is a messaging app with a focus on speed and security, it’s super
+fast, simple and free. You can use Telegram on all your devices at the same
+time — your messages sync seamlessly across any number of your phones,
+tablets or computers.
+
+With Telegram, you can send messages, photos, videos and files of any type
+(doc, zip, mp3, etc), as well as create groups for up to 50,000 people or
+channels for broadcasting to unlimited audiences. You can write to your
+phone contacts and find people by their usernames. As a result, Telegram is
+like SMS and email combined — and can take care of all your personal or
+business messaging needs.
+
+%prep
+# Unpacking Telegram Desktop source archive...
+%autosetup -n %{appname}-%{version}-full -p1
+
+# Unbundling libraries...
+rm -rf
Telegram/ThirdParty/{Catch,GSL,QR,SPMediaKeyTap,expected,fcitx-qt5,fcitx5-qt,hime,hunspell,libdbusmenu-qt,lz4,materialdecoration,minizip,nimf,qt5ct,range-v3,xxHash}
+
+# Unbundling rlottie if build against packaged version...
+%if %{with rlottie}
+rm -rf Telegram/ThirdParty/rlottie
+%endif
+
+# Unbundling libtgvoip if build against packaged version...
+%if %{with libtgvoip}
+rm -rf Telegram/ThirdParty/libtgvoip
+%endif
+
+%build
+# Building Telegram Desktop using cmake...
+%cmake -G Ninja \
+ -DCMAKE_BUILD_TYPE=Release \
+%if %{with clang}
+ -DCMAKE_C_COMPILER=%{_bindir}/clang \
+ -DCMAKE_CXX_COMPILER=%{_bindir}/clang++ \
+ -DCMAKE_AR=%{_bindir}/llvm-ar \
+ -DCMAKE_RANLIB=%{_bindir}/llvm-ranlib \
+ -DCMAKE_LINKER=%{_bindir}/llvm-ld \
+ -DCMAKE_OBJDUMP=%{_bindir}/llvm-objdump \
+ -DCMAKE_NM=%{_bindir}/llvm-nm \
+%else
+ -DCMAKE_AR=%{_bindir}/gcc-ar \
+ -DCMAKE_RANLIB=%{_bindir}/gcc-ranlib \
+ -DCMAKE_NM=%{_bindir}/gcc-nm \
+%endif
+ -DTDESKTOP_API_ID=611335 \
+ -DTDESKTOP_API_HASH=d524b414d21f4d37f08684c1df41ac9c \
+ -DDESKTOP_APP_USE_PACKAGED:BOOL=ON \
+ -DDESKTOP_APP_USE_PACKAGED_FONTS:BOOL=ON \
+ -DDESKTOP_APP_USE_GLIBC_WRAPS:BOOL=OFF \
+ -DDESKTOP_APP_DISABLE_CRASH_REPORTS:BOOL=ON \
+ -DDESKTOP_APP_DISABLE_WEBRTC_INTEGRATION:BOOL=OFF \
+%if %{with gtk3}
+ -DDESKTOP_APP_DISABLE_GTK_INTEGRATION:BOOL=OFF \
+%else
+ -DDESKTOP_APP_DISABLE_GTK_INTEGRATION:BOOL=ON \
+%endif
+%if %{with wayland}
+ -DDESKTOP_APP_DISABLE_WAYLAND_INTEGRATION:BOOL=OFF \
+%else
+ -DDESKTOP_APP_DISABLE_WAYLAND_INTEGRATION:BOOL=ON \
+%endif
+%if %{with x11}
+ -DDESKTOP_APP_DISABLE_X11_INTEGRATION:BOOL=OFF \
+%else
+ -DDESKTOP_APP_DISABLE_X11_INTEGRATION:BOOL=ON \
+%endif
+%if %{with rlottie}
+ -DDESKTOP_APP_LOTTIE_USE_CACHE:BOOL=OFF \
+%endif
+ -DTDESKTOP_LAUNCHER_BASENAME=%{launcher}
+%cmake_build
+
+%install
+%cmake_install
+
+%check
+appstream-util validate-relax --nonet
%{buildroot}%{_metainfodir}/%{launcher}.appdata.xml
+desktop-file-validate %{buildroot}%{_datadir}/applications/%{launcher}.desktop
+
+%files
+%doc README.md changelog.txt
+%license LICENSE LEGAL
+%{_bindir}/%{name}
+%{_datadir}/applications/%{launcher}.desktop
+%{_datadir}/icons/hicolor/*/apps/*.png
+%{_metainfodir}/%{launcher}.appdata.xml
+
+%changelog
+* Thu Feb 25 2021 Vitaly Zaitsev <vitaly(a)easycoding.org> - 2.6.1-1
+- Updated to version 2.6.1.
+
+* Wed Feb 24 2021 Vitaly Zaitsev <vitaly(a)easycoding.org> - 2.6.0-1
+- Updated to version 2.6.0.
+
+* Thu Feb 18 2021 Vitaly Zaitsev <vitaly(a)easycoding.org> - 2.5.9-1
+- Updated to version 2.5.9.