From f1dba3b9d25f276a91fe2934427cd42ac50fe7e85c36f6968a23c735265f88da Mon Sep 17 00:00:00 2001 From: Xu Zhao Date: Sun, 13 Nov 2016 04:46:56 +0000 Subject: [PATCH] Remove dependency on glib and gtk OBS-URL: https://build.opensuse.org/package/show/server:messaging/telegram-desktop?expand=0&rev=7 --- telegram-desktop.spec | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/telegram-desktop.spec b/telegram-desktop.spec index c3edc66..56128bc 100644 --- a/telegram-desktop.spec +++ b/telegram-desktop.spec @@ -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}"