Accepting request 1234803 from server:messaging
OBS-URL: https://build.opensuse.org/request/show/1234803 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/telegram-desktop?expand=0&rev=127
This commit is contained in:
commit
a83646817b
35
_service
Normal file
35
_service
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
<services>
|
||||||
|
|
||||||
|
<service name="obs_scm" mode="manual">
|
||||||
|
<param name="scm">git</param>
|
||||||
|
<param name="url">https://github.com/telegramdesktop/tdesktop</param>
|
||||||
|
<param name="filename">tdesktop</param>
|
||||||
|
<param name="revision">v5.10.0</param>
|
||||||
|
<param name="versionformat">@PARENT_TAG@</param>
|
||||||
|
<param name="versionrewrite-pattern">v(.*)</param>
|
||||||
|
<param name="versionrewrite-replacement">\1</param>
|
||||||
|
</service>
|
||||||
|
|
||||||
|
<service name="obs_scm" mode="manual">
|
||||||
|
<param name="scm">git</param>
|
||||||
|
<param name="url">https://github.com/ada-url/ada</param>
|
||||||
|
<param name="filename">ada</param>
|
||||||
|
<param name="revision">v2.9.0</param>
|
||||||
|
<param name="version">_none_</param>
|
||||||
|
</service>
|
||||||
|
|
||||||
|
<service name="obs_scm" mode="manual">
|
||||||
|
<param name="scm">git</param>
|
||||||
|
<param name="url">https://github.com/xuzhao9/tg_owt</param>
|
||||||
|
<param name="filename">tg_owt</param>
|
||||||
|
<param name="revision">8198c4d8b91e22d68eb5c7327fd408e3b6abcc79</param>
|
||||||
|
<param name="version">_none_</param>
|
||||||
|
</service>
|
||||||
|
|
||||||
|
<service name="tar" mode="manual" />
|
||||||
|
<service name="recompress" mode="manual">
|
||||||
|
<param name="compression">zstd</param>
|
||||||
|
<param name="file">*.tar</param>
|
||||||
|
</service>
|
||||||
|
|
||||||
|
</services>
|
@ -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
|
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:7b6fc58c3e00c4629b8c4d890aca2f1451885a8c28bbedec38f5d3960ad04cb7
|
|
||||||
size 860638
|
|
3
ada.tar.zst
Normal file
3
ada.tar.zst
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:5204e3b21a8d62fe3cb77c71659d74c8df00956f0d2fd853da85b7513f8f1ad8
|
||||||
|
size 319285
|
3
tdesktop-5.10.0.tar.zst
Normal file
3
tdesktop-5.10.0.tar.zst
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:f5a671978d98483c4f9bed9c1148c605d52e8863e6472044deeaebb889b9c923
|
||||||
|
size 62008169
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:c9e74a9b49284c0d4197f0be7e02415e14c4f8bf46403d0663d39f44d7ac2fbc
|
|
||||||
size 72447849
|
|
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Jan 3 19:54:03 UTC 2025 - Xu Zhao <i@xuzhao.net>
|
||||||
|
|
||||||
|
- 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 <i@xuzhao.net>
|
Sun Nov 17 09:24:53 UTC 2024 - Xu Zhao <i@xuzhao.net>
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package telegram-desktop
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -36,30 +36,26 @@
|
|||||||
%define _dwz_max_die_limit 200000000
|
%define _dwz_max_die_limit 200000000
|
||||||
|
|
||||||
%define qt_major_version 6
|
%define qt_major_version 6
|
||||||
|
%define srcext tar.zst
|
||||||
|
|
||||||
Name: telegram-desktop
|
Name: telegram-desktop
|
||||||
Version: 5.9.0
|
Version: 5.10.0
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Messaging application with a focus on speed and security
|
Summary: Messaging application with a focus on speed and security
|
||||||
License: GPL-3.0-only
|
License: GPL-3.0-only
|
||||||
Group: Productivity/Networking/Instant Messenger
|
Group: Productivity/Networking/Instant Messenger
|
||||||
URL: https://github.com/telegramdesktop/tdesktop
|
URL: https://github.com/telegramdesktop/tdesktop
|
||||||
Source0: https://github.com/telegramdesktop/tdesktop/releases/download/v%{version}/tdesktop-%{version}-full.tar.gz
|
Source0: tdesktop-%{version}.%{srcext}
|
||||||
# Use tg_owt-packager.sh to prepare tg_owt-master.zip
|
Source1: tg_owt.%{srcext}
|
||||||
# Usage: bash tg_owt-packager.sh
|
Source2: ada.%{srcext}
|
||||||
Source1: tg_owt-packager.sh
|
Source3: tg_owt-dlopen-headers.tar.gz
|
||||||
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
|
|
||||||
%if %{with use_system_rnnoise}
|
%if %{with use_system_rnnoise}
|
||||||
# PATCH-FIX-OPENSUSE
|
# PATCH-FIX-OPENSUSE
|
||||||
Patch1: 0001-use-bundled-webrtc.patch
|
Patch1: 0001-use-bundled-webrtc.patch
|
||||||
%else
|
%else
|
||||||
Source6: rnnoise-git20210122.tar.gz
|
Source4: rnnoise-git20210122.tar.gz
|
||||||
# PATCH-FIX-OPENSUSE
|
# PATCH-FIX-OPENSUSE
|
||||||
Patch1: 0002-use-bundled-rnnoise-expected-gsl-ranges-webrtc.patch
|
Patch2: 0002-use-bundled-rnnoise-expected-gsl-ranges-webrtc.patch
|
||||||
%endif
|
%endif
|
||||||
# PATCH-FIX-OPENSUSE
|
# PATCH-FIX-OPENSUSE
|
||||||
Patch3: 0003-revert-webrtc-cmake-target-file.patch
|
Patch3: 0003-revert-webrtc-cmake-target-file.patch
|
||||||
@ -187,6 +183,7 @@ BuildRequires: autoconf
|
|||||||
BuildRequires: automake
|
BuildRequires: automake
|
||||||
BuildRequires: libtool
|
BuildRequires: libtool
|
||||||
%endif
|
%endif
|
||||||
|
BuildRequires: zstd
|
||||||
BuildRequires: pkgconfig(tslib)
|
BuildRequires: pkgconfig(tslib)
|
||||||
BuildRequires: pkgconfig(vdpau)
|
BuildRequires: pkgconfig(vdpau)
|
||||||
BuildRequires: pkgconfig(vpx)
|
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.
|
The service also provides APIs to independent developers.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n tdesktop-%{version}-full
|
%setup -q -n tdesktop-%{version}
|
||||||
%autopatch -p1 -M 6
|
%autopatch -p1 -M 6
|
||||||
|
|
||||||
cd %{_builddir}
|
cd %{_builddir}
|
||||||
mkdir -p %{_builddir}/Libraries
|
mkdir -p %{_builddir}/Libraries
|
||||||
unzip -q %{S:3}
|
# -q: quiet mode
|
||||||
mv ada-v2.9.0 %{_builddir}/Libraries/ada
|
# -T: do not perform default archive unpacking
|
||||||
|
# -D: do not delete tdesktop-%{version} directory
|
||||||
|
# -b <n>: 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
|
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 not TW, unpack rnnoise source
|
||||||
%if %{without use_system_rnnoise}
|
%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
|
mv ../rnnoise-git20210122 ../Libraries/rnnoise
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
unzip -q %{SOURCE2}
|
pushd %{_builddir}/Libraries/tg_owt
|
||||||
mv tg_owt-master Libraries/tg_owt
|
|
||||||
pushd Libraries/tg_owt
|
|
||||||
%autopatch -p1 7
|
%autopatch -p1 7
|
||||||
popd
|
popd
|
||||||
|
|
||||||
@ -299,7 +299,7 @@ cmake -G Ninja \
|
|||||||
sed -i 's,gnu++2a,gnu++17,g' build.ninja
|
sed -i 's,gnu++2a,gnu++17,g' build.ninja
|
||||||
ninja
|
ninja
|
||||||
|
|
||||||
cd %{_builddir}/tdesktop-%{version}-full
|
cd %{_builddir}/tdesktop-%{version}
|
||||||
# Use the official API key that telegram uses for their snap builds:
|
# Use the official API key that telegram uses for their snap builds:
|
||||||
# https://github.com/telegramdesktop/tdesktop/blob/8fab9167beb2407c1153930ed03a4badd0c2b59f/snap/snapcraft.yaml#L87-L88
|
# https://github.com/telegramdesktop/tdesktop/blob/8fab9167beb2407c1153930ed03a4badd0c2b59f/snap/snapcraft.yaml#L87-L88
|
||||||
# Thanks to @primeos on Github.
|
# Thanks to @primeos on Github.
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:d341ad19551737ac3a3caa0381a026b4170a9a273aadb2dfd237c1a832895d39
|
|
||||||
size 22874383
|
|
@ -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
|
|
3
tg_owt.tar.zst
Normal file
3
tg_owt.tar.zst
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:63272e4ce309381962248ef75e704e32f753ea016ef6f98f54e1c25df6b34dfc
|
||||||
|
size 13348903
|
Loading…
x
Reference in New Issue
Block a user