2012-06-24 03:02:36 +02:00
|
|
|
#
|
|
|
|
# spec file for package putty
|
|
|
|
#
|
2017-03-15 09:30:10 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2012-06-24 03:02:36 +02:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: putty
|
2017-05-03 20:10:47 +02:00
|
|
|
Version: 0.69
|
2012-06-24 03:02:36 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: GTK-based terminal emulator program
|
|
|
|
License: MIT
|
|
|
|
Group: System/X11/Utilities
|
|
|
|
Url: http://www.chiark.greenend.org.uk/~sgtatham/putty/
|
2013-08-06 21:48:39 +02:00
|
|
|
|
2015-03-02 19:42:34 +01:00
|
|
|
#Git-Web: http://tartarus.org/~simon-git/gitweb/?p=putty.git
|
|
|
|
#Git-Clone: git://git.tartarus.org/simon/putty
|
2013-08-06 21:48:39 +02:00
|
|
|
Source: http://the.earth.li/~sgtatham/putty/latest/%name-%version.tar.gz
|
2015-11-09 09:58:57 +01:00
|
|
|
Source2: http://the.earth.li/~sgtatham/putty/latest/%name-%version.tar.gz.gpg
|
2014-09-29 10:30:06 +02:00
|
|
|
Source4: %name.keyring
|
2015-03-02 19:42:34 +01:00
|
|
|
Patch1: putty-03-config.diff
|
2017-05-03 20:10:47 +02:00
|
|
|
Patch2: gtk-buildfix.patch
|
2012-06-24 03:02:36 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2015-05-13 16:57:32 +02:00
|
|
|
BuildRequires: ImageMagick
|
2017-05-03 20:10:47 +02:00
|
|
|
BuildRequires: gtk3-devel
|
2012-06-24 03:02:36 +02:00
|
|
|
BuildRequires: krb5-devel
|
2015-05-13 16:57:32 +02:00
|
|
|
BuildRequires: update-desktop-files
|
2013-08-07 11:32:10 +02:00
|
|
|
Conflicts: pssh
|
2011-08-22 22:53:34 +02:00
|
|
|
|
|
|
|
%description
|
|
|
|
PuTTY is a terminal emulator application which can act as a client
|
|
|
|
for the SSH, Telnet, rlogin, and raw TCP computing protocols and as a
|
|
|
|
serial console client.
|
|
|
|
|
|
|
|
%prep
|
2012-06-23 22:02:28 +02:00
|
|
|
%setup -q
|
2017-05-03 20:10:47 +02:00
|
|
|
%patch1 -p1
|
|
|
|
%patch2 -p1
|
2011-08-22 22:53:34 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%configure
|
2015-05-13 16:57:32 +02:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
make %{?_smp_mflags} -C icons cicons pngs
|
2011-08-22 22:53:34 +02:00
|
|
|
|
|
|
|
%install
|
2015-03-02 19:42:34 +01:00
|
|
|
%make_install
|
2015-05-13 17:24:02 +02:00
|
|
|
b="%buildroot"
|
|
|
|
mkdir -p "$b/%_datadir/applications/"
|
|
|
|
cat >"$b/%_datadir/applications/%name.desktop" <<-EOF
|
|
|
|
[Desktop Entry]
|
|
|
|
Name=PuTTY SSH Client
|
|
|
|
GenericName=PuTTY
|
|
|
|
Comment=Connect to an SSH server with PuTTY
|
|
|
|
Exec=putty
|
|
|
|
Icon=putty
|
|
|
|
Terminal=false
|
|
|
|
Type=Application
|
|
|
|
Categories=GTK;Network;RemoteAccess;
|
2015-05-13 16:57:32 +02:00
|
|
|
EOF
|
|
|
|
|
|
|
|
%suse_update_desktop_file -n %name
|
|
|
|
|
2015-05-13 17:24:02 +02:00
|
|
|
mkdir -p "$b/%_datadir/pixmaps/"
|
|
|
|
install -m644 icons/xpmpterm.c "$b/%_datadir/pixmaps/pterm.xpm"
|
|
|
|
install -m644 icons/xpmputty.c "$b/%_datadir/pixmaps/putty.xpm"
|
|
|
|
install -m644 icons/pterm-32.png "$b/%_datadir/pixmaps/pterm.png"
|
|
|
|
install -m644 icons/putty-32.png "$b/%_datadir/pixmaps/putty.png"
|
2015-05-13 16:57:32 +02:00
|
|
|
|
2013-08-06 21:28:59 +02:00
|
|
|
%check
|
|
|
|
make check
|
2011-08-22 22:53:34 +02:00
|
|
|
|
2015-05-13 16:57:32 +02:00
|
|
|
%post
|
|
|
|
%desktop_database_post
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%desktop_database_postun
|
|
|
|
|
2011-08-22 22:53:34 +02:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
2015-05-13 16:57:32 +02:00
|
|
|
%doc LICENCE doc/*.html
|
2015-11-09 09:59:48 +01:00
|
|
|
%doc %_mandir/man*/*
|
|
|
|
%_bindir/*
|
|
|
|
%_datadir/applications/%name.desktop
|
|
|
|
%_datadir/pixmaps/*.png
|
|
|
|
%_datadir/pixmaps/*.xpm
|
2011-08-22 22:53:34 +02:00
|
|
|
|
|
|
|
%changelog
|