File tcptrack.spec of Package tcptrack
# norootforbuild
Name: tcptrack
Version: 1.3.0
Release: 0
Summary: Packet Sniffer that displays TCP Connections similarly to 'top'
Source: http://www.rhythm.cx/~steve/devel/tcptrack/release/%{version}/source/tcptrack-%{version}.tar.gz
Source1: tcptrack.desktop
Patch1: tcptrack-1.2.0-include.patch
Patch2: fix-random-return.patch
URL: http://www.rhythm.cx/~steve/devel/tcptrack/
Group: Productivity/Networking/Diagnostic
License: GNU General Public License (GPL)
BuildRoot: %{_tmppath}/build-%{name}-%{version}
BuildRequires: make gcc-c++ libstdc++-devel ncurses-devel
%if %suse_version >= 1030
BuildRequires: libpcap-devel
%else
BuildRequires: libpcap
%endif
BuildRequires: autoconf automake libtool update-desktop-files
%description
tcptrack is a packet sniffer, which passively watches for connections on
a specified network interface, tracks their states, and lists them in a
manner similar to the Unix 'top' command. It displays source and destination
addresses and ports, connection state, idle time, and bandwidth usage.
%prep
%setup -q
%patch1
%patch2 -p1
%build
%configure
%__make %{?jobs:-j%{jobs}}
%install
%makeinstall
%__install -D -m 0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop"
%suse_update_desktop_file -r "%{name}" Network Monitor
%clean
%__rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README TODO
%{_bindir}/tcptrack
%doc %{_mandir}/man1/tcptrack.1*
%{_datadir}/applications/tcptrack.desktop
%changelog
* Sun Feb 15 2009 Petr Uzel <petr.uzel@suse.cz> 1.3.0
- fix build
- fix desktop file
* Fri Feb 8 2008 Pascal Bleser <guru@unixtech.be> 1.3.0
- new upstream version
* Sun Oct 21 2007 Pascal Bleser <guru@unixtech.be> 1.2.0
- moved to openSUSE Build Service
* Thu Aug 2 2007 Pascal Bleser <guru@unixtech.be> 1.2.0-1
- new upstream version
* Sun Apr 23 2006 Pascal Bleser <guru@unixtech.be> 1.1.5-2
- added patch to remove extra qualifiers, fixes build on 10.1
- rewrote spec file
* Tue Sep 27 2005 Pascal Bleser <guru@unixtech.be> 1.1.5-1
- new upstream version: 1.1.5
- complete spec file update
- added desktop file
* Thu Apr 22 2004 Pascal Bleser <guru@unixtech.be> 1.1.0-1
- added a patch to wrap libpcap headers into an extern "C" { } linkage section, because it causes trouble
with some older versions of libpcap
- version 1.1.0
* Thu Apr 1 2004 Pascal Bleser <guru@unixtech.be> 1.1beta1-1
- new RPM
# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End: