sshmenu-vl.spec 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  1. %define ver 3.18
  2. %define rel 1
  3. Summary: Application to organize SSH connection information in a menu
  4. Name: sshmenu
  5. Version: %{ver}
  6. Release: %{rel}%{?_dist_release}
  7. License: BSD
  8. Group: User Interface/Desktops
  9. URL: http://sshmenu.sourceforge.net/
  10. Source0: http://dl.sf.net/sshmenu/sshmenu-%{version}.tar.gz
  11. Patch0: sshmenu-3.18-libexec.patch
  12. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  13. BuildRequires: ruby
  14. Requires: openssh-askpass
  15. Requires: ruby-gtk2
  16. # We only have ruby scripts and data, and the bonobo file gets picked up fine
  17. BuildArch: noarch
  18. Vendor: Project Vine
  19. Distribution: Vine Linux
  20. Packager: iwaim
  21. %description
  22. SSHMenu is a small program (which is to be used outside of GNOME) that
  23. keeps all your regular SSH connections within a single menu. If you wish to
  24. have the full GNOME applet version of the menu, install gnome-applet-sshmenu.
  25. %package -n gnome-applet-sshmenu
  26. Summary: GNOME panel applet to organize SSH connection information in a menu
  27. Group: User Interface/Desktops
  28. Requires: %{name} = %{version}-%{release}
  29. Requires: ruby-gnome2
  30. %description -n gnome-applet-sshmenu
  31. SSHMenu is a GNOME panel applet (which can also be used outside of GNOME) that
  32. keeps all your regular SSH connections within a single panel menu.
  33. %prep
  34. %setup -q
  35. %patch0 -p1 -b .libexec
  36. %build
  37. # Nope... only ruby scripts :-)
  38. %install
  39. %{__rm} -rf %{buildroot}
  40. %{__make} install DESTDIR=%{buildroot}
  41. # On RHEL we are missing libs to get the gnome applet working (#463022)
  42. %if 0%{?rhel}
  43. %{__rm} -rf %{buildroot}%{_bindir}/sshmenu-gnome
  44. %{__rm} -rf %{buildroot}%{_prefix}/lib/bonobo/
  45. %{__rm} -rf %{buildroot}%{rlibdir}/gnome-sshmenu.rb
  46. %{__rm} -rf %{buildroot}%{_libexecdir}/sshmenu-applet
  47. %{__rm} -rf %{buildroot}%{_datadir}/icons/
  48. %endif
  49. %clean
  50. %{__rm} -rf %{buildroot}
  51. %post -n gnome-applet-sshmenu
  52. touch --no-create %{_datadir}/icons/hicolor || :
  53. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  54. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  55. fi
  56. %postun -n gnome-applet-sshmenu
  57. touch --no-create %{_datadir}/icons/hicolor || :
  58. if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  59. %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
  60. fi
  61. %files
  62. %defattr(-,root,root,-)
  63. %doc Changes License.txt README
  64. %{_sysconfdir}/bash_completion.d/
  65. %{_bindir}/sshmenu
  66. %{rlibdir}/sshmenu.rb
  67. %{_mandir}/man1/sshmenu.1*
  68. # On RHEL we are missing libs to get the gnome applet working (#463022)
  69. %if 0%{!?rhel:1}
  70. %files -n gnome-applet-sshmenu
  71. %{_bindir}/sshmenu-gnome
  72. %{_prefix}/lib/bonobo/servers/sshmenu-applet.server
  73. %{rlibdir}/gnome-sshmenu.rb
  74. %{_libexecdir}/sshmenu-applet
  75. %{_datadir}/icons/hicolor/48x48/apps/gnome-sshmenu-applet.png
  76. %endif
  77. %changelog
  78. * Sat Apr 9 2011 IWAI, Masaharu <iwai@alib.jp> 3.18-1
  79. - build for Vine Linux
  80. * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.18-3
  81. - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
  82. * Tue Dec 8 2009 Matthias Saou <http://freshrpms.net/> 3.18-2
  83. - Disable the gnome-applet-sshmenu sub-package on RHEL (#463022).
  84. * Tue Dec 8 2009 Matthias Saou <http://freshrpms.net/> 3.18-1
  85. - Update to 3.18.
  86. - Rebased both patches for the Makefile changes.
  87. - Fix scriplets by adding "|| :" for touch.
  88. - Include new bash_completion.d as-is since all packages seem to do it.
  89. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.16-2
  90. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  91. * Sat May 9 2009 Matthias Saou <http://freshrpms.net/> 3.16-1
  92. - Update to 3.16.
  93. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
  94. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  95. * Thu Jan 17 2008 Matthias Saou <http://freshrpms.net/> 3.15-5
  96. - Move gnome-sshmenu.rb to gnome-applet-sshmenu too.
  97. * Wed Jan 16 2008 Matthias Saou <http://freshrpms.net/> 3.15-4
  98. - Keep only ruby(gtk2) req in sshmenu, move others to gnome-applet-sshmenu.
  99. * Mon Jan 14 2008 Matthias Saou <http://freshrpms.net/> 3.15-3
  100. - Split out the GNOME applet as gnome-applet-sshmenu while keeping the basic
  101. menu application as sshmenu, and have all the shared ruby files be there.
  102. * Mon Jan 14 2008 Matthias Saou <http://freshrpms.net/> 3.15-2
  103. - Follow ruby guidelines : Put ruby files in ruby_sitelib.
  104. - Add required hardcoded ruby abi version requirement.
  105. * Tue Dec 18 2007 Matthias Saou <http://freshrpms.net/> 3.15-1
  106. - Initial RPM release.