Blame SPECS/bacula.spec

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