/[packages]/updates/8/putty/current/SPECS/putty.spec
ViewVC logotype

Contents of /updates/8/putty/current/SPECS/putty.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 463793 - (show annotations) (download)
Mon Aug 5 09:34:09 2013 UTC (10 years, 8 months ago) by oden
Original Path: cauldron/putty/current/SPECS/putty.spec
File size: 1784 byte(s)
- P1: security fix for CVE-2013-4852
1 Name: putty
2 Version: 0.62
3 Release: %mkrel 3
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 Patch1: putty-0.62-CVE-2013-4852.diff
13
14 BuildRequires: pkgconfig(gtk+-2.0)
15 BuildRequires: halibut
16 BuildRequires: desktop-file-utils
17
18 %description
19 This is the Unix port of the popular Windows ssh client, PuTTY. It
20 supports flexible terminal setup, mid-session reconfiguration using
21 Ctrl-rightclick, multiple X11 authentication protocols, and various
22 other interesting things not provided by ssh in an xterm.
23
24
25 %prep
26 %setup -q
27 %setup -q -T -D -a2
28 %patch0 -p1 -b .perms
29 %patch1 -p1 -b .CVE-2013-4852
30
31 %build
32 ./mkfiles.pl
33 %make -C doc
34
35 pushd unix
36 sed -i -e "s/-O2 -Wall -Werror/%{optflags}/g" \
37 -e "s,/usr/local,%{_prefix},g" \
38 Makefile.gtk
39 ln -s Makefile.gtk Makefile
40 popd
41 %make VER=-DSNAPSHOT=%{version} -C unix CC="gcc %ldflags"
42
43
44 %install
45 install -d html
46 install -pm 0644 doc/*.html html
47 %makeinstall INSTALL="install -p" -C unix
48
49 desktop-file-install \
50 --dir $RPM_BUILD_ROOT%{_datadir}/applications \
51 %{SOURCE1}
52
53 install -D -m 644 %{name}48.png %buildroot/%{_datadir}/icons/hicolor/48x48/apps/%name.png
54 install -D -m 644 %{name}32.png %buildroot/%{_datadir}/icons/hicolor/32x32/apps/%name.png
55 install -D -m 644 %{name}32.png %buildroot/%{_datadir}/icons/%name.png
56 install -D -m 644 %{name}16.png %buildroot/%{_datadir}/icons/hicolor/16x16/apps/%name.png
57
58 %files
59 %doc LICENCE README CHECKLST.txt html
60 %{_bindir}/*
61 %{_mandir}/man1/*.1*
62 %{_datadir}/applications/*
63 %{_datadir}/icons/hicolor/*/apps/*.png
64 %{_datadir}/icons/putty.png

  ViewVC Help
Powered by ViewVC 1.1.30