File pam_ssh.spec of Package pam_ssh.import4422

# spec file for package pam_ssh
# 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

# norootforbuild

Name:           pam_ssh
BuildRequires:  openssh openssl-devel pam-devel
License:        BSD3c(or similar)
Group:          Productivity/Networking/SSH
AutoReqProv:    on
Version:        1.97
Release:        11.<RELEASE12>
Summary:        PAM Module for SSH Authentication
Source:         %{name}-%{version}.tar.bz2
Source2:        baselibs.conf
Patch0:         pam_ssh-double-free.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

This module provides single sign-on behavior. The user types a
passphrase when logging in and is allowed in if it decrypts the user s
SSH private key. An ssh-agent is started and keys are added. For the
entire session, the user types no more passwords.

    Andrew J. Korty <>
    Roderick Schertler

%setup -q
%patch0 -p1

%{suse_update_config -f}
autoreconf --verbose --force --install
CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"  \
./configure --libdir=/%{_lib} \
            --with-pamdir=/%{_lib}/security \
            --prefix=%{_prefix} \

install -d 755 $RPM_BUILD_ROOT/%{_lib}/security
install -m 755 .libs/ $RPM_BUILD_ROOT/%{_lib}/security
install -d 755 $RPM_BUILD_ROOT%{_mandir}/man8
install -m 644 pam_ssh.8 $RPM_BUILD_ROOT%{_mandir}/man8/


%attr(555,root,root) /%{_lib}/security/
%attr(444,root,root) %_mandir/man*/*.*