putty/putty-snapshot.spec

Name: putty
Summary: Graphical SSH, Telnet and Rlogin client
Version: 0.58
Release: 0.20061121
License: MIT
Group: Applications/Internet
URL: http://www.chiark.greenend.org.uk/~sgtatham/putty/
Description: Putty is a SSH, Telnet & Rlogin client for Linux.

CentOS 7 x86_64

The build could not start because of the following missing build requirements:

Build Status

CentOS 6 x86_64

The build could not start because of the following missing build requirements:

Build Status

Contents

The spec file used by the build system currently has the following contents:

# $Id$
# Authority: dag
# Upstream: <putty$projects,tartarus,org>

# Tag: rft


%{?rh7:%define _without_freedesktop 1}
%{?el2:%define _without_freedesktop 1}
%{?rh6:%define _without_freedesktop 1}

%define desktop_vendor rpmforge

Summary: Graphical SSH, Telnet and Rlogin client
Name: putty
Version: 0.58
%define real_version 0.58-2006-11-21
Release: 0.20061121%{?dist}
License: MIT
Group: Applications/Internet
URL: http://www.chiark.greenend.org.uk/~sgtatham/putty/

Source: http://www.tartarus.org/~simon/putty-unix/putty-%{real_version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root

BuildRequires: gtk+-devel, ImageMagick
%{!?_without_freedesktop:BuildRequires: desktop-file-utils}

%description
Putty is a SSH, Telnet & Rlogin client for Linux.

%prep
%setup -n %{name}-%{real_version}

%{__cat} <<EOF >putty.desktop
[Desktop Entry]
Name=Putty Terminal Client
Comment=Log on to remote systems using SSH, Telnet or Rlogin
Exec=putty
Icon=putty.png
Terminal=false
Type=Application
StartupNotify=false
Categories=GNOME;Application;Network;
EOF

./mkfiles.pl

%{__perl} -pi.orig -e 's|-O2 -Wall -Werror -g|%{optflags}|g' unix/Makefile.gtk

%build
%{__make} %{?_smp_mflags} -C unix -f Makefile.gtk \
	prefix="%{_prefix}"
%{__make} -C doc

%install
%{__rm} -rf %{buildroot}
%{__install} -d -m0755 %{buildroot}%{_bindir} \
			%{buildroot}%{_mandir}/man1/
%makeinstall -C unix -f Makefile.gtk

%if %{?_without_freedesktop:1}0
	%{__install} -Dp -m0644 putty.desktop %{buildroot}%{_datadir}/gnome/apps/Network/putty.desktop
%else
	%{__install} -d -m0755 %{buildroot}%{_datadir}/applications/
	desktop-file-install --vendor %{desktop_vendor}    \
		--add-category X-Red-Hat-Base              \
		--dir %{buildroot}%{_datadir}/applications \
		putty.desktop
%endif

convert windows/putty.ico putty.png
%{__install} -Dp -m644 putty.png.0 %{buildroot}%{_datadir}/pixmaps/putty.png || :
%{__install} -Dp -m644 putty-0.png %{buildroot}%{_datadir}/pixmaps/putty.png || :

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc CHECKLST.txt LICENCE README* doc/*.html doc/*.txt
%doc %{_mandir}/man1/p*.1*
%{_bindir}/p*
%{_datadir}/pixmaps/putty.png
%{!?_without_freedesktop:%{_datadir}/applications/%{desktop_vendor}-putty.desktop}
%{?_without_freedesktop:%{_datadir}/gnome/apps/Network/putty.desktop}

%changelog
* Fri Apr 08 2005 Dag Wieers <dag@wieers.com> - 0.58-0.20061121
- Updated to snapshot release 0.58-2006-11-21.

* Fri Apr 08 2005 Dag Wieers <dag@wieers.com> - 0.58-1
- Updated to release 0.58.

* Mon Feb 21 2005 Dag Wieers <dag@wieers.com> - 0.57-1
- Updated to release 0.57.

* Mon Nov 01 2004 Dag Wieers <dag@wieers.com> - 0.56-1
- Updated to release 0.56.

* Wed Aug 04 2004 Dag Wieers <dag@wieers.com> - 0.55-1
- Updated to release 0.55.

* Sun Apr 04 2004 Dag Wieers <dag@wieers.com> - 0.54-1
- Disabled StartupNotify in desktop-file. (Gavin Henry)

* Mon Feb 16 2004 Dag Wieers <dag@wieers.com> - 0.54-0
- Updated to release 0.54.

* Mon Nov 24 2003 Dag Wieers <dag@wieers.com> - 0.53-0.20030821
- Initial package. (using DAR)