but it is different from older Bacula versions that could inappropriately
prune jobs. Pruning of volumes is not affected.
+Building Bat:
+-------------
+To build Bat, you need Qt4 version 4.6.2. If you build with any other
+version it is likely not to work. If you do not have version 4.6.2, on
+your system, you can dlownload the Bacula depkgs_qt version 16Dec10.
+
New Catalog format in version 5.2.0
-----------------------------------
This release of Bacula uses a new catalog format. We provide a set of
# basic defines for every build
%define _release 1
-%define _version 5.0.3
-%define _packager D. Scott Barninger <barninger@fairfieldcomputers.com>
-%define depkgs_version 18Dec09
+%define _version 5.2.0
+%define _packager Kern Sibbald <kern@sibbald.com>
+%define depkgs_version 15May10
# postgresql defines - defaults for most platforms
# pass changes if required
%define rhel5 0
%{?build_rhel5:%define rhel5 1}
%{?build_rhel5:%define fc6 1}
+%define rhel6 0
+%{?build_rhel6:%define rhel6 1}
# CentOS build
%define centos3 0
%{?build_centos3:%define centos3 1}
%define centos5 0
%{?build_centos5:%define centos5 1}
%{?build_centos5:%define fc6 1}
+%define centos6 0
+%{?build_centos6:%define centos6 1}
# SL build
%define sl3 0
%{?build_sl3:%define sl3 1}
%define suse 1
%endif
%define rhel 0
-%if %{rhel3} || %{rhel4} || %{rhel5} || %{centos3} || %{centos4} || %{centos5}
+%if %{rhel3} || %{rhel4} || %{rhel5} || %{rhel6} || %{centos3} || %{centos4} || %{centos5} || %{centos6}
%define rhel 1
%endif
%define scil 0
Conflicts: bacula
Requires: termcap
%else
+%if %{rhel6}
+Requires: compat-libtermcap
+%else
Requires: libtermcap
%endif
+%endif
%if %{mysql}
Requires: mysql
%if %{mysql}
%pre mysql
-# test for bacula database older than version 13
+# test for bacula database older than version 14
# note: this ASSUMES no password has been set for bacula database
DB_VER=`mysql 2>/dev/null bacula -e 'select * from Version;'|tail -n 1`
%endif
%if ! %{client_only}
if [ -n "$DB_VER" ] && [ "$DB_VER" -lt "12" ]; then
- echo "This bacula upgrade will update a bacula database from version 12 to 13."
+ echo "This bacula upgrade will update a bacula database from version 12 to 14."
echo "You appear to be running database version $DB_VER. You must first update"
echo "your database to version 12 and then install this upgrade. The alternative"
echo "is to use %{script_dir}/drop_%{db_backend}_tables to delete all your your current"
%{script_dir}/make_mysql_tables
# check to see if we need to upgrade a 3.x database
-elif [ "$DB_VER" -lt "13" ]; then
+elif [ "$DB_VER" -lt "14" ]; then
echo "This release requires an upgrade to your bacula database."
echo "Backing up your current database..."
mysqldump -f --opt bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2
if [ -s %{working_dir}/bacula.db ]; then
DB_VER=`echo "select * from Version;" | %{sqlite_bindir}/sqlite3 2>/dev/null %{working_dir}/bacula.db | tail -n 1`
# check to see if we need to upgrade a 3.x database
- if [ "$DB_VER" -lt "13" ] && [ "$DB_VER" -ge "12" ]; then
+ if [ "$DB_VER" -lt "14" ] && [ "$DB_VER" -ge "12" ]; then
echo "This release requires an upgrade to your bacula database."
echo "Backing up your current database..."
echo ".dump" | %{sqlite_bindir}/sqlite3 %{working_dir}/bacula.db | bzip2 > %{working_dir}/bacula_backup.sql.bz2
%{script_dir}/grant_postgresql_privileges
# check to see if we need to upgrade a 5.0.x database
-elif [ "$DB_VER" -lt "13" ]; then
+elif [ "$DB_VER" -lt "14" ]; then
echo "This release requires an upgrade to your bacula database."
echo "Backing up your current database..."
pg_dump bacula | bzip2 > %{working_dir}/bacula_backup.sql.bz2