File pam_ssh.spec of Package pam_ssh

#
# spec file for package pam_ssh
#
# Copyright (c) 2013 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:           pam_ssh
BuildRequires:  libtool
BuildRequires:  openssh
BuildRequires:  openssl-devel
BuildRequires:  pam-devel
Version:        1.98
Release:        0
Summary:        PAM Module for SSH Authentication
License:        BSD-3-Clause
Group:          Productivity/Networking/SSH
Url:            http://sourceforge.net/projects/pam-ssh/
Source:         %{name}-%{version}.tar.bz2
Source2:        baselibs.conf
Patch:          pam_ssh-1.97-no_tty_stay_as_user.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
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.

%prep
%setup -q
%patch

%build
#autoreconf --verbose --force --install
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%configure --libdir=/%{_lib} \
            --with-pamdir=/%{_lib}/security
make %{?_smp_mflags}

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

%files
%defattr(444,root,root,755)
%doc README TODO NEWS
%attr(555,root,root) /%{_lib}/security/pam_ssh.so
%attr(444,root,root) %_mandir/man*/*.*

%changelog
openSUSE Build Service is sponsored by