[packages/android-file-transfer] desktop deps for qt package

glen glen at pld-linux.org
Thu Jul 19 20:46:27 CEST 2018


commit d8b9bd558603ab734e869be08d9902b459cbd98e
Author: Elan Ruusamäe <glen at pld-linux.org>
Date:   Thu Jul 19 21:46:06 2018 +0300

    desktop deps for qt package

 android-file-transfer.spec | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)
---
diff --git a/android-file-transfer.spec b/android-file-transfer.spec
index fea6ff6..48b8f15 100644
--- a/android-file-transfer.spec
+++ b/android-file-transfer.spec
@@ -93,6 +93,9 @@ Group:		X11/Applications
 %if %{with shared}
 Requires:	%{name}-libs = %{version}-%{release}
 %endif
+Requires:	desktop-file-utils
+Requires:	gtk-update-icon-cache
+Requires:	hicolor-icon-theme
 
 %description qt
 Qt GUI.
@@ -117,6 +120,14 @@ rm -rf $RPM_BUILD_ROOT
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post qt
+%update_desktop_database
+%update_icon_cache hicolor
+
+%postun qt
+%update_desktop_database
+%update_icon_cache hicolor
+
 %files
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/aft-mtp-cli
@@ -132,7 +143,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/android-file-transfer
 %{_desktopdir}/android-file-transfer.desktop
-%{_iconsdir}/hicolor/512x512/apps/android-file-transfer.png
+%{_iconsdir}/hicolor/*/apps/android-file-transfer.png
 %{_datadir}/metainfo/android-file-transfer.appdata.xml
 %endif
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/android-file-transfer.git/commitdiff/d8b9bd558603ab734e869be08d9902b459cbd98e



More information about the pld-cvs-commit mailing list