--- /dev/null
+[Desktop Entry]
+Name=Poldek
+GenericName=PLD package manager
+GenericName[pl]=Menadżer pakietów PLD
+Comment=RPM packages management helper tool
+Comment[pl]=Pomocnicze narzędzie do zarządzania pakietami RPM
+Exec=poldek
+Terminal=true
+Icon=poldek
+Type=Application
+Categories=Settings;PackageManager;
%define ver_rpm 4.4.9-1
#
%define _snap 20070703.00
-%define _rel 10
+%define _rel 11
Summary: RPM packages management helper tool
Summary(pl.UTF-8): Pomocnicze narzędzie do zarządzania pakietami RPM
Name: poldek
Source1: %{name}.conf
Source2: %{name}-multilib.conf
Source3: %{name}-aliases.conf
+%if %{with imode}
+Source4: %{name}.desktop
+Source5: %{name}.png
+%endif
Patch1: %{name}-vserver-packages.patch
Patch2: %{name}-config.patch
Patch3: %{name}-multilib.patch
install %{SOURCE3} $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/aliases.conf
+%if %{with imode}
+# add desktop file and icon
+install -d $RPM_BUILD_ROOT{%{_desktopdir},%{_pixmapsdir}}
+install %{SOURCE4} $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
+install %{SOURCE5} $RPM_BUILD_ROOT%{_pixmapsdir}/%{name}.png
+%endif
+
# get rid of non-pld sources
rm -f $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/{rh,fedora}-source.conf
# include them in %doc
%{_mandir}/man1/%{name}*
%lang(pl) %{_mandir}/pl/man1/%{name}*
%{_infodir}/poldek.info*
+%if %{with imode}
+%{_desktopdir}/%{name}.desktop
+%{_pixmapsdir}/%{name}.png
+%endif
%if !%{with static}
%files libs