diff --git a/pam_krb5.spec b/pam_krb5.spec index 4d460b9..07bee2b 100644 --- a/pam_krb5.spec +++ b/pam_krb5.spec @@ -6,6 +6,7 @@ Source0: https://fedorahosted.org/released/pam_krb5/pam_krb5-%{version}-1.tar.gz License: BSD or LGPLv2+ Group: System Environment/Base URL: https://fedorahosted.org/pam_krb5/ +Conflicts: filesystem < 3 BuildRequires: keyutils-libs-devel, krb5-devel, pam-devel # Needed by tests. # BuildRequires: krb5-server, krb5-workstation @@ -20,7 +21,7 @@ The included pam_krb5afs module also gets AFS tokens if so configured. %setup -q -n pam_krb5-%{version}-1 %build -%configure --libdir=/%{_lib} \ +%configure --libdir=%{_libdir} \ --with-default-use-shmem="sshd" \ --with-default-external="sshd sshd-rekey gssftp" \ --with-default-multiple-ccaches="su su-l" \ @@ -29,8 +30,8 @@ make %{?_smp_mflags} %install make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p" -ln -s pam_krb5.so $RPM_BUILD_ROOT/%{_lib}/security/pam_krb5afs.so -rm -f $RPM_BUILD_ROOT/%{_lib}/security/*.la +ln -s pam_krb5.so $RPM_BUILD_ROOT%{_libdir}/security/pam_krb5afs.so +rm -f $RPM_BUILD_ROOT%{_libdir}/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* @@ -46,9 +47,9 @@ sed -ri -e 's|/lib(64)?/|/\$LIB/|g' $RPM_BUILD_ROOT/%{_mandir}/man*/pam_krb5*.8* %defattr(-,root,root,-) %doc README* COPYING* ChangeLog NEWS %{_bindir}/* -/%{_lib}/security/pam_krb5.so -/%{_lib}/security/pam_krb5afs.so -/%{_lib}/security/pam_krb5 +%{_libdir}/security/pam_krb5.so +%{_libdir}/security/pam_krb5afs.so +%{_libdir}/security/pam_krb5 %{_mandir}/man1/* %{_mandir}/man5/* %{_mandir}/man8/*