Sophie

Sophie

distrib > Mageia > 1 > i586 > media > core-updates-src > by-pkgid > 42aa4e2df41415a6ed423de0267777a3 > files > 5

putty-0.61-1.1.mga1.src.rpm

%global svnver 8991
%global svndate 20100910
%define subrel 1

Name:		putty
Version:	0.61
#Release:	%mkrel 1.%{svndate}svn%{svnver}
Release:	%mkrel 1
Summary:	SSH, Telnet and Rlogin client
License:	MIT
Group:		Networking/Remote access
URL:		http://www.chiark.greenend.org.uk/~sgtatham/putty/

# The source for this package was pulled from upstream's vcs.  Use the
# following commands to generate the tarball:
#  svn export -r %{svnver} svn://svn.tartarus.org/sgt/putty putty-%{svndate}
#  tar -cjvf putty-%{svndate}.tar.bz2 putty-%{svndate}
#Source:		%{name}-%{svndate}.tar.bz2
Source:		http://the.earth.li/~sgtatham/putty/latest/%{name}-%{version}.tar.gz
Source1:	%{name}.desktop
Source2:	%{name}-icons.tar.bz2
Patch0:		putty-perms.patch

BuildRequires:	gtk2-devel halibut

%description
This is the Unix port of the popular Windows ssh client, PuTTY. It
supports flexible terminal setup, mid-session reconfiguration using
Ctrl-rightclick, multiple X11 authentication protocols, and various
other interesting things not provided by ssh in an xterm.


%prep
#%setup -q -n %{name}-%{svndate}
#%setup -q -T -D -a2 -n %{name}-%{svndate}
%setup -q
%setup -q -T -D -a2
%patch0 -p1 -b .perms


%build
./mkfiles.pl
%make -C doc

pushd unix
sed -i -e "s/-O2 -Wall -Werror/%{optflags}/g" \
	-e "s,/usr/local,%{_prefix},g" \
	Makefile.gtk
ln -s Makefile.gtk Makefile
popd
%make VER=-DSNAPSHOT=%{version} -C unix


%install
install -d  html
install -pm 0644 doc/*.html html
%makeinstall INSTALL="install -p" -C unix

desktop-file-install \
  --vendor "" \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  %{SOURCE1}

install -D -m 644 %{name}48.png %buildroot/%{_datadir}/icons/hicolor/48x48/apps/%name.png
install -D -m 644 %{name}32.png %buildroot/%{_datadir}/icons/hicolor/32x32/apps/%name.png
install -D -m 644 %{name}32.png %buildroot/%{_datadir}/icons/%name.png
install -D -m 644 %{name}16.png %buildroot/%{_datadir}/icons/hicolor/16x16/apps/%name.png

%files
%doc LICENCE README CHECKLST.txt html
%{_bindir}/*
%{_mandir}/man1/*.1*
%{_datadir}/applications/*
%{_datadir}/icons/hicolor/*/apps/*.png
%{_datadir}/icons/putty.png



%changelog
* Sat Jul 30 2011 stormi <stormi> 0.61-1.1.mga1
+ Revision: 130500
- update release to follow updates policy

  + sander85 <sander85>
    - import putty for Mageia 1
    - copy putty to mga1

* Wed Jul 13 2011 sander85 <sander85> 0.61-1.mga2
+ Revision: 123812
- new version: 0.61

* Thu Jun 30 2011 sander85 <sander85> 0.60-1.20100910svn8991.mga2
+ Revision: 116931
- imported package putty


* Thu Jun 30 2011 Sander Lepik <sander.lepik@eesti.ee> - 0.60-1.20100910svn8991.mga2
- Initial import (mixed from Mandriva & Fedora)