File openssh-askpass.spec of Package openssh-askpass

# spec file for package openssh-askpass
# Copyright (c) 2014 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

Name:           openssh-askpass
BuildRequires:  xorg-x11-devel
Release:        0
Summary:        A passphrase dialog for OpenSSH and the X Window System
License:        BSD-3-Clause and MIT
Group:          Productivity/Networking/SSH
Source0:        x11-ssh-askpass-%{version}.tar.bz2
Patch1:         x11-ssh-askpass-%{version}.diff
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
Requires:       openssh
Provides:       openssh:%{_libexecdir}/ssh/ssh-askpass
Supplements:    packageand(openssh:libX11-6)

Ssh (Secure  Shell) is a program for logging into a remote machine and
for executing commands on a remote machine. This package contains an X
Window System passphrase dialog for OpenSSH.

%setup -q -n x11-ssh-askpass-%{version}

%configure \
make includes USRLIBDIR=%{_libdir}
make %{?_smp_mflags} USRLIBDIR=%{_libdir} CCOPTIONS="%{optflags}"

make BINDIR=%{_libexecdir}/ssh DESTDIR=%{buildroot} install
rm -f %{buildroot}%{_libexecdir}/ssh/ssh-askpass
rm -f %{buildroot}%{_mandir}/man1/ssh-askpass.1x

%dir %{_libexecdir}/ssh
%attr(0755,root,root) %{_libexecdir}/ssh/x11-ssh-askpass
%doc %{_mandir}/man1/x11-ssh-askpass.1x.gz

openSUSE Build Service is sponsored by