1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78
|
# Note that this is NOT a relocatable package
# scrollkeeper creates additional *private* files on first call, and I
# found no way of purging them, so to build correctly, I must disable
# the useful unpackaged files check
%define _unpackaged_files_terminate_build 0
%define RELEASE 1
%define rel %{?CUSTOM_RELEASE} %{!?CUSTOM_RELEASE:%RELEASE}
%define prefix /usr
%define confdir /etc
Summary: Graphical network viewer modeled after etherman.
Name: etherape
Version: 0.9.7
Release: %rel
License: GPL
Group: Applications/Networking
URL: http://etherape.sourceforge.net/
Source: http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
BuildRoot: /var/tmp/etherape-%{PACKAGE_VERSION}-root
Docdir: %{prefix}/doc
BuildRequires: scrollkeeper
#Requires: gnome-libs >= 1.0.0
#Requires: libglade >= 0.11
Requires(post): scrollkeeper
Requires(postun): scrollkeeper
%description
Etherape is a graphical network monitor for Unix modeled after
etherman. Featuring ether, ip and tcp modes, it displays network
activity graphically. Hosts and links change in size with traffic.
Color coded protocols display. It supports ethernet, ppp and slip
devices. It can filter traffic to be shown, and can read traffic
from a file as well as live from the network.
%changelog
* Sat May 6 2006 R.Ghetta <bchiara@users.sf.net>
- a bit of modernization
* Mon Apr 3 2000 Juan Toledo <toledo@sourceforge.net>
- Initial spec file copied from electric eyes
%prep
%setup -q
%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --sysconfdir=%{confdir} --enable-static-pcap
make
%install
rm -rf $RPM_BUILD_ROOT
make prefix=$RPM_BUILD_ROOT%{prefix} sysconfdir=$RPM_BUILD_ROOT%{confdir} install
strip $RPM_BUILD_ROOT%{prefix}/bin/* ||:
%clean
rm -rf $RPM_BUILD_ROOT
%post
if [ -x %{_bindir}/scrollkeeper-update ]; then %{_bindir}/scrollkeeper-update -q || true ; fi
%postun
if [ -x %{_bindir}/scrollkeeper-update ]; then %{_bindir}/scrollkeeper-update -q|| true ; fi
%files
%defattr(-, root, root)
%doc AUTHORS COPYING ChangeLog NEWS README FAQ README.help README.bugs README.thanks
%config %{confdir}/etherape/*
%{prefix}/bin/*
%{prefix}/share/locale/*/*/*
%{prefix}/share/etherape/*/*
%{prefix}/share/gnome/*/*/*
%{prefix}/share/pixmaps/*
%{prefix}/man/man1/*
|