File kwalletmanager.spec of Package kwalletmanager

# spec file for package kwalletmanager
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
# 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:           kwalletmanager
Version:        15.04.3
Release:        0
Summary:        Wallet Management Tool
License:        GPL-2.0+
Group:          System/GUI/KDE
Source0:        %{name}-%{version}.tar.xz
Patch1:         desktop-files.diff
BuildRequires:  libkde4-devel
BuildRequires:  xz
%if 0%{?suse_version} > 1320 || 0%{?is_opensuse}
Requires:       kwalletmanager5
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

This application allows you to manage your KDE password wallet.

%setup -q

%cmake_kde4 -d build

cd build
%suse_update_desktop_file kwalletmanager Applet
%if 0%{?suse_version} > 1320 || 0%{?is_opensuse}
rm -r  %{buildroot}/%_kde4_iconsdir

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%if 0%{?suse_version} <= 1320 && !0%{?is_opensuse}
%config %{_sysconfdir}/dbus-1/system.d/org.kde.kcontrol.kcmkwallet.conf