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.1.7.orig/Telegram/gyp/qt.gypi
|
||||||
+++ tdesktop-1.0.29/Telegram/gyp/Telegram.gyp
|
+++ tdesktop-1.1.7/Telegram/gyp/qt.gypi
|
||||||
@@ -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
|
|
||||||
@@ -38,7 +38,6 @@
|
@@ -38,7 +38,6 @@
|
||||||
'Qt5Network',
|
'Qt5Network',
|
||||||
'Qt5Widgets',
|
'Qt5Widgets',
|
||||||
@ -103,10 +86,10 @@ Index: tdesktop-1.0.29/Telegram/gyp/qt.gypi
|
|||||||
'-pthread',
|
'-pthread',
|
||||||
'-g',
|
'-g',
|
||||||
'-rdynamic',
|
'-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.1.7.orig/Telegram/gyp/telegram_linux.gypi
|
||||||
+++ tdesktop-1.0.29/Telegram/gyp/telegram_linux.gypi
|
+++ tdesktop-1.1.7/Telegram/gyp/telegram_linux.gypi
|
||||||
@@ -21,11 +21,20 @@
|
@@ -21,11 +21,20 @@
|
||||||
'conditions': [[ 'build_linux', {
|
'conditions': [[ 'build_linux', {
|
||||||
'variables': {
|
'variables': {
|
||||||
@ -133,8 +116,12 @@ Index: tdesktop-1.0.29/Telegram/gyp/telegram_linux.gypi
|
|||||||
],
|
],
|
||||||
'linux_path_ffmpeg%': '/usr/local',
|
'linux_path_ffmpeg%': '/usr/local',
|
||||||
'linux_path_openal%': '/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_breakpad%': '<(libs_loc)/breakpad',
|
||||||
|
- 'linux_path_opus_include%': '<(libs_loc)/opus/include',
|
||||||
|
+ 'linux_path_opus_include%': '/usr/include/opus',
|
||||||
},
|
},
|
||||||
'include_dirs': [
|
'include_dirs': [
|
||||||
- '/usr/local/include',
|
- '/usr/local/include',
|
||||||
@ -142,6 +129,7 @@ Index: tdesktop-1.0.29/Telegram/gyp/telegram_linux.gypi
|
|||||||
- '<(linux_path_openal)/include',
|
- '<(linux_path_openal)/include',
|
||||||
+ '/usr/include',
|
+ '/usr/include',
|
||||||
'<(linux_path_breakpad)/include/breakpad',
|
'<(linux_path_breakpad)/include/breakpad',
|
||||||
|
'<(linux_path_opus_include)',
|
||||||
],
|
],
|
||||||
'library_dirs': [
|
'library_dirs': [
|
||||||
- '/usr/local/lib',
|
- '/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 gtk+-2.0)',
|
||||||
'<!(pkg-config 2> /dev/null --cflags glib-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 dee-1.0)',
|
||||||
+ '<!(pkg-config 2> /dev/null --cflags <@(pkgconfig_libs))',
|
+ '<!(pkg-config --cflags <@(pkgconfig_libs))',
|
||||||
],
|
],
|
||||||
'configurations': {
|
'configurations': {
|
||||||
'Release': {
|
'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
|
Sun Apr 30 22:26:02 UTC 2017 - badshah400@gmail.com
|
||||||
|
|
||||||
|
@ -1,98 +1,124 @@
|
|||||||
Name: telegram-desktop
|
#
|
||||||
Summary: A new era of messaging
|
# spec file for package telegram-desktop
|
||||||
Version: 1.0.29
|
#
|
||||||
Release: 1
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
License: GPL-3.0
|
#
|
||||||
URL: https://github.com/telegramdesktop/tdesktop
|
# All modifications and additions to the file contributed by third parties
|
||||||
Source: https://github.com/telegramdesktop/tdesktop/archive/v%{version}.tar.gz
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
Source1: breakpad-master.tar.gz
|
# upon. The license for this file, and modifications and additions to the
|
||||||
Source2: linux-syscall-support-refs-heads-master.tar.gz
|
# file, is the same license as for the pristine package itself (unless the
|
||||||
Source3: gyp-master.tar.gz
|
# license for the pristine package is not an Open Source License, in which
|
||||||
Source4: patch-%{version}.diff
|
# case the license is the MIT License). An "Open Source License" is a
|
||||||
Source5: GSL-master.zip
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
Source6: variant-master.zip
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
ExclusiveArch: x86_64
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||||
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
|
|
||||||
BuildRequires: chrpath
|
|
||||||
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
|
|
||||||
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: 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(libva-glx)
|
|
||||||
BuildRequires: pkgconfig(libva-x11)
|
|
||||||
|
|
||||||
|
Name: telegram-desktop
|
||||||
|
Version: 1.1.7
|
||||||
|
Release: 0
|
||||||
|
Summary: A new era of messaging
|
||||||
|
License: GPL-3.0
|
||||||
|
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
|
||||||
|
Source3: gyp-master.tar.gz
|
||||||
|
Source4: patch-%{version}.diff
|
||||||
|
Source5: GSL-master.zip
|
||||||
|
Source6: variant-master.zip
|
||||||
|
# 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: zlib-devel
|
||||||
|
BuildRequires: pkgconfig(alsa)
|
||||||
|
BuildRequires: pkgconfig(appindicator-0.1)
|
||||||
|
BuildRequires: pkgconfig(dee-1.0)
|
||||||
|
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
|
# Runtime requirements
|
||||||
Requires: ffmpeg
|
Requires: ffmpeg
|
||||||
Requires: openssl
|
Requires: hicolor-icon-theme
|
||||||
Requires: hicolor-icon-theme
|
Requires: icu
|
||||||
Requires: icu
|
Requires: jasper
|
||||||
Requires: jasper
|
Requires: openssl
|
||||||
|
ExclusiveArch: x86_64
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Telegram Desktop app. A new era of messaging.
|
Telegram Desktop app. A new era of messaging.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
|
||||||
%setup -n tdesktop-%{version}
|
%setup -q -n tdesktop-%{version}
|
||||||
cp %{_sourcedir}/patch-%{version}.diff .
|
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
|
cp %{_sourcedir}/GSL-master.zip . && unzip GSL-master.zip
|
||||||
mv GSL-master GSL
|
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
|
cp %{_sourcedir}/variant-master.zip . && unzip variant-master.zip
|
||||||
mv variant-master variant
|
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
|
cp %{_sourcedir}/libtgvoip.zip . && unzip libtgvoip.zip
|
||||||
%setup -T -c -n breakpad-lss -b 2
|
mv libtgvoip-public libtgvoip
|
||||||
%setup -T -c -n gyp -b 3
|
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
|
%build
|
||||||
|
|
||||||
@ -111,20 +137,22 @@ patch -p1 < ./gyp.diff
|
|||||||
|
|
||||||
# Link with patched Qt Static Library
|
# Link with patched Qt Static Library
|
||||||
cd %{_builddir}/Libraries
|
cd %{_builddir}/Libraries
|
||||||
ln -s /usr/lib64/libtelegram-qt5 ./QtStatic
|
ln -s %{_libdir}/libtelegram-qt5 ./QtStatic
|
||||||
|
|
||||||
# Build breakpad
|
# Build breakpad
|
||||||
cd %{_builddir}/Libraries
|
cd %{_builddir}/Libraries
|
||||||
ln -s %{_builddir}/breakpad ./breakpad
|
ln -s %{_builddir}/breakpad ./breakpad
|
||||||
cd breakpad
|
cd breakpad
|
||||||
ln -s %{_builddir}/breakpad-lss ./src/third_party/lss
|
ln -s %{_builddir}/breakpad-lss ./src/third_party/lss
|
||||||
|
# FIXME: you should use the %%configure macro
|
||||||
./configure
|
./configure
|
||||||
make
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
# patch with patch.diff
|
# patch with patch.diff
|
||||||
cd %{_builddir}/tdesktop
|
cd %{_builddir}/tdesktop
|
||||||
patch -p1 < patch-%{version}.diff
|
patch -p1 < patch-%{version}.diff
|
||||||
|
|
||||||
|
# FIXME: you should use %%cmake macros
|
||||||
# use gyp to generate cmake files
|
# use gyp to generate cmake files
|
||||||
cd %{_builddir}/tdesktop/Telegram/gyp
|
cd %{_builddir}/tdesktop/Telegram/gyp
|
||||||
# patch qt.gypi to change libxkbcommon path
|
# patch qt.gypi to change libxkbcommon path
|
||||||
@ -138,31 +166,32 @@ cd %{_builddir}/tdesktop/Telegram/gyp
|
|||||||
|
|
||||||
# build Telegram
|
# build Telegram
|
||||||
cd %{_builddir}/tdesktop/out/Release
|
cd %{_builddir}/tdesktop/out/Release
|
||||||
cmake .
|
# FIXME: you should use %%cmake macros
|
||||||
|
cmake .
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
chrpath --delete Telegram
|
chrpath --delete Telegram
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# Install binary
|
# Install binary
|
||||||
install -dm755 %{buildroot}/usr/bin
|
install -dm755 %{buildroot}%{_prefix}/bin
|
||||||
install -m755 %{_builddir}/tdesktop/out/Release/Telegram \
|
install -m755 %{_builddir}/tdesktop/out/Release/Telegram \
|
||||||
%{buildroot}/usr/bin/telegram-desktop
|
%{buildroot}%{_bindir}/telegram-desktop
|
||||||
|
|
||||||
# Install desktop file
|
# Install desktop file
|
||||||
install -d %{buildroot}/usr/share/applications
|
install -d %{buildroot}%{_datadir}/applications
|
||||||
desktop-file-install \
|
desktop-file-install \
|
||||||
--dir %{buildroot}%{_datadir}/applications \
|
--dir %{buildroot}%{_datadir}/applications \
|
||||||
--add-category InstantMessaging \
|
--add-category InstantMessaging \
|
||||||
%{_builddir}/tdesktop/lib/xdg/telegramdesktop.desktop
|
%{_builddir}/tdesktop/lib/xdg/telegramdesktop.desktop
|
||||||
|
|
||||||
# Install protocol
|
# Install protocol
|
||||||
install -d %{buildroot}/usr/share/kde4/services
|
install -d %{buildroot}%{_datadir}/kde4/services
|
||||||
install -m644 %{_builddir}/tdesktop/lib/xdg/tg.protocol \
|
install -m644 %{_builddir}/tdesktop/lib/xdg/tg.protocol \
|
||||||
%{buildroot}/usr/share/kde4/services/tg.protocol
|
%{buildroot}%{_datadir}/kde4/services/tg.protocol
|
||||||
|
|
||||||
# Install icons
|
# Install icons
|
||||||
for icon_size in 16 32 48 64 128 256 512; do
|
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 -d "${icon_dir}"
|
||||||
install -m644 "%{_builddir}/tdesktop/Telegram/Resources/art/icon${icon_size}.png" \
|
install -m644 "%{_builddir}/tdesktop/Telegram/Resources/art/icon${icon_size}.png" \
|
||||||
"${icon_dir}/telegram.png"
|
"${icon_dir}/telegram.png"
|
||||||
@ -170,9 +199,11 @@ done
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr (-, root, root, -)
|
%defattr (-, root, root, -)
|
||||||
/usr/bin/telegram-desktop
|
%{_bindir}/telegram-desktop
|
||||||
/usr/share/applications/telegramdesktop.desktop
|
%{_datadir}/applications/telegramdesktop.desktop
|
||||||
%dir /usr/share/kde4
|
%dir %{_datadir}/kde4
|
||||||
%dir /usr/share/kde4/services
|
%dir %{_datadir}/kde4/services
|
||||||
/usr/share/kde4/services/tg.protocol
|
%{_datadir}/kde4/services/tg.protocol
|
||||||
/usr/share/icons/hicolor/*/apps/telegram.png
|
%{_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