1 |
Name: putty |
2 |
Version: 0.62 |
3 |
Release: %mkrel 2 |
4 |
Summary: SSH, Telnet and Rlogin client |
5 |
License: MIT |
6 |
Group: Networking/Remote access |
7 |
URL: http://www.chiark.greenend.org.uk/~sgtatham/putty/ |
8 |
Source: http://the.earth.li/~sgtatham/putty/latest/%{name}-%{version}.tar.gz |
9 |
Source1: %{name}.desktop |
10 |
Source2: %{name}-icons.tar.bz2 |
11 |
Patch0: putty-perms.patch |
12 |
|
13 |
BuildRequires: gtk2-devel halibut |
14 |
BuildRequires: desktop-file-utils |
15 |
|
16 |
%description |
17 |
This is the Unix port of the popular Windows ssh client, PuTTY. It |
18 |
supports flexible terminal setup, mid-session reconfiguration using |
19 |
Ctrl-rightclick, multiple X11 authentication protocols, and various |
20 |
other interesting things not provided by ssh in an xterm. |
21 |
|
22 |
|
23 |
%prep |
24 |
%setup -q |
25 |
%setup -q -T -D -a2 |
26 |
%patch0 -p1 -b .perms |
27 |
|
28 |
|
29 |
%build |
30 |
./mkfiles.pl |
31 |
%make -C doc |
32 |
|
33 |
pushd unix |
34 |
sed -i -e "s/-O2 -Wall -Werror/%{optflags}/g" \ |
35 |
-e "s,/usr/local,%{_prefix},g" \ |
36 |
Makefile.gtk |
37 |
ln -s Makefile.gtk Makefile |
38 |
popd |
39 |
%make VER=-DSNAPSHOT=%{version} -C unix CC="gcc %ldflags" |
40 |
|
41 |
|
42 |
%install |
43 |
install -d html |
44 |
install -pm 0644 doc/*.html html |
45 |
%makeinstall INSTALL="install -p" -C unix |
46 |
|
47 |
desktop-file-install \ |
48 |
--dir $RPM_BUILD_ROOT%{_datadir}/applications \ |
49 |
%{SOURCE1} |
50 |
|
51 |
install -D -m 644 %{name}48.png %buildroot/%{_datadir}/icons/hicolor/48x48/apps/%name.png |
52 |
install -D -m 644 %{name}32.png %buildroot/%{_datadir}/icons/hicolor/32x32/apps/%name.png |
53 |
install -D -m 644 %{name}32.png %buildroot/%{_datadir}/icons/%name.png |
54 |
install -D -m 644 %{name}16.png %buildroot/%{_datadir}/icons/hicolor/16x16/apps/%name.png |
55 |
|
56 |
%files |
57 |
%doc LICENCE README CHECKLST.txt html |
58 |
%{_bindir}/* |
59 |
%{_mandir}/man1/*.1* |
60 |
%{_datadir}/applications/* |
61 |
%{_datadir}/icons/hicolor/*/apps/*.png |
62 |
%{_datadir}/icons/putty.png |