From 2acb48c3a40847bce04d78fcfb336c299d85792cac5f9c46e5d614415e8f6ca9 Mon Sep 17 00:00:00 2001 From: Xu Zhao Date: Wed, 26 Jun 2019 18:24:31 +0000 Subject: [PATCH 1/7] Accepting request 712167 from home:nuklly:branches:server:messaging Added GTK integration support to support native notification popup. OBS-URL: https://build.opensuse.org/request/show/712167 OBS-URL: https://build.opensuse.org/package/show/server:messaging/telegram-desktop?expand=0&rev=90 --- patch.py | 3 ++- telegram-desktop.spec | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/patch.py b/patch.py index 577964e..3dd7e0f 100644 --- a/patch.py +++ b/patch.py @@ -269,7 +269,8 @@ def process_telegram(jsonobj): child.append("'TDESKTOP_DISABLE_AUTOUPDATE'") child.append("'TDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME'") child.append("'TDESKTOP_DISABLE_UNITY_INTEGRATION'") - child.append("'TDESKTOP_DISABLE_GTK_INTEGRATION'") + # Turn on GTK support by default + # child.append("'TDESKTOP_DISABLE_GTK_INTEGRATION'") child.append("'TDESKTOP_DISABLE_OPENAL_EFFECTS'") child.remove("'AL_LIBTYPE_STATIC'") child = jsonobj["'targets'"][0]["'include_dirs'"] diff --git a/telegram-desktop.spec b/telegram-desktop.spec index b86aea0..34e1e7c 100644 --- a/telegram-desktop.spec +++ b/telegram-desktop.spec @@ -191,6 +191,9 @@ cp %{_sourcedir}/tdesktop.patch %{_builddir}/tdesktop-%{version} cd %{_builddir}/tdesktop-%{version} %patch0 -p1 +# Add TDESKTOP_DISABLE_GTK_INTEGRATION in file_utilties_linux.h +sed -i "1s/^/#define TDESKTOP_DISABLE_GTK_INTEGRATION\n\n/" Telegram/SourceFiles/platform/linux/file_utilities_linux.h + cp %{_sourcedir}/patch.py . && python3 ./patch.py cp %{_sourcedir}/catch.hpp ./Telegram/SourceFiles/ From b43c964f5b46856c58bc61fdc3f64afabf7f45b7700c5b05030194642a09b64c Mon Sep 17 00:00:00 2001 From: Xu Zhao Date: Thu, 27 Jun 2019 03:05:58 +0000 Subject: [PATCH 2/7] OBS-URL: https://build.opensuse.org/package/show/server:messaging/telegram-desktop?expand=0&rev=91 --- telegram-desktop.spec | 3 --- 1 file changed, 3 deletions(-) diff --git a/telegram-desktop.spec b/telegram-desktop.spec index 34e1e7c..b86aea0 100644 --- a/telegram-desktop.spec +++ b/telegram-desktop.spec @@ -191,9 +191,6 @@ cp %{_sourcedir}/tdesktop.patch %{_builddir}/tdesktop-%{version} cd %{_builddir}/tdesktop-%{version} %patch0 -p1 -# Add TDESKTOP_DISABLE_GTK_INTEGRATION in file_utilties_linux.h -sed -i "1s/^/#define TDESKTOP_DISABLE_GTK_INTEGRATION\n\n/" Telegram/SourceFiles/platform/linux/file_utilities_linux.h - cp %{_sourcedir}/patch.py . && python3 ./patch.py cp %{_sourcedir}/catch.hpp ./Telegram/SourceFiles/ From 6ac769857502ba871d10f1e4a194f8b81857a43ca89f77472b2346035246e283 Mon Sep 17 00:00:00 2001 From: Xu Zhao Date: Thu, 27 Jun 2019 09:25:35 +0000 Subject: [PATCH 3/7] OBS-URL: https://build.opensuse.org/package/show/server:messaging/telegram-desktop?expand=0&rev=92 --- patch.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/patch.py b/patch.py index 3dd7e0f..577964e 100644 --- a/patch.py +++ b/patch.py @@ -269,8 +269,7 @@ def process_telegram(jsonobj): child.append("'TDESKTOP_DISABLE_AUTOUPDATE'") child.append("'TDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME'") child.append("'TDESKTOP_DISABLE_UNITY_INTEGRATION'") - # Turn on GTK support by default - # child.append("'TDESKTOP_DISABLE_GTK_INTEGRATION'") + child.append("'TDESKTOP_DISABLE_GTK_INTEGRATION'") child.append("'TDESKTOP_DISABLE_OPENAL_EFFECTS'") child.remove("'AL_LIBTYPE_STATIC'") child = jsonobj["'targets'"][0]["'include_dirs'"] From d1280407b1c008d1bdf8a084bb3364751a4f3195e10721757abb2d7292ddb8ce Mon Sep 17 00:00:00 2001 From: Marcel Kuehlhorn Date: Tue, 30 Jul 2019 18:14:02 +0000 Subject: [PATCH 4/7] Accepting request 719685 from home:tux93:branches:server:messaging Update to 1.7.15 OBS-URL: https://build.opensuse.org/request/show/719685 OBS-URL: https://build.opensuse.org/package/show/server:messaging/telegram-desktop?expand=0&rev=93 --- crl-master.zip | 4 +-- lz4-dev.zip | 3 +++ qtlottie-tdesktop.zip | 3 --- rapidjson-master.zip | 3 --- rlottie-master.zip | 3 +++ tdesktop.patch | 5 +++- telegram-desktop.changes | 24 ++++++++++++++++++ telegram-desktop.spec | 53 +++++++++++++++++++--------------------- v1.7.10.tar.gz | 3 --- v1.7.15.tar.gz | 3 +++ 10 files changed, 64 insertions(+), 40 deletions(-) create mode 100644 lz4-dev.zip delete mode 100644 qtlottie-tdesktop.zip delete mode 100644 rapidjson-master.zip create mode 100644 rlottie-master.zip delete mode 100644 v1.7.10.tar.gz create mode 100644 v1.7.15.tar.gz diff --git a/crl-master.zip b/crl-master.zip index 5d9479d..941b341 100644 --- a/crl-master.zip +++ b/crl-master.zip @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:289bd0f17bbc0e99e30c24bcc5b6fc80c23434d120e06fb9752991065720c2a0 -size 44562 +oid sha256:448a03afeb29126ffa0ca0082bbe60c015414c39cd7161e405e8e9e17dd57b17 +size 44812 diff --git a/lz4-dev.zip b/lz4-dev.zip new file mode 100644 index 0000000..00742c5 --- /dev/null +++ b/lz4-dev.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:94de55c83beb867bf947493d4b1aa255e6fb40bdd940dd1e166218f6e549a5f8 +size 380587 diff --git a/qtlottie-tdesktop.zip b/qtlottie-tdesktop.zip deleted file mode 100644 index 7b01d92..0000000 --- a/qtlottie-tdesktop.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:296d9e18974eeae97bd36d13662aff7105f5cc525c891ea7a4f9e13af5535031 -size 115478 diff --git a/rapidjson-master.zip b/rapidjson-master.zip deleted file mode 100644 index b880386..0000000 --- a/rapidjson-master.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:19abf9bd9fbbbebaa3022da4fac41f764e1ca7d64ef5752dc57b308c74a0a42c -size 1191266 diff --git a/rlottie-master.zip b/rlottie-master.zip new file mode 100644 index 0000000..6385205 --- /dev/null +++ b/rlottie-master.zip @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ad62b90b4483da079cb0f34779caa980997f6c394ab5882b660789854a1a9187 +size 8042889 diff --git a/tdesktop.patch b/tdesktop.patch index 259e562..ad8b57c 100644 --- a/tdesktop.patch +++ b/tdesktop.patch @@ -12,7 +12,7 @@ Index: tdesktop-1.2.6/Telegram/SourceFiles/qt_functions.cpp =================================================================== --- /dev/null +++ tdesktop-1.2.6/Telegram/SourceFiles/qt_functions.cpp -@@ -0,0 +1,94 @@ +@@ -0,0 +1,97 @@ +/**************************************************************************** +** +** Copyright (C) 2015 The Qt Company Ltd. @@ -53,6 +53,9 @@ Index: tdesktop-1.2.6/Telegram/SourceFiles/qt_functions.cpp + Makes a list of filters from ;;-separated text. + Used by the mac and windows implementations +*/ ++ ++#include ++ +QStringList qt_make_filter_list(const QString &filter) +{ + QString f(filter); diff --git a/telegram-desktop.changes b/telegram-desktop.changes index 04b2ebd..f75ad65 100644 --- a/telegram-desktop.changes +++ b/telegram-desktop.changes @@ -1,3 +1,27 @@ +------------------------------------------------------------------- +Fri Jul 19 17:44:40 UTC 2019 - Marcel Kuehlhorn + +- Update to 1.7.15 + * Bug fixes and other minor improvements. +- Allow GCC 9 after GCC#90949 was fixed +- Updated rlottie + +------------------------------------------------------------------- +Sun Jul 7 13:01:31 UTC 2019 - Marcel Kuehlhorn + +- Update to 1.7.13 + * Send ultra-lightweight high-quality animated stickers to + express emotion with motion. + * Receive animated stickers instantly on any connection at + just 20-30 KB per sticker. + * Enjoy smooth animations at 60 frames per second. + * Create new animated sets and upload them to @stickers for + everybody to use. + * Try out these sample stickers: t.me/addstickers/hotcherry + * Use strikethrough and underline formatting. +- Removed rapidjson and qtlottie, added rlottie and lz4, updated crl +- Disable LTO due to build failures + ------------------------------------------------------------------- Mon Jun 24 17:06:02 UTC 2019 - Marcel Kuehlhorn diff --git a/telegram-desktop.spec b/telegram-desktop.spec index b86aea0..b348c74 100644 --- a/telegram-desktop.spec +++ b/telegram-desktop.spec @@ -16,16 +16,20 @@ # -# temprarily always use gcc8, later add '0%{?suse_version} < 01550 && ' to only -# use gcc8 on leap -%if 0%{?is_opensuse} +# We need at least gcc8 or higher to build +%if 0%{?suse_version} < 01550 && 0%{?is_opensuse} %bcond_without gcc8 %else %bcond_with gcc8 %endif +# Disable LTO on TW due to build failures +%if 0%{?suse_version} > 01500 && 0%{?is_opensuse} +%define _lto_cflags %{nil} +%endif + Name: telegram-desktop -Version: 1.7.10 +Version: 1.7.15 Release: 0 Summary: Messaging application with a focus on speed and security License: GPL-3.0-only @@ -51,12 +55,13 @@ Source8: catch.hpp Source9: range-v3-master.zip # curl https://codeload.github.com/telegramdesktop/crl/zip/master -o crl-master.zip Source10: crl-master.zip -# curl https://codeload.github.com/telegramdesktop/qtlottie/zip/tdesktop -o qtlottie-tdesktop.zip -Source11: qtlottie-tdesktop.zip # curl https://codeload.github.com/Cyan4973/xxHash/zip/master -o xxHash-master.zip -Source12: xxHash-master.zip -# curl https://codeload.github.com/Tencent/rapidjson/zip/master -o rapidjson-master.zip -Source13: rapidjson-master.zip +Source11: xxHash-master.zip +# curl https://codeload.github.com/lz4/lz4/zip/dev -o lz4-dev.zip +Source12: lz4-dev.zip +# curl https://codeload.github.com/john-preston/rlottie/zip/master -o rlottie-master.zip +Source13: rlottie-master.zip + Patch0: tdesktop.patch BuildRequires: chrpath BuildRequires: cmake @@ -175,13 +180,13 @@ cp %{_sourcedir}/crl-master.zip . && unzip crl-master.zip mv crl-master crl mv crl %{_builddir}/tdesktop-%{version}/Telegram/ThirdParty/ -cp %{_sourcedir}/qtlottie-tdesktop.zip . && unzip qtlottie-tdesktop.zip -mv qtlottie-tdesktop qtlottie -mv qtlottie %{_builddir}/tdesktop-%{version}/Telegram/ThirdParty/ +cp %{_sourcedir}/rlottie-master.zip . && unzip rlottie-master.zip +mv rlottie-master rlottie +mv rlottie %{_builddir}/tdesktop-%{version}/Telegram/ThirdParty/ -cp %{_sourcedir}/rapidjson-master.zip . && unzip rapidjson-master.zip -mv rapidjson-master rapidjson -mv rapidjson %{_builddir}/tdesktop-%{version}/Telegram/ThirdParty/ +cp %{_sourcedir}/lz4-dev.zip . && unzip lz4-dev.zip +mv lz4-dev lz4 +mv lz4 %{_builddir}/tdesktop-%{version}/Telegram/ThirdParty/ cp %{_sourcedir}/xxHash-master.zip . && unzip xxHash-master.zip mv xxHash-master xxHash @@ -189,6 +194,7 @@ mv xxHash %{_builddir}/tdesktop-%{version}/Telegram/ThirdParty/ cp %{_sourcedir}/tdesktop.patch %{_builddir}/tdesktop-%{version} cd %{_builddir}/tdesktop-%{version} + %patch0 -p1 cp %{_sourcedir}/patch.py . && python3 ./patch.py @@ -237,7 +243,7 @@ cd %{_builddir}/tdesktop/Telegram/gyp cd %{_builddir}/tdesktop/out/Release %cmake .. sed -i 's,breakpad/usr/lib,breakpad%{_libdir},' ./CMakeFiles/Telegram.dir/link.txt -make %{?_smp_mflags} +%make_build chrpath --delete Telegram %install @@ -255,29 +261,20 @@ desktop-file-install \ # Install protocol install -d %{buildroot}%{_datadir}/kservices5 install -m644 %{_builddir}/tdesktop/lib/xdg/tg.protocol \ - %{buildroot}%{_datadir}/kservices5/tg.protocol + %{buildroot}%{_datadir}/kservices5/tg.protocol # Install icons for icon_size in 16 32 48 64 128 256 512; do icon_dir="%{buildroot}%{_datadir}/icons/hicolor/${icon_size}x${icon_size}/apps" install -d "${icon_dir}" install -m644 "%{_builddir}/tdesktop/Telegram/Resources/art/icon${icon_size}.png" \ - "${icon_dir}/telegram.png" + "${icon_dir}/telegram.png" done -%post -%icon_theme_cache_post -%desktop_database_post - -%postun -%icon_theme_cache_postun -%desktop_database_postun - %files -%defattr(0664,root,root,-) %license LICENSE %doc README.md -%attr(0755,root,root) %{_bindir}/%{name} +%{_bindir}/%{name} %{_datadir}/applications/telegramdesktop.desktop %dir %{_datadir}/kservices5 %{_datadir}/kservices5/tg.protocol diff --git a/v1.7.10.tar.gz b/v1.7.10.tar.gz deleted file mode 100644 index 7f40b5e..0000000 --- a/v1.7.10.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:54032b9dd864424eac2a1a95f3f4254666fc99745b90be10195eb10052ed5d67 -size 14395842 diff --git a/v1.7.15.tar.gz b/v1.7.15.tar.gz new file mode 100644 index 0000000..b8756ef --- /dev/null +++ b/v1.7.15.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:3111f6c33728fdaf19eeb02eae12fd5e460b53924325cee2c4d015bafdbf80e6 +size 14396667 From bdbc66666208a2af8044093f6a4b1b7186ff0f63bb1a9b3e2704505251c9b9ea Mon Sep 17 00:00:00 2001 From: Marcel Kuehlhorn Date: Tue, 30 Jul 2019 18:40:24 +0000 Subject: [PATCH 5/7] Accepting request 719875 from home:tux93:branches:server:messaging . OBS-URL: https://build.opensuse.org/request/show/719875 OBS-URL: https://build.opensuse.org/package/show/server:messaging/telegram-desktop?expand=0&rev=94 --- v1.7.15.tar.gz | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/v1.7.15.tar.gz b/v1.7.15.tar.gz index b8756ef..5d32929 100644 --- a/v1.7.15.tar.gz +++ b/v1.7.15.tar.gz @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:3111f6c33728fdaf19eeb02eae12fd5e460b53924325cee2c4d015bafdbf80e6 -size 14396667 +oid sha256:846c1130f61bc4465703e79a6b5f7f09e6cb6742a322084bebca200005d36c11 +size 14305405 From 2beea01bb3a248395dc803a671381b2843f127248d4ddbf83317f414f49496e2 Mon Sep 17 00:00:00 2001 From: Marcel Kuehlhorn Date: Fri, 9 Aug 2019 19:43:56 +0000 Subject: [PATCH 6/7] Accepting request 722072 from home:tux93:branches:server:messaging Update to 1.8.0 OBS-URL: https://build.opensuse.org/request/show/722072 OBS-URL: https://build.opensuse.org/package/show/server:messaging/telegram-desktop?expand=0&rev=95 --- crl-master.zip | 4 ++-- rlottie-master.zip | 4 ++-- telegram-desktop.changes | 15 +++++++++++++++ telegram-desktop.spec | 2 +- v1.7.15.tar.gz | 3 --- v1.8.0.tar.gz | 3 +++ 6 files changed, 23 insertions(+), 8 deletions(-) delete mode 100644 v1.7.15.tar.gz create mode 100644 v1.8.0.tar.gz diff --git a/crl-master.zip b/crl-master.zip index 941b341..2b7795c 100644 --- a/crl-master.zip +++ b/crl-master.zip @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:448a03afeb29126ffa0ca0082bbe60c015414c39cd7161e405e8e9e17dd57b17 -size 44812 +oid sha256:0d499bec7ab8b85676771e12cc645c12da9aaf2f4b0fafeff16b4232a78f5c6e +size 44789 diff --git a/rlottie-master.zip b/rlottie-master.zip index 6385205..eb82de0 100644 --- a/rlottie-master.zip +++ b/rlottie-master.zip @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:ad62b90b4483da079cb0f34779caa980997f6c394ab5882b660789854a1a9187 -size 8042889 +oid sha256:82490e684977c87bec153bfa4cfd4c7ad7d4914b3f8949a0d45b0d907720f6de +size 8033628 diff --git a/telegram-desktop.changes b/telegram-desktop.changes index f75ad65..89a971c 100644 --- a/telegram-desktop.changes +++ b/telegram-desktop.changes @@ -1,3 +1,18 @@ +------------------------------------------------------------------- +Fri Aug 9 17:23:11 UTC 2019 - Marcel Kuehlhorn + +- Update to 1.8.0 + * Right click the Send button to send any message without sound - + in case the recipient is sleeping. + * Enable Slow Mode in Group Permissions to control how frequently + members can post. + * Set custom titles for group admins - like 'Founder', 'CFO' or + 'Spam Fighter'. + * Toggle looped playback for animated stickers in Chat Settings. + * Send a single :heart:, :like:, :unamused:, :flushed: or :party: + to add a mighty animated emoji to the chat. +- Updated crl and rlottie + ------------------------------------------------------------------- Fri Jul 19 17:44:40 UTC 2019 - Marcel Kuehlhorn diff --git a/telegram-desktop.spec b/telegram-desktop.spec index b348c74..9e0168e 100644 --- a/telegram-desktop.spec +++ b/telegram-desktop.spec @@ -29,7 +29,7 @@ %endif Name: telegram-desktop -Version: 1.7.15 +Version: 1.8.0 Release: 0 Summary: Messaging application with a focus on speed and security License: GPL-3.0-only diff --git a/v1.7.15.tar.gz b/v1.7.15.tar.gz deleted file mode 100644 index 5d32929..0000000 --- a/v1.7.15.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:846c1130f61bc4465703e79a6b5f7f09e6cb6742a322084bebca200005d36c11 -size 14305405 diff --git a/v1.8.0.tar.gz b/v1.8.0.tar.gz new file mode 100644 index 0000000..5bddc07 --- /dev/null +++ b/v1.8.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7e522ab9dc1f606cf941bc14bb8061956bb1a28ec217c2639752cfe9853a17ec +size 14332986 From 2164b8a91d5b3498cf945b13a29ad38acd2792aaacbf0401ceaacc309c81d302 Mon Sep 17 00:00:00 2001 From: Marcel Kuehlhorn Date: Sat, 10 Aug 2019 05:04:11 +0000 Subject: [PATCH 7/7] Accepting request 722118 from home:tux93:branches:server:messaging Update to 1.8.1 OBS-URL: https://build.opensuse.org/request/show/722118 OBS-URL: https://build.opensuse.org/package/show/server:messaging/telegram-desktop?expand=0&rev=96 --- telegram-desktop.changes | 6 ++++++ telegram-desktop.spec | 2 +- v1.8.0.tar.gz | 3 --- v1.8.1.tar.gz | 3 +++ 4 files changed, 10 insertions(+), 4 deletions(-) delete mode 100644 v1.8.0.tar.gz create mode 100644 v1.8.1.tar.gz diff --git a/telegram-desktop.changes b/telegram-desktop.changes index 89a971c..bc72a62 100644 --- a/telegram-desktop.changes +++ b/telegram-desktop.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Aug 10 04:11:18 UTC 2019 - Marcel Kuehlhorn + +- Update to 1.8.1 + * Bug fixes and other minor improvements. + ------------------------------------------------------------------- Fri Aug 9 17:23:11 UTC 2019 - Marcel Kuehlhorn diff --git a/telegram-desktop.spec b/telegram-desktop.spec index 9e0168e..ad5bf30 100644 --- a/telegram-desktop.spec +++ b/telegram-desktop.spec @@ -29,7 +29,7 @@ %endif Name: telegram-desktop -Version: 1.8.0 +Version: 1.8.1 Release: 0 Summary: Messaging application with a focus on speed and security License: GPL-3.0-only diff --git a/v1.8.0.tar.gz b/v1.8.0.tar.gz deleted file mode 100644 index 5bddc07..0000000 --- a/v1.8.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7e522ab9dc1f606cf941bc14bb8061956bb1a28ec217c2639752cfe9853a17ec -size 14332986 diff --git a/v1.8.1.tar.gz b/v1.8.1.tar.gz new file mode 100644 index 0000000..23e9d72 --- /dev/null +++ b/v1.8.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4fa1f20d8b4e0a006067fd042b0e85b5df252e9142d2f9b020fa4013d547701e +size 14334229