Use perl_version macro for libperl.so mangling
%{version} changes with each sub-package definition. Use %{perl_version} for renaming and symlinking libperl.so.
This commit is contained in:
parent
683e60edc6
commit
5516d6aa30
10
perl.spec
10
perl.spec
|
@ -2188,14 +2188,14 @@ make install DESTDIR=$RPM_BUILD_ROOT
|
||||||
%{build_bindir}/perl
|
%{build_bindir}/perl
|
||||||
|
|
||||||
# Make proper DSO names, move libperl to standard path.
|
# Make proper DSO names, move libperl to standard path.
|
||||||
%global soname libperl.so.%(echo '%{version}' | sed 's/^\\([^.]*\\.[^.]*\\).*/\\1/')
|
%global soname libperl.so.%(echo '%{perl_version}' | sed 's/^\\([^.]*\\.[^.]*\\).*/\\1/')
|
||||||
mv "%{build_archlib}/CORE/libperl.so" \
|
mv "%{build_archlib}/CORE/libperl.so" \
|
||||||
"$RPM_BUILD_ROOT%{_libdir}/libperl.so.%{version}"
|
"$RPM_BUILD_ROOT%{_libdir}/libperl.so.%{perl_version}"
|
||||||
ln -s "libperl.so.%{version}" "$RPM_BUILD_ROOT%{_libdir}/%{soname}"
|
ln -s "libperl.so.%{perl_version}" "$RPM_BUILD_ROOT%{_libdir}/%{soname}"
|
||||||
ln -s "libperl.so.%{version}" "$RPM_BUILD_ROOT%{_libdir}/libperl.so"
|
ln -s "libperl.so.%{perl_version}" "$RPM_BUILD_ROOT%{_libdir}/libperl.so"
|
||||||
# XXX: Keep symlink from original location because various code glues
|
# XXX: Keep symlink from original location because various code glues
|
||||||
# $archlib/CORE/$libperl to get the DSO.
|
# $archlib/CORE/$libperl to get the DSO.
|
||||||
ln -s "../../libperl.so.%{version}" "%{build_archlib}/CORE/libperl.so"
|
ln -s "../../libperl.so.%{perl_version}" "%{build_archlib}/CORE/libperl.so"
|
||||||
|
|
||||||
install -p -m 755 utils/pl2pm %{build_bindir}/pl2pm
|
install -p -m 755 utils/pl2pm %{build_bindir}/pl2pm
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue