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