File ksshaskpass.spec of Package ksshaskpass
#
# spec file for package ksshaskpass (Version 0.5.3)
#
# Copyright (c) 2010 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/
#
# norootforbuild
Name: ksshaskpass
BuildRequires: libkde4-devel
BuildRequires: openssh-askpass
Requires: openssh-askpass
Supplements: packageand(openssh-askpass:kdebase4-workspace)
License: GPLv2+
Url: http://kde-apps.org/content/show.php/Ksshaskpass?content=50971
Group: System/GUI/KDE
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Summary: A KDE 4 version of ssh-askpass with KWallet support
Version: 0.5.3
Release: 1
Source: 50971-ksshaskpass-%{version}.tar.bz2
Patch1: suse-tweaks.diff
Patch2: icon.diff
%kde4_runtime_requires
%description
A KDE 4 version of ssh-askpass with KWallet support.
%prep
%setup -n %{name}-%{version} -q
%if 0%{?suse_version}
%patch1
%endif
%patch2
%build
%cmake_kde4 -d build
%make_jobs
%install
cd build
%kde4_makeinstall
%kde_post_install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%if 0%{?suse_version}
%{_libdir}/ssh/ksshaskpass
%else
%{_kde4_bindir}/ksshaskpass
%{_kde4_applicationsdir}/ksshaskpass.desktop
%endif
%{_kde4_mandir}/man1/ksshaskpass.1*
%changelog