Summary:   readline wrapper
Name:      rlwrap
Version:   @VERSION@
Release:   1
URL:       http://utopia.knoware.nl/~hlub/rlwrap/
Source0:   %{url}/%{name}-%{version}.tar.gz
License:   GPL
Group:     Applications/System
BuildRoot: %{_tmppath}/%{name}-root
Requires:  readline >= 4.2
Prefix:    /usr


# %define prefix /usr



%description
rlwrap is a 'readline wrapper', i.e. a small utility that uses the GNU
readline library to allow the editing of keyboard input to any
command's stdin.  rlwrap should be especially useful when
you need user-defined (by way of completion word lists) and history
completion.
%prep
%setup -q

%build
CFLAGS=${RPM_OPT_FLAGS} CPPFLAGS=${RPM_OPT_FLAGS} ./configure --bindir=%{prefix}/bin --mandir=%{prefix}/share/man --prefix=%{prefix}
make

%install
make DESTDIR=${RPM_BUILD_ROOT} install
gzip -9 ${RPM_BUILD_ROOT}%{prefix}/share/man/*/*


%clean
rm -rf $RPM_BUILD_ROOT

%files 
%doc README
%doc NEWS
%doc ChangeLog
%attr(-,root,root) %dir %{prefix}/share/rlwrap
%attr(-,root,root) %{prefix}/bin/rlwrap
%attr(-,root,root) %{prefix}/share/man/man1/rlwrap.1.gz
%attr(-,root,root) %{prefix}/share/rlwrap/ftp



%changelog
