Michael Calmer 2013-04-16 10:14:32 +00:00 committed by Git OBS Bridge
parent c4c1d3c115
commit de10c4a13e

View File

@ -21,9 +21,9 @@ BuildRequires: klogd
BuildRequires: krb5-client
BuildRequires: krb5-devel
BuildRequires: krb5-server
BuildRequires: libselinux-devel
BuildRequires: openssl-devel
BuildRequires: pam-devel
%define PAM_RELEASE 1
Provides: pam_krb
# bug437293
%ifarch ppc64
@ -32,11 +32,11 @@ Obsoletes: pam_krb5-64bit
#
Version: 2.4.4
Release: 0
Summary: PAM Module for Kerberos Authentication
Summary: A Pluggable Authentication Module for Kerberos 5
License: BSD-3-Clause or LGPL-2.1+
Group: Productivity/Networking/Security
Url: http://sourceforge.net/projects/pam-krb5/
Source: pam_krb5-%{version}.tar.bz2
Url: https://fedorahosted.org/pam_krb5/
Source: https://fedorahosted.org/released/pam_krb5/pam_krb5-%{version}.tar.bz2
Source2: pam_krb5-po.tar.gz
Source3: baselibs.conf
Patch1: pam_krb5-2.3.1-log-choise.dif
@ -61,23 +61,28 @@ supports updating your Kerberos password.
%build
CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE " \
./configure --libdir=/%_lib/ \
./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" \
--with-default-no-cred-session="sshd"
--with-default-no-cred-session="sshd" \
--enable-default-ccname-template=DIR:/run/user/%%U/krb5cc_XXXXXX
make %{?jobs:-j%jobs}
make -C po update-po
# does not work in the buildservice
#make check
%install
make install DESTDIR=$RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
ln -sf pam_krb5.so $RPM_BUILD_ROOT/%_lib/security/pam_krb5afs.so
rm -f $RPM_BUILD_ROOT/%_lib/security/*.la
# Make the paths jive to avoid conflicts on multilib systems.
sed -ri -e 's|/lib(64)?/|/\$LIB/|g' $RPM_BUILD_ROOT/%{_mandir}/man*/pam_krb5*.8*
# Create filelist with translatins
%{find_lang} pam_krb5
@ -85,13 +90,12 @@ rm -f $RPM_BUILD_ROOT/%_lib/security/*.la
rm -rf $RPM_BUILD_ROOT
%files -f pam_krb5.lang
%defattr(444,root,root,755)
%doc TODO README* COPYING* ChangeLog AUTHORS NEWS
%defattr(-,root,root,-)
%doc README* COPYING* ChangeLog AUTHORS NEWS
%{_bindir}/*
%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
/%{_lib}/security/pam_krb5
%_mandir/man*/*.*
%changelog