File lft.spec of Package lft

# vim: set sw=4 ts=4 et:

Name:           lft
Version:        3.8
Release:        0
Summary:        Alternative Traceroute and Whois Toolkit for Network (reverse) Engineers
# http://pwhois.org/get/lft-%{version}.tar.gz
Source:         lft-%{version}.tar.xz


#
# fixed in upstream
#
#Patch1:         lft-fix_missing_return_in_non_void_function.patch


Patch2:         lft-disable_strip.patch
URL:            http://pwhois.org/lft/
Group:          Productivity/Networking/Other
License:        Open Software License
BuildRoot:      %{_tmppath}/build-%{name}-%{version}
BuildRequires:  gcc make glibc-devel libtool
%if %suse_version >= 1030
BuildRequires:  libpcap-devel
%else
BuildRequires:  libpcap
%endif

%description
LFT (Layer Four Traceroute) is a sort of "traceroute" that often works much
faster than the commonly-used Van Jacobson method and goes through many
configurations of packet-filter based firewalls.

More importantly, LFT implements numerous other features, including AS number
lookups through several reliable sources, loose source routing, netblock name
lookups, and more.

LFT also distinguishes between TCP-based protocols, which make its statistics
slightly more realistic, and gives a savvy user the ability to trace protocol
routes, not just layer-3 hops.

%prep
%setup -q
#%patch1
%patch2 -p1

%build
export CFLAGS="%{optflags} -DDONT_USE_GETHOSTBYNAME"
%configure
%__make %{?_smp_flags}

%install
%makeinstall
%__chmod 0644 "%{buildroot}%{_mandir}/man8"/*.8

%clean
%{?buildroot:%__rm -rf "%{buildroot}"}

%files
%defattr(-,root,root)
%doc CHANGELOG COPYING README TODO
%{_bindir}/lft
%{_bindir}/whob
%doc %{_mandir}/man8/lft.8%{ext_man}
%doc %{_mandir}/man8/whob.8%{ext_man}

%changelog
openSUSE Build Service is sponsored by