fix specfile
OBS-URL: https://build.opensuse.org/package/show/Linux-PAM/pam_krb5?expand=0&rev=27
This commit is contained in:
parent
c4c1d3c115
commit
de10c4a13e
@ -21,9 +21,9 @@ BuildRequires: klogd
|
|||||||
BuildRequires: krb5-client
|
BuildRequires: krb5-client
|
||||||
BuildRequires: krb5-devel
|
BuildRequires: krb5-devel
|
||||||
BuildRequires: krb5-server
|
BuildRequires: krb5-server
|
||||||
|
BuildRequires: libselinux-devel
|
||||||
BuildRequires: openssl-devel
|
BuildRequires: openssl-devel
|
||||||
BuildRequires: pam-devel
|
BuildRequires: pam-devel
|
||||||
%define PAM_RELEASE 1
|
|
||||||
Provides: pam_krb
|
Provides: pam_krb
|
||||||
# bug437293
|
# bug437293
|
||||||
%ifarch ppc64
|
%ifarch ppc64
|
||||||
@ -32,11 +32,11 @@ Obsoletes: pam_krb5-64bit
|
|||||||
#
|
#
|
||||||
Version: 2.4.4
|
Version: 2.4.4
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: PAM Module for Kerberos Authentication
|
Summary: A Pluggable Authentication Module for Kerberos 5
|
||||||
License: BSD-3-Clause or LGPL-2.1+
|
License: BSD-3-Clause or LGPL-2.1+
|
||||||
Group: Productivity/Networking/Security
|
Group: Productivity/Networking/Security
|
||||||
Url: http://sourceforge.net/projects/pam-krb5/
|
Url: https://fedorahosted.org/pam_krb5/
|
||||||
Source: pam_krb5-%{version}.tar.bz2
|
Source: https://fedorahosted.org/released/pam_krb5/pam_krb5-%{version}.tar.bz2
|
||||||
Source2: pam_krb5-po.tar.gz
|
Source2: pam_krb5-po.tar.gz
|
||||||
Source3: baselibs.conf
|
Source3: baselibs.conf
|
||||||
Patch1: pam_krb5-2.3.1-log-choise.dif
|
Patch1: pam_krb5-2.3.1-log-choise.dif
|
||||||
@ -61,23 +61,28 @@ supports updating your Kerberos password.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE " \
|
CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE " \
|
||||||
./configure --libdir=/%_lib/ \
|
./configure --libdir=/%{_lib} \
|
||||||
--prefix=/usr \
|
--prefix=/usr \
|
||||||
--mandir=%{_mandir} \
|
--mandir=%{_mandir} \
|
||||||
--with-os-distribution="openSUSE" \
|
--with-os-distribution="openSUSE" \
|
||||||
--with-default-use-shmem="sshd" \
|
--with-default-use-shmem="sshd" \
|
||||||
--with-default-external="sshd sshd-rekey gssftp" \
|
--with-default-external="sshd sshd-rekey gssftp" \
|
||||||
--with-default-multiple-ccaches="su su-l" \
|
--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 %{?jobs:-j%jobs}
|
||||||
make -C po update-po
|
make -C po update-po
|
||||||
# does not work in the buildservice
|
# does not work in the buildservice
|
||||||
#make check
|
#make check
|
||||||
|
|
||||||
%install
|
%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
|
ln -sf pam_krb5.so $RPM_BUILD_ROOT/%_lib/security/pam_krb5afs.so
|
||||||
rm -f $RPM_BUILD_ROOT/%_lib/security/*.la
|
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
|
# Create filelist with translatins
|
||||||
%{find_lang} pam_krb5
|
%{find_lang} pam_krb5
|
||||||
|
|
||||||
@ -85,13 +90,12 @@ rm -f $RPM_BUILD_ROOT/%_lib/security/*.la
|
|||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%files -f pam_krb5.lang
|
%files -f pam_krb5.lang
|
||||||
%defattr(444,root,root,755)
|
%defattr(-,root,root,-)
|
||||||
%doc TODO README* COPYING* ChangeLog AUTHORS NEWS
|
%doc README* COPYING* ChangeLog AUTHORS NEWS
|
||||||
|
%{_bindir}/*
|
||||||
%attr(555,root,root) /%{_lib}/security/pam_krb5.so
|
%attr(555,root,root) /%{_lib}/security/pam_krb5.so
|
||||||
%attr(555,root,root) /%{_lib}/security/pam_krb5afs.so
|
%attr(555,root,root) /%{_lib}/security/pam_krb5afs.so
|
||||||
%dir /%{_lib}/security/pam_krb5
|
/%{_lib}/security/pam_krb5
|
||||||
%attr(755,root,root) /%{_lib}/security/pam_krb5/pam_krb5_storetmp
|
%_mandir/man*/*.*
|
||||||
%attr(444,root,root) %_mandir/man*/*.*
|
|
||||||
%attr(755,root,root) /usr/bin/afs5log
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user