File ksshaskpass.spec of Package ksshaskpass

#
# spec file for package ksshaskpass
#
# Copyright (c) 2011 SUSE LINUX Products 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:           ksshaskpass
Version:        0.5.3
Release:        1
License:        GPLv2+
Summary:        KDE 4 version of ssh-askpass
Url:            http://kde-apps.org/content/show.php/Ksshaskpass?content=50971
Group:          System/GUI/KDE
Source:         50971-ksshaskpass-%{version}.tar.bz2
Patch1:         suse-tweaks.diff
Patch2:         icon.diff
BuildRequires:  libkde4-devel
BuildRequires:  openssh-askpass
Requires:       openssh-askpass
Supplements:    packageand(openssh-askpass:kdebase4-workspace)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%kde4_runtime_requires

%description
A KDE 4 version of ssh-askpass with KWallet support.

%prep
%setup -q
%if 0%{?suse_version}
%patch1
%endif
%patch2

%build
  %cmake_kde4 -d build
  %make_jobs

%install
  cd build
  %kde4_makeinstall
  %kde_post_install

%files
%defattr(-,root,root)
%if 0%{?suse_version}
%{_libdir}/ssh/
%else
%{_kde4_bindir}/ksshaskpass
%{_kde4_applicationsdir}/ksshaskpass.desktop
%endif
%{_kde4_mandir}/man1/ksshaskpass.1*

%changelog
openSUSE Build Service is sponsored by