commit 7da828c7e2e857e600439ed77032fbdcb2fcb1ed
Author: Vitaly Zaitsev <vitaly(a)easycoding.org>
Date: Thu May 16 15:22:32 2019 +0200
Switched to special metainfo macro instead of hardcoded path.
telegram-desktop.spec | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/telegram-desktop.spec b/telegram-desktop.spec
index 1f8f53e..0ad03bc 100644
--- a/telegram-desktop.spec
+++ b/telegram-desktop.spec
@@ -116,6 +116,7 @@ TDESKTOP_BUILD_DEFINES+='TDESKTOP_DISABLE_AUTOUPDATE,'
TDESKTOP_BUILD_DEFINES+='TDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME,'
TDESKTOP_BUILD_DEFINES+='TDESKTOP_DISABLE_DESKTOP_FILE_GENERATION,'
TDESKTOP_BUILD_DEFINES+='TDESKTOP_DISABLE_CRASH_REPORTS,'
+TDESKTOP_BUILD_DEFINES+='TDESKTOP_LAUNCHER_FILENAME=%{name}.desktop,'
# Generating cmake script using GYP...
pushd Telegram/gyp
@@ -154,11 +155,11 @@ for size in 16 32 48 64 128 256 512; do
done
# Installing appdata for Gnome Software...
-%{__install} -d "%{buildroot}%{_datadir}/metainfo"
-%{__install} -m 0644 -p lib/xdg/telegramdesktop.appdata.xml
"%{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml"
+%{__install} -d %{buildroot}%{_metainfodir}
+%{__install} -m 0644 -p lib/xdg/telegramdesktop.appdata.xml
%{buildroot}%{_metainfodir}/%{name}.appdata.xml
%check
-appstream-util validate-relax --nonet
"%{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml"
+appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.appdata.xml
%files
%doc README.md changelog.txt
@@ -166,7 +167,7 @@ appstream-util validate-relax --nonet
"%{buildroot}%{_datadir}/metainfo/%{name}.
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
-%{_datadir}/metainfo/%{name}.appdata.xml
+%{_metainfodir}/%{name}.appdata.xml
%changelog
* Thu May 09 2019 Vitaly Zaitsev <vitaly(a)easycoding.org> - 1.7.0-1