Move libbaccats and libbacsql into bacula-libs-sql

This commit is contained in:
Simone Caronni 2012-03-16 09:54:36 +01:00
parent 470ee2dd55
commit 964c4995e7

View File

@ -3,7 +3,7 @@
Name: bacula Name: bacula
Version: 5.2.6 Version: 5.2.6
Release: 1%{?dist} Release: 2%{?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
@ -72,12 +72,6 @@ or damaged files.
Summary: Bacula libraries Summary: Bacula libraries
Group: System Environment/Daemons Group: System Environment/Daemons
Obsoletes: bacula-sysconfdir <= 2.4 Obsoletes: bacula-sysconfdir <= 2.4
Obsoletes: bacula-libs-mysql <= 5.0.3
Obsoletes: bacula-libs-sqlite <= 5.0.3
Obsoletes: bacula-libs-postgresql <= 5.0.3
Provides: bacula-libs-mysql = %{version}-%{release}
Provides: bacula-libs-sqlite = %{version}-%{release}
Provides: bacula-libs-postgresql = %{version}-%{release}
%description libs %description libs
Bacula is a set of programs that allow you to manage the backup, Bacula is a set of programs that allow you to manage the backup,
@ -85,8 +79,27 @@ recovery, and verification of computer data across a network of
different computers. It is based on a client/server architecture. different computers. It is based on a client/server architecture.
This package contains basic Bacula libraries, which are used by all This package contains basic Bacula libraries, which are used by all
Bacula programs. You have to select your preferred catalog library Bacula programs.
through the alternatives system.
%package libs-sql
Summary: Bacula SQL libraries
Group: System Environment/Daemons
Obsoletes: bacula-libs-mysql <= 5.0.3
Obsoletes: bacula-libs-sqlite <= 5.0.3
Obsoletes: bacula-libs-postgresql <= 5.0.3
Provides: bacula-libs-mysql = %{version}-%{release}
Provides: bacula-libs-sqlite = %{version}-%{release}
Provides: bacula-libs-postgresql = %{version}-%{release}
%description libs-sql
Bacula is a set of programs that allow you to manage the backup,
recovery, and verification of computer data across a network of
different computers. It is based on a client/server architecture.
This package contains the SQL Bacula libraries, which are used by
Director and Storage daemons. You have to select your preferred catalog
library through the alternatives system.
%package common %package common
@ -437,6 +450,15 @@ rm -rf %{buildroot}
%post libs %post libs
/sbin/ldconfig
%postun libs
/sbin/ldconfig
exit 0
%post libs-sql
/usr/sbin/alternatives --install %{_libdir}/libbaccats.so libbaccats.so %{_libdir}/libbaccats-mysql-%{version}.so 50 \ /usr/sbin/alternatives --install %{_libdir}/libbaccats.so libbaccats.so %{_libdir}/libbaccats-mysql-%{version}.so 50 \
--slave %{_libdir}/libbaccats-%{version}.so libbaccats-%{version}.so %{_libdir}/libbaccats-mysql-%{version}.so --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-%{version}.so 40 \ /usr/sbin/alternatives --install %{_libdir}/libbaccats.so libbaccats.so %{_libdir}/libbaccats-sqlite3-%{version}.so 40 \
@ -446,7 +468,7 @@ rm -rf %{buildroot}
/sbin/ldconfig /sbin/ldconfig
%preun libs %preun libs-sql
if [ "$1" = 0 ]; then if [ "$1" = 0 ]; then
/usr/sbin/alternatives --remove libbaccats.so %{_libdir}/libbaccats-mysql-%{version}.so /usr/sbin/alternatives --remove libbaccats.so %{_libdir}/libbaccats-mysql-%{version}.so
/usr/sbin/alternatives --remove libbaccats.so %{_libdir}/libbaccats-sqlite3-%{version}.so /usr/sbin/alternatives --remove libbaccats.so %{_libdir}/libbaccats-sqlite3-%{version}.so
@ -454,7 +476,7 @@ if [ "$1" = 0 ]; then
fi fi
%postun libs %postun libs-sql
/sbin/ldconfig /sbin/ldconfig
exit 0 exit 0
@ -632,6 +654,15 @@ fi
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_libdir}/libbac-%{version}.so %{_libdir}/libbac-%{version}.so
%{_libdir}/libbac.so %{_libdir}/libbac.so
%{_libdir}/libbaccfg-%{version}.so
%{_libdir}/libbaccfg.so
%{_libdir}/libbacfind-%{version}.so
%{_libdir}/libbacfind.so
%{_libdir}/libbacpy-%{version}.so
%{_libdir}/libbacpy.so
%files libs-sql
%defattr(-,root,root,-)
%{_libdir}/libbaccats-mysql-%{version}.so %{_libdir}/libbaccats-mysql-%{version}.so
%{_libdir}/libbaccats-mysql.so %{_libdir}/libbaccats-mysql.so
%{_libdir}/libbaccats-postgresql-%{version}.so %{_libdir}/libbaccats-postgresql-%{version}.so
@ -640,12 +671,6 @@ fi
%{_libdir}/libbaccats-sqlite3.so %{_libdir}/libbaccats-sqlite3.so
%{_libdir}/libbacsql.so %{_libdir}/libbacsql.so
%{_libdir}/libbacsql-%{version}.so %{_libdir}/libbacsql-%{version}.so
%{_libdir}/libbaccfg-%{version}.so
%{_libdir}/libbaccfg.so
%{_libdir}/libbacfind-%{version}.so
%{_libdir}/libbacfind.so
%{_libdir}/libbacpy-%{version}.so
%{_libdir}/libbacpy.so
%files common %files common
%defattr(-,root,root,-) %defattr(-,root,root,-)
@ -799,6 +824,11 @@ fi
%changelog %changelog
* Fri Mar 16 2012 Simone Caronni <negativo17@gmail.com> - 5.2.6-2
- Move libbaccats and libbacsql into bacula-libs-sql package so only
Director and Storage daemons pull in SQL dependencies:
http://old.nabble.com/Standalone-client-question-td33495990.html
* Wed Feb 22 2012 Simone Caronni <negativo17@gmail.com> - 5.2.6-1 * Wed Feb 22 2012 Simone Caronni <negativo17@gmail.com> - 5.2.6-1
- Update to 5.2.6. - Update to 5.2.6.