Version: 0.5.4
Release: 1
Source0: http://ettercap.sourceforge.net/download/%{name}-%{version}.tar.gz
+Patch0: %{name}-dont_require_root.patch
+Patch1: %{name}-ncurses.patch
URL: http://ettercap.sourceforge.net/
License: GPL
Group: Networking/Utilities
Group(es): Red/Utilitarios
Group(pl): Sieciowe/Narzêdzia
Group(pt_BR): Rede/Utilitários
+BuildRequires: ncurses-devel
+BuildRequires: openssl-devel
Buildroot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
%prep
%setup -q
+%patch0 -p1
+%patch1 -p1
%build
-%configure --disable-debug
+aclocal
+autoconf
+%configure \
+ --disable-debug \
+ --enable-ncurses \
%{__make}
%{__make} plug-ins
%{__make} install DESTDIR=$RPM_BUILD_ROOT
%{__make} plug-ins_install DESTDIR=$RPM_BUILD_ROOT
+gzip -9nf \
+ README README.PLUGINS HISTORY CHANGELOG AUTHORS TODO \
+ THANKS KNOWN-BUGS PORTINGS
+
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%{_mandir}/man8/*
-%doc COPYING README README.PLUGINS HISTORY CHANGELOG AUTHORS TODO THANKS KNOWN-BUGS PORTINGS
+%doc *.gz
%attr(755,root,root) %{_bindir}/*
%{_datadir}/ettercap/*