From eb357d3f704215de4306c1f5b0467838627c74286eb015373d78f3288cc71c74 Mon Sep 17 00:00:00 2001 From: Xu Zhao Date: Mon, 20 Mar 2017 19:53:42 +0000 Subject: [PATCH] Upgrade to 1.0.24 OBS-URL: https://build.opensuse.org/package/show/server:messaging/telegram-desktop?expand=0&rev=14 --- telegram-desktop.spec | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/telegram-desktop.spec b/telegram-desktop.spec index 4b5c532..3167e1f 100644 --- a/telegram-desktop.spec +++ b/telegram-desktop.spec @@ -1,6 +1,6 @@ Name: telegram-desktop Summary: A new era of messaging -Version: 1.0.14 +Version: 1.0.24 Release: 1 License: GPL-3.0 URL: https://github.com/telegramdesktop/tdesktop @@ -9,11 +9,13 @@ Source1: breakpad-master.tar.gz Source2: linux-syscall-support-refs-heads-master.tar.gz Source3: gyp-master.tar.gz Source4: patch-%{version}.diff +Source5: GSL-master.zip +Source6: variant-master.zip ExclusiveArch: x86_64 BuildRequires: libtelegram-qt5-devel-static BuildRequires: libappindicator-devel -BuildRequires: gcc5-c++ +BuildRequires: gcc-c++ BuildRequires: libtiff-devel BuildRequires: libmng-devel BuildRequires: pcre-devel @@ -27,6 +29,7 @@ BuildRequires: cmake BuildRequires: libopus-devel BuildRequires: xorg-x11-devel BuildRequires: xz +BuildRequires: unzip BuildRequires: openal-soft-devel BuildRequires: xcb-util-wm-devel BuildRequires: xcb-util-image-devel @@ -73,20 +76,29 @@ Requires: jasper Telegram Desktop app. A new era of messaging. %prep + %setup -n tdesktop-%{version} cp %{_sourcedir}/patch-%{version}.diff . +rm -rf %{_builddir}/tdesktop-%{version}/third_party/* + +cp %{_sourcedir}/GSL-master.zip . && unzip GSL-master.zip +mv GSL-master GSL +mv GSL %{_builddir}/tdesktop-%{version}/third_party/ + +cp %{_sourcedir}/variant-master.zip . && unzip variant-master.zip +mv variant-master variant +mv variant %{_builddir}/tdesktop-%{version}/third_party/ + %setup -T -c -n breakpad -b 1 %setup -T -c -n breakpad-lss -b 2 %setup -T -c -n gyp -b 3 %build + # generate patch # git diff --relative-directory=./a a b # Setup compiler variables -export CC="gcc-5" -export CXX="g++-5" -export AR="gcc-ar-5" mv %{_builddir}/tdesktop-%{version} %{_builddir}/tdesktop mkdir -p %{_builddir}/Libraries @@ -126,7 +138,7 @@ cd %{_builddir}/tdesktop/Telegram/gyp # build Telegram cd %{_builddir}/tdesktop/out/Release -cmake . -DCMAKE_ASM_COMPILER=${AR} -DCMAKE_CXX_COMPILER=${CXX} +cmake . make chrpath --delete Telegram