Blame SPECS/bacula.spec

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