Sophie

Sophie

distrib > Mandriva > 10.2 > x86_64 > by-pkgid > 2c169bc23bdedd7633ad99946e8311c7 > files > 2

knemo-0.3.1-2mdk.src.rpm

%define name    knemo
%define version 0.3.1
%define release 2mdk
%define Summary The KDE Network Monitor

Summary:        %{Summary}
Name:           %{name}
Version:        %{version}
Release:        %{release}

License: GPL
Group: Graphical desktop/KDE
Source: knemo-%{version}.tar.bz2
URL: http://kde-apps.org/content/show.php?content=12956

BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires: kdelibs-devel
Requires: /sbin/ifconfig, /sbin/iwconfig

%description
KNemo offers a network monitor similar to the one found in Windows. 
For every network interface it displays an icon in the systray.

Features:
* support for ethernet (including wireless) and ppp connections
* the icon shows incoming/outgoing traffic
* hiding of icon when the interface is not available
* automatic detection of wireless extensions for ethernet interfaces
* left-clicking on an icon displays a status dialog with information
  about the selected interface (2nd click hides dialog)
* configuration via context menu or control center module
  (Internet & Network/Network Monitor)
* customizable tooltip for quick access to often needed information
* you can activate 2 custom entries for the context menu. They can 
  have custom text and a command to run when selected. You can even 
  select if the commands need root permissions or not.
* automatic detection of available interfaces (click on 'Default' in 
  the configuration dialog and KNemo will look under /proc/net/dev for
  interfaces)
* KNemo uses more standard icon names which allows support from other
  icon themes.

Please make sure that in the settings the paths for 'ifconfig' and 'iwconfig'
are correct and that both programs are installed.

IMPORTANT: KNemo is not an executable but an KDED service. Therefore 
it has to be started using Control Center/KDE Components/Service Manager. 

%prep
%setup -q

%build
%configure --disable-rpath
%make

%install
rm -rf %{buildroot}
%makeinstall

# We need some way for knemo to find it kcm module
# suggested patch on URL seems wrong!
# What is this about? This seem wrong too. But it works!
mkdir %{buildroot}/%{_menudir}
kdedesktop2mdkmenu.pl %{name} Configuration/KDE/Network %{buildroot}/%{_datadir}/applnk/Settings/Network/kcm_knemo.desktop %{buildroot}/%{_menudir}/kcm-%{name} kde

%clean
rm -rf %buildroot

%post
%update_menus

%postun
%clean_menus

%files
%defattr(-,root,root)
%{_libdir}/kde3/kcm_knemo.la
%{_libdir}/kde3/kcm_knemo.so
%{_libdir}/kde3/kded_knemod.la
%{_libdir}/kde3/kded_knemod.so
%{_datadir}/applnk/Settings/Network/kcm_knemo.desktop
%{_datadir}/services/kded/knemod.desktop

# What is this about?
%{_menudir}/kcm-%{name}

%{_datadir}/icons/*/*/actions/*.png
%{_datadir}/icons/*/*/apps/*.png

%{_datadir}/apps/knemo/eventsrc
%lang(bg) %{_datadir}/locale/bg/LC_MESSAGES/*
%lang(cs) %{_datadir}/locale/cs/LC_MESSAGES/*
%lang(de) %{_datadir}/locale/de/LC_MESSAGES/*
%lang(es) %{_datadir}/locale/es/LC_MESSAGES/*
%lang(fr) %{_datadir}/locale/fr/LC_MESSAGES/*
%lang(it) %{_datadir}/locale/it/LC_MESSAGES/*
%lang(nl) %{_datadir}/locale/nl/LC_MESSAGES/*
%lang(pt_BR) %{_datadir}/locale/pt_BR/LC_MESSAGES/*
%lang(ru) %{_datadir}/locale/ru/LC_MESSAGES/*

%changelog
* Sat Mar 19 2005 Nicolas Lécureuil <neoclust@mandrake.org> 0.3.1-1mdk
- rebuild

* Fri Oct 01 2004 Nick Brown <nickbrown@mandrake.org> 0.3.1-1mdk
- 0.3.1

* Mon Sep 13 2004 Nick Brown <nickbrown@mandrake.org> 0.3.0-1mdk
- 0.3.0
- fixed packaging of locale

* Tue Aug 24 2004 Nick Brown <nickbrown@mandrake.org> 0.2.3-1mdk
- 0.2.3

* Fri Aug 20 2004 Nick Brown <nickbrown@mandrake.org> 0.2.2-1mdk
- 0.2.2

* Thu Aug 12 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 0.2.1-1mdk
- 0.2.1

* Mon Jul 26 2004 Laurent MONTEL <lmontel@mandrakesoft.com> 0.2.0-1mdk
- 0.2.0

* Tue Jul 13 2004 Nick Brown <nickbroon@blueyonder.co.uk> 0.1.10-1mdk
- New release 1.10
- remove ipv6 interface patch, fixed upstream
- Requires /sbin/ifconfig /sbin/iwconfig
* Fri Jun 25 2004 Nick Brown <nickbroon@blueyonder.co.uk> 0.1.8-1mdk
- First Mandrake release