Name: knemo
Version: 0.5.2
Release: 2%{?dist}
Summary: A KDE network monitoring tool
Group: Applications/Internet
License: GPLv2+
URL: http://extragear.kde.org/apps/knemo/
Source0: http://kde-apps.org/CONTENT/content-files/12956-%{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: cmake desktop-file-utils gettext
BuildRequires: kdelibs4-devel wireless-tools-devel net-tools
Requires: wireless-tools net-tools
Requires(post): xdg-utils
Requires(postun): xdg-utils
%description
KNemo displays for every network interface an icon in the systray. Tooltips
and an info dialog provide further information about the interface. Passive
popups inform about interface changes. A traffic plotter is also integrated.
It polls the network interface status every second using the ifconfig, route
and iwconfig tools.
%prep
%setup -q
%build
mkdir -p %{_target_platform}
pushd %{_target_platform}
%{cmake_kde4} ..
popd
make %{?_smp_mflags} -C %{_target_platform}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=${RPM_BUILD_ROOT} -C %{_target_platform}
desktop-file-install \
--dir $RPM_BUILD_ROOT%{_datadir}/applications/kde4 \
$RPM_BUILD_ROOT%{_datadir}/applications/kde4/%{name}.desktop
%find_lang %{name}
%find_lang kcm_%{name}
cat kcm_%{name}.lang >> %{name}.lang
%clean
rm -rf $RPM_BUILD_ROOT
%post
xdg-icon-resource forceupdate --theme hicolor 2> /dev/null || :
xdg-desktop-menu forceupdate 2> /dev/null || :
%postun
xdg-icon-resource forceupdate --theme hicolor 2> /dev/null || :
xdg-desktop-menu forceupdate 2> /dev/null || :
%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING README TODO
%{_kde4_bindir}/knemo
%{_kde4_libdir}/kde4/kcm_knemo.so
%{_kde4_appsdir}/knemo/
%{_kde4_datadir}/applications/kde4/knemo.desktop
%{_kde4_datadir}/kde4/services/kcm_knemo.desktop
%{_kde4_datadir}/autostart/knemo.desktop
%{_kde4_iconsdir}/hicolor/*/apps/knemo.*
%changelog
* Wed Apr 01 2009 Itamar Reis Peixoto <itamar@ispbrasil.com.br> - 0.5.2-2
- fix dist-tag
* Wed Apr 1 2009 Alexey Kurov <nucleo@fedoraproject.org> - 0.5.2-1.1
- Update to version 0.5.2
- Fixed spec License and URL fields
* Tue Mar 17 2009 Alexey Kurov <nucleo@fedoraproject.org> - 0.5.1-5
- Upstream update from git.mehercule.net
* Thu Mar 5 2009 Alexey Kurov <nucleo@fedoraproject.org> - 0.5.1-1
- Update to version 0.5.1
* Wed Feb 25 2009 Alexey Kurov <nucleo@fedoraproject.org> - 0.5.0-3
- Update to version 0.5.0 for KDE4
* Tue Apr 17 2007 Francois Aucamp <faucamp@csir.co.za> - 0.4.7-1
- Update to version 0.4.7
- Removed unnecessary desktop-file-install statements (KDE-specific desktop
files)
- Removed desktop file patch - desktop file "Keywords" keys used internally
by KDE
- Added "OnlyShowIn=KDE" to kcm desktop file
- Removed unnecessary BuildRequires: qt-devel desktop-file-utils
- Simplified %%post and %%postun scriplets
- Use RPM_BUILD_ROOT variable format consistently
* Wed Sep 13 2006 Hugo Cisneiros <hugo@devin.com.br> 0.4.3-2
- Rebuilt for FC6
* Sun Aug 6 2006 Hugo Cisneiros <hugo@devin.com.br> 0.4.3-1
- New upstream version
* Mon Jun 26 2006 Hugo Cisneiros <hugo@devin.com.br> 0.4.2-1
- Upstream update
- Fixes crashing when you click in panel icon (bz #196576)
- ifconfig and iwconfig are now in both Requires and
BuildRequires (it checks while building too)
* Tue Jun 13 2006 Hugo Cisneiros <hugo@devin.com.br> 0.4.1-2
- ifconfig and iwconfig are now in Requires section instead
of BuildRequires. They are runtime dependencies. Thanks to
Kevin Kofler for pointing this.
* Mon Jun 12 2006 Hugo Cisneiros <hugo@devin.com.br> 0.4.1-1
- Upstream update
* Tue May 30 2006 Hugo Cisneiros <hugo@devin.com.br> 0.4.0-4
- Created BuildRequires for the ifconfig and iwconfig commands,
as knemo utilizes it for monitoring.
- Removed addition of categories in desktop-file-install command
* Thu May 25 2006 Hugo Cisneiros <hugo@devin.com.br> 0.4.0-3
- Removed vendor option from desktop-file-install (no renaming)
* Sat May 20 2006 Hugo Cisneiros <hugo@devin.com.br> 0.4.0-2
- Installed .desktop files now use desktop-file-install
* Sat May 20 2006 Hugo Cisneiros <hugo@devin.com.br> 0.4.0-1
- Initial RPM release.