A new user interface for you! Read more...

File rate.spec of Package test

# norootforbuild

Name:				rate
Version:			0.9
Release:			0
Summary:			Traffic Analysis Tool
Source:			http://s-tech.elsat.net.pl/bmtools/rate-%{version}.tar.gz
Patch1:			rate-optflags.diff
Patch2:			rate-fix-pcap.diff
Patch3:			rate-add_missing_includes.patch
URL:				http://s-tech.elsat.net.pl/bmtools/
Group:			Productivity/Networking/Diagnostic
License:			GNU General Public License (GPL)
BuildRoot:		%{_tmppath}/build-%{name}-%{version}
BuildRequires:	make gcc glibc-devel
%if %suse_version >= 1030
BuildRequires:	libpcap-devel
%else
BuildRequires:	libpcap
%endif

%description
'rate' is a swiss-army-knife commandline traffic analysis tool, designed to
help a network administrator to see what is happening at a router at the
moment.
Unlike tcpdump(1), rate uses statistical and stream-oriented methods, and will
never produce an output stream at a speed beyond human perception. The output
is less accurate, however.
Rate features four different operating modes, designed to perform the
following tasks: estimating overall traffic rates, determining nodes
generating the highest traffic, determining connections and flows generating
the highest traffic and extracting strings from packets.

%debug_package
%prep
%setup -q
%patch1
%patch2
%patch3

%build
%__make %{?jobs:-j%{jobs}} CC="%__cc" OPTFLAGS="%{optflags}"

%install
%__install -D -m 0755 rate "%{buildroot}%{_sbindir}/rate"
%__install -D -m 0644 doc/rate.1 "%{buildroot}%{_mandir}/man1/rate.1"

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

%files
%defattr(-,root,root)
%doc COPYING README doc/rate.html
%{_sbindir}/rate
%{_mandir}/man1/rate.1*

%changelog
* Mon Dec 31 2007 Pascal Bleser <guru@unixtech.be> 0.9
- moved to openSUSE Build Service

* Sun Mar 25 2007 Pascal Bleser <guru@unixtech.be> 0.9-3
- rewrote spec file

* Thu Dec  8 2005 Pascal Bleser <guru@unixtech.be> 0.9-1
- new package

# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End: