diff --git a/0001-use-bundled-webrtc.patch b/0001-use-bundled-webrtc.patch index 65ee2c9..1e426ba 100644 --- a/0001-use-bundled-webrtc.patch +++ b/0001-use-bundled-webrtc.patch @@ -1,5 +1,7 @@ ---- a/cmake/external/webrtc/CMakeLists.txt -+++ b/cmake/external/webrtc/CMakeLists.txt +Index: tdesktop-4.4.0-full/cmake/external/webrtc/CMakeLists.txt +=================================================================== +--- tdesktop-4.4.0-full.orig/cmake/external/webrtc/CMakeLists.txt ++++ tdesktop-4.4.0-full/cmake/external/webrtc/CMakeLists.txt @@ -7,7 +7,7 @@ add_library(external_webrtc INTERFACE IMPORTED GLOBAL) add_library(desktop-app::external_webrtc ALIAS external_webrtc) diff --git a/0003-revert-webrtc-cmake-target-file.patch b/0003-revert-webrtc-cmake-target-file.patch index 41e3e24..d47e857 100644 --- a/0003-revert-webrtc-cmake-target-file.patch +++ b/0003-revert-webrtc-cmake-target-file.patch @@ -1,7 +1,8 @@ -diff -Nur tdesktop-3.7.3-full/cmake/external/webrtc/CMakeLists.txt new/cmake/external/webrtc/CMakeLists.txt ---- tdesktop-3.7.3-full/cmake/external/webrtc/CMakeLists.txt 2022-04-19 14:57:00.000000000 +0200 -+++ new/cmake/external/webrtc/CMakeLists.txt 2022-05-02 18:53:40.393350191 +0200 -@@ -93,11 +93,8 @@ +Index: tdesktop-4.4.0-full/cmake/external/webrtc/CMakeLists.txt +=================================================================== +--- tdesktop-4.4.0-full.orig/cmake/external/webrtc/CMakeLists.txt ++++ tdesktop-4.4.0-full/cmake/external/webrtc/CMakeLists.txt +@@ -94,11 +94,8 @@ INTERFACE ${webrtc_libs_list} $ $ diff --git a/0004-use-dynamic-x-libraries.patch b/0004-use-dynamic-x-libraries.patch index dc8b81f..38010f0 100644 --- a/0004-use-dynamic-x-libraries.patch +++ b/0004-use-dynamic-x-libraries.patch @@ -1,6 +1,8 @@ ---- a/cmake/external/webrtc/CMakeLists.txt -+++ b/cmake/external/webrtc/CMakeLists.txt -@@ -105,7 +105,7 @@ +Index: tdesktop-4.4.0-full/cmake/external/webrtc/CMakeLists.txt +=================================================================== +--- tdesktop-4.4.0-full.orig/cmake/external/webrtc/CMakeLists.txt ++++ tdesktop-4.4.0-full/cmake/external/webrtc/CMakeLists.txt +@@ -110,7 +110,7 @@ elseif (APPLE) ) else() # Required for desktop_capture diff --git a/0005-qt6-fixes.patch b/0005-qt6-fixes.patch new file mode 100644 index 0000000..8b6e325 --- /dev/null +++ b/0005-qt6-fixes.patch @@ -0,0 +1,19 @@ +--- Telegram/lib_ui/ui/widgets/popup_menu.cpp.orig 2022-11-12 11:12:02.000000000 +0000 ++++ Telegram/lib_ui/ui/widgets/popup_menu.cpp 2022-12-05 07:53:47.978014760 +0000 +@@ -637,14 +637,14 @@ bool PopupMenu::eventFilter(QObject *o, + event->device(), + event->touchPoints(), + event->timestamp())); +-#elif QT_VERSION < QT_VERSION_CHECK(6, 3, 0) // Qt < 6.0.0 ++#elif QT_VERSION < QT_VERSION_CHECK(6, 2, 2) // Qt < 6.0.0 + e->setAccepted( + QApplicationPrivate::translateRawTouchEvent( + this, + event->pointingDevice(), + const_cast &>(event->points()), + event->timestamp())); +-#else // Qt < 6.3.0 ++#else // Qt < 6.2.0 + e->setAccepted( + QApplicationPrivate::translateRawTouchEvent(this, event)); + #endif diff --git a/tdesktop-4.3.4-full.tar.gz b/tdesktop-4.3.4-full.tar.gz deleted file mode 100644 index 6f66f74..0000000 --- a/tdesktop-4.3.4-full.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:aa11c52f7812c6e9a5ccf2e3a31d526a1db5562c1bbcb571aa70d681ca909b93 -size 50030732 diff --git a/tdesktop-4.4.1-full.tar.gz b/tdesktop-4.4.1-full.tar.gz new file mode 100644 index 0000000..180cfad --- /dev/null +++ b/tdesktop-4.4.1-full.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:76981e32541c42b3212427e9abb4db2a6f55a14eaba31b3d7ad7d3d5ed8008b1 +size 50077498 diff --git a/telegram-desktop.changes b/telegram-desktop.changes index d2b4e58..025abe6 100644 --- a/telegram-desktop.changes +++ b/telegram-desktop.changes @@ -1,3 +1,53 @@ +------------------------------------------------------------------- +Thu Dec 8 08:44:55 UTC 2022 - Manfred Hollstein + +- Update to 4.4.1: + * Bug fixes and other minor improvements. +- Refresh 0005-qt6-fixes.patch + +------------------------------------------------------------------- +Wed Dec 7 19:54:15 UTC 2022 - Manfred Hollstein + +- Refresh 0005-qt6-fixes.patch + +------------------------------------------------------------------- +Wed Dec 7 08:00:59 UTC 2022 - Paolo Stivanin + +- Update to 4.4.0: + * You can set a Global Auto-Delete Timer for all new chats and + groups you create. + * New messages will be deleted after 1 day, week, month - or a + custom duration you choose. + * The new menu in Settings > Privacy & Security > Auto-Delete + Messages also lets you set up Auto-Delete for any of your + existing chats faster. + * Admins of groups with 100+ members can organize discussions + into separate topics. + * Topics now have a two-column layout that keeps recent chats + easily accessible as you browse topics. + * Previews of topic messages in the chat list work like a + button - click to jump to the last updated topic. + * Up to 5 topics can be pinned to the top of the list. + * Each topic now supports multiple pinned messages. + * The View as Messages mode now shows which topic + each message belongs to. + * Badge counters for topics you never opened will have + a lighter, less distracting color. + * A new General topic is now included by default, containing + service messages and the earlier message history from the group. + * Admins can rename the General topic. + * Large groups can enable Aggressive Filtering in + Manage Group > Administrators to remove more spam with + automated algorithms. + * Admins help improve filtering by reporting any false + positives in Recent Actions. + +------------------------------------------------------------------- +Mon Dec 5 07:58:42 UTC 2022 - Manfred Hollstein + +- Add 0005-qt6-fixes.patch + * Fix the build on openSUSE 15.4 + ------------------------------------------------------------------- Tue Nov 29 11:49:02 UTC 2022 - Илья Индиго diff --git a/telegram-desktop.spec b/telegram-desktop.spec index cbda3d4..f390517 100644 --- a/telegram-desktop.spec +++ b/telegram-desktop.spec @@ -36,7 +36,7 @@ %define qt_major_version 6 Name: telegram-desktop -Version: 4.3.4 +Version: 4.4.1 Release: 0 Summary: Messaging application with a focus on speed and security License: GPL-3.0-only @@ -63,6 +63,8 @@ Patch4: 0004-use-dynamic-x-libraries.patch # 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. +# PATCH-FIX-OPENSUSE +Patch5: 0005-qt6-fixes.patch ExcludeArch: %ix86 aarch64_ilp32 ppc riscv32 BuildRequires: appstream-glib BuildRequires: chrpath @@ -209,6 +211,7 @@ The service also provides APIs to independent developers. %patch1 -p1 %patch3 -p1 %patch4 -p1 +%patch5 -p0 mkdir ../Libraries # If not TW, unpack rnnoise source diff --git a/tg_owt-master.zip b/tg_owt-master.zip index 6adfa1f..ad18b48 100644 --- a/tg_owt-master.zip +++ b/tg_owt-master.zip @@ -1,3 +1,3 @@ version https://git-lfs.github.com/spec/v1 -oid sha256:5bbc665aba2f680aa405624e10a898cdf152b3aae0a12983cfaea1e819bf7854 -size 23789230 +oid sha256:737bc7cf7d704f8479955e9ae8f274e2558ead5aabf9a00b54d46e008c670577 +size 23789403 diff --git a/tg_owt-packager.py b/tg_owt-packager.py index fa3b92e..78ffb2b 100644 --- a/tg_owt-packager.py +++ b/tg_owt-packager.py @@ -63,7 +63,7 @@ def load_submodules(repo): def compress_package(repo_dir): basename = os.path.basename(repo_dir) - zipname = f"{basename}.zip" + zipname = basename + ".zip" path = Path(repo_dir).parent command = ['zip', zipname, '-r', basename, '-x', '*.git*'] subprocess.check_call(command, cwd=path)