File jnettop.spec of Package jnettop
# norootforbuild
Name: jnettop
Version: 0.13.0
Release: 0
Summary: Online Network Traffic Visualizer
# http://jnettop.kubs.info/dist/jnettop-%{version}.tar.gz
Source: jnettop-%{version}.tar.bz2
Source1: %{name}.desktop
Source2: %{name}.png
Patch1: jnettop-fix_lib_order.patch
URL: http://jnettop.kubs.info/
Group: System/Monitoring
License: GNU General Public License version 2 (GPL v2)
BuildRoot: %{_tmppath}/build-%{name}-%{version}
Requires: samba-client
%if %suse_version >= 1030
BuildRequires: libpcap-devel libpcap
%else
BuildRequires: libpcap
%endif
BuildRequires: glib2-devel ncurses-devel
BuildRequires: make gcc glibc-devel pkgconfig
BuildRequires: autoconf automake libtool update-desktop-files
%description
Jnettop allows administrators of routers to watch online traffic coming
across the network in a fashion similar to the way top displays statistics
about processes. It is useful for quickly evaluating the state of the network.
Authors:
--------
Jakub Skopal <j@kubs.cz>
Marcin Kaminski <maxiu@man.poznan.pl>
%prep
%setup -q
%patch1
%build
%configure
%__make %{?jobs:-j%{jobs}}
%install
%makeinstall
%__install -D -m 0644 "%{SOURCE1}" "%{buildroot}%{_datadir}/applications/%{name}.desktop"
%__install -D -m 0644 "%{SOURCE2}" "%{buildroot}%{_datadir}/pixmaps/%{name}.png"
%suse_update_desktop_file -r "%{name}" Network Monitor
%clean
%__rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_bindir}/jnettop
%{_datadir}/jnettop
%doc %{_mandir}/man8/jnettop.8*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%changelog
* Wed Mar 26 2008 Pascal Bleser <guru@unixtech.be> 0.13.0
- moved to openSUSE Build Service
* Tue May 2 2006 Pascal Bleser <guru@unixtech.be> 0.13.0-1
- moved autoreconf and configure to build section
- added binary stripping on SUSE < 9.3
- new upstream version
* Thu Apr 13 2006 Pascal Bleser <guru@unixtech.be> 0.12.0-1
- new upstream version
- rewrote spec file
* Fri Jul 1 2005 Pascal Bleser <guru@unixtech.be> 0.11.0-1
- version 0.11.0
* Fri Oct 8 2004 Pascal Bleser <guru@unixtech.be> 0.10.1-1
- new package
# Local Variables:
# mode: rpm-spec
# tab-width: 3
# End: