Move libbaccats and libbacsql into bacula-libs-sql
This commit is contained in:
parent
b7fe29dc3a
commit
c076d022f6
64
bacula.spec
64
bacula.spec
@ -3,7 +3,7 @@
|
||||
|
||||
Name: bacula
|
||||
Version: 5.2.6
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Cross platform network backup for Linux, Unix, Mac and Windows
|
||||
# See LICENSE for details
|
||||
License: AGPLv3 with exceptions
|
||||
@ -72,12 +72,6 @@ or damaged files.
|
||||
Summary: Bacula libraries
|
||||
Group: System Environment/Daemons
|
||||
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
|
||||
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.
|
||||
|
||||
This package contains basic Bacula libraries, which are used by all
|
||||
Bacula programs. You have to select your preferred catalog library
|
||||
through the alternatives system.
|
||||
Bacula programs.
|
||||
|
||||
|
||||
%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
|
||||
@ -437,6 +450,15 @@ rm -rf %{buildroot}
|
||||
|
||||
|
||||
%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 \
|
||||
--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 \
|
||||
@ -446,7 +468,7 @@ rm -rf %{buildroot}
|
||||
/sbin/ldconfig
|
||||
|
||||
|
||||
%preun libs
|
||||
%preun libs-sql
|
||||
if [ "$1" = 0 ]; then
|
||||
/usr/sbin/alternatives --remove libbaccats.so %{_libdir}/libbaccats-mysql-%{version}.so
|
||||
/usr/sbin/alternatives --remove libbaccats.so %{_libdir}/libbaccats-sqlite3-%{version}.so
|
||||
@ -454,7 +476,7 @@ if [ "$1" = 0 ]; then
|
||||
fi
|
||||
|
||||
|
||||
%postun libs
|
||||
%postun libs-sql
|
||||
/sbin/ldconfig
|
||||
exit 0
|
||||
|
||||
@ -632,6 +654,15 @@ fi
|
||||
%defattr(-,root,root,-)
|
||||
%{_libdir}/libbac-%{version}.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.so
|
||||
%{_libdir}/libbaccats-postgresql-%{version}.so
|
||||
@ -640,12 +671,6 @@ fi
|
||||
%{_libdir}/libbaccats-sqlite3.so
|
||||
%{_libdir}/libbacsql.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
|
||||
%defattr(-,root,root,-)
|
||||
@ -799,6 +824,11 @@ fi
|
||||
|
||||
|
||||
%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
|
||||
- Update to 5.2.6.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user