re-symlink *.so to SONAME, fix the symlinks issue by downgrade/upgrade
This commit is contained in:
parent
d1c98a5e82
commit
66e46afe96
15
libvpd.spec
15
libvpd.spec
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: %{name}
|
Name: %{name}
|
||||||
Version: %{version}
|
Version: %{version}
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: VPD Database access library for lsvpd
|
Summary: VPD Database access library for lsvpd
|
||||||
|
|
||||||
Group: System Environment/Libraries
|
Group: System Environment/Libraries
|
||||||
@ -43,6 +43,16 @@ Contains header files for building with libvpd.
|
|||||||
%{__rm} -rf $RPM_BUILD_ROOT
|
%{__rm} -rf $RPM_BUILD_ROOT
|
||||||
%{__make} install DESTDIR=$RPM_BUILD_ROOT
|
%{__make} install DESTDIR=$RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
# re-symlink *.so to SONAME, fix the symlinks issue by downgrade/upgrade
|
||||||
|
pushd %{buildroot}%{_libdir}
|
||||||
|
v=%{version}
|
||||||
|
version=$(echo ${v%.[0-9]*})
|
||||||
|
for lib in libvpd libvpd_cxx; do
|
||||||
|
rm -f ${lib}.so
|
||||||
|
ln -s ${lib}-${version}.so.2 ${lib}.so
|
||||||
|
done
|
||||||
|
popd
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
@ -66,6 +76,9 @@ Contains header files for building with libvpd.
|
|||||||
%{_libdir}/pkgconfig/libvpd_cxx-2.pc
|
%{_libdir}/pkgconfig/libvpd_cxx-2.pc
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Mar 21 2016 Than Ngo <than@redhat.com> - 2.2.5-3
|
||||||
|
- re-symlink *.so to SONAME, fix the symlinks issue by downgrade/upgrade
|
||||||
|
|
||||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.5-2
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.5-2
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user