LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File pam_krb5.spec of Package pam_krb5 (Project openSUSE:Factory)

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

# norootforbuild

Name:           pam_krb5
BuildRequires:  klogd krb5-client krb5-devel krb5-server openssl-devel pam-devel
%define       PAM_RELEASE 1
License:        BSD-3-Clause ; LGPL-2.0+
Group:          Productivity/Networking/Security
Provides:       pam_krb
AutoReqProv:    on
# bug437293
%ifarch ppc64
Obsoletes:      pam_krb5-64bit
Version:        2.3.13
Release:        1
Summary:        PAM Module for Kerberos Authentication
Url:            http://sourceforge.net/projects/pam-krb5/
Source:         pam_krb5-%{version}-%{PAM_RELEASE}.tar.bz2
Source2:        pam_krb5-po.tar.gz
Source3:        baselibs.conf
Patch1:         pam_krb5-2.2.0-0.5-configure_ac.dif
Patch2:         pam_krb5-2.3.1-log-choise.dif
Patch3:         pam_krb5-LINGUAS.dif
Patch4:         pam_krb5-2.3.1-switch-perms-on-refresh.dif
Patch5:         pam_krb5-2.2.3-1-setcred-assume-establish.dif
Patch6:         bug-641008_pam_krb5-2.3.11-setcred-log.diff
Patch7:         use-urandom-for-tests.dif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

This PAM module supports authentication against a Kerberos KDC. It also
supports updating your Kerberos password.

%setup -q -n pam_krb5-%{version}-%{PAM_RELEASE}
%setup -a 2 -T -D -n pam_krb5-%{version}-%{PAM_RELEASE}
%patch2 -p1
%patch4 -p1
%patch6 -p1
%patch7 -p1

./configure --libdir=/%_lib/     \
            --prefix=/usr        \
            --mandir=%{_mandir}  \
            --with-os-distribution="openSUSE" \
            --with-default-use-shmem="sshd" \
            --with-default-external="sshd sshd-rekey gssftp" \
            --with-default-multiple-ccaches="su su-l" \
make %{?jobs:-j%jobs}
make -C po update-po
# does not work in the buildservice
#make check

ln -sf pam_krb5.so $RPM_BUILD_ROOT/%_lib/security/pam_krb5afs.so
rm -f $RPM_BUILD_ROOT/%_lib/security/*.la
# Create filelist with translatins
%{find_lang} pam_krb5


%files -f pam_krb5.lang
%attr(555,root,root) /%{_lib}/security/pam_krb5.so
%attr(555,root,root) /%{_lib}/security/pam_krb5afs.so
%dir /%{_lib}/security/pam_krb5
%attr(755,root,root) /%{_lib}/security/pam_krb5/pam_krb5_storetmp
%attr(444,root,root) %_mandir/man*/*.*
%attr(755,root,root) /usr/bin/afs5log