File kde3-knemo.spec of Package kde3-knemo

#
# spec file for package kde3-knemo
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright 2006-2007 Detlef Reichelt <detlef@links2linux.de>
# Copyright 2009 Buschmann <buschmann23@opensuse.org>
#
# 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/
#


%define	_prefix	/opt/kde3

Name:           kde3-knemo
Version:        0.4.8
Release:        0

Summary:        KDE Network Monitor
License:        GPL-2.0
Group:          Productivity/Networking/Diagnostic 
Url:            http://kde-apps.org/content/show.php?content=12956

BuildRoot:      %{_tmppath}/%{name}-%{version}-build

Source0:        12956-knemo-%{version}.tar.bz2
Patch0:         knemod.sys-def.diff
Patch1:         libtool-aarch64.diff

BuildRequires:  bzip2
BuildRequires:  kdelibs3-devel
BuildRequires:  libjpeg-devel
BuildRequires:  update-desktop-files
BuildRequires:  wireless-tools

Provides:       knemo = 0.4.8
Obsoletes:      knemo < 0.4.8

%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 -n knemo-%{version}
%patch0 -p1
%patch1 -p1
. /etc/opt/kde3/common_options
update_admin

%build
. /etc/opt/kde3/common_options
./configure $configkde --disable-final

make %{?jobs:-j%jobs}

%install
%makeinstall

%suse_update_desktop_file kcm_knemo -G "Monitor network interfaces"
%suse_update_desktop_file %{buildroot}%{_datadir}/services/kded/knemod.desktop

%__chmod -x %{buildroot}%{_libdir}/kde3/kcm_knemo.la
%__chmod -x %{buildroot}%{_libdir}/kde3/kded_knemod.la

mkdir -p %{buildroot}/usr/share/pixmaps/
cp %{buildroot}/opt/kde3/share/icons/crystalsvg/32x32/apps/knemo.png \
   %{buildroot}/usr/share/pixmaps/knemo.png

%find_lang kcm_knemo knemo.lang
%find_lang knemod knemo.lang

%files -f knemo.lang
%defattr(-,root,root)
%{_libdir}/kde3/kcm_knemo.la
%{_libdir}/kde3/kcm_knemo.so
%{_libdir}/kde3/kded_knemod.la
%{_libdir}/kde3/kded_knemod.so
%{_datadir}/applications/kde/kcm_knemo.desktop
%{_datadir}/apps/knemo
%{_datadir}/icons/crystalsvg/*
%{_datadir}/services/kded/knemod.desktop
/usr/share/pixmaps/knemo.png
%lang(sr) /opt/kde3/share/locale/sr@Latn
%dir %{_datadir}/locale/br
%dir %{_datadir}/locale/br/LC_MESSAGES
%dir %{_datadir}/locale/ka
%dir %{_datadir}/locale/ka/LC_MESSAGES
%dir %{_datadir}/locale/cy
%dir %{_datadir}/locale/cy/LC_MESSAGES
%dir %{_datadir}/locale/ga
%dir %{_datadir}/locale/ga/LC_MESSAGES
%dir %{_datadir}/locale/rw
%dir %{_datadir}/locale/rw/LC_MESSAGES

%changelog
openSUSE Build Service is sponsored by