Add versioned library to alternatives system
This commit is contained in:
parent
9017302d33
commit
29391a88d0
20
bacula.spec
20
bacula.spec
@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
Name: bacula
|
Name: bacula
|
||||||
Version: 7.0.3
|
Version: 7.0.3
|
||||||
Release: 2%{?dist}
|
Release: 3%{?dist}
|
||||||
Summary: Cross platform network backup for Linux, Unix, Mac and Windows
|
Summary: Cross platform network backup for Linux, Unix, Mac and Windows
|
||||||
# See LICENSE for details
|
# See LICENSE for details
|
||||||
License: AGPLv3 with exceptions
|
License: AGPLv3 with exceptions
|
||||||
@ -475,9 +475,18 @@ rm -rf %{buildroot}
|
|||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
%post libs-sql
|
%post libs-sql
|
||||||
/usr/sbin/alternatives --install %{_libdir}/libbaccats.so libbaccats.so %{_libdir}/libbaccats-mysql.so 50
|
# Add alternative on unversioned library, so it's not broken during upgrades,
|
||||||
/usr/sbin/alternatives --install %{_libdir}/libbaccats.so libbaccats.so %{_libdir}/libbaccats-sqlite3.so 40
|
# and use the versioned library as a slave alternative.
|
||||||
/usr/sbin/alternatives --install %{_libdir}/libbaccats.so libbaccats.so %{_libdir}/libbaccats-postgresql.so 60
|
/usr/sbin/alternatives \
|
||||||
|
--install %{_libdir}/libbaccats.so libbaccats.so %{_libdir}/libbaccats-mysql.so 50 \
|
||||||
|
--slave %{_libdir}/libbaccats-%{version}.so libbaccats-%{version}.so %{_libdir}/libbaccats-mysql-%{version}.so
|
||||||
|
/usr/sbin/alternatives \
|
||||||
|
--install %{_libdir}/libbaccats.so libbaccats.so %{_libdir}/libbaccats-sqlite3.so 40 \
|
||||||
|
--slave %{_libdir}/libbaccats-%{version}.so libbaccats-%{version}.so %{_libdir}/libbaccats-sqlite3-%{version}.so
|
||||||
|
/usr/sbin/alternatives \
|
||||||
|
--install %{_libdir}/libbaccats.so libbaccats.so %{_libdir}/libbaccats-postgresql.so 60 \
|
||||||
|
--slave %{_libdir}/libbaccats-%{version}.so libbaccats-%{version}.so %{_libdir}/libbaccats-postgresql-%{version}.so
|
||||||
|
|
||||||
# Fix for automatic selection of backends during upgrades
|
# Fix for automatic selection of backends during upgrades
|
||||||
if readlink /etc/alternatives/libbaccats.so | grep --silent mysql || \
|
if readlink /etc/alternatives/libbaccats.so | grep --silent mysql || \
|
||||||
readlink /etc/alternatives/bacula-dir | grep --silent mysql || \
|
readlink /etc/alternatives/bacula-dir | grep --silent mysql || \
|
||||||
@ -751,6 +760,9 @@ fi
|
|||||||
%{_libdir}/nagios/plugins/check_bacula
|
%{_libdir}/nagios/plugins/check_bacula
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri May 16 2014 Simone Caronni <negativo17@gmail.com> - 7.0.3-3
|
||||||
|
- Add versioned library to alternatives system.
|
||||||
|
|
||||||
* Fri May 16 2014 Simone Caronni <negativo17@gmail.com> - 7.0.3-2
|
* Fri May 16 2014 Simone Caronni <negativo17@gmail.com> - 7.0.3-2
|
||||||
- Filter out libbaccats from auto generated Provides/Obsoletes and add note on
|
- Filter out libbaccats from auto generated Provides/Obsoletes and add note on
|
||||||
the libbaccats-x.x.x.so shared object name mess.
|
the libbaccats-x.x.x.so shared object name mess.
|
||||||
|
Loading…
Reference in New Issue
Block a user