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 http://bugs.opensuse.org/
#


Name:           kwalletmanager
Version:        15.04.3
Release:        0
Summary:        Wallet Management Tool
License:        GPL-2.0+
Group:          System/GUI/KDE
Url:            http://www.kde.org
Source0:        %{name}-%{version}.tar.xz
Patch1:         desktop-files.diff
BuildRequires:  libkde4-devel
BuildRequires:  xz
%if 0%{?suse_version} > 1320 || 0%{?is_opensuse}
Requires:       kwalletmanager5
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%kde4_runtime_requires

%description
This application allows you to manage your KDE password wallet.

%prep
%setup -q
%patch1

%build
%cmake_kde4 -d build
%make_jobs

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

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc COPYING
%_kde4_appsdir/kwalletmanager
%_kde4_bindir/kwalletmanager
%_kde4_modulesdir/*.so
%_kde4_applicationsdir/kwalletmanager*.desktop
%_kde4_htmldir/en/kwallet/
%_kde4_servicesdir/*.desktop
%if 0%{?suse_version} <= 1320 && !0%{?is_opensuse}
%_kde4_iconsdir/hicolor/*/apps/%{name}*.png
%endif
%config %{_sysconfdir}/dbus-1/system.d/org.kde.kcontrol.kcmkwallet.conf
%{_kde4_modulesdir}/libexec/kcm_kwallet_helper
%{_datadir}/dbus-1/system-services/org.kde.kcontrol.kcmkwallet.service
%{_datadir}/polkit-1/actions/org.kde.kcontrol.kcmkwallet.policy

%changelog