forked from pool/telegram-desktop
Accepting request 505042 from home:badshah400:branches:server:messaging
Update to latest version 1.1.7 OBS-URL: https://build.opensuse.org/request/show/505042 OBS-URL: https://build.opensuse.org/package/show/server:messaging/telegram-desktop?expand=0&rev=17
This commit is contained in:
parent
00753864fc
commit
a03f364952
3
libtgvoip.zip
Normal file
3
libtgvoip.zip
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:4af30139708aa661daf6a9b17a3e790870b6492c156567c83cea1c780b909014
|
||||
size 562789
|
@ -1,24 +1,7 @@
|
||||
Index: tdesktop-1.0.29/Telegram/gyp/Telegram.gyp
|
||||
Index: tdesktop-1.1.7/Telegram/gyp/qt.gypi
|
||||
===================================================================
|
||||
--- tdesktop-1.0.29.orig/Telegram/gyp/Telegram.gyp
|
||||
+++ tdesktop-1.0.29/Telegram/gyp/Telegram.gyp
|
||||
@@ -82,8 +82,11 @@
|
||||
],
|
||||
|
||||
'defines': [
|
||||
- 'AL_LIBTYPE_STATIC',
|
||||
'<!@(python -c "for s in \'<(build_defines)\'.split(\',\'): print(s)")',
|
||||
+ '__STDC_FORMAT_MACROS',
|
||||
+ 'TDESKTOP_DISABLE_AUTOUPDATE',
|
||||
+ 'TDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME',
|
||||
+ 'TDESKTOP_DISABLE_UNITY_INTEGRATION',
|
||||
],
|
||||
|
||||
'include_dirs': [
|
||||
Index: tdesktop-1.0.29/Telegram/gyp/qt.gypi
|
||||
===================================================================
|
||||
--- tdesktop-1.0.29.orig/Telegram/gyp/qt.gypi
|
||||
+++ tdesktop-1.0.29/Telegram/gyp/qt.gypi
|
||||
--- tdesktop-1.1.7.orig/Telegram/gyp/qt.gypi
|
||||
+++ tdesktop-1.1.7/Telegram/gyp/qt.gypi
|
||||
@@ -38,7 +38,6 @@
|
||||
'Qt5Network',
|
||||
'Qt5Widgets',
|
||||
@ -103,10 +86,10 @@ Index: tdesktop-1.0.29/Telegram/gyp/qt.gypi
|
||||
'-pthread',
|
||||
'-g',
|
||||
'-rdynamic',
|
||||
Index: tdesktop-1.0.29/Telegram/gyp/telegram_linux.gypi
|
||||
Index: tdesktop-1.1.7/Telegram/gyp/telegram_linux.gypi
|
||||
===================================================================
|
||||
--- tdesktop-1.0.29.orig/Telegram/gyp/telegram_linux.gypi
|
||||
+++ tdesktop-1.0.29/Telegram/gyp/telegram_linux.gypi
|
||||
--- tdesktop-1.1.7.orig/Telegram/gyp/telegram_linux.gypi
|
||||
+++ tdesktop-1.1.7/Telegram/gyp/telegram_linux.gypi
|
||||
@@ -21,11 +21,20 @@
|
||||
'conditions': [[ 'build_linux', {
|
||||
'variables': {
|
||||
@ -133,8 +116,12 @@ Index: tdesktop-1.0.29/Telegram/gyp/telegram_linux.gypi
|
||||
],
|
||||
'linux_path_ffmpeg%': '/usr/local',
|
||||
'linux_path_openal%': '/usr/local',
|
||||
@@ -35,46 +44,26 @@
|
||||
@@ -33,50 +42,30 @@
|
||||
'linux_path_va%': '/usr/local',
|
||||
'linux_path_vdpau%': '/usr/local',
|
||||
'linux_path_breakpad%': '<(libs_loc)/breakpad',
|
||||
- 'linux_path_opus_include%': '<(libs_loc)/opus/include',
|
||||
+ 'linux_path_opus_include%': '/usr/include/opus',
|
||||
},
|
||||
'include_dirs': [
|
||||
- '/usr/local/include',
|
||||
@ -142,6 +129,7 @@ Index: tdesktop-1.0.29/Telegram/gyp/telegram_linux.gypi
|
||||
- '<(linux_path_openal)/include',
|
||||
+ '/usr/include',
|
||||
'<(linux_path_breakpad)/include/breakpad',
|
||||
'<(linux_path_opus_include)',
|
||||
],
|
||||
'library_dirs': [
|
||||
- '/usr/local/lib',
|
||||
@ -182,7 +170,51 @@ Index: tdesktop-1.0.29/Telegram/gyp/telegram_linux.gypi
|
||||
'<!(pkg-config 2> /dev/null --cflags gtk+-2.0)',
|
||||
'<!(pkg-config 2> /dev/null --cflags glib-2.0)',
|
||||
'<!(pkg-config 2> /dev/null --cflags dee-1.0)',
|
||||
+ '<!(pkg-config 2> /dev/null --cflags <@(pkgconfig_libs))',
|
||||
+ '<!(pkg-config --cflags <@(pkgconfig_libs))',
|
||||
],
|
||||
'configurations': {
|
||||
'Release': {
|
||||
Index: tdesktop-1.1.7/Telegram/gyp/Telegram.gyp
|
||||
===================================================================
|
||||
--- tdesktop-1.1.7.orig/Telegram/gyp/Telegram.gyp
|
||||
+++ tdesktop-1.1.7/Telegram/gyp/Telegram.gyp
|
||||
@@ -83,10 +83,13 @@
|
||||
],
|
||||
|
||||
'defines': [
|
||||
- 'AL_LIBTYPE_STATIC',
|
||||
'AL_ALEXT_PROTOTYPES',
|
||||
'TGVOIP_USE_CXX11_LIB',
|
||||
'<!@(python -c "for s in \'<(build_defines)\'.split(\',\'): print(s)")',
|
||||
+ '__STDC_FORMAT_MACROS',
|
||||
+ 'TDESKTOP_DISABLE_AUTOUPDATE',
|
||||
+ 'TDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME',
|
||||
+ 'TDESKTOP_DISABLE_UNITY_INTEGRATION',
|
||||
],
|
||||
|
||||
'include_dirs': [
|
||||
Index: tdesktop-1.1.7/Telegram/ThirdParty/libtgvoip/libtgvoip.gyp
|
||||
===================================================================
|
||||
--- tdesktop-1.1.7.orig/Telegram/ThirdParty/libtgvoip/libtgvoip.gyp
|
||||
+++ tdesktop-1.1.7/Telegram/ThirdParty/libtgvoip/libtgvoip.gyp
|
||||
@@ -13,7 +13,7 @@
|
||||
'variables': {
|
||||
'tgvoip_src_loc': '.',
|
||||
'official_build_target%': '',
|
||||
- 'linux_path_opus_include%': '<(DEPTH)/../../../Libraries/opus/include',
|
||||
+ 'linux_path_opus_include%': '/usr/include/opus',
|
||||
},
|
||||
'include_dirs': [
|
||||
'<(tgvoip_src_loc)/webrtc_dsp',
|
||||
Index: tdesktop-1.1.7/Telegram/gyp/settings_linux.gypi
|
||||
===================================================================
|
||||
--- tdesktop-1.1.7.orig/Telegram/gyp/settings_linux.gypi
|
||||
+++ tdesktop-1.1.7/Telegram/gyp/settings_linux.gypi
|
||||
@@ -36,6 +36,7 @@
|
||||
'-Wno-unused-but-set-variable',
|
||||
'-Wno-missing-field-initializers',
|
||||
'-Wno-sign-compare',
|
||||
+ '-Wno-implicit-fallthrough',
|
||||
],
|
||||
},
|
||||
'conditions': [
|
@ -1,3 +1,13 @@
|
||||
-------------------------------------------------------------------
|
||||
Sun Jun 4 22:04:45 UTC 2017 - badshah400@gmail.com
|
||||
|
||||
- Update to version 1.1.7.
|
||||
- Add libtgvoip.zip to sources, required to build Telegram
|
||||
- Rebase patch-1.0.29.diff for updated version; rename to
|
||||
patch-%{version}.diff.
|
||||
- New BuildRequires: pkgconfig(libpulse), pkgconfig(alsa); needed
|
||||
to build Telegram with audio/video support.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Apr 30 22:26:02 UTC 2017 - badshah400@gmail.com
|
||||
|
||||
|
@ -1,9 +1,27 @@
|
||||
#
|
||||
# spec file for package telegram-desktop
|
||||
#
|
||||
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
Name: telegram-desktop
|
||||
Version: 1.1.7
|
||||
Release: 0
|
||||
Summary: A new era of messaging
|
||||
Version: 1.0.29
|
||||
Release: 1
|
||||
License: GPL-3.0
|
||||
URL: https://github.com/telegramdesktop/tdesktop
|
||||
Url: https://github.com/telegramdesktop/tdesktop
|
||||
Source: https://github.com/telegramdesktop/tdesktop/archive/v%{version}.tar.gz
|
||||
Source1: breakpad-master.tar.gz
|
||||
Source2: linux-syscall-support-refs-heads-master.tar.gz
|
||||
@ -11,88 +29,96 @@ 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: gcc-c++ >= 5.0
|
||||
BuildRequires: libtiff-devel
|
||||
BuildRequires: libmng-devel
|
||||
BuildRequires: pcre-devel
|
||||
BuildRequires: ffmpeg-devel
|
||||
BuildRequires: libopus-devel
|
||||
BuildRequires: zlib-devel
|
||||
BuildRequires: portaudio-devel
|
||||
BuildRequires: desktop-file-utils
|
||||
# curl https://github.com/grishka/libtgvoip/archive/public.zip -o libtgvoip.zip
|
||||
Source7: libtgvoip.zip
|
||||
BuildRequires: chrpath
|
||||
BuildRequires: cmake
|
||||
BuildRequires: desktop-file-utils
|
||||
BuildRequires: ffmpeg-devel
|
||||
BuildRequires: fontconfig-devel
|
||||
BuildRequires: freetype-devel
|
||||
BuildRequires: gcc-c++ >= 5.0
|
||||
BuildRequires: libXfixes-devel
|
||||
BuildRequires: libexpat-devel
|
||||
BuildRequires: libjpeg-devel
|
||||
BuildRequires: libmng-devel
|
||||
BuildRequires: libopus-devel
|
||||
BuildRequires: libproxy-devel
|
||||
BuildRequires: libtelegram-qt5-devel-static
|
||||
BuildRequires: libtiff-devel
|
||||
BuildRequires: openal-soft-devel
|
||||
BuildRequires: opusfile-devel
|
||||
BuildRequires: pcre-devel
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: portaudio-devel
|
||||
BuildRequires: unzip
|
||||
BuildRequires: xcb-util-image-devel
|
||||
BuildRequires: xcb-util-keysyms-devel
|
||||
BuildRequires: xcb-util-renderutil-devel
|
||||
BuildRequires: xcb-util-wm-devel
|
||||
BuildRequires: xorg-x11-devel
|
||||
BuildRequires: xz
|
||||
BuildRequires: unzip
|
||||
BuildRequires: openal-soft-devel
|
||||
BuildRequires: xcb-util-wm-devel
|
||||
BuildRequires: xcb-util-image-devel
|
||||
BuildRequires: xcb-util-renderutil-devel
|
||||
BuildRequires: xcb-util-keysyms-devel
|
||||
BuildRequires: libproxy-devel
|
||||
BuildRequires: libXfixes-devel
|
||||
BuildRequires: fontconfig-devel
|
||||
BuildRequires: libexpat-devel
|
||||
BuildRequires: freetype-devel
|
||||
BuildRequires: libjpeg-devel
|
||||
BuildRequires: pkgconfig(libpng)
|
||||
BuildRequires: pkgconfig(xcb-util)
|
||||
BuildRequires: pkgconfig(mtdev)
|
||||
BuildRequires: pkgconfig(tslib)
|
||||
BuildRequires: pkgconfig(harfbuzz)
|
||||
BuildRequires: pkgconfig(libwebp)
|
||||
BuildRequires: pkgconfig(xkbcommon)
|
||||
BuildRequires: pkgconfig(xkbcommon-x11)
|
||||
BuildRequires: zlib-devel
|
||||
BuildRequires: pkgconfig(alsa)
|
||||
BuildRequires: pkgconfig(appindicator-0.1)
|
||||
BuildRequires: pkgconfig(dee-1.0)
|
||||
BuildRequires: pkgconfig(libavcodec)
|
||||
BuildRequires: pkgconfig(libavformat)
|
||||
BuildRequires: pkgconfig(libavutil)
|
||||
BuildRequires: pkgconfig(liblzma)
|
||||
BuildRequires: pkgconfig(libavfilter)
|
||||
BuildRequires: pkgconfig(libavdevice)
|
||||
BuildRequires: pkgconfig(libcrypto)
|
||||
BuildRequires: pkgconfig(openssl)
|
||||
BuildRequires: pkgconfig(libva)
|
||||
BuildRequires: pkgconfig(fontconfig)
|
||||
BuildRequires: pkgconfig(freetype2)
|
||||
BuildRequires: pkgconfig(glib-2.0)
|
||||
BuildRequires: pkgconfig(gtk+-2.0)
|
||||
BuildRequires: pkgconfig(harfbuzz)
|
||||
BuildRequires: pkgconfig(libavcodec)
|
||||
BuildRequires: pkgconfig(libavdevice)
|
||||
BuildRequires: pkgconfig(libavfilter)
|
||||
BuildRequires: pkgconfig(libavformat)
|
||||
BuildRequires: pkgconfig(libavutil)
|
||||
BuildRequires: pkgconfig(libcrypto)
|
||||
BuildRequires: pkgconfig(liblzma)
|
||||
BuildRequires: pkgconfig(libpng)
|
||||
BuildRequires: pkgconfig(libpulse)
|
||||
BuildRequires: pkgconfig(libva)
|
||||
BuildRequires: pkgconfig(libva-glx)
|
||||
BuildRequires: pkgconfig(libva-x11)
|
||||
|
||||
BuildRequires: pkgconfig(libwebp)
|
||||
BuildRequires: pkgconfig(mtdev)
|
||||
BuildRequires: pkgconfig(openssl)
|
||||
BuildRequires: pkgconfig(tslib)
|
||||
BuildRequires: pkgconfig(xcb-util)
|
||||
BuildRequires: pkgconfig(xkbcommon)
|
||||
BuildRequires: pkgconfig(xkbcommon-x11)
|
||||
# Runtime requirements
|
||||
Requires: ffmpeg
|
||||
Requires: openssl
|
||||
Requires: hicolor-icon-theme
|
||||
Requires: icu
|
||||
Requires: jasper
|
||||
|
||||
Requires: openssl
|
||||
ExclusiveArch: x86_64
|
||||
|
||||
%description
|
||||
Telegram Desktop app. A new era of messaging.
|
||||
|
||||
%prep
|
||||
|
||||
%setup -n tdesktop-%{version}
|
||||
%setup -q -n tdesktop-%{version}
|
||||
cp %{_sourcedir}/patch-%{version}.diff .
|
||||
|
||||
rm -rf %{_builddir}/tdesktop-%{version}/third_party/*
|
||||
rm -rf %{_builddir}/tdesktop-%{version}/ThirdParty/*
|
||||
|
||||
cp %{_sourcedir}/GSL-master.zip . && unzip GSL-master.zip
|
||||
mv GSL-master GSL
|
||||
mv GSL %{_builddir}/tdesktop-%{version}/third_party/
|
||||
mv GSL %{_builddir}/tdesktop-%{version}/Telegram/ThirdParty/
|
||||
|
||||
cp %{_sourcedir}/variant-master.zip . && unzip variant-master.zip
|
||||
mv variant-master variant
|
||||
mv variant %{_builddir}/tdesktop-%{version}/third_party/
|
||||
mv variant %{_builddir}/tdesktop-%{version}/Telegram/ThirdParty/
|
||||
|
||||
%setup -T -c -n breakpad -b 1
|
||||
%setup -T -c -n breakpad-lss -b 2
|
||||
%setup -T -c -n gyp -b 3
|
||||
cp %{_sourcedir}/libtgvoip.zip . && unzip libtgvoip.zip
|
||||
mv libtgvoip-public libtgvoip
|
||||
mv libtgvoip %{_builddir}/tdesktop-%{version}/Telegram/ThirdParty/
|
||||
|
||||
%setup -q -T -c -n breakpad -b 1
|
||||
%setup -q -T -c -n breakpad-lss -b 2
|
||||
%setup -q -T -c -n gyp -b 3
|
||||
|
||||
%build
|
||||
|
||||
@ -111,20 +137,22 @@ patch -p1 < ./gyp.diff
|
||||
|
||||
# Link with patched Qt Static Library
|
||||
cd %{_builddir}/Libraries
|
||||
ln -s /usr/lib64/libtelegram-qt5 ./QtStatic
|
||||
ln -s %{_libdir}/libtelegram-qt5 ./QtStatic
|
||||
|
||||
# Build breakpad
|
||||
cd %{_builddir}/Libraries
|
||||
ln -s %{_builddir}/breakpad ./breakpad
|
||||
cd breakpad
|
||||
ln -s %{_builddir}/breakpad-lss ./src/third_party/lss
|
||||
# FIXME: you should use the %%configure macro
|
||||
./configure
|
||||
make
|
||||
make %{?_smp_mflags}
|
||||
|
||||
# patch with patch.diff
|
||||
cd %{_builddir}/tdesktop
|
||||
patch -p1 < patch-%{version}.diff
|
||||
|
||||
# FIXME: you should use %%cmake macros
|
||||
# use gyp to generate cmake files
|
||||
cd %{_builddir}/tdesktop/Telegram/gyp
|
||||
# patch qt.gypi to change libxkbcommon path
|
||||
@ -138,31 +166,32 @@ cd %{_builddir}/tdesktop/Telegram/gyp
|
||||
|
||||
# build Telegram
|
||||
cd %{_builddir}/tdesktop/out/Release
|
||||
# FIXME: you should use %%cmake macros
|
||||
cmake .
|
||||
make %{?_smp_mflags}
|
||||
chrpath --delete Telegram
|
||||
|
||||
%install
|
||||
# Install binary
|
||||
install -dm755 %{buildroot}/usr/bin
|
||||
install -dm755 %{buildroot}%{_prefix}/bin
|
||||
install -m755 %{_builddir}/tdesktop/out/Release/Telegram \
|
||||
%{buildroot}/usr/bin/telegram-desktop
|
||||
%{buildroot}%{_bindir}/telegram-desktop
|
||||
|
||||
# Install desktop file
|
||||
install -d %{buildroot}/usr/share/applications
|
||||
install -d %{buildroot}%{_datadir}/applications
|
||||
desktop-file-install \
|
||||
--dir %{buildroot}%{_datadir}/applications \
|
||||
--add-category InstantMessaging \
|
||||
%{_builddir}/tdesktop/lib/xdg/telegramdesktop.desktop
|
||||
|
||||
# Install protocol
|
||||
install -d %{buildroot}/usr/share/kde4/services
|
||||
install -d %{buildroot}%{_datadir}/kde4/services
|
||||
install -m644 %{_builddir}/tdesktop/lib/xdg/tg.protocol \
|
||||
%{buildroot}/usr/share/kde4/services/tg.protocol
|
||||
%{buildroot}%{_datadir}/kde4/services/tg.protocol
|
||||
|
||||
# Install icons
|
||||
for icon_size in 16 32 48 64 128 256 512; do
|
||||
icon_dir="%{buildroot}/usr/share/icons/hicolor/${icon_size}x${icon_size}/apps"
|
||||
icon_dir="%{buildroot}%{_datadir}/icons/hicolor/${icon_size}x${icon_size}/apps"
|
||||
install -d "${icon_dir}"
|
||||
install -m644 "%{_builddir}/tdesktop/Telegram/Resources/art/icon${icon_size}.png" \
|
||||
"${icon_dir}/telegram.png"
|
||||
@ -170,9 +199,11 @@ done
|
||||
|
||||
%files
|
||||
%defattr (-, root, root, -)
|
||||
/usr/bin/telegram-desktop
|
||||
/usr/share/applications/telegramdesktop.desktop
|
||||
%dir /usr/share/kde4
|
||||
%dir /usr/share/kde4/services
|
||||
/usr/share/kde4/services/tg.protocol
|
||||
/usr/share/icons/hicolor/*/apps/telegram.png
|
||||
%{_bindir}/telegram-desktop
|
||||
%{_datadir}/applications/telegramdesktop.desktop
|
||||
%dir %{_datadir}/kde4
|
||||
%dir %{_datadir}/kde4/services
|
||||
%{_datadir}/kde4/services/tg.protocol
|
||||
%{_datadir}/icons/hicolor/*/apps/telegram.png
|
||||
|
||||
%changelog
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3277246e57e6605ba8d0444d1a218cac7409f3aa2d00e06b6ae6e365f1666bbb
|
||||
size 16561823
|
3
v1.1.7.tar.gz
Normal file
3
v1.1.7.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:760f9ff4864e1c4cfd3a955ff493644d0e6aff5bb6d1012e12d33ede2314b622
|
||||
size 16754793
|
Loading…
Reference in New Issue
Block a user