%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`) Summary: Amap - a next-generation scanning tool Name: amap Version: 5.2 Release: 1 License: GPL Group: Networking Packager: Scott R. Shinn Source0: http://freeworld.thc.org/releases/%{name}-%{version}.tar.gz Patch0: %{name}-destdir.patch Patch1: %{name}-path.patch Patch2: %{name}-ldflags.patch Patch3: %{name}-new-homepage.patch Patch4: %{name}-system-pcre.patch URL: http://www.thc.org/thc-amap/ BuildRequires: openssl-devel BuildRequires: pcre-devel BuildRoot: %{_builddir}/%{name}-root %description Amap is a next-generation scanning tool, which identifies applications and services even if they are not listening on the default port by creating a bogus-communication and analyzing the responses. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %if 0%{!?fc10} %patch4 -p1 %endif %build ./configure \ --prefix=%{_prefix} %{__make} %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(644,root,root,755) %doc CHANGES README TODO %attr(755,root,root) %{_bindir}/* %{_mandir}/man1/amap.1* %{_datadir}/%{name} %changelog * %{date} Scott R. Shinn - Imported from PLD