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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1099993 - (hide annotations) (download)
Wed May 10 09:35:51 2017 UTC (6 years, 11 months ago) by luigiwalser
Original Path: cauldron/putty/current/SPECS/putty.spec
File size: 1725 byte(s)
add upstream patch via fedora to fix build
1 sander85 116931 Name: putty
2 luigiwalser 1099947 Version: 0.69
3 gw666 988723 Release: %mkrel 1
4 sander85 116931 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 sander85 123812 Source: http://the.earth.li/~sgtatham/putty/latest/%{name}-%{version}.tar.gz
9 sander85 116931 Source1: %{name}.desktop
10     Source2: %{name}-icons.tar.bz2
11 luigiwalser 1099993 Patch0: putty-0.69-gtk2-compile-fix.patch
12 sander85 447302 BuildRequires: pkgconfig(gtk+-2.0)
13 gw666 988774 BuildRequires: halibut >= 1.1
14 fwang 145576 BuildRequires: desktop-file-utils
15 sander85 116931
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     %prep
23 sander85 123812 %setup -q
24     %setup -q -T -D -a2
25 luigiwalser 1099993 %patch0 -p1
26 sander85 116931
27     %build
28     ./mkfiles.pl
29     %make -C doc
30 sander85 123812
31 sander85 116931 pushd unix
32     sed -i -e "s/-O2 -Wall -Werror/%{optflags}/g" \
33     -e "s,/usr/local,%{_prefix},g" \
34     Makefile.gtk
35     ln -s Makefile.gtk Makefile
36     popd
37 fwang 145576 %make VER=-DSNAPSHOT=%{version} -C unix CC="gcc %ldflags"
38 sander85 116931
39     %install
40     install -d html
41     install -pm 0644 doc/*.html html
42     %makeinstall INSTALL="install -p" -C unix
43    
44     desktop-file-install \
45     --dir $RPM_BUILD_ROOT%{_datadir}/applications \
46     %{SOURCE1}
47    
48     install -D -m 644 %{name}48.png %buildroot/%{_datadir}/icons/hicolor/48x48/apps/%name.png
49     install -D -m 644 %{name}32.png %buildroot/%{_datadir}/icons/hicolor/32x32/apps/%name.png
50     install -D -m 644 %{name}32.png %buildroot/%{_datadir}/icons/%name.png
51     install -D -m 644 %{name}16.png %buildroot/%{_datadir}/icons/hicolor/16x16/apps/%name.png
52    
53     %files
54     %doc LICENCE README CHECKLST.txt html
55     %{_bindir}/*
56     %{_mandir}/man1/*.1*
57     %{_datadir}/applications/*
58     %{_datadir}/icons/hicolor/*/apps/*.png
59     %{_datadir}/icons/putty.png

  ViewVC Help
Powered by ViewVC 1.1.30