File knemo.spec of Package knemo

#
# spec file for package knemo
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2007-2009,2011,2012 Herbert Graeber
# Copyright (c) 2010 Pascal Bleser
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           knemo
Version:        0.7.7
Release:        0
Summary:        The KDE Network Monitor
License:        GPL-2.0+
Group:          System/GUI/KDE
Url:            http://kde-apps.org/content/show.php/KNemo?content=12956
Source:         http://kde-apps.org/CONTENT/content-files/12956-knemo-%{version}.tar.xz
Source1:        knemo-rpmlintrc
BuildRequires:  kdebase4-workspace-devel
BuildRequires:  libiw-devel
BuildRequires:  libkde4-devel
BuildRequires:  libnl3-devel
BuildRequires:  wireless-tools
Provides:       kde4-knemo = %{version}
Obsoletes:      kde4-knemo < %{version}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires

%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
cd build
%kde4_makeinstall
cd ..

%suse_update_desktop_file knemo Qt KDE System Monitor
%kde_post_install

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 README
%{_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
%_kde4_appsdir/kconf_update/

%changelog