-Summary: Fullscreen ftp client
-Summary(pl): Pe³noekranowy klient ftp
+Summary: Fullscreen FTP client
+Summary(pl): Pe³noekranowy klient FTP
Name: cftp
-Version: 0.10
+Version: 0.12
Release: 2
License: GPL
Group: Applications/Networking
-Group(de): Applikationen/Netzwerkwesen
-Group(pl): Aplikacje/Sieciowe
Source0: http://ftp.giga.or.at/pub/nih/cftp/%{name}-%{version}.tar.gz
+# Source0-md5: e497c2cf060a6906f48ac99f55bedc8a
Patch0: %{name}-info.patch
Patch1: %{name}-no_libnsl.patch
-BuildRequires: autoconf
+Patch2: %{name}-AC_LIBOBJ.patch
+Patch3: %{name}-ac_better_tgetent_detection.patch
+BuildRequires: autoconf >= 2.53
BuildRequires: automake
-BuildRequires: ncurses-devel >= 5.0
-BuildRequires: readline-devel >= 4.1
+BuildRequires: readline-devel >= 4.2
+BuildRequires: texinfo
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _sysconfdir /etc
-
%description
CFTP is used to transfer files from one computer to another via the
-FTP protocol. It's advantages over most standard ftp clients is its
+FTP protocol. It's advantages over most standard FTP clients is its
fullscreen representation of the remote directory tree, providing a
compact overview of the remote server's contents.
%description -l pl
-CFTP jest u¿ywany do przesy³ania plików z jednego komputera na inny poprzez
-protokó³ FTP. Jego zalety ponad innymi klientami ftp to pe³noekranowa
-reprezentacja drzewa katalogów zdalnego komputera, wsparcie dla IPv6 i inne.
+CFTP jest u¿ywany do przesy³ania plików z jednego komputera na inny
+poprzez protokó³ FTP. Jego zalety ponad innymi klientami FTP to
+pe³noekranowa reprezentacja drzewa katalogów zdalnego komputera,
+wsparcie dla IPv6 i inne.
%prep
%setup -q
%patch0 -p1
%patch1 -p1
+%patch2 -p1
+%patch3 -p1
%build
-rm -f missing
-aclocal
-autoconf
-automake -a -c
+%{__aclocal}
+%{__autoconf}
+%{__autoheader}
+%{__automake}
%configure
%{__make}
%install
rm -rf $RPM_BUILD_ROOT
-%{__make} install DESTDIR=$RPM_BUILD_ROOT
-
-gzip -9nf AUTHORS ChangeLog NEWS THANKS TODO
+%{__make} install \
+ DESTDIR=$RPM_BUILD_ROOT
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
-%doc *.gz
+%doc AUTHORS ChangeLog NEWS THANKS TODO
%attr(755,root,root) %{_bindir}/*
-%{_infodir}/*info*
+%{_infodir}/*.info*