From f8668eaf72e7446e94b55553f1974231f8b50fdd Mon Sep 17 00:00:00 2001 From: mkochano Date: Thu, 6 Sep 2001 15:39:36 +0000 Subject: [PATCH] - Added dont_require_root patch so it will build as any user. - Added ncurses so it will build ncurses interface. - More BuildRequires. - Gzipped documentation. - Removed COPYING from docs. Clear copyright in License field. Changed files: ettercap6.spec -> 1.2 --- ettercap6.spec | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/ettercap6.spec b/ettercap6.spec index 8c48f7e..e09c8bd 100644 --- a/ettercap6.spec +++ b/ettercap6.spec @@ -3,6 +3,8 @@ Name: ettercap 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 @@ -10,6 +12,8 @@ Group(de): Netzwerkwesen/Werkzeuge 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 @@ -18,9 +22,15 @@ ettercap is a multipurpose sniffer/interceptor/logger for switched or %prep %setup -q +%patch0 -p1 +%patch1 -p1 %build -%configure --disable-debug +aclocal +autoconf +%configure \ + --disable-debug \ + --enable-ncurses \ %{__make} %{__make} plug-ins @@ -29,12 +39,16 @@ rm -rf $RPM_BUILD_ROOT %{__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/* -- 2.43.0