1
0

Remove dependency on glib and gtk

OBS-URL: https://build.opensuse.org/package/show/server:messaging/telegram-desktop?expand=0&rev=7
This commit is contained in:
Xu Zhao 2016-11-13 04:46:56 +00:00 committed by Git OBS Bridge
parent 88fe74527f
commit f1dba3b9d2

View File

@ -15,6 +15,7 @@ BuildRequires: gcc5-c++
BuildRequires: libappindicator-devel
BuildRequires: libpng16-devel
BuildRequires: libtiff-devel
BuildRequires: libjpeg62-devel
BuildRequires: libmng-devel
BuildRequires: libwebp-devel
BuildRequires: cmake
@ -34,9 +35,6 @@ BuildRequires: harfbuzz-devel
BuildRequires: pkgconfig(xkbcommon)
BuildRequires: pkgconfig(xkbcommon-x11)
BuildRequires: pkgconfig(dee-1.0)
BuildRequires: glib2-devel-static
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: libjpeg62-devel
BuildRequires: pkgconfig(libavcodec)
BuildRequires: pkgconfig(libavformat)
BuildRequires: pkgconfig(libavutil)
@ -46,7 +44,6 @@ BuildRequires: libavdevice-devel
BuildRequires: libproxy-devel
BuildRequires: pkgconfig(libcrypto)
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libva)
BuildRequires: pkgconfig(fontconfig)
BuildRequires: pcre-devel
@ -70,6 +67,11 @@ Requires: openssl
Requires: hicolor-icon-theme
Requires: icu
Requires: jasper
Requires: libopenal1
Requires: libinput10
Requires: libproxy1
Requires: libmng2
%description
Telegram Desktop app. A new era of messaging.
@ -108,10 +110,10 @@ cd %{_builddir}/Libraries
ln -s %{_builddir}/breakpad ./breakpad
cd breakpad
ln -s %{_builddir}/breakpad-lss ./src/third_party/lss
./configure
make
# ./configure
# make
# patch with aur_fixes.diff
# patch with patch.diff
cd %{_builddir}/tdesktop
patch -p1 < patch.diff
@ -138,19 +140,19 @@ install -dm755 %{buildroot}/usr/bin
install -m755 %{_builddir}/tdesktop/out/Release/Telegram \
%{buildroot}/usr/bin/telegram-desktop
# # Install desktop file
# Install desktop file
install -d %{buildroot}/usr/share/applications
desktop-file-install \
--dir %{buildroot}%{_datadir}/applications \
--add-category InstantMessaging \
%{_builddir}/tdesktop/lib/xdg/telegramdesktop.desktop
# # Install protocol
# Install protocol
install -d %{buildroot}/usr/share/kde4/services
install -m644 %{_builddir}/tdesktop/lib/xdg/tg.protocol \
%{buildroot}/usr/share/kde4/services/tg.protocol
# # Install icons
# 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"
install -d "${icon_dir}"