File kde3-knutclient.spec of Package knutclient

#
# spec file for package kde3-knutclient
#
# Copyright 2007 Nikolay Derkach <nderkach@gmail.com>
# 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.
#


%define _prefix /opt/kde3

Name:           kde3-knutclient
Version:        0.9.6
Release:        0
License:        GPL-2.0
Summary:        NUT GUI Interface
Url:            http://www.knut.prynych.cz/
Group:          Hardware/UPS
Source:         ftp://ftp.buzuluk.cz/pub/alo/knutclient/knutclient-%{version}.tar.gz
BuildRequires:  fdupes
BuildRequires:  kdelibs3-devel
BuildRequires:  update-desktop-files
Requires:       nut
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Knutclient is a GUI interface for UPS system NUT.

%lang_package

%prep
. /etc/opt/kde3/common_options
%setup -n knutclient-%{version} -q
update_admin --no-unsermake

%build
. /etc/opt/kde3/common_options
./configure $configkde --disable-final
make %{?_smp_mflags}

%install
. /etc/opt/kde3/common_options
%make_install
kde_post_install
%fdupes -s %{buildroot}%{_datadir}
%find_lang knutclient

%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING README
%{_bindir}/knutclient
#{_datadir}/applications/kde/knutclient.desktop
%{_datadir}/*/*/*.desktop
%{_datadir}/apps/knutclient/
%{_datadir}/icons/hicolor/*/*/knutclient*.*

%files lang -f knutclient.lang

%changelog
openSUSE Build Service is sponsored by