File knemo.spec of Package knemo

#
# spec file for package knemo
#
# Copyright (c) 2007-2009 Herbert Graeber
# Copyright (c) 2010      Pascal Bleser
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#

# norootforbuild

Name:          knemo
Version:       0.6.3
Release:       0
License:       GPL
Group:         System/GUI/KDE
Summary:       The KDE Network Monitor
Source:        http://kde-apps.org/CONTENT/content-files/12956-knemo-%{version}.tar.bz2
BuildRoot:     %{_tmppath}/%{name}-%{version}-build
BuildRequires: licenses
BuildRequires: libkde4-devel
BuildRequires: wireless-tools libiw-devel libnl-devel 
%kde4_runtime_requires
Provides:      kde4-knemo = %{version}
Obsoletes:     kde4-knemo < %{version}

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

%prep  
%setup -q
  
%build
%cmake_kde4 -d build  
%make_jobs  
  
%install  
pushd build  
%makeinstall 
%suse_update_desktop_file knemo Qt KDE System Monitor
%kde_post_install  
popd #build

%__rm -rf "%{buildroot}%{_datadir}/locale"/sr@ijekavian*

%find_lang %{name} %{name}.lang
%find_lang kcm_%{name} %{name}.lang

%post -p /sbin/ldconfig  
  
%postun -p /sbin/ldconfig  

%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING INSTALL README TODO
%{_bindir}/knemo                            
%{_libdir}/kde4/kcm_knemo.so              
%{_datadir}/applications/kde4/knemo.desktop
%{_datadir}/autostart/knemo.desktop        
%{_datadir}/icons/hicolor/*/apps/knemo*
%{_datadir}/icons/hicolor/*/status/knemo*
%{_datadir}/kde4/apps/knemo
%{_datadir}/kde4/services/kcm_knemo.desktop

%changelog
# vim: set sw=4 ts=4 et:
openSUSE Build Service is sponsored by