commit eea6fe1e19d058e1cd74e43279144fe49b824779
Author: Vitaly Zaitsev <vitaly(a)easycoding.org>
Date: Sat Mar 9 14:01:24 2019 +0100
Minor SPEC fixes.
telegram-desktop.spec | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/telegram-desktop.spec b/telegram-desktop.spec
index d583c3e..187045c 100644
--- a/telegram-desktop.spec
+++ b/telegram-desktop.spec
@@ -114,7 +114,7 @@ popd
LEN=$(($(wc -l < out/Release/CMakeLists.txt) - 2))
sed -i "$LEN r Telegram/gyp/CMakeLists.inj" out/Release/CMakeLists.txt
-# Exporting correct paths to AR and RANLIB in order to use FLTO optimizations...
+# Exporting correct paths to AR and RANLIB in order to use LTO optimizations...
%ifarch x86_64
sed -e '/set(configuration "Release")/a\' -e 'set(CMAKE_AR
"%{_bindir}/gcc-ar")\' -e 'set(CMAKE_RANLIB
"%{_bindir}/gcc-ranlib")\' -e 'set(CMAKE_NM
"%{_bindir}/gcc-nm")' -i out/Release/CMakeLists.txt
%endif
@@ -127,23 +127,23 @@ popd
%install
# Installing executables...
-mkdir -p "%{buildroot}%{_bindir}"
-install -m 0755 -p out/Release/Telegram "%{buildroot}%{_bindir}/%{name}"
+%{__mkdir_p} "%{buildroot}%{_bindir}"
+%{__install} -m 0755 -p out/Release/Telegram "%{buildroot}%{_bindir}/%{name}"
# Installing desktop shortcut...
-mv lib/xdg/telegramdesktop.desktop lib/xdg/%{name}.desktop
+%{__mv} lib/xdg/telegramdesktop.desktop lib/xdg/%{name}.desktop
desktop-file-install --dir="%{buildroot}%{_datadir}/applications"
lib/xdg/%{name}.desktop
# Installing icons...
for size in 16 32 48 64 128 256 512; do
dir="%{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps"
- install -d "$dir"
- install -m 0644 -p Telegram/Resources/art/icon${size}.png
"$dir/%{name}.png"
+ %{__install} -d "$dir"
+ %{__install} -m 0644 -p Telegram/Resources/art/icon${size}.png
"$dir/%{name}.png"
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}%{_datadir}/metainfo"
+%{__install} -m 0644 -p lib/xdg/telegramdesktop.appdata.xml
"%{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml"
%check
appstream-util validate-relax --nonet
"%{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml"
Show replies by date