Name: amap Version: 5.2 Release: 1%{?dist} Summary: Amap is a network security testing tool Group: Applications/Internet License: GPLv2+ URL: http://freeworld.thc.org/thc-amap/ Source0: http://freeworld.thc.org/releases/%{name}-%{version}.tar.gz Patch0: amap-use-system-pcre.patch Patch1: amap-makefile.am.patch Patch2: amap-fix-datadir-paths.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %description Amap is a next-generation tool for assisting network penetration testing. It performs fast and reliable application protocol detection, independant on the TCP/UDP port they are being bound to. %prep %setup -q %patch0 %patch1 %patch2 sed --in-place 's|^MANDIR=""$|MANDIR="%{_mandir}"|' configure rm pcre-3.9/ -rf %build ./configure --prefix=/usr cp Makefile Makefile.orig sed --in-place 's|^XLIBS=|XLIBS=-lpcre|' Makefile sed --in-place 's|^OPT=.*$|OPT=%{optflags}|' Makefile make %{?_smp_mflags} %install rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) %doc %{_bindir}/%{name} %{_bindir}/%{name}crap %{_mandir}/man1/%{name}.1.gz %{_datadir}/%{name}/appdefs.resp %{_datadir}/%{name}/appdefs.rpc %{_datadir}/%{name}/appdefs.trig %changelog * Sat Aug 2 2008 Conrad Meyer - 5.2-1 - Initial package.