Hello community, here is the log from the commit of package putty for openSUSE:Factory checked in at 2015-05-15 09:03:40 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/putty (Old) and /work/SRC/openSUSE:Factory/.putty.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "putty" Changes: -------- --- /work/SRC/openSUSE:Factory/putty/putty.changes 2015-03-03 11:16:35.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.putty.new/putty.changes 2015-05-15 09:03:41.000000000 +0200 @@ -1,0 +2,5 @@ +Wed May 13 13:21:36 UTC 2015 - a...@ajaissle.de + +- Build icons and add a .desktop file for putty + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ putty.spec ++++++ --- /var/tmp/diff_new_pack.NYxTuy/_old 2015-05-15 09:03:42.000000000 +0200 +++ /var/tmp/diff_new_pack.NYxTuy/_new 2015-05-15 09:03:42.000000000 +0200 @@ -31,8 +31,10 @@ Source4: %name.keyring Patch1: putty-03-config.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: ImageMagick BuildRequires: gtk2-devel BuildRequires: krb5-devel +BuildRequires: update-desktop-files Conflicts: pssh %description @@ -46,19 +48,53 @@ %build %configure -make %{?_smp_mflags}; +make %{?_smp_mflags} +make %{?_smp_mflags} -C icons cicons pngs %install %make_install +b="%buildroot" +mkdir -p "$b/%_datadir/applications/" +cat >"$b/%_datadir/applications/%name.desktop" <<-EOF + [Desktop Entry] + Name=PuTTY SSH Client + GenericName=PuTTY + Comment=Connect to an SSH server with PuTTY + Exec=putty + Icon=putty + Terminal=false + Type=Application + Categories=GTK;Network;RemoteAccess; +EOF + +%suse_update_desktop_file -n %name + +mkdir -p "$b/%_datadir/pixmaps/" +install -m644 icons/xpmpterm.c "$b/%_datadir/pixmaps/pterm.xpm" +install -m644 icons/xpmputty.c "$b/%_datadir/pixmaps/putty.xpm" +install -m644 icons/pterm-32.png "$b/%_datadir/pixmaps/pterm.png" +install -m644 icons/putty-32.png "$b/%_datadir/pixmaps/putty.png" %check make check +%if 0%{?suse_version} >= 1140 +%post +%desktop_database_post +%endif + +%if 0%{?suse_version} >= 1140 +%postun +%desktop_database_postun +%endif + %files %defattr(-,root,root) -%doc LICENCE -%_bindir/* -%doc %_mandir/man*/* -%doc doc/*.html +%doc LICENCE doc/*.html +%doc %{_mandir}/man*/* +%{_bindir}/* +%{_datadir}/applications/%{name}.desktop +%{_datadir}/pixmaps/*.png +%{_datadir}/pixmaps/*.xpm %changelog