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

Name:           knemo
Version:        0.7.6
Release:        0
Summary:        The KDE Network Monitor
License:        GPL-2.0+
Group:          System/GUI/KDE
# PATCH-FIX-UPSTREAM fix-show-icon-when-not-configured.patch -- show icon when no configuration is present (kde#328752)
Patch:          fix-show-icon-when-not-configured.patch
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

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

%setup -q
%patch -p4

%cmake_kde4 -d build

cd build
cd ..

%suse_update_desktop_file knemo Qt KDE System Monitor

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

openSUSE Build Service is sponsored by