summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--firstaidkit.desktop8
-rw-r--r--firstaidkit.spec4
2 files changed, 12 insertions, 0 deletions
diff --git a/firstaidkit.desktop b/firstaidkit.desktop
new file mode 100644
index 0000000..01418b4
--- /dev/null
+++ b/firstaidkit.desktop
@@ -0,0 +1,8 @@
+[Desktop Entry]
+Name=FirstAidKit
+Type=Application
+Exec=firstaidkit -g gtk
+Comment=System rescue and recovery tool
+Categories=System;
+Terminal=false
+
diff --git a/firstaidkit.spec b/firstaidkit.spec
index 232c6fa..44ebfd1 100644
--- a/firstaidkit.spec
+++ b/firstaidkit.spec
@@ -11,6 +11,7 @@ Group: Applications/System
License: GPLv2+
URL: http://fedorahosted.org/firstaidkit
Source0: %{name}-%{version}.tar.bz2
+Source3: %{name}.desktop
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: python-devel
@@ -21,6 +22,7 @@ BuildRequires: python-setuptools-devel
BuildRequires: python-setuptools
%endif
BuildArch: noarch
+BuildRequires: desktop-file-utils
%description
A tool that automates simple and common system recovery tasks.
@@ -159,6 +161,8 @@ echo "copying=%{_docdir}/%{name}-%{version}/COPYING" >> etc/firstaidkit/about
%{__install} -p frontend/*.py $RPM_BUILD_ROOT%{_libdir}/firstaidkit/frontend/
%{__install} -p frontend/*.glade $RPM_BUILD_ROOT%{_libdir}/firstaidkit/frontend/
%{__install} -p frontend/*.gladep $RPM_BUILD_ROOT%{_libdir}/firstaidkit/frontend/
+desktop-file-install --vendor="fedora" \
+--dir=${RPM_BUILD_ROOT}%{_datadir}/applications %{SOURCE3}
#plugins
%{__install} -d $RPM_BUILD_ROOT%{_libdir}/firstaidkit/plugins/undelparts