File etherape.spec of Package etherape

#
# spec file for package etherape (Version 0.9.9)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           etherape
Url:            http://etherape.sourceforge.net/
BuildRequires:  docbook_4 fdupes gnome-doc-utils-devel libglade2-devel libgnomeui-devel libpcap-devel pkgconfig scrollkeeper update-desktop-files
License:        GPLv2+
Group:          Productivity/Networking/Diagnostic
AutoReqProv:    on
Summary:        A Graphical Network Monitor
Version:        0.9.9
Release:        1
Source0:        http://prdownloads.sourceforge.net/etherape/%{name}-%{version}.tar.bz2
Patch0:         etherape-0.9.7-desktop.patch
Patch1:         etherape-0.9.9-sequence_point.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
EtherApe is a graphical network monitor for Unix, modeled after
etherman. Featuring link layer, IP, and TCP modes, it displays network
activity graphically. Hosts and links change in size with traffic.
Various protocols are color coded in the display. It supports ethernet,
FDDI, token ring, ISDN, PPP, and SLIP devices. It can filter traffic to
show and can read traffic from a file as well as live from the network.



%prep
%setup -q
%patch0 -p1
%patch1
%__sed -ie "s#http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd#file:///usr/share/sgml/docbook/dtd/4.2/docbookx.dtd#" doc/C/etherape.xml

%build
%configure --with-pic
%__make %{?_smp_mflags}

%check
%__make check

%install
%__make install DESTDIR=%{buildroot}
%suse_update_desktop_file %{name} System Network
%find_lang %{name}
%fdupes %{buildroot}

%clean
%__rm -rf %{buildroot}

%files -f %{name}.lang
%defattr(-, root, root)
%doc COPYING TODO NEWS README* AUTHORS ABOUT-NLS
%dir %{_sysconfdir}/etherape
%config %{_sysconfdir}/etherape/services
%{_bindir}/etherape
%{_datadir}/applications/etherape.desktop
%{_datadir}/etherape
%{_mandir}/man1/etherape.1*
%{_datadir}/omf/etherape
%{_datadir}/pixmaps/etherape.png
%exclude %{_localstatedir}/lib/scrollkeeper

%changelog
openSUSE Build Service is sponsored by