rpms/krb5/devel krb5.spec,1.181,1.182

Nalin Dahyabhai nalin at fedoraproject.org
Mon Apr 6 16:23:15 UTC 2009


Author: nalin

Update of /cvs/extras/rpms/krb5/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv4926

Modified Files:
	krb5.spec 
Log Message:
- move the libraries to /%{_lib}, but leave --libdir alone so that plugins
  get installed and are searched for in the same locations (#473333)



Index: krb5.spec
===================================================================
RCS file: /cvs/extras/rpms/krb5/devel/krb5.spec,v
retrieving revision 1.181
retrieving revision 1.182
diff -u -r1.181 -r1.182
--- krb5.spec	6 Apr 2009 15:56:45 -0000	1.181
+++ krb5.spec	6 Apr 2009 16:22:45 -0000	1.182
@@ -235,6 +235,8 @@
 - turn off krb4 support (it won't be part of the 1.7 release, but do it now)
 - use triggeruns to properly shut down and disable krb524d when -server and
   -workstation-servers gets upgraded, because it's gone now
+- move the libraries to /%{_lib}, but leave --libdir alone so that plugins
+  get installed and are searched for in the same locations (#473333)
 
 * Tue Mar 17 2009 Nalin Dahyabhai <nalin at redhat.com> 1.6.3-19
 - libgssapi_krb5: backport fix for some errors which can occur when
@@ -1580,6 +1582,21 @@
 # Remove the randomly-generated compile-et filename comment from header files.
 sed -i -e 's|^ \* ettmp[^ \t]*\.h:$| * ettmpXXXXXX.h:|g' $RPM_BUILD_ROOT%{_includedir}/*{,/*}.h
 
+# Move specific libraries from %{_libdir} to /%{_lib}, and fixup the symlinks.
+touch $RPM_BUILD_ROOT/rootfile
+rellibdir=..
+while ! test -r $RPM_BUILD_ROOT/%{_libdir}/${rellibdir}/rootfile ; do
+	rellibdir=../${rellibdir}
+done
+rm -f $RPM_BUILD_ROOT/rootfile
+mkdir -p $RPM_BUILD_ROOT/%{_lib}
+for library in libdes425 libgssapi_krb5 libgssrpc libk5crypto libkrb5 libkrb5support ; do
+	mv $RPM_BUILD_ROOT/%{_libdir}/${library}.so.* $RPM_BUILD_ROOT/%{_lib}/
+	pushd $RPM_BUILD_ROOT/%{_libdir}
+	ln -fs ${rellibdir}/%{_lib}/${library}.so.*.* ${library}.so
+	popd
+done
+
 %clean
 [ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
 
@@ -1889,15 +1906,15 @@
 %{krb5prefix}/man/man1/kerberos.1*
 %{krb5prefix}/man/man5/.k5login.5*
 %{krb5prefix}/man/man5/krb5.conf.5*
-%{_libdir}/libdes425.so.*
-%{_libdir}/libgssapi_krb5.so.*
-%{_libdir}/libgssrpc.so.*
-%{_libdir}/libk5crypto.so.*
+/%{_lib}/libdes425.so.*
+/%{_lib}/libgssapi_krb5.so.*
+/%{_lib}/libgssrpc.so.*
+/%{_lib}/libk5crypto.so.*
 %{_libdir}/libkadm5clnt.so.*
 %{_libdir}/libkadm5srv.so.*
 %{_libdir}/libkdb5.so.*
-%{_libdir}/libkrb5.so.*
-%{_libdir}/libkrb5support.so.*
+/%{_lib}/libkrb5.so.*
+/%{_lib}/libkrb5support.so.*
 %dir %{_libdir}/krb5
 %dir %{_libdir}/krb5/plugins
 %dir %{_libdir}/krb5/plugins/*




More information about the fedora-extras-commits mailing list