On Tue, Aug 16, 2011 at 10:31 AM, Michael Schwendt <mschwendt@xxxxxxxxx> wrote: > On Tue, 16 Aug 2011 10:16:59 -0500, RS (Richard) wrote: > >> >> Or perhaps you only need to run "ldconfig -n ..." to add missing symlinks? >> >> Gave it a shot. It does create the soname symlink but does not create >> a plain .so symlink for the -devel sub-package, so I still have to >> create that manually. > > cd %{buildroot}%{libdir} > ldconfig -n $(pwd) > ln -s %{name}.so.? %{name}.so > cd - Wouldn't that create a symlink of a symlink? I ended up doing it this way: # Extract library name from Makefile LIBNAME=$(make -f Makefile -f - <<<'lib_so:; @echo $(lib_so)' lib_so) # Create symbolic link for -devel subpackage. ldconfig -n %{buildroot}%{_libdir} pushd %{buildroot}%{_libdir} ln -s $LIBNAME %{name}.so popd Thanks, Richard -- devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxxx https://admin.fedoraproject.org/mailman/listinfo/devel