forked from pool/telegram-desktop
Upgrade to 1.0.24
OBS-URL: https://build.opensuse.org/package/show/server:messaging/telegram-desktop?expand=0&rev=14
This commit is contained in:
parent
15e6496913
commit
eb357d3f70
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user