Summary: A Network Monitor for the GNOME Desktop Name: gnome-network-monitor Version: 0.9.1 Release: 5%{?dist} License: GPL ExclusiveOS: Linux Group: Applications/Internet URL: http://gnetworkmonitor.sf.net Source0: http://downloads.sourceforge.net/sourceforge/gnetworkmonitor/%{name}-%{version}.tar.gz Patch0: gnm-category.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} BuildRequires: intltool BuildRequires: gettext BuildRequires: python BuildRequires: desktop-file-utils Requires: pygtk2 Requires: python >= 2.4 Requires: python-sqlite2 Requires: usermode >= 1.36 Requires: pygtk2-libglade Requires: gnome-python2-gconf Requires: gnome-icon-theme Requires(post): hicolor-icon-theme Requires(postun): hicolor-icon-theme %description Gnome Network Monitor is a tool that allows monitoring of network activity on a system. Features: * Network statistics overview * Per-process overview of network traffic on your computer visually similar to top * Bandwidth usage with graphical histogram and other information about network interfaces such as IP address * Parsing of iptables log %prep %setup -q %patch -p1 -b .category %build make %install rm -rf %{buildroot} make DESTDIR=%{buildroot} install # do this on RH-based system, install is more generic and does not take care # of stuff like consolehelper make DESTDIR=%{buildroot} usermode desktop-file-install --vendor "" --delete-original \ --dir %{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/%{name}.desktop %find_lang %name find %{buildroot}%{_datadir} -name "*.mo" | xargs ./utf8ify-mo %clean rm -rf %{buildroot} %files -f %{name}.lang %defattr(-,root,root) %doc README LICENSE %{_bindir}/%{name} %{_sbindir}/%{name} %dir %{_datadir}/%{name} %{_datadir}/%{name}/gnm.glade %{python_sitelib}/%{name}/ %attr(0644,root,root) %config(noreplace) /etc/security/console.apps/%{name} %attr(0644,root,root) %config(noreplace) /etc/pam.d/%{name} %attr(0644,root,root) %{_datadir}/applications/%{name}.desktop %changelog * Wed Jun 27 2007 Jakub Hrozek - 0.9.1-5 - require gnome-icon-theme - own the site-packages/gnome-network-monitor/ directory (#239435, comment #8) - include LICENSE file in the RPM since it's in the upstream tarball (#239435, comment #8) * Tue Jun 26 2007 Jakub Hrozek - 0.9.1-4 - fix desktop file (#239435, comment #6) * Thu May 24 2007 Jakub Hrozek - 0.9.1-3 - fix packaging bugs pointed out during review (#239435) - inconsistent use of buildroot, match with proper source tarball * Wed May 16 2007 Jakub Hrozek - 0.9.1-2 - fix python-sqlite requires (sf.net ticket #1719503) * Wed May 16 2007 Jakub Hrozek - 0.9.1-1 - bump to latest upstream * Mon May 14 2007 Jakub Hrozek - 0.9-1 - bump to latest upstream * Fri May 11 2007 Jakub Hrozek - 0.8-2 - fix packaging issues according to BZ #239435, comment #1 - use macros instead of hardcoding paths, add README, use noreplace on config, fix glade file permissions * Mon May 07 2007 Jakub Hrozek - 0.8-1 - initial packaging