6d394f
%global uid 133
6d394f
%global username bacula
6d394f
6d394f
Name:               bacula
6d394f
Version:            9.0.6
6d394f
Release:            6%{?dist}
6d394f
Summary:            Cross platform network backup for Linux, Unix, Mac and Windows
6d394f
# See LICENSE for details
6d394f
License:            AGPLv3 with exceptions
6d394f
URL:                http://www.bacula.org
6d394f
6d394f
Source0:            http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
6d394f
6d394f
Source2:            quickstart_postgresql.txt
6d394f
Source3:            quickstart_mysql.txt
6d394f
Source4:            quickstart_sqlite3.txt
6d394f
Source5:            README.Redhat
6d394f
Source6:            %{name}.logrotate
6d394f
Source7:            %{name}-fd.init
6d394f
Source8:            %{name}-dir.init
6d394f
Source9:            %{name}-sd.init
6d394f
Source10:           %{name}-fd.service
6d394f
Source11:           %{name}-dir.service
6d394f
Source12:           %{name}-sd.service
6d394f
Source15:           %{name}-fd.sysconfig
6d394f
Source16:           %{name}-dir.sysconfig
6d394f
Source17:           %{name}-sd.sysconfig
6d394f
# Image taken from http://www.bacula.org/git/cgit.cgi/bacula/plain/bacula/src/tray-monitor/generic.xpm
6d394f
# and converted by command convert generic.xpm bacula-tray-monitor.png
6d394f
Source19:           bacula-tray-monitor.png
6d394f
6d394f
Patch1:             %{name}-9.0.6-openssl.patch
6d394f
Patch2:             %{name}-9.0.0-queryfile.patch
6d394f
Patch3:             %{name}-9.0.4-sqlite-priv.patch
6d394f
Patch4:             %{name}-9.0.6-bat-build.patch
6d394f
Patch5:             %{name}-9.0.0-seg-fault.patch
6d394f
Patch6:             %{name}-5.2.13-logwatch.patch
6d394f
Patch7:             %{name}-9.0.0-non-free-code.patch
6d394f
# desktop-file-install not supported on RHEL 6
6d394f
Patch8:             %{name}-9.0.2-desktop.patch
6d394f
# http://bugs.bacula.org/view.php?id=2354
6d394f
Patch9:             %{name}-9.0.6-tray-monitor-task.patch
6d394f
6d394f
# Original patch removed by mistake, upstream is not willing to add it again:
6d394f
# http://www.bacula.org/git/cgit.cgi/bacula/commit/?h=Branch-7.0&id=51b3b98fb77ab3c0decee455cc6c4d2eb3c5303a
6d394f
# Without this, there is no library providing the correct shared object name
6d394f
# required by the daemons.
6d394f
# http://bugs.bacula.org/view.php?id=2084
6d394f
Patch10:            %{name}-7.0.4-autoconf.patch
6d394f
Patch11:            %{name}-9.0.6-qt5-support.patch
6d394f
6d394f
Patch12:            %{name}-9.0.6-use-crypto-from-openssl.patch
6d394f
6d394f
BuildRequires:      desktop-file-utils
6d394f
BuildRequires:      perl-generators
6d394f
BuildRequires:      sed
6d394f
6d394f
BuildRequires:      gcc
6d394f
BuildRequires:      gcc-c++
6d394f
BuildRequires:      glibc-devel
6d394f
BuildRequires:      libacl-devel
6d394f
BuildRequires:      libstdc++-devel
6d394f
BuildRequires:      libxml2-devel
6d394f
BuildRequires:      libcap-devel
6d394f
BuildRequires:      lzo-devel
6d394f
BuildRequires:      mariadb-connector-c-devel
6d394f
BuildRequires:      ncurses-devel
6d394f
BuildRequires:      openssl-devel
6d394f
BuildRequires:      postgresql-devel
6d394f
BuildRequires:      qt5-devel
6d394f
BuildRequires:      readline-devel
6d394f
BuildRequires:      sqlite-devel
6d394f
BuildRequires:      zlib-devel
6d394f
6d394f
# https://fedoraproject.org/wiki/Changes/perl_Package_to_Install_Core_Modules
6d394f
%if 0%{?fedora} >= 27 || 0%{?rhel} >= 8
6d394f
BuildRequires:      perl-interpreter
6d394f
%else
6d394f
BuildRequires:      perl
6d394f
%endif
6d394f
6d394f
%if 0%{?fedora} || 0%{?rhel} >= 7
6d394f
BuildRequires:      systemd
6d394f
%endif
6d394f
6d394f
%description
6d394f
Bacula is a set of programs that allow you to manage the backup, recovery, and
6d394f
verification of computer data across a network of different computers. It is
6d394f
based on a client/server architecture and is efficient and relatively easy to
6d394f
use, while offering many advanced storage management features that make it easy
6d394f
to find and recover lost or damaged files.
6d394f
6d394f
%package libs
6d394f
Summary:            Bacula libraries
6d394f
Obsoletes:          bacula-sysconfdir <= 2.4
6d394f
6d394f
%description libs
6d394f
Bacula is a set of programs that allow you to manage the backup,
6d394f
recovery, and verification of computer data across a network of
6d394f
different computers. It is based on a client/server architecture.
6d394f
6d394f
This package contains basic Bacula libraries, which are used by all
6d394f
Bacula programs.
6d394f
6d394f
%package libs-sql
6d394f
Summary:            Bacula SQL libraries
6d394f
Obsoletes:          bacula-libs-mysql <= 5.0.3
6d394f
Obsoletes:          bacula-libs-sqlite <= 5.0.3
6d394f
Obsoletes:          bacula-libs-postgresql <= 5.0.3
6d394f
Provides:           bacula-libs-mysql = %{version}-%{release}
6d394f
Provides:           bacula-libs-sqlite = %{version}-%{release}
6d394f
Provides:           bacula-libs-postgresql = %{version}-%{release}
6d394f
6d394f
%description libs-sql
6d394f
Bacula is a set of programs that allow you to manage the backup, recovery, and
6d394f
verification of computer data across a network of different computers. It is
6d394f
based on a client/server architecture.
6d394f
6d394f
This package contains the SQL Bacula libraries, which are used by Director and
6d394f
Storage daemons. You have to select your preferred catalog library through the
6d394f
alternatives system.
6d394f
6d394f
%package common
6d394f
Summary:            Common Bacula files
6d394f
Obsoletes:          bacula-sysconfdir <= 2.4
6d394f
Provides:           group(%username) = %uid
6d394f
Provides:           user(%username) = %uid
6d394f
Requires:           bacula-libs%{?_isa} = %{version}-%{release}
6d394f
Requires(pre):      shadow-utils
6d394f
Requires(postun):   shadow-utils
6d394f
6d394f
%description common
6d394f
Bacula is a set of programs that allow you to manage the backup, recovery, and
6d394f
verification of computer data across a network of different computers. It is
6d394f
based on a client/server architecture.
6d394f
6d394f
This package contains files common to all Bacula daemons.
6d394f
6d394f
%package director
6d394f
Summary:            Bacula Director files
6d394f
Requires:           bacula-common%{?_isa} = %{version}-%{release}
6d394f
Requires:           bacula-libs%{?_isa} = %{version}-%{release}
6d394f
Requires:           bacula-libs-sql%{?_isa} = %{version}-%{release}
6d394f
# Director backends merged into core.
6d394f
Provides:           bacula-director-common = %{version}-%{release}
6d394f
Obsoletes:          bacula-director-common < 5.2.3-5
6d394f
Provides:           bacula-director-mysql = %{version}-%{release}
6d394f
Obsoletes:          bacula-director-mysql < 5.2.3-5
6d394f
Provides:           bacula-director-sqlite = %{version}-%{release}
6d394f
Obsoletes:          bacula-director-sqlite < 5.2.3-5
6d394f
Provides:           bacula-director-postgresql = %{version}-%{release}
6d394f
Obsoletes:          bacula-director-postgresql < 5.2.3-5
6d394f
6d394f
%if 0%{?fedora} || 0%{?rhel} >= 7
6d394f
Requires(post):     systemd
6d394f
Requires(preun):    systemd
6d394f
Requires(postun):   systemd
6d394f
%endif
6d394f
6d394f
%if 0%{?rhel} == 6
6d394f
Requires(post):     /sbin/chkconfig
6d394f
Requires(preun):    /sbin/chkconfig
6d394f
Requires(preun):    /sbin/service
6d394f
Requires(postun):   /sbin/service
6d394f
%endif
6d394f
6d394f
%description director
6d394f
Bacula is a set of programs that allow you to manage the backup, recovery, and
6d394f
verification of computer data across a network of different computers. It is
6d394f
based on a client/server architecture.
6d394f
6d394f
This package contains the director files.
6d394f
6d394f
%package logwatch
6d394f
Summary:            Bacula Director logwatch scripts
6d394f
BuildArch:          noarch
6d394f
Requires:           bacula-director = %{version}-%{release}
6d394f
Requires:           logwatch
6d394f
6d394f
%description logwatch
6d394f
Bacula is a set of programs that allow you to manage the backup, recovery, and
6d394f
verification of computer data across a network of different computers. It is
6d394f
based on a client/server architecture.
6d394f
6d394f
This package contains logwatch scripts for Bacula Director.
6d394f
6d394f
%package storage
6d394f
Summary:            Bacula storage daemon files
6d394f
Requires:           bacula-common%{?_isa} = %{version}-%{release}
6d394f
Requires:           bacula-libs%{?_isa} = %{version}-%{release}
6d394f
Requires:           bacula-libs-sql%{?_isa} = %{version}-%{release}
6d394f
Requires:           mt-st
6d394f
Requires:           mtx
6d394f
# Storage backends merged into core.
6d394f
Provides:           bacula-storage-common = %{version}-%{release}
6d394f
Obsoletes:          bacula-storage-common < 5.2.2-2
6d394f
Provides:           bacula-storage-mysql = %{version}-%{release}
6d394f
Obsoletes:          bacula-storage-mysql < 5.2.0
6d394f
Provides:           bacula-storage-sqlite = %{version}-%{release}
6d394f
Obsoletes:          bacula-storage-sqlite < 5.2.0
6d394f
Provides:           bacula-storage-postgresql = %{version}-%{release}
6d394f
Obsoletes:          bacula-storage-postgresql < 5.2.0
6d394f
6d394f
%if 0%{?fedora} || 0%{?rhel} >= 7
6d394f
Requires(post):     systemd
6d394f
Requires(preun):    systemd
6d394f
Requires(postun):   systemd
6d394f
%endif
6d394f
6d394f
%if 0%{?rhel} == 6
6d394f
Requires(post):     /sbin/chkconfig
6d394f
Requires(preun):    /sbin/chkconfig
6d394f
Requires(preun):    /sbin/service
6d394f
Requires(postun):   /sbin/service
6d394f
%endif
6d394f
6d394f
%description storage
6d394f
Bacula is a set of programs that allow you to manage the backup, recovery, and
6d394f
verification of computer data across a network of different computers. It is
6d394f
based on a client/server architecture.
6d394f
6d394f
This package contains the storage daemon, the daemon responsible for writing
6d394f
the data received from the clients onto tape drives or other mass storage
6d394f
devices.
6d394f
6d394f
%package client
6d394f
Summary:            Bacula backup client
6d394f
Requires:           bacula-common%{?_isa} = %{version}-%{release}
6d394f
Requires:           bacula-libs%{?_isa} = %{version}-%{release}
6d394f
6d394f
%if 0%{?fedora} || 0%{?rhel} >= 7
6d394f
Requires(post):     systemd
6d394f
Requires(preun):    systemd
6d394f
Requires(postun):   systemd
6d394f
%endif
6d394f
6d394f
%if 0%{?rhel} == 6
6d394f
Requires(post):     /sbin/chkconfig
6d394f
Requires(preun):    /sbin/chkconfig
6d394f
Requires(preun):    /sbin/service
6d394f
Requires(postun):   /sbin/service
6d394f
%endif
6d394f
6d394f
%description client
6d394f
Bacula is a set of programs that allow you to manage the backup, recovery, and
6d394f
verification of computer data across a network of different computers. It is
6d394f
based on a client/server architecture.
6d394f
6d394f
This package contains the bacula client, the daemon running on the system to be
6d394f
backed up.
6d394f
6d394f
%package console
6d394f
Summary:            Bacula management console
6d394f
Obsoletes:          bacula-console-gnome <= 2.4
6d394f
Obsoletes:          bacula-console-wxwidgets <= 5.0.3
6d394f
Requires:           bacula-libs%{?_isa} = %{version}-%{release}
6d394f
6d394f
%description console
6d394f
Bacula is a set of programs that allow you to manage the backup, recovery, and
6d394f
verification of computer data across a network of different computers. It is
6d394f
based on a client/server architecture.
6d394f
6d394f
This package contains the command-line management console for the bacula backup
6d394f
system.
6d394f
6d394f
%package console-bat
6d394f
Summary:            Bacula bat console
6d394f
Requires:           bacula-libs%{?_isa} = %{version}-%{release}
6d394f
Requires:           dejavu-lgc-sans-fonts
6d394f
6d394f
%description console-bat
6d394f
Bacula is a set of programs that allow you to manage the backup, recovery, and
6d394f
verification of computer data across a network of different computers. It is
6d394f
based on a client/server architecture.
6d394f
6d394f
This package contains the bat version of the bacula management console.
6d394f
6d394f
%package traymonitor
6d394f
Summary:            Bacula system tray monitor
6d394f
Requires:           bacula-libs%{?_isa} = %{version}-%{release}
6d394f
Requires:           dejavu-lgc-sans-fonts
6d394f
6d394f
%description traymonitor
6d394f
Bacula is a set of programs that allow you to manage the backup, recovery, and
6d394f
verification of computer data across a network of different computers. It is
6d394f
based on a client/server architecture.
6d394f
6d394f
This package contains the Gnome and KDE compatible tray monitor to monitor your
6d394f
bacula server.
6d394f
6d394f
%package devel
6d394f
Summary:            Bacula development files
6d394f
Requires:           bacula-libs%{?_isa} = %{version}-%{release}
6d394f
Requires:           bacula-libs-sql%{?_isa} = %{version}-%{release}
6d394f
6d394f
%description devel
6d394f
Bacula is a set of programs that allow you to manage the backup, recovery, and
6d394f
verification of computer data across a network of different computers. It is
6d394f
based on a client/server architecture.
6d394f
6d394f
This development package contains static libraries and header files.
6d394f
6d394f
%prep
6d394f
%setup -q
6d394f
%patch1 -p1
6d394f
%patch2 -p1
6d394f
%patch3 -p1
6d394f
%patch4 -p1
6d394f
%patch5 -p1
6d394f
%patch6 -p1
6d394f
%patch7 -p1
6d394f
%patch8 -p1
6d394f
%patch9 -p1
6d394f
%patch10 -p1
6d394f
%patch11 -p1
6d394f
%patch12 -p2
6d394f
6d394f
cp %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} .
6d394f
6d394f
# Remove execution permissions from files we're packaging as docs later on
6d394f
find updatedb -type f | xargs chmod -x
6d394f
6d394f
%build
6d394f
export CFLAGS="$RPM_OPT_FLAGS -I%{_includedir}/ncurses"
6d394f
export CPPFLAGS="$RPM_OPT_FLAGS -I%{_includedir}/ncurses"
6d394f
export PATH="$PATH:%{_qt5_bindir}"
6d394f
%configure \
6d394f
        --disable-conio \
6d394f
        --disable-rpath \
6d394f
        --docdir=%{_datadir}/bacula \
6d394f
        --enable-bat \
6d394f
        --enable-batch-insert \
6d394f
        --enable-build-dird \
6d394f
        --enable-build-stored \
6d394f
        --enable-includes \
6d394f
        --enable-largefile \
6d394f
        --enable-readline \
6d394f
        --enable-smartalloc \
6d394f
        --sysconfdir=%{_sysconfdir}/bacula \
6d394f
        --with-basename=bacula \
6d394f
        --with-bsrdir=%{_localstatedir}/spool/bacula \
6d394f
        --with-dir-password=@@DIR_PASSWORD@@ \
6d394f
        --with-fd-password=@@FD_PASSWORD@@ \
6d394f
        --with-hostname=localhost \
6d394f
        --with-logdir=%{_localstatedir}/log/bacula \
6d394f
        --with-mon-dir-password=@@MON_DIR_PASSWORD@@ \
6d394f
        --with-mon-fd-password=@@MON_FD_PASSWORD@@ \
6d394f
        --with-mon-sd-password=@@MON_SD_PASSWORD@@ \
6d394f
        --with-mysql \
6d394f
        --with-openssl \
6d394f
        --with-pid-dir=%{_localstatedir}/run \
6d394f
        --with-plugindir=%{_libdir}/bacula \
6d394f
        --with-postgresql \
6d394f
        --with-scriptdir=%{_libexecdir}/bacula \
6d394f
        --with-sd-password=@@SD_PASSWORD@@ \
6d394f
        --with-smtp-host=localhost \
6d394f
        --with-sqlite3 \
6d394f
        --with-subsys-dir=%{_localstatedir}/lock/subsys \
6d394f
        --with-working-dir=%{_localstatedir}/spool/bacula \
6d394f
        --with-x
6d394f
6d394f
# Remove RPATH
6d394f
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
6d394f
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
6d394f
6d394f
make %{?_smp_mflags}
6d394f
6d394f
pushd src/qt-console/tray-monitor
6d394f
    %{?qmake_qt5}%{!?qmake_qt5:qmake-qt5} tray-monitor.pro
6d394f
    make %{?_smp_mflags}
6d394f
    cp -f .libs/bacula-tray-monitor .
6d394f
popd
6d394f
6d394f
%install
6d394f
%make_install
6d394f
6d394f
# Remove catalogue backend symlinks
6d394f
rm -f %{buildroot}%{_libdir}/libbaccats.so
6d394f
rm -f %{buildroot}%{_libdir}/libbaccats-%{version}.so
6d394f
6d394f
# Bat
6d394f
install -p -m 644 -D src/qt-console/images/bat_icon.png %{buildroot}%{_datadir}/pixmaps/bat_icon.png
6d394f
install -p -m 644 -D scripts/bat.desktop %{buildroot}%{_datadir}/applications/bat.desktop
6d394f
6d394f
# QT Tray monitor
6d394f
install -p -m 755 -D src/qt-console/tray-monitor/bacula-tray-monitor %{buildroot}%{_sbindir}/bacula-tray-monitor
6d394f
install -p -m 644 -D src/qt-console/tray-monitor/tray-monitor.conf %{buildroot}%{_sysconfdir}/bacula/tray-monitor.conf
6d394f
install -p -m 644 -D manpages/bacula-tray-monitor.1 %{buildroot}%{_mandir}/man1/bacula-tray-monitor.1
6d394f
install -p -m 644 -D %{SOURCE19} %{buildroot}%{_datadir}/pixmaps/bacula-tray-monitor.png
6d394f
install -p -m 644 -D scripts/bacula-tray-monitor.desktop %{buildroot}%{_datadir}/applications/bacula-tray-monitor.desktop
6d394f
6d394f
# Logrotate
6d394f
mkdir -p %{buildroot}%{_localstatedir}/log/bacula
6d394f
install -p -m 644 -D %{SOURCE6} %{buildroot}%{_sysconfdir}/logrotate.d/bacula
6d394f
6d394f
# Logwatch
6d394f
install -p -m 755 -D scripts/logwatch/bacula %{buildroot}%{_sysconfdir}/logwatch/scripts/services/bacula
6d394f
install -p -m 755 -D scripts/logwatch/applybaculadate %{buildroot}%{_sysconfdir}/logwatch/scripts/shared/applybaculadate
6d394f
install -p -m 644 -D scripts/logwatch/logfile.bacula.conf %{buildroot}%{_sysconfdir}/logwatch/conf/logfiles/bacula.conf
6d394f
install -p -m 644 -D scripts/logwatch/services.bacula.conf %{buildroot}%{_sysconfdir}/logwatch/conf/services/bacula.conf
6d394f
6d394f
%if 0%{?fedora} || 0%{?rhel} >= 7
6d394f
# Systemd unit files
6d394f
mkdir -p %{buildroot}%{_unitdir}
6d394f
install -p -m 644 -D %{SOURCE10} %{buildroot}%{_unitdir}/bacula-fd.service
6d394f
install -p -m 644 -D %{SOURCE11} %{buildroot}%{_unitdir}/bacula-dir.service
6d394f
install -p -m 644 -D %{SOURCE12} %{buildroot}%{_unitdir}/bacula-sd.service
6d394f
%else
6d394f
# Initscripts
6d394f
install -p -m 755 -D %{SOURCE7} %{buildroot}%{_initrddir}/bacula-fd
6d394f
install -p -m 755 -D %{SOURCE8} %{buildroot}%{_initrddir}/bacula-dir
6d394f
install -p -m 755 -D %{SOURCE9} %{buildroot}%{_initrddir}/bacula-sd
6d394f
%endif
6d394f
6d394f
# Sysconfig
6d394f
install -p -m 644 -D %{SOURCE15} %{buildroot}%{_sysconfdir}/sysconfig/bacula-fd
6d394f
install -p -m 644 -D %{SOURCE16} %{buildroot}%{_sysconfdir}/sysconfig/bacula-dir
6d394f
install -p -m 644 -D %{SOURCE17} %{buildroot}%{_sysconfdir}/sysconfig/bacula-sd
6d394f
6d394f
# Spool directory
6d394f
mkdir -p %{buildroot}%{_localstatedir}/spool/bacula
6d394f
6d394f
# Remove stuff we do not need
6d394f
rm -f %{buildroot}%{_libexecdir}/bacula/{bacula,bacula-ctl-*,startmysql,stopmysql,bconsole,make_catalog_backup}
6d394f
rm -f %{buildroot}%{_sbindir}/bacula
6d394f
rm -f %{buildroot}%{_mandir}/man8/bacula.8.gz
6d394f
rm -f %{buildroot}%{_libdir}/*.la
6d394f
rm -f %{buildroot}%{_datadir}/bacula/{ChangeLog,INSTALL,LICENSE*,README,ReleaseNotes,VERIFYING,technotes}
6d394f
6d394f
# Fix up some perms so rpmlint does not complain too much
6d394f
chmod 755 %{buildroot}%{_sbindir}/*
6d394f
chmod 755 %{buildroot}%{_libdir}/bacula/*
6d394f
chmod 755 %{buildroot}%{_libexecdir}/bacula/*
6d394f
chmod 644 %{buildroot}%{_libexecdir}/bacula/btraceback.*
6d394f
6d394f
%ldconfig_scriptlets libs
6d394f
6d394f
%post libs-sql
6d394f
/usr/sbin/alternatives --install %{_libdir}/libbaccats.so libbaccats.so %{_libdir}/libbaccats-mysql.so 50
6d394f
/usr/sbin/alternatives --install %{_libdir}/libbaccats.so libbaccats.so %{_libdir}/libbaccats-sqlite3.so 40
6d394f
/usr/sbin/alternatives --install %{_libdir}/libbaccats.so libbaccats.so %{_libdir}/libbaccats-postgresql.so 60
6d394f
6d394f
# Fix for automatic selection of backends during upgrades
6d394f
if readlink /etc/alternatives/libbaccats.so | grep --silent mysql || \
6d394f
   readlink /etc/alternatives/bacula-dir | grep --silent mysql || \
6d394f
   readlink /etc/alternatives/bacula-sd | grep --silent mysql; then
6d394f
        /usr/sbin/alternatives --set libbaccats.so %{_libdir}/libbaccats-mysql.so
6d394f
elif readlink /etc/alternatives/libbaccats.so | grep --silent sqlite || \
6d394f
   readlink /etc/alternatives/bacula-dir | grep --silent sqlite || \
6d394f
   readlink /etc/alternatives/bacula-sd | grep --silent sqlite; then
6d394f
        /usr/sbin/alternatives --set libbaccats.so %{_libdir}/libbaccats-sqlite3.so
6d394f
else
6d394f
        /usr/sbin/alternatives --set libbaccats.so %{_libdir}/libbaccats-postgresql.so
6d394f
fi
6d394f
/sbin/ldconfig
6d394f
6d394f
%preun libs-sql
6d394f
if [ "$1" = 0 ]; then
6d394f
        /usr/sbin/alternatives --remove libbaccats.so %{_libdir}/libbaccats-mysql.so
6d394f
        /usr/sbin/alternatives --remove libbaccats.so %{_libdir}/libbaccats-sqlite3.so
6d394f
        /usr/sbin/alternatives --remove libbaccats.so %{_libdir}/libbaccats-postgresql.so
6d394f
fi
6d394f
6d394f
%postun libs-sql
6d394f
/sbin/ldconfig
6d394f
exit 0
6d394f
6d394f
%pre common
6d394f
getent group %username >/dev/null || groupadd -g %uid -r %username &>/dev/null || :
6d394f
getent passwd %username >/dev/null || useradd -u %uid -r -s /sbin/nologin \
6d394f
    -d /var/spool/bacula -M -c 'Bacula Backup System' -g %username %username &>/dev/null || :
6d394f
exit 0
6d394f
6d394f
%if 0%{?fedora} || 0%{?rhel} >= 7
6d394f
6d394f
%post client
6d394f
%systemd_post %{name}-fd.service
6d394f
6d394f
%preun client
6d394f
%systemd_preun %{name}-fd.service
6d394f
6d394f
%postun client
6d394f
%systemd_postun_with_restart %{name}-fd.service
6d394f
6d394f
%post director
6d394f
%systemd_post %{name}-dir.service
6d394f
6d394f
%preun director
6d394f
%systemd_preun %{name}-dir.service
6d394f
6d394f
%postun director
6d394f
%systemd_postun_with_restart %{name}-dir.service
6d394f
6d394f
%post storage
6d394f
%systemd_post %{name}-sd.service
6d394f
6d394f
%preun storage
6d394f
%systemd_preun %{name}-sd.service
6d394f
6d394f
%postun storage
6d394f
%systemd_postun_with_restart %{name}-sd.service
6d394f
6d394f
%endif
6d394f
6d394f
%if 0%{?rhel} == 6
6d394f
6d394f
%post client
6d394f
/sbin/chkconfig --add bacula-fd
6d394f
6d394f
%preun client
6d394f
if [ "$1" = 0 ]; then
6d394f
        /sbin/service bacula-fd stop >/dev/null 2>&1 || :
6d394f
        /sbin/chkconfig --del bacula-fd
6d394f
fi
6d394f
6d394f
%postun client
6d394f
if [ "$1" -ge "1" ]; then
6d394f
        /sbin/service bacula-fd condrestart >/dev/null 2>&1 || :
6d394f
fi
6d394f
6d394f
%post director
6d394f
/sbin/chkconfig --add bacula-dir
6d394f
6d394f
%preun director
6d394f
if [ "$1" = 0 ]; then
6d394f
        /sbin/service bacula-dir stop >/dev/null 2>&1 || :
6d394f
        /sbin/chkconfig --del bacula-dir
6d394f
fi
6d394f
6d394f
%postun director
6d394f
if [ "$1" -ge "1" ]; then
6d394f
        /sbin/service bacula-dir condrestart >/dev/null 2>&1 || :
6d394f
fi
6d394f
6d394f
%post storage
6d394f
/sbin/chkconfig --add bacula-sd
6d394f
6d394f
%preun storage
6d394f
if [ "$1" = 0 ]; then
6d394f
        /sbin/service bacula-sd stop >/dev/null 2>&1 || :
6d394f
        /sbin/chkconfig --del bacula-sd
6d394f
fi
6d394f
6d394f
%postun storage
6d394f
if [ "$1" -ge "1" ]; then
6d394f
        /sbin/service bacula-sd condrestart >/dev/null 2>&1 || :
6d394f
fi
6d394f
6d394f
%endif
6d394f
6d394f
%files libs
6d394f
%license LICENSE
6d394f
%doc AUTHORS ChangeLog SUPPORT ReleaseNotes LICENSE-FAQ LICENSE-FOSS
6d394f
%{_libdir}/libbac-%{version}.so
6d394f
%{_libdir}/libbaccfg-%{version}.so
6d394f
%{_libdir}/libbacfind-%{version}.so
6d394f
%{_libdir}/libbacsd-%{version}.so
6d394f
%exclude %{_libdir}/libbaccats-%{version}.so
6d394f
6d394f
%files libs-sql
6d394f
%{_libdir}/libbaccats-mysql-%{version}.so
6d394f
%{_libdir}/libbaccats-mysql.so
6d394f
%{_libdir}/libbaccats-postgresql-%{version}.so
6d394f
%{_libdir}/libbaccats-postgresql.so
6d394f
%{_libdir}/libbaccats-sqlite3-%{version}.so
6d394f
%{_libdir}/libbaccats-sqlite3.so
6d394f
%{_libdir}/libbacsql-%{version}.so
6d394f
6d394f
%files common
6d394f
%doc README.Redhat quickstart_*
6d394f
%config(noreplace) %{_sysconfdir}/logrotate.d/bacula
6d394f
%dir %{_localstatedir}/log/bacula %attr(770, bacula, root)
6d394f
%dir %{_localstatedir}/spool/bacula %attr(770, bacula, root)
6d394f
%dir %{_libexecdir}/%{name}
6d394f
%dir %{_sysconfdir}/%{name} %attr(755,root,root)
6d394f
%{_libexecdir}/%{name}/btraceback.dbx
6d394f
%{_libexecdir}/%{name}/btraceback.gdb
6d394f
%{_libexecdir}/%{name}/bacula_config
6d394f
%{_libexecdir}/%{name}/btraceback.mdb
6d394f
%{_mandir}/man8/btraceback.8*
6d394f
%{_sbindir}/btraceback
6d394f
6d394f
%files director
6d394f
%doc updatedb examples/sample-query.sql
6d394f
%config(noreplace) %{_sysconfdir}/bacula/bacula-dir.conf %attr(640,root,bacula)
6d394f
%config(noreplace) %{_sysconfdir}/bacula/query.sql %attr(640,root,bacula)
6d394f
%config(noreplace) %{_sysconfdir}/sysconfig/bacula-dir
6d394f
%{_libexecdir}/%{name}/baculabackupreport
6d394f
%{_libexecdir}/%{name}/create_bacula_database
6d394f
%{_libexecdir}/%{name}/delete_catalog_backup
6d394f
%{_libexecdir}/%{name}/drop_bacula_database
6d394f
%{_libexecdir}/%{name}/drop_bacula_tables
6d394f
%{_libexecdir}/%{name}/grant_bacula_privileges
6d394f
%{_libexecdir}/%{name}/make_bacula_tables
6d394f
%{_libexecdir}/%{name}/make_catalog_backup.pl
6d394f
%{_libexecdir}/%{name}/update_bacula_tables
6d394f
%{_libexecdir}/%{name}/create_mysql_database
6d394f
%{_libexecdir}/%{name}/drop_mysql_database
6d394f
%{_libexecdir}/%{name}/drop_mysql_tables
6d394f
%{_libexecdir}/%{name}/grant_mysql_privileges
6d394f
%{_libexecdir}/%{name}/make_mysql_tables
6d394f
%{_libexecdir}/%{name}/update_mysql_tables
6d394f
%{_libexecdir}/%{name}/create_sqlite3_database
6d394f
%{_libexecdir}/%{name}/drop_sqlite3_database
6d394f
%{_libexecdir}/%{name}/drop_sqlite3_tables
6d394f
%{_libexecdir}/%{name}/grant_sqlite3_privileges
6d394f
%{_libexecdir}/%{name}/make_sqlite3_tables
6d394f
%{_libexecdir}/%{name}/update_sqlite3_tables
6d394f
%{_libexecdir}/%{name}/create_postgresql_database
6d394f
%{_libexecdir}/%{name}/drop_postgresql_database
6d394f
%{_libexecdir}/%{name}/drop_postgresql_tables
6d394f
%{_libexecdir}/%{name}/grant_postgresql_privileges
6d394f
%{_libexecdir}/%{name}/make_postgresql_tables
6d394f
%{_libexecdir}/%{name}/update_postgresql_tables
6d394f
%{_mandir}/man1/bsmtp.1*
6d394f
%{_mandir}/man8/bacula-dir.8*
6d394f
%{_mandir}/man8/bregex.8*
6d394f
%{_mandir}/man8/bwild.8*
6d394f
%{_mandir}/man8/dbcheck.8*
6d394f
%{_sbindir}/bacula-dir
6d394f
%{_sbindir}/bdirjson
6d394f
%{_sbindir}/bregex
6d394f
%{_sbindir}/bsmtp
6d394f
%{_sbindir}/bwild
6d394f
%{_sbindir}/dbcheck
6d394f
%if 0%{?fedora} || 0%{?rhel} >= 7
6d394f
%{_unitdir}/bacula-dir.service
6d394f
%else
6d394f
%{_initrddir}/bacula-dir
6d394f
%endif
6d394f
6d394f
%files logwatch
6d394f
%config(noreplace) %{_sysconfdir}/logwatch/conf/logfiles/bacula.conf
6d394f
%config(noreplace) %{_sysconfdir}/logwatch/conf/services/bacula.conf
6d394f
%{_sysconfdir}/logwatch/scripts/services/bacula
6d394f
%{_sysconfdir}/logwatch/scripts/shared/applybaculadate
6d394f
6d394f
%files storage
6d394f
%config(noreplace) %{_sysconfdir}/bacula/bacula-sd.conf %attr(640,root,root)
6d394f
%config(noreplace) %{_sysconfdir}/sysconfig/bacula-sd
6d394f
%{_libexecdir}/%{name}/disk-changer
6d394f
%{_libexecdir}/%{name}/mtx-changer
6d394f
%{_libexecdir}/%{name}/mtx-changer.conf
6d394f
%{_libexecdir}/%{name}/tapealert
6d394f
%{_mandir}/man8/bacula-sd.8*
6d394f
%{_mandir}/man8/bcopy.8*
6d394f
%{_mandir}/man8/bextract.8*
6d394f
%{_mandir}/man8/bls.8*
6d394f
%{_mandir}/man8/bscan.8*
6d394f
%{_mandir}/man8/btape.8*
6d394f
%{_sbindir}/bacula-sd
6d394f
%{_sbindir}/bcopy
6d394f
%{_sbindir}/bextract
6d394f
%{_sbindir}/bls
6d394f
%{_sbindir}/bscan
6d394f
%{_sbindir}/bsdjson
6d394f
%{_sbindir}/btape
6d394f
%if 0%{?fedora} || 0%{?rhel} >= 7
6d394f
%{_unitdir}/bacula-sd.service
6d394f
%else
6d394f
%{_initrddir}/bacula-sd
6d394f
%endif
6d394f
6d394f
%files client
6d394f
%config(noreplace) %{_sysconfdir}/bacula/bacula-fd.conf %attr(640,root,root)
6d394f
%config(noreplace) %{_sysconfdir}/sysconfig/bacula-fd
6d394f
%{_mandir}/man8/bacula-fd.8*
6d394f
%{_libdir}/bacula/bpipe-fd.so
6d394f
%{_sbindir}/bacula-fd
6d394f
%{_sbindir}/bfdjson
6d394f
%if 0%{?fedora} || 0%{?rhel} >= 7
6d394f
%{_unitdir}/bacula-fd.service
6d394f
%else
6d394f
%{_initrddir}/bacula-fd
6d394f
%endif
6d394f
6d394f
%files console
6d394f
%config(noreplace) %{_sysconfdir}/bacula/bconsole.conf %attr(640,root,root)
6d394f
%{_mandir}/man8/bconsole.8*
6d394f
%{_sbindir}/bconsole
6d394f
%{_sbindir}/bbconsjson
6d394f
6d394f
%files console-bat
6d394f
%config(noreplace) %{_sysconfdir}/bacula/bat.conf %attr(640,root,root)
6d394f
%{_datadir}/applications/bat.desktop
6d394f
%{_datadir}/bacula/*.html
6d394f
%{_datadir}/bacula/*.png
6d394f
%{_datadir}/pixmaps/bat_icon.png
6d394f
%{_mandir}/man1/bat.1*
6d394f
%{_sbindir}/bat
6d394f
6d394f
%files traymonitor
6d394f
%config(noreplace) %{_sysconfdir}/bacula/tray-monitor.conf %attr(640,root,root)
6d394f
%{_datadir}/applications/bacula-tray-monitor.desktop
6d394f
%{_datadir}/pixmaps/bacula-tray-monitor.png
6d394f
%{_mandir}/man1/bacula-tray-monitor.1*
6d394f
%{_sbindir}/bacula-tray-monitor
6d394f
6d394f
%files devel
6d394f
%{_includedir}/bacula
6d394f
%{_libdir}/libbac.so
6d394f
%{_libdir}/libbaccfg.so
6d394f
%{_libdir}/libbacfind.so
6d394f
%{_libdir}/libbacsd.so
6d394f
%{_libdir}/libbacsql.so
6d394f
6d394f
%changelog
6d394f
* Fri Jun 28 2019 Václav Doležal <vdolezal@redhat.com> - 9.0.6-6
6d394f
- Fix error in postun and rpm -V
6d394f
6d394f
* Fri Jun 28 2019 Václav Doležal <vdolezal@redhat.com> - 9.0.6-5
6d394f
- use OpenSSL library instead of internal implementations of MD5 and HMAC (#1613068)
6d394f
6d394f
* Thu Aug 16 2018 Václav Doležal <vdolezal@redhat.com> - 9.0.6-4
6d394f
- remove Nagios plugin (#1616438)
6d394f
6d394f
* Tue May 22 2018 Josef Ridky <jridky@redhat.com> - 9.0.6-3
6d394f
- add missing file to library sub-package (#1580598)
6d394f
6d394f
* Thu Apr 26 2018 Josef Ridky <jridky@redhat.com> - 9.0.6-2
6d394f
- Fix directory permissions (#1569584)
6d394f
6d394f
* Wed Apr 18 2018 Josef Ridky <jridky@redhat.com> - 9.0.6-1
6d394f
- Update to 9.0.6 -> Supports OpenSSL 1.1 and Qt5 (#1542223)
6d394f
6d394f
* Mon Apr 09 2018 Josef Ridky <jridky@redhat.com> - 9.0.4-3
6d394f
- Resolves: #1565003 - remove ImageMagic dependency
6d394f
6d394f
* Wed Mar 07 2018 Josef Ridky <jridky@redhat.com> - 9.0.4-2
6d394f
- Add support for openssl (#1512577)
6d394f
- Change build requirement form mysql-devel to mariadb-connector-c-devel (#1545413)
6d394f
6d394f
* Fri Sep 15 2017 Simone Caronni <negativo17@gmail.com> - 9.0.4-1
6d394f
- Update to 9.0.4.
6d394f
6d394f
* Thu Aug 10 2017 Josef Ridky <jridky@redhat.com> - 9.0.3-1
6d394f
- New upstream release 9.0.3 (#1480230)
6d394f
6d394f
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 9.0.2-3
6d394f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
6d394f
6d394f
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 9.0.2-2
6d394f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
6d394f
6d394f
* Mon Jul 24 2017 Simone Caronni <negativo17@gmail.com> - 9.0.2-1
6d394f
- Update to 9.0.2.
6d394f
- Update patches.
6d394f
6d394f
* Thu Jul 20 2017 Simone Caronni <negativo17@gmail.com> - 9.0.1-2
6d394f
- Add patch to allow compilation on MariaDB 10.2.
6d394f
- Make only Fedora 27 require perl-interpreter.
6d394f
- Adjust categories in desktop files for RHEL 7.
6d394f
6d394f
* Tue Jul 18 2017 Simone Caronni <negativo17@gmail.com> - 9.0.1-1
6d394f
- Update to 9.0.1.
6d394f
6d394f
* Tue Jul 11 2017 Simone Caronni <negativo17@gmail.com> - 9.0.0-2
6d394f
- Fix ppc64le build.
6d394f
- Fix tray-monitor build. Use source file for tray monitor desktop entry.
6d394f
6d394f
* Mon Jul 10 2017 Simone Caronni <negativo17@gmail.com> - 9.0.0-1
6d394f
- Update to 9.0.0, update all patches.
6d394f
- Add new utitilies.
6d394f
- Use source files for desktop and icon of bat.
6d394f
- Temporarily disable tray-monitor build due to missing files in the source.
6d394f
- Add fixes for rpmlint.
6d394f
6d394f
* Wed Apr 05 2017 Simone Caronni <negativo17@gmail.com> - 7.4.7-2
6d394f
- Remove all RHEL/CentOS 5 compatibility.
6d394f
6d394f
* Thu Mar 16 2017 Jon Ciesla <limburgher@gmail.com> - 7.4.7-1
6d394f
- Update to 7.4.7.
6d394f
6d394f
* Sun Mar 12 2017 Simone Caronni <negativo17@gmail.com> - 7.4.6-1
6d394f
- Update to 7.4.6.
6d394f
6d394f
* Wed Mar 08 2017 Simone Caronni <negativo17@gmail.com> - 7.4.5-2
6d394f
- Update README.Redhat document.
6d394f
6d394f
* Wed Feb 08 2017 Simone Caronni <negativo17@gmail.com> - 7.4.5-1
6d394f
- Update to 7.4.5.
6d394f
- Update patches.
6d394f
6d394f
* Fri Jan 13 2017 Jon Ciesla <limburgher@gmail.com> - 7.4.4-3
6d394f
- Move to compat-openssl10 to fix FTBFS, BZ 1412924.
6d394f
6d394f
* Thu Jan 12 2017 Igor Gnatenko <ignatenko@redhat.com> - 7.4.4-2
6d394f
- Rebuild for readline 7.x
6d394f
6d394f
* Wed Sep 21 2016 Jon Ciesla <limburgher@gmail.com> - 7.4.4-1
6d394f
- Update to 7.4.4.
6d394f
6d394f
* Mon Jul 25 2016 Simone Caronni <negativo17@gmail.com> - 7.4.3-3
6d394f
- Add upstream patch to fix el5 i386 builds.
6d394f
6d394f
* Wed Jul 20 2016 Simone Caronni <negativo17@gmail.com> - 7.4.3-2
6d394f
- Remove GCC 6+ workaround bug, reset to default distribution optimizations.
6d394f
6d394f
* Tue Jul 19 2016 Jon Ciesla <limburgher@gmail.com> - 7.4.3-1
6d394f
- Update to 7.4.3.
6d394f
6d394f
* Thu Jul 07 2016 Jon Ciesla <limburgher@gmail.com> - 7.4.2-1
6d394f
- Update to 7.4.2.
6d394f
6d394f
* Tue Jul 05 2016 Simone Caronni <negativo17@gmail.com> - 7.4.1-2
6d394f
- Temporary workaround for GCC bug: http://bugs.bacula.org/view.php?id=2231
6d394f
6d394f
* Thu Jun 02 2016 Simone Caronni <negativo17@gmail.com> - 7.4.1-1
6d394f
- Update to 7.4.1.
6d394f
6d394f
* Mon Feb 22 2016 Simone Caronni <negativo17@gmail.com> - 7.4.0-4
6d394f
- Fix FTBFS on rawhide (#1307338).
6d394f
6d394f
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 7.4.0-3
6d394f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
6d394f
6d394f
* Mon Feb 01 2016 Rex Dieter <rdieter@fedoraproject.org> - 7.4.0-2
6d394f
- use %%qmake_qt4 macro to ensure proper build flags
6d394f
6d394f
* Mon Jan 25 2016 Simone Caronni <negativo17@gmail.com> - 7.4.0-1
6d394f
- Update to 7.4.0.
6d394f
- Rebase patches, remove git patch.
6d394f
6d394f
* Sun Dec 13 2015 Simone Caronni <negativo17@gmail.com> - 7.2.0-3
6d394f
- Re-add autoconf patch erraneously removed.
6d394f
6d394f
* Fri Dec 11 2015 Simone Caronni <negativo17@gmail.com> - 7.2.0-2
6d394f
- Add fixes from upstream 7.2 branch.
6d394f
6d394f
* Tue Sep 29 2015 Simone Caronni <negativo17@gmail.com> - 7.2.0-1
6d394f
- Update to 7.2.0.
6d394f
- Remove bpluginfo(8).
6d394f
6d394f
* Wed Jul 15 2015 Marcin Haba <marcin.haba@bacula.pl> - 7.0.5-9
6d394f
- Use an external icon for tray monitor.
6d394f
- Add gcc and gcc-c++ to build requires.
6d394f
6d394f
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.0.5-8
6d394f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
6d394f
6d394f
* Fri May 15 2015 Simone Caronni <negativo17@gmail.com> - 7.0.5-7
6d394f
- Split logwatch files in its own package. Logwatch should be installed
6d394f
  explicitly by an administrator, and not by defaul. Also, the current logwatch
6d394f
  package for RHEL 7 has a bug and can not be customized:
6d394f
  https://bugzilla.redhat.com/show_bug.cgi?id=1221903
6d394f
  Thanks to Dimitri Maziuk for reporting.
6d394f
6d394f
* Tue May 12 2015 Simone Caronni <negativo17@gmail.com> - 7.0.5-6
6d394f
- Require dejavu-lgc-sans-fonts for graphical programs. Fixes startup of bat on
6d394f
  headless servers without a desktop installed.
6d394f
6d394f
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 7.0.5-5
6d394f
- Rebuilt for GCC 5 C++11 ABI change
6d394f
6d394f
* Mon Mar 02 2015 Simone Caronni <negativo17@gmail.com> - 7.0.5-4
6d394f
- Fix tray-monitor packaging (again).
6d394f
6d394f
* Tue Feb 24 2015 Simone Caronni <negativo17@gmail.com> - 7.0.5-3
6d394f
- Add license macro.
6d394f
6d394f
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.0.5-2
6d394f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
6d394f
6d394f
* Thu Jul 31 2014 Simone Caronni <negativo17@gmail.com> - 7.0.5-1
6d394f
- Update to 7.0.5.
6d394f
6d394f
* Thu Jul 24 2014 Simone Caronni <negativo17@gmail.com> - 7.0.4-3
6d394f
- Remove RPM filters, add back patch inadvertently removed during 7.0 upstream
6d394f
  release.
6d394f
6d394f
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.0.4-2
6d394f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
6d394f
6d394f
* Wed Jun 04 2014 Simone Caronni <negativo17@gmail.com> - 7.0.4-1
6d394f
- Update to 7.0.4.
6d394f
6d394f
* Fri May 16 2014 Simone Caronni <negativo17@gmail.com> - 7.0.3-3
6d394f
- Add versioned library to alternatives system.
6d394f
6d394f
* Fri May 16 2014 Simone Caronni <negativo17@gmail.com> - 7.0.3-2
6d394f
- Filter out libbaccats from auto generated Provides/Obsoletes and add note on
6d394f
  the libbaccats-x.x.x.so shared object name mess.
6d394f
6d394f
* Thu May 15 2014 Simone Caronni <negativo17@gmail.com> - 7.0.3-1
6d394f
- Update to 7.0.3.
6d394f
6d394f
* Thu Apr 24 2014 Simone Caronni <negativo17@gmail.com> - 7.0.2-2
6d394f
- Bug fixes from upstream.
6d394f
6d394f
* Thu Apr 03 2014 Simone Caronni <negativo17@gmail.com> - 7.0.2-1
6d394f
- Update to 7.0.2, drop upstreamed patches.
6d394f
6d394f
* Tue Apr 01 2014 Simone Caronni <negativo17@gmail.com> - 7.0.1-2
6d394f
- Add patch for Nagios plugin.
6d394f
- Add missing requirement for Nagios plugin folder.
6d394f
6d394f
* Tue Apr 01 2014 Simone Caronni <negativo17@gmail.com> - 7.0.1-1
6d394f
- Update to 7.0.1; remove Python.
6d394f
- Drop git patch.
6d394f
6d394f
* Sun Mar 30 2014 Simone Caronni <negativo17@gmail.com> - 7.0.0-3
6d394f
- Update git patch.
6d394f
- Sort file sections.
6d394f
6d394f
* Sun Mar 30 2014 Simone Caronni <negativo17@gmail.com> - 7.0.0-2
6d394f
- Backport changes from git for QT Tray monitor, Nagios plugin and configure
6d394f
  script.
6d394f
- Removed upstream patches.
6d394f
6d394f
* Sun Mar 30 2014 Simone Caronni <negativo17@gmail.com> - 7.0.0-1
6d394f
- Update to 7.0.0.
6d394f
- Momentarily disable Nagios plugin and QT tray monitor as they don't build
6d394f
  anymore.
6d394f
6d394f
* Tue Aug 06 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-17
6d394f
- Fix dependencies for devel subpackage.
6d394f
- Explicitly declare dependency also on libs-sql subpackage where required, so
6d394f
  we can save one extra cpu cycle during the upgrade (...).
6d394f
- Bat subpackage used to rely on files in %%_docdir for operation, move them
6d394f
  elsewhere. Fixes also Fedora 20 unversioned %%_docdir feature.
6d394f
- Make sure any package combination results in installed license files.
6d394f
6d394f
* Tue Aug 06 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-16
6d394f
- Remove Fedora 17 conditionals, distribution EOL.
6d394f
- Remove systemd-sysv dependency as per new packaging guidelines.
6d394f
6d394f
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2.13-15
6d394f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
6d394f
6d394f
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 5.2.13-14
6d394f
- Perl 5.18 rebuild
6d394f
6d394f
* Mon Jul 15 2013 Petr Hracek <phracek@redhat.com> - 5.2.13-13
6d394f
- make dependency of bacula packages on bacula-libs RHEL-7 rpmdiff (#881146)
6d394f
6d394f
* Thu Jun 27 2013 Petr Hracek <phracek@redhat.com> - 5.2.13-12
6d394f
- Correct systemd unitfiles permissions
6d394f
6d394f
* Tue May 28 2013 Petr Hracek <phracek@redhat.com> - 5.2.13-11
6d394f
- Fix for nonfree code (#967417)
6d394f
6d394f
* Thu May 16 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-10
6d394f
- Add aarch64 patch (#925072).
6d394f
- Add bpluginfo commmand.
6d394f
6d394f
* Tue Apr 16 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-9
6d394f
- Systemd service files cleanup, thanks Michal Schmidt (#952334)
6d394f
6d394f
* Mon Apr 08 2013 Petr Hracek <phracek@redhat.com> - 5.2.13-8
6d394f
- Correcting options and man pages (#948837)
6d394f
6d394f
* Mon Apr 08 2013 Petr Hracek <phracek@redhat.com> - 5.2.13-7
6d394f
- include /var/log/bacula/*.log in logwatch (#924797)
6d394f
6d394f
* Mon Mar 04 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-6
6d394f
- Add mt-st requirement to storage package; update quick start docs.
6d394f
6d394f
* Tue Feb 26 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-5
6d394f
- Improve documentation.
6d394f
6d394f
* Mon Feb 25 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-4
6d394f
- Fix director reload command.
6d394f
- Adjust to 5.2.13 permission changes.
6d394f
6d394f
* Fri Feb 22 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-3
6d394f
- Renamed README to README.Redhat.
6d394f
6d394f
* Thu Feb 21 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-2
6d394f
- Removed bacula-checkconf stuff.
6d394f
- Separated postgresql, sqlite3 and mysql how to from README.
6d394f
6d394f
* Wed Feb 20 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-1
6d394f
- Update to 5.2.13, drop upstreamed patch.
6d394f
- Remove Fedora 16 (EOL) checks.
6d394f
6d394f
* Sun Feb 10 2013 Rahul Sundaram <sundaram@fedoraproject.org> - 5.2.12-9
6d394f
- remove vendor tag from desktop file. https://fedorahosted.org/fpc/ticket/247
6d394f
6d394f
* Fri Feb 08 2013 Petr Hracek <phracek@redhat.com> - 5.2.12-8
6d394f
- Fix: (#881146) syntax error in update_postgresql_tables_10_to_11.in
6d394f
6d394f
* Mon Feb 04 2013 Petr Hracek <phracek@redhat.com> - 5.2.12-7
6d394f
- Fix (#905309) e_msg: Process /usr/sbin/bat was killed by signal 11 (SIGSEGV)
6d394f
6d394f
* Thu Jan 10 2013 Simone Caronni <negativo17@gmail.com> - 5.2.12-6
6d394f
- Added missing line in bacula-sd SysV init script.
6d394f
6d394f
* Wed Jan 09 2013 Simone Caronni <negativo17@gmail.com> - 5.2.12-5
6d394f
- Move unversioned libraries into the devel package (#889244).
6d394f
6d394f
* Wed Jan 09 2013 Simone Caronni <negativo17@gmail.com> - 5.2.12-4
6d394f
- Updated SysV init script according to Fedora template:
6d394f
  https://fedoraproject.org/wiki/Packaging:SysVInitScript
6d394f
6d394f
* Wed Oct 17 2012 Simone Caronni <negativo17@gmail.com> - 5.2.12-3
6d394f
- Add sample-query.sql file to Director's docs.
6d394f
6d394f
* Wed Oct 17 2012 Simone Caronni <negativo17@gmail.com> - 5.2.12-2
6d394f
- Fix fedpkg checks. Requires fedpkg > 1.10:
6d394f
  http://git.fedorahosted.org/cgit/fedpkg.git/commit/?id=11c46c06a3c9cc2f58d68aea964dd37dc028e349
6d394f
- Change systemd requirements as per new package guidelines.
6d394f
6d394f
* Fri Sep 14 2012 Simone Caronni <negativo17@gmail.com> - 5.2.12-1
6d394f
- Update to 5.2.12, containing only patches from 5.2.11-4.
6d394f
6d394f
* Fri Sep 14 2012 Simone Caronni <negativo17@gmail.com> - 5.2.11-4
6d394f
- Add a sleep timer for RHEL init scripts restart as Debian does.
6d394f
  Problems verified on the sd exiting too early on VMs and slow boxes.
6d394f
6d394f
* Thu Sep 13 2012 Simone Caronni <negativo17@gmail.com> - 5.2.11-3
6d394f
- Introduce last minute critical patches.
6d394f
6d394f
* Thu Sep 13 2012 Simone Caronni <negativo17@gmail.com> - 5.2.11-2
6d394f
- Do not remove user on common subpackage uninstall.
6d394f
6d394f
* Tue Sep 11 2012 Simone Caronni <negativo17@gmail.com> - 5.2.11-1
6d394f
- Update to 5.2.11.
6d394f
- Removed upstreamed patches.
6d394f
- Updated bat patch.
6d394f
- Removed useless docs.
6d394f
6d394f
* Tue Sep 11 2012 Simone Caronni <negativo17@gmail.com> - 5.2.10-7
6d394f
- Add Fedora 18 systemd macros.
6d394f
- Remove old distribution checks.
6d394f
6d394f
* Wed Aug 29 2012 Simone Caronni <negativo17@gmail.com> - 5.2.10-6
6d394f
- Remove user definition during prep so they are not used during the install
6d394f
  phase (rhbz#852732).
6d394f
- Enforce permissions in default config files.
6d394f
6d394f
* Fri Jul 20 2012 Simone Caronni <negativo17@gmail.com> - 5.2.10-5
6d394f
- Removed make_catalog_backup bash script, leave only the default perl one (rhbz#456612,665498).
6d394f
6d394f
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2.10-4
6d394f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
6d394f
6d394f
* Mon Jul 16 2012 Simone Caronni <negativo17@gmail.com> - 5.2.10-3
6d394f
- Updated log path patch (rhbz#837706).
6d394f
6d394f
* Tue Jul 10 2012 Simone Caronni <negativo17@gmail.com> - 5.2.10-2
6d394f
- Add nss-lookup.target as required to service files (rhbz#838828).
6d394f
- Fix bsmtp upstream bug sending mails to ipv4/ipv6 hosts.
6d394f
6d394f
* Mon Jul 02 2012 Simone Caronni <negativo17@gmail.com> - 5.2.10-1
6d394f
- Update to 5.2.10.
6d394f
6d394f
* Tue Jun 19 2012 Simone Caronni <negativo17@gmail.com> - 5.2.9-2
6d394f
- Remove _isa on BuildRequires.
6d394f
- Remove useless code in SysV init scripts.
6d394f
6d394f
* Tue Jun 12 2012 Simone Caronni <negativo17@gmail.com> - 5.2.9-1
6d394f
- Update to 5.2.9, remove termlib patch.
6d394f
6d394f
* Mon Jun 11 2012 Simone Caronni <negativo17@gmail.com> - 5.2.8-2
6d394f
- Fix console build on RHEL 5.
6d394f
6d394f
* Mon Jun 11 2012 Simone Caronni <negativo17@gmail.com> - 5.2.8-1
6d394f
- Update to 5.2.8.
6d394f
- Removed upstram xattr patch.
6d394f
- Added database backend detection to bacula-libs-sql for upgrades from
6d394f
  <= 5.0.3-28-fc16 and 5.2.6-1.fc17.
6d394f
6d394f
* Fri Jun 08 2012 Simone Caronni <negativo17@gmail.com> - 5.2.7-4
6d394f
- Make a note about mt-st and mtx (bz#829888).
6d394f
- Update README.Fedora with current information.
6d394f
- Fix bacula-sd group on Fedora and RHEL >= 6 (bz#829509).
6d394f
6d394f
* Wed Jun 06 2012 Simone Caronni <negativo17@gmail.com> - 5.2.7-3
6d394f
- Final xattr patch from upstream for bz#819158.
6d394f
- Switch alternatives to point to the unversioned system libraries.
6d394f
  Pointed out by the closely related bug #829219.
6d394f
6d394f
* Mon Jun 04 2012 Simone Caronni <negativo17@gmail.com> - 5.2.7-2
6d394f
- Remove python-devel test leftover.
6d394f
- Updated bat build patch to add support for RHEL 6.
6d394f
6d394f
* Mon Jun 04 2012 Simone Caronni <negativo17@gmail.com> - 5.2.7-1
6d394f
- Updated to 5.2.7, removed patches included upstream.
6d394f
- Removed python-devel patch, fix included in python package.
6d394f
- Replaced tabs with blanks in spec file (rpmlint).
6d394f
6d394f
* Mon May 28 2012 Simone Caronni <negativo17@gmail.com> - 5.2.6-6
6d394f
- Even if pulled in by dependencies, re-add explict BR on systemd-units.
6d394f
- Remove .gz suffix for man pages in file lists as per packaging guidelines.
6d394f
6d394f
* Mon May 28 2012 Simone Caronni <negativo17@gmail.com> - 5.2.6-5
6d394f
- Patch for bug #819158.
6d394f
- Updated hostname patch with official fix.
6d394f
- Sorted all BuildRequires and removed useless systemd-units.
6d394f
6d394f
* Wed May 23 2012 Simone Caronni <negativo17@gmail.com> - 5.2.6-4
6d394f
- Added python config workaround for Fedora 16.
6d394f
6d394f
* Mon May 21 2012 Simone Caronni <negativo17@gmail.com> - 5.2.6-3
6d394f
- Removed _install, _mkdir and _make macro.
6d394f
- Added _isa to BuildRequires.
6d394f
- Removed lzo-devel option for RHEL 4 (EOL).
6d394f
6d394f
* Fri Mar 16 2012 Simone Caronni <negativo17@gmail.com> - 5.2.6-2
6d394f
- Move libbaccats and libbacsql into bacula-libs-sql package so only
6d394f
  Director and Storage daemons pull in SQL dependencies:
6d394f
  http://old.nabble.com/Standalone-client-question-td33495990.html
6d394f
6d394f
* Wed Feb 22 2012 Simone Caronni <negativo17@gmail.com> - 5.2.6-1
6d394f
- Update to 5.2.6.
6d394f
6d394f
* Fri Feb 10 2012 Simone Caronni <negativo17@gmail.com> - 5.2.5-3
6d394f
- WX and gnome console should be upgraded from bconsole, not
6d394f
  libraries.
6d394f
6d394f
* Mon Jan 30 2012 Simone Caronni <negativo17@gmail.com> - 5.2.5-2
6d394f
- License has changed to AGPLv3 in 5.0.3. Thanks Erinn.
6d394f
- Fix ldconfig/alternatives symlinks on removal of packages and
6d394f
  upgrades from recent f15/f16 changes.
6d394f
6d394f
* Thu Jan 26 2012 Simone Caronni <negativo17@gmail.com> - 5.2.5-1
6d394f
- Update to 5.2.5.
6d394f
- Change the alternative library to the base shared object name
6d394f
  so the preference set is not lost when changing releases.
6d394f
6d394f
* Mon Jan 23 2012 Simone Caronni <negativo17@gmail.com> - 5.2.4-4
6d394f
- Remove old BuildRequires for bacula-docs.
6d394f
6d394f
* Fri Jan 20 2012 Simone Caronni <negativo17@gmail.com> - 5.2.4-3
6d394f
- Fix for rhbz#728693.
6d394f
6d394f
* Fri Jan 20 2012 Simone Caronni <negativo17@gmail.com> - 5.2.4-2
6d394f
- Close bugs rhbz#708712, rhbz#556669, rhbz#726147
6d394f
6d394f
* Wed Jan 18 2012 Simone Caronni <negativo17@gmail.com> - 5.2.4-1
6d394f
- Update to 5.2.4, rework libbaccats installation as they have
6d394f
  fixed the soname library problem.
6d394f
6d394f
* Thu Jan 12 2012 Simone Caronni <negativo17@gmail.com> - 5.2.3-8
6d394f
- Fix tray monitor desktop file.
6d394f
6d394f
* Wed Jan 11 2012 Simone Caronni <negativo17@gmail.com> - 5.2.3-7
6d394f
- Split off bacula-docs subpackage.
6d394f
6d394f
* Thu Jan 05 2012 Simone Caronni <negativo17@gmail.com> - 5.2.3-6
6d394f
- Make docs conditional at build for testing.
6d394f
- Add devel subpackage.
6d394f
6d394f
* Tue Jan 03 2012 Simone Caronni <negativo17@gmail.com> - 5.2.3-5
6d394f
- Trim changelog.
6d394f
- Merge bacula-director backends and move libbacats alternatives
6d394f
  to bacula-libs.
6d394f
- Move bscan to bacula-storage now that is dependent only on
6d394f
  bacula-libs.
6d394f
- Added README.Fedora.
6d394f
6d394f
* Tue Dec 20 2011 Simone Caronni <negativo17@gmail.com> - 5.2.3-4
6d394f
- Changing uid from 33 per previous discussion, static uid
6d394f
  already allocated is 133:
6d394f
  "cat /usr/share/doc/setup-2.8.36/uidgid | grep bacula"
6d394f
6d394f
* Mon Dec 19 2011 Simone Caronni <negativo17@gmail.com> - 5.2.3-3
6d394f
- Remove fedora-usermgmt entirely, see thread at:
6d394f
  http://lists.fedoraproject.org/pipermail/packaging/2011-December/008034.html
6d394f
6d394f
* Mon Dec 19 2011 Simone Caronni <negativo17@gmail.com> - 5.2.3-2
6d394f
- Remove leftover users when removing bacula-common.
6d394f
- Allow building "--without fedora" to avoid RHEL dependency on EPEL:
6d394f
  http://fedoraproject.org/wiki/PackageUserCreation
6d394f
6d394f
* Mon Dec 19 2011 Simone Caronni <negativo17@gmail.com> - 5.2.3-1
6d394f
- Updated to 5.2.3.
6d394f
- Remove fedora-usermgmt from libs Requires section.
6d394f
6d394f
* Sun Dec 11 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-11
6d394f
- Add bat html docs so the help button works.
6d394f
- Minor packaging changes.
6d394f
- Default permissions on bconsole and bat.
6d394f
- Use localhost as default on config files instead of patching fake
6d394f
  example.com hostnames.
6d394f
- Add QT tray monitor.
6d394f
6d394f
* Sat Dec 10 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-10
6d394f
- Added patch for mysql 5.5.18 from Oliver Falk.
6d394f
6d394f
* Wed Dec 07 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-9
6d394f
- Add sample-query.sql as config file.
6d394f
- Small log changes.
6d394f
6d394f
* Wed Dec 07 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-8
6d394f
- Fixed building on RHEL/CentOS 4.
6d394f
- Split out libs package to remove dependency on bacula-common for
6d394f
  bconsole, bat and check_bacula.
6d394f
- Fix typo in post scriptlet for director-sqlite.
6d394f
6d394f
* Tue Dec 06 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-7
6d394f
- Added libcap for POSIX.1e capabilities in bacula-fd (5.0.0 feature).
6d394f
- Allow systemd files to read options set in the sysconfig
6d394f
  configuration files like SysV scripts to enable capabilities.
6d394f
- Set capabilities as optional for now.
6d394f
6d394f
* Mon Dec 05 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-6
6d394f
- Removed leftover files and small rpmlint fixes.
6d394f
- Additional file moves between packages.
6d394f
- Enabled LZO compression (5.2.1 feature).
6d394f
6d394f
* Mon Dec 05 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-5
6d394f
- Remove redundant user/group in service files.
6d394f
- Reduce patching for what can be passed through configure.
6d394f
- Remove dsolink patch, not needed anymore.
6d394f
6d394f
* Fri Dec 02 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-4
6d394f
- Rename storage-common to storage and make it provide storage-common.
6d394f
- Move bscan to director-common.
6d394f
- Move storage scripts to storage.
6d394f
- Add html docs.
6d394f
- Install dummy catalogue library and mark it as ghost.
6d394f
6d394f
* Thu Dec 01 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-3
6d394f
- Add missing conditional for bat in the build section.
6d394f
- Make bat require qt4-devel on build (rhel 5 fix).
6d394f
- Bumped requirement for qt >= 4.6.2 for 5.2.2.
6d394f
- Renamed bacula-config.patch to bacula-5.2.2-config.patch as it
6d394f
  always changes.
6d394f
- Fix installation of bat and check_bacula binaries. Enabling
6d394f
  libtool for bpipe-fd.so produces binaries under .libs.
6d394f
- Removed fedora-usermgmt requirement for director-common.
6d394f
- Removed examples from docs and make them "noarch".
6d394f
- Fix bacula-console requirements.
6d394f
- Fix nagios plugin summary.
6d394f
- Removed checkconf functions from SysV init files and replace
6d394f
  the call with the script used in systemd service files. Make
6d394f
  the script available in all builds.
6d394f
- Make docs NoArch where supported.
6d394f
6d394f
* Thu Dec  1 2011 Tom Callaway <spot@fedoraproject.org> - 5.2.2-2
6d394f
- resolve broken dependency issues
6d394f
6d394f
* Tue Nov 29 2011 Tom Callaway <spot@fedoraproject.org> - 5.2.2-1
6d394f
- Update to 5.2.2
6d394f
- minor spec cleanups, conditionalized support for systemd
6d394f
6d394f
* Fri Nov 04 2011 Simone Caronni <negativo17@gmail.com> - 5.2.1-1
6d394f
- Updated to 5.2.1.
6d394f
- Reworked and removed some patches for 5.2.1 codebase.
6d394f
- Reworked bat installation.
6d394f
- Removed sqlite2 support.
6d394f
- Removed all the fancy database backend rebuilding.
6d394f
- Disabled libtool for bpipe-fd.so.
6d394f
- Passed plugins dir as libdir/bacula.
6d394f
- Added sql libs to alternatives.
6d394f
- Disabled traymonitor.
6d394f
- Minor fixes to spec file, rpmlint fixes.
6d394f
- Nagios patch for Enterprise FDs.
6d394f
- Removed all gui/web stuff.
6d394f
- Removed a lot of comments.
6d394f
- Conditional on Fedora 11 / RHEL 6 for bat build.
6d394f
- Obsolete bacula-sysconfdir.
6d394f
- Removed bwxconsole.