File etherape.spec of Package etherape.import5318

#
# spec file for package etherape
#
# Copyright (c) 2011 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/
#



Name:           etherape
Url:            http://etherape.sourceforge.net/
License:        GPLv2+
Group:          Productivity/Networking/Diagnostic
Summary:        A Graphical Network Monitor
Version:        0.9.12
Release:        2.<RELEASE2>
Source0:        http://prdownloads.sourceforge.net/etherape/%{name}-%{version}.tar.gz
Patch0:         etherape-0.9.12-desktop.patch
BuildRequires:  docbook_4
BuildRequires:  fdupes
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  libglade2-devel
BuildRequires:  libgnomeui-devel
BuildRequires:  libpcap-devel
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
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
%__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
# Fix likely to break with new gcc strict-aliasing-punning warning
export CFLAGS="%{optflags} -fno-strict-aliasing"
%configure --with-pic --disable-scrollkeeper
%__make %{?_smp_mflags}

%check
%__make check

%install
%{makeinstall}

%suse_update_desktop_file %{name} System Network

%find_lang %{name}

%fdupes %{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}/pixmaps/etherape.png

%changelog
openSUSE Build Service is sponsored by