diff --git a/_service b/_service new file mode 100644 index 0000000..dda6dac --- /dev/null +++ b/_service @@ -0,0 +1,35 @@ + + + + git + https://github.com/telegramdesktop/tdesktop + tdesktop + v5.10.0 + @PARENT_TAG@ + v(.*) + \1 + + + + git + https://github.com/ada-url/ada + ada + v2.9.0 + _none_ + + + + git + https://github.com/xuzhao9/tg_owt + tg_owt + 8198c4d8b91e22d68eb5c7327fd408e3b6abcc79 + _none_ + + + + + zstd + *.tar + + + diff --git a/ada-packager.sh b/ada-packager.sh deleted file mode 100644 index 1853950..0000000 --- a/ada-packager.sh +++ /dev/null @@ -1,13 +0,0 @@ -#! /bin/bash - -# ada version -# https://github.com/telegramdesktop/tdesktop/blob/dev/Telegram/build/docker/centos_env/Dockerfile#L799 -rm -rf ada \ - && git clone -b v2.9.0 --depth=1 https://github.com/ada-url/ada.git \ - && cd ada \ - && rm -rf .git \ - && cd .. \ - && mv ada ada-v2.9.0 \ - && zip ada-v2.9.0.zip -r ada-v2.9.0 -x '*.git*' \ - -rm -rf ada-v2.9.0 diff --git a/ada-v2.9.0.zip b/ada-v2.9.0.zip deleted file mode 100644 index bcb3ab2..0000000 --- a/ada-v2.9.0.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7b6fc58c3e00c4629b8c4d890aca2f1451885a8c28bbedec38f5d3960ad04cb7 -size 860638 diff --git a/ada.tar.zst b/ada.tar.zst new file mode 100644 index 0000000..18e139c --- /dev/null +++ b/ada.tar.zst @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5204e3b21a8d62fe3cb77c71659d74c8df00956f0d2fd853da85b7513f8f1ad8 +size 319285 diff --git a/tdesktop-5.10.0.tar.zst b/tdesktop-5.10.0.tar.zst new file mode 100644 index 0000000..e7e2f61 --- /dev/null +++ b/tdesktop-5.10.0.tar.zst @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f5a671978d98483c4f9bed9c1148c605d52e8863e6472044deeaebb889b9c923 +size 62008169 diff --git a/tdesktop-5.9.0-full.tar.gz b/tdesktop-5.9.0-full.tar.gz deleted file mode 100644 index f6a483e..0000000 --- a/tdesktop-5.9.0-full.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c9e74a9b49284c0d4197f0be7e02415e14c4f8bf46403d0663d39f44d7ac2fbc -size 72447849 diff --git a/telegram-desktop.changes b/telegram-desktop.changes index 1ff3428..b4d7f1c 100644 --- a/telegram-desktop.changes +++ b/telegram-desktop.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Fri Jan 3 19:54:03 UTC 2025 - Xu Zhao + +- Update to version 5.10.0 + * Collectible Gifts. + * Reactions for Service Messages. +- Download and compress tarballs with obs service + * Remove ada-packager.sh + * Remove tg_owt-packager.sh + ------------------------------------------------------------------- Sun Nov 17 09:24:53 UTC 2024 - Xu Zhao diff --git a/telegram-desktop.spec b/telegram-desktop.spec index 1877859..f54ac9f 100644 --- a/telegram-desktop.spec +++ b/telegram-desktop.spec @@ -1,7 +1,7 @@ # # spec file for package telegram-desktop # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -36,30 +36,26 @@ %define _dwz_max_die_limit 200000000 %define qt_major_version 6 +%define srcext tar.zst Name: telegram-desktop -Version: 5.9.0 +Version: 5.10.0 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.sh to prepare tg_owt-master.zip -# Usage: bash tg_owt-packager.sh -Source1: tg_owt-packager.sh -Source2: tg_owt-master.zip -Source3: ada-v2.9.0.zip -# Usage: bash ads-packager.sh -Source4: ada-packager.sh -Source5: tg_owt-dlopen-headers.tar.gz +Source0: tdesktop-%{version}.%{srcext} +Source1: tg_owt.%{srcext} +Source2: ada.%{srcext} +Source3: tg_owt-dlopen-headers.tar.gz %if %{with use_system_rnnoise} # PATCH-FIX-OPENSUSE Patch1: 0001-use-bundled-webrtc.patch %else -Source6: rnnoise-git20210122.tar.gz +Source4: rnnoise-git20210122.tar.gz # PATCH-FIX-OPENSUSE -Patch1: 0002-use-bundled-rnnoise-expected-gsl-ranges-webrtc.patch +Patch2: 0002-use-bundled-rnnoise-expected-gsl-ranges-webrtc.patch %endif # PATCH-FIX-OPENSUSE Patch3: 0003-revert-webrtc-cmake-target-file.patch @@ -187,6 +183,7 @@ BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool %endif +BuildRequires: zstd BuildRequires: pkgconfig(tslib) BuildRequires: pkgconfig(vdpau) BuildRequires: pkgconfig(vpx) @@ -226,27 +223,30 @@ always immediately published, whereas its server-side code is closed-source and The service also provides APIs to independent developers. %prep -%setup -q -n tdesktop-%{version}-full +%setup -q -n tdesktop-%{version} %autopatch -p1 -M 6 cd %{_builddir} mkdir -p %{_builddir}/Libraries -unzip -q %{S:3} -mv ada-v2.9.0 %{_builddir}/Libraries/ada - +# -q: quiet mode +# -T: do not perform default archive unpacking +# -D: do not delete tdesktop-%{version} directory +# -b : unpack nth sources before changing the directory +%setup -q -T -D -b 1 -n tdesktop-%{version} +mv ../tg_owt %{_builddir}/Libraries +%setup -q -T -D -b 2 -n tdesktop-%{version} +mv ../ada %{_builddir}/Libraries +%setup -q -T -D -b 3 -n tdesktop-%{version} mkdir -p %{_builddir}/Libraries/openh264/include -tar xzf %{S:5} -mv wels %{_builddir}/Libraries/openh264/include/ +mv ../wels %{_builddir}/Libraries/openh264/include # If not TW, unpack rnnoise source %if %{without use_system_rnnoise} -%setup -q -T -D -b 6 -n tdesktop-%{version}-full +%setup -q -T -D -b 4 -n tdesktop-%{version} mv ../rnnoise-git20210122 ../Libraries/rnnoise %endif -unzip -q %{SOURCE2} -mv tg_owt-master Libraries/tg_owt -pushd Libraries/tg_owt +pushd %{_builddir}/Libraries/tg_owt %autopatch -p1 7 popd @@ -299,7 +299,7 @@ cmake -G Ninja \ sed -i 's,gnu++2a,gnu++17,g' build.ninja ninja -cd %{_builddir}/tdesktop-%{version}-full +cd %{_builddir}/tdesktop-%{version} # 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. diff --git a/tg_owt-master.zip b/tg_owt-master.zip deleted file mode 100644 index 4c78f2e..0000000 --- a/tg_owt-master.zip +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:d341ad19551737ac3a3caa0381a026b4170a9a273aadb2dfd237c1a832895d39 -size 22874383 diff --git a/tg_owt-packager.sh b/tg_owt-packager.sh deleted file mode 100644 index 8b05059..0000000 --- a/tg_owt-packager.sh +++ /dev/null @@ -1,22 +0,0 @@ -#! /bin/bash - -# tg_owt origin -# get it from https://github.com/telegramdesktop/tdesktop/blob/dev/Telegram/build/docker/centos_env/Dockerfile around line 761 -tg_owt_origin="8198c4d8b91e22d68eb5c7327fd408e3b6abcc79" - -rm -rf tg_owt \ - && mkdir tg_owt \ - && cd tg_owt \ - && git init tg_owt \ - && cd tg_owt \ - && git remote add origin https://github.com/xuzhao9/tg_owt.git \ - && git fetch --depth=1 origin "$tg_owt_origin" \ - && git reset --hard FETCH_HEAD \ - && git submodule update --init --recursive --depth=1 \ - && rm -rf .git \ - && cd .. \ - && mv tg_owt tg_owt-master \ - && zip tg_owt-master.zip -r tg_owt-master -x '*.git*' \ - && mv tg_owt-master.zip .. - -cd ..; rm -rf tg_owt diff --git a/tg_owt.tar.zst b/tg_owt.tar.zst new file mode 100644 index 0000000..d391dc8 --- /dev/null +++ b/tg_owt.tar.zst @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:63272e4ce309381962248ef75e704e32f753ea016ef6f98f54e1c25df6b34dfc +size 13348903