Blame SPECS/bacula.spec

2785c5
%global uid 133
2785c5
%global username bacula
abd591
%global _hardened_build 1
abd591
abd591
%global aarchrev .1
2785c5
2785c5
Name:               bacula
2785c5
Version:            5.2.13
abd591
Release:            23%{aarchrev}%{?dist}
2785c5
Summary:            Cross platform network backup for Linux, Unix, Mac and Windows
2785c5
# See LICENSE for details
2785c5
License:            AGPLv3 with exceptions
2785c5
Group:              System Environment/Daemons
2785c5
URL:                http://www.bacula.org
2785c5
BuildRoot:          %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2785c5
2785c5
Source0:            http://www.bacula.org/downloads/Bacula-%{version}/%{name}-%{version}.tar.gz
2785c5
2785c5
Source2:            quickstart_postgresql.txt
2785c5
Source3:            quickstart_mysql.txt
2785c5
Source4:            quickstart_sqlite3.txt
2785c5
Source5:            README.Redhat
2785c5
Source6:            %{name}.logrotate
2785c5
Source7:            %{name}-fd.init
2785c5
Source8:            %{name}-dir.init
2785c5
Source9:            %{name}-sd.init
2785c5
Source10:           %{name}-fd.service
2785c5
Source11:           %{name}-dir.service
2785c5
Source12:           %{name}-sd.service
2785c5
Source13:           %{name}-bat.desktop
2785c5
Source14:           %{name}-traymonitor.desktop
2785c5
Source15:           %{name}-fd.sysconfig
2785c5
Source16:           %{name}-dir.sysconfig
2785c5
Source17:           %{name}-sd.sysconfig
2785c5
Source18:           %{name}-sd.sysconfig.el5
2785c5
2785c5
Patch1:             %{name}-5.0.2-openssl.patch
2785c5
Patch2:             %{name}-5.2.2-queryfile.patch
2785c5
Patch3:             %{name}-5.0.3-sqlite-priv.patch
2785c5
Patch4:             %{name}-5.2.13-bat-build.patch
2785c5
Patch5:             %{name}-5.2.12-seg-fault.patch
2785c5
Patch6:             %{name}-5.2.13-logwatch.patch
2785c5
Patch7:             %{name}-help-update.patch
2785c5
Patch8:             %{name}-aarch64.patch
2785c5
Patch9:             %{name}-non-free-code.patch
7af95a
Patch10:            %{name}-multilib.patch
abd591
Patch11:            %{name}-name-length.patch
2785c5
2785c5
BuildRequires:      desktop-file-utils
2785c5
BuildRequires:      perl
2785c5
BuildRequires:      sed
2785c5
2785c5
BuildRequires:      glibc-devel
2785c5
BuildRequires:      libacl-devel
2785c5
BuildRequires:      libstdc++-devel
2785c5
BuildRequires:      libxml2-devel
2785c5
BuildRequires:      libcap-devel
2785c5
BuildRequires:      lzo-devel
2785c5
BuildRequires:      mysql-devel
2785c5
BuildRequires:      ncurses-devel
2785c5
BuildRequires:      openssl-devel
2785c5
BuildRequires:      postgresql-devel
2785c5
BuildRequires:      python-devel
2785c5
BuildRequires:      readline-devel
2785c5
BuildRequires:      sqlite-devel
2785c5
BuildRequires:      zlib-devel
2785c5
2785c5
%if 0%{?fedora} || 0%{?rhel} >= 6
2785c5
BuildRequires:      qt4-devel >= 4.6.2
2785c5
%endif
2785c5
2785c5
%if 0%{?fedora} || 0%{?rhel} >= 6
2785c5
BuildRequires:      tcp_wrappers-devel
2785c5
%else
2785c5
BuildRequires:      tcp_wrappers
2785c5
%endif
2785c5
2785c5
%if 0%{?fedora} || 0%{?rhel} >= 7
2785c5
BuildRequires:      systemd-units
2785c5
%endif
2785c5
2785c5
%description
2785c5
Bacula is a set of programs that allow you to manage the backup, recovery, and
2785c5
verification of computer data across a network of different computers. It is
2785c5
based on a client/server architecture and is efficient and relatively easy to
2785c5
use, while offering many advanced storage management features that make it easy
2785c5
to find and recover lost or damaged files.
2785c5
2785c5
%package libs
2785c5
Summary:            Bacula libraries
2785c5
Group:              System Environment/Daemons
2785c5
Obsoletes:          bacula-sysconfdir <= 2.4
2785c5
2785c5
%description libs
2785c5
Bacula is a set of programs that allow you to manage the backup,
2785c5
recovery, and verification of computer data across a network of
2785c5
different computers. It is based on a client/server architecture.
2785c5
2785c5
This package contains basic Bacula libraries, which are used by all
2785c5
Bacula programs.
2785c5
2785c5
%package libs-sql
2785c5
Summary:            Bacula SQL libraries
2785c5
Group:              System Environment/Daemons
2785c5
Obsoletes:          bacula-libs-mysql <= 5.0.3
2785c5
Obsoletes:          bacula-libs-sqlite <= 5.0.3
2785c5
Obsoletes:          bacula-libs-postgresql <= 5.0.3
2785c5
Provides:           bacula-libs-mysql = %{version}-%{release}
2785c5
Provides:           bacula-libs-sqlite = %{version}-%{release}
2785c5
Provides:           bacula-libs-postgresql = %{version}-%{release}
2785c5
2785c5
%description libs-sql
2785c5
Bacula is a set of programs that allow you to manage the backup, recovery, and
2785c5
verification of computer data across a network of different computers. It is
2785c5
based on a client/server architecture.
2785c5
2785c5
This package contains the SQL Bacula libraries, which are used by Director and
2785c5
Storage daemons. You have to select your preferred catalog library through the
2785c5
alternatives system.
2785c5
2785c5
%package common
2785c5
Summary:            Common Bacula files
2785c5
Group:              System Environment/Daemons
2785c5
Obsoletes:          bacula-sysconfdir <= 2.4
2785c5
Provides:           group(%username) = %uid
2785c5
Provides:           user(%username) = %uid
2785c5
Requires(pre):      shadow-utils
2785c5
Requires(postun):   shadow-utils
2785c5
Requires:           bacula-libs%{?_isa} = %{version}-%{release}
2785c5
2785c5
%description common
2785c5
Bacula is a set of programs that allow you to manage the backup, recovery, and
2785c5
verification of computer data across a network of different computers. It is
2785c5
based on a client/server architecture.
2785c5
2785c5
This package contains files common to all Bacula daemons.
2785c5
2785c5
%package director
2785c5
Summary:            Bacula Director files
2785c5
Group:              System Environment/Daemons
2785c5
Requires:           bacula-common%{?_isa} = %{version}-%{release}
2785c5
Requires:           bacula-libs%{?_isa} = %{version}-%{release}
2785c5
Requires:           logwatch
2785c5
# Director backends merged into core.
2785c5
Provides:           bacula-director-common = %{version}-%{release}
2785c5
Obsoletes:          bacula-director-common < 5.2.3-5
2785c5
Provides:           bacula-director-mysql = %{version}-%{release}
2785c5
Obsoletes:          bacula-director-mysql < 5.2.3-5
2785c5
Provides:           bacula-director-sqlite = %{version}-%{release}
2785c5
Obsoletes:          bacula-director-sqlite < 5.2.3-5
2785c5
Provides:           bacula-director-postgresql = %{version}-%{release}
2785c5
Obsoletes:          bacula-director-postgresql < 5.2.3-5
2785c5
2785c5
%if 0%{?fedora} == 17
2785c5
Requires(post):     systemd-units
2785c5
Requires(preun):    systemd-units
2785c5
Requires(postun):   systemd-units
2785c5
%endif
2785c5
2785c5
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
2785c5
Requires(post):     systemd-sysv
2785c5
Requires(post):     systemd
2785c5
Requires(preun):    systemd
2785c5
Requires(postun):   systemd
2785c5
%endif
2785c5
2785c5
%if 0%{?rhel} == 5 || 0%{?rhel} == 6
2785c5
Requires(post):     /sbin/chkconfig
2785c5
Requires(preun):    /sbin/chkconfig
2785c5
Requires(preun):    /sbin/service
2785c5
Requires(postun):   /sbin/service
2785c5
%endif
2785c5
2785c5
%description director
2785c5
Bacula is a set of programs that allow you to manage the backup, recovery, and
2785c5
verification of computer data across a network of different computers. It is
2785c5
based on a client/server architecture.
2785c5
2785c5
This package contains the director files.
2785c5
2785c5
%package storage
2785c5
Summary:            Bacula storage daemon files
2785c5
Group:              System Environment/Daemons
2785c5
Requires:           bacula-common%{?_isa} = %{version}-%{release}
2785c5
Requires:           bacula-libs%{?_isa} = %{version}-%{release}
2785c5
Requires:           mt-st
2785c5
# Storage backends merged into core.
2785c5
Provides:           bacula-storage-common = %{version}-%{release}
2785c5
Obsoletes:          bacula-storage-common < 5.2.2-2
2785c5
Provides:           bacula-storage-mysql = %{version}-%{release}
2785c5
Obsoletes:          bacula-storage-mysql < 5.2.0
2785c5
Provides:           bacula-storage-sqlite = %{version}-%{release}
2785c5
Obsoletes:          bacula-storage-sqlite < 5.2.0
2785c5
Provides:           bacula-storage-postgresql = %{version}-%{release}
2785c5
Obsoletes:          bacula-storage-postgresql < 5.2.0
2785c5
2785c5
%if 0%{?fedora} == 17
2785c5
Requires(post):     systemd-units
2785c5
Requires(preun):    systemd-units
2785c5
Requires(postun):   systemd-units
2785c5
%endif
2785c5
2785c5
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
2785c5
Requires(post):     systemd-sysv
2785c5
Requires(post):     systemd
2785c5
Requires(preun):    systemd
2785c5
Requires(postun):   systemd
2785c5
%endif
2785c5
2785c5
%if 0%{?rhel} == 5 || 0%{?rhel} == 6
2785c5
Requires(post):     /sbin/chkconfig
2785c5
Requires(preun):    /sbin/chkconfig
2785c5
Requires(preun):    /sbin/service
2785c5
Requires(postun):   /sbin/service
2785c5
%endif
2785c5
2785c5
%description storage
2785c5
Bacula is a set of programs that allow you to manage the backup, recovery, and
2785c5
verification of computer data across a network of different computers. It is
2785c5
based on a client/server architecture.
2785c5
2785c5
This package contains the storage daemon, the daemon responsible for writing
2785c5
the data received from the clients onto tape drives or other mass storage
2785c5
devices.
2785c5
2785c5
%package client
2785c5
Summary:            Bacula backup client
2785c5
Group:              System Environment/Daemons
2785c5
Requires:           bacula-common%{?_isa} = %{version}-%{release}
2785c5
2785c5
%if 0%{?fedora} == 17
2785c5
Requires(post):     systemd-units
2785c5
Requires(preun):    systemd-units
2785c5
Requires(postun):   systemd-units
2785c5
%endif
2785c5
2785c5
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
2785c5
Requires(post):     systemd-sysv
2785c5
Requires(post):     systemd
2785c5
Requires(preun):    systemd
2785c5
Requires(postun):   systemd
2785c5
%endif
2785c5
2785c5
%if 0%{?rhel} == 5 || 0%{?rhel} == 6
2785c5
Requires(post):     /sbin/chkconfig
2785c5
Requires(preun):    /sbin/chkconfig
2785c5
Requires(preun):    /sbin/service
2785c5
Requires(postun):   /sbin/service
2785c5
%endif
2785c5
2785c5
%description client
2785c5
Bacula is a set of programs that allow you to manage the backup, recovery, and
2785c5
verification of computer data across a network of different computers. It is
2785c5
based on a client/server architecture.
2785c5
2785c5
This package contains the bacula client, the daemon running on the system to be
2785c5
backed up.
2785c5
2785c5
%package console
2785c5
Summary:            Bacula management console
2785c5
Group:              System Environment/Daemons
2785c5
Obsoletes:          bacula-console-gnome <= 2.4
2785c5
Obsoletes:          bacula-console-wxwidgets <= 5.0.3
2785c5
Requires:           bacula-libs%{?_isa} = %{version}-%{release}
2785c5
2785c5
%description console
2785c5
Bacula is a set of programs that allow you to manage the backup, recovery, and
2785c5
verification of computer data across a network of different computers. It is
2785c5
based on a client/server architecture.
2785c5
2785c5
This package contains the command-line management console for the bacula backup
2785c5
system.
2785c5
2785c5
%if 0%{?fedora} || 0%{?rhel} >= 6
2785c5
%package console-bat
2785c5
Summary:            Bacula bat console
2785c5
Group:              System Environment/Daemons
2785c5
Requires:           bacula-libs%{?_isa} = %{version}-%{release}
2785c5
2785c5
%description console-bat
2785c5
Bacula is a set of programs that allow you to manage the backup, recovery, and
2785c5
verification of computer data across a network of different computers. It is
2785c5
based on a client/server architecture.
2785c5
2785c5
This package contains the bat version of the bacula management console.
2785c5
2785c5
%package traymonitor
2785c5
Summary:            Bacula system tray monitor
2785c5
Group:              System Environment/Daemons
2785c5
Requires:           bacula-libs%{?_isa} = %{version}-%{release}
2785c5
2785c5
%description traymonitor
2785c5
Bacula is a set of programs that allow you to manage the backup, recovery, and
2785c5
verification of computer data across a network of different computers. It is
2785c5
based on a client/server architecture.
2785c5
2785c5
This package contains the Gnome and KDE compatible tray monitor to monitor your
2785c5
bacula server.
2785c5
%endif
2785c5
2785c5
%package devel
2785c5
Summary:            Bacula development files
2785c5
Group:              Development/Libraries
2785c5
2785c5
%description devel
2785c5
Bacula is a set of programs that allow you to manage the backup, recovery, and
2785c5
verification of computer data across a network of different computers. It is
2785c5
based on a client/server architecture.
2785c5
2785c5
This development package contains static libraries and header files.
2785c5
2785c5
2785c5
%package -n nagios-plugins-bacula
2785c5
Summary:            Nagios Plugin - check_bacula
2785c5
Group:              Applications/System
2785c5
Requires:           bacula-libs%{?_isa} = %{version}-%{release}
2785c5
2785c5
%description -n nagios-plugins-bacula
2785c5
Provides check_bacula support for Nagios.
2785c5
2785c5
%prep
2785c5
%setup -q
2785c5
%patch1 -p2 -b .openssl
2785c5
%patch2 -p1 -b .queryfile
2785c5
%patch3 -p0 -b .priv
2785c5
%patch4 -p1 -b .bat-build
2785c5
%patch5 -p1 -b .seg-fault
2785c5
%patch6 -p1 -b .logwatch
2785c5
%patch7 -p1 -b .help-update
2785c5
%patch8 -p1 -b .aarch64
2785c5
%patch9 -p1 -b .non-free-code
7af95a
%patch10 -p1 -b .multilib
abd591
%patch11 -p1 -b .name-length
2785c5
cp %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} .
2785c5
2785c5
# Remove execution permissions from files we're packaging as docs later on
2785c5
find updatedb -type f | xargs chmod -x
2785c5
2785c5
%build
2785c5
build() {
abd591
export CFLAGS="$RPM_OPT_FLAGS -fPIE -Wl,-z,relro,-z,now -I%{_includedir}/ncurses"
2785c5
export CPPFLAGS="$RPM_OPT_FLAGS -I%{_includedir}/ncurses"
2785c5
%configure \
2785c5
        --sysconfdir=%{_sysconfdir}/bacula \
2785c5
        --with-hostname=localhost \
2785c5
        --with-basename=bacula \
2785c5
        --with-dir-password=@@DIR_PASSWORD@@ \
2785c5
        --with-fd-password=@@FD_PASSWORD@@ \
2785c5
        --with-sd-password=@@SD_PASSWORD@@ \
2785c5
        --with-mon-dir-password=@@MON_DIR_PASSWORD@@ \
2785c5
        --with-mon-fd-password=@@MON_FD_PASSWORD@@ \
2785c5
        --with-mon-sd-password=@@MON_SD_PASSWORD@@ \
2785c5
        --with-working-dir=%{_localstatedir}/spool/bacula \
2785c5
        --with-bsrdir=%{_localstatedir}/spool/bacula \
2785c5
        --with-logdir=%{_localstatedir}/log/bacula \
2785c5
        --with-scriptdir=%{_libexecdir}/bacula \
2785c5
        --with-plugindir=%{_libdir}/bacula \
2785c5
        --with-smtp-host=localhost \
2785c5
        --with-subsys-dir=%{_localstatedir}/lock/subsys \
2785c5
        --with-pid-dir=%{_localstatedir}/run \
2785c5
        --disable-conio \
2785c5
        --enable-batch-insert \
2785c5
        --enable-readline \
2785c5
        --enable-largefile \
2785c5
        --enable-build-dird \
2785c5
        --enable-build-stored \
2785c5
        --with-openssl \
2785c5
        --with-tcp-wrappers \
2785c5
        --with-python \
2785c5
        --enable-smartalloc \
2785c5
        --with-x \
2785c5
        --disable-rpath \
2785c5
        --with-sqlite3 \
2785c5
        --with-mysql \
2785c5
        --with-postgresql \
2785c5
        $*
2785c5
}
2785c5
2785c5
%if 0%{?fedora} || 0%{?rhel} >= 6
2785c5
export QMAKE=/usr/bin/qmake-qt4
2785c5
build --enable-bat --docdir=%{_datadir}/doc/bacula-console-bat-%{version}
2785c5
%else
2785c5
build --disable-bat
2785c5
%endif
2785c5
2785c5
# Remove RPATH
2785c5
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
2785c5
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
2785c5
2785c5
make %{?_smp_mflags}
2785c5
2785c5
pushd examples/nagios/check_bacula
2785c5
        CFLAGS="%{optflags}" make LIBS="-lpthread -ldl -lssl -lcrypto -lz"
2785c5
popd
2785c5
2785c5
%if 0%{?fedora} || 0%{?rhel} >= 6
2785c5
pushd src/qt-console/tray-monitor
abd591
        /usr/bin/qmake-qt4 tray-monitor.pro
2785c5
        make %{?_smp_mflags}
abd591
        cp -f .libs/bacula-tray-monitor .
2785c5
popd
2785c5
%endif
2785c5
2785c5
%install
2785c5
rm -rf %{buildroot}
2785c5
make install DESTDIR=%{buildroot}
2785c5
2785c5
# Nagios plugin
2785c5
install -p -m 755 -D examples/nagios/check_bacula/.libs/check_bacula %{buildroot}%{_libdir}/nagios/plugins/check_bacula
2785c5
2785c5
# Bacula plugin info utility
2785c5
install -p -m 755 -D src/tools/.libs/bpluginfo %{buildroot}%{_sbindir}/bpluginfo
2785c5
install -p -m 644 -D manpages/bpluginfo.8 %{buildroot}%{_mandir}/man8/bpluginfo.8
2785c5
2785c5
# Remove catalogue backend symlinks
2785c5
rm -f %{buildroot}%{_libdir}/libbaccats.so
2785c5
rm -f %{buildroot}%{_libdir}/libbaccats-%{version}.so
2785c5
2785c5
# Sample query file
2785c5
mv %{buildroot}%{_libexecdir}/bacula/query.sql %{buildroot}%{_sysconfdir}/bacula/query.sql
2785c5
2785c5
%if 0%{?fedora} || 0%{?rhel} >= 6
2785c5
# Bat
2785c5
install -p -m 644 -D src/qt-console/images/bat_icon.png %{buildroot}%{_datadir}/pixmaps/bat.png
2785c5
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE13}
2785c5
2785c5
# QT Tray monitor
abd591
install -p -m 755 -D src/qt-console/tray-monitor/bacula-tray-monitor %{buildroot}%{_sbindir}/bacula-tray-monitor
2785c5
install -p -m 644 -D src/qt-console/tray-monitor/tray-monitor.conf %{buildroot}%{_sysconfdir}/bacula/tray-monitor.conf
2785c5
install -p -m 644 -D src/qt-console/images/bat_icon.png %{buildroot}%{_datadir}/pixmaps/bacula-tray-monitor.png
2785c5
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE14}
2785c5
2785c5
%else
2785c5
rm -f %{buildroot}%{_mandir}/man1/bat.1*
2785c5
%endif
2785c5
2785c5
# Logrotate
2785c5
mkdir -p %{buildroot}%{_localstatedir}/log/bacula
2785c5
install -p -m 644 -D %{SOURCE6} %{buildroot}%{_sysconfdir}/logrotate.d/bacula
2785c5
2785c5
# Logwatch
2785c5
install -p -m 755 -D scripts/logwatch/bacula %{buildroot}%{_sysconfdir}/logwatch/scripts/services/bacula
2785c5
install -p -m 755 -D scripts/logwatch/applybaculadate %{buildroot}%{_sysconfdir}/logwatch/scripts/shared/applybaculadate
2785c5
install -p -m 644 -D scripts/logwatch/logfile.bacula.conf %{buildroot}%{_sysconfdir}/logwatch/conf/logfiles/bacula.conf
2785c5
install -p -m 644 -D scripts/logwatch/services.bacula.conf %{buildroot}%{_sysconfdir}/logwatch/conf/services/bacula.conf
2785c5
2785c5
%if 0%{?fedora} || 0%{?rhel} >= 7
2785c5
# Systemd unit files
2785c5
mkdir -p %{buildroot}%{_unitdir}
2785c5
install -p -m 644 -D %{SOURCE10} %{buildroot}%{_unitdir}/bacula-fd.service
2785c5
install -p -m 644 -D %{SOURCE11} %{buildroot}%{_unitdir}/bacula-dir.service
2785c5
install -p -m 644 -D %{SOURCE12} %{buildroot}%{_unitdir}/bacula-sd.service
2785c5
%else
2785c5
# Initscripts
2785c5
install -p -m 755 -D %{SOURCE7} %{buildroot}%{_initrddir}/bacula-fd
2785c5
install -p -m 755 -D %{SOURCE8} %{buildroot}%{_initrddir}/bacula-dir
2785c5
install -p -m 755 -D %{SOURCE9} %{buildroot}%{_initrddir}/bacula-sd
2785c5
%endif
2785c5
2785c5
# Sysconfig
2785c5
install -p -m 644 -D %{SOURCE15} %{buildroot}%{_sysconfdir}/sysconfig/bacula-fd
2785c5
install -p -m 644 -D %{SOURCE16} %{buildroot}%{_sysconfdir}/sysconfig/bacula-dir
2785c5
%if 0%{?fedora} || 0%{?rhel} >= 6
2785c5
install -p -m 644 -D %{SOURCE17} %{buildroot}%{_sysconfdir}/sysconfig/bacula-sd
2785c5
%else
2785c5
install -p -m 644 -D %{SOURCE18} %{buildroot}%{_sysconfdir}/sysconfig/bacula-sd
2785c5
%endif
2785c5
2785c5
# Spool directory
2785c5
mkdir -p %{buildroot}%{_localstatedir}/spool/bacula
2785c5
2785c5
# Remove stuff we do not need
2785c5
rm -f %{buildroot}%{_libexecdir}/bacula/{bacula,bacula-ctl-*,startmysql,stopmysql,bconsole,make_catalog_backup}
2785c5
rm -f %{buildroot}%{_sbindir}/bacula
2785c5
rm -f %{buildroot}%{_mandir}/man8/bacula.8.gz
2785c5
rm -f %{buildroot}%{_mandir}/man1/bacula-bwxconsole.1*
2785c5
rm -f %{buildroot}%{_mandir}/man1/bacula-tray-monitor.1*
2785c5
rm -rf %{buildroot}%{_datadir}/doc/bacula/
2785c5
2785c5
# Fix up some perms so rpmlint does not complain too much
2785c5
chmod 755 %{buildroot}%{_sbindir}/*
2785c5
chmod 755 %{buildroot}%{_libdir}/bacula/*
2785c5
chmod 755 %{buildroot}%{_libexecdir}/bacula/*
2785c5
chmod 644 %{buildroot}%{_libexecdir}/bacula/btraceback.*
2785c5
2785c5
# Install headers
2785c5
mkdir -p %{buildroot}%{_includedir}/bacula
2785c5
for dir in src src/cats src/console src/dird src/filed src/findlib src/lib src/plugins/fd src/stored; do
2785c5
        mkdir -p %{buildroot}%{_includedir}/bacula/$dir
2785c5
        install -p -m 644 $dir/*.h %{buildroot}%{_includedir}/bacula/$dir
2785c5
done
2785c5
7af95a
# fix multilib issues
7af95a
mv $RPM_BUILD_ROOT%{_includedir}/bacula/src/config.h \
abd591
   $RPM_BUILD_ROOT%{_includedir}/bacula/src/config-%{__isa_bits}.h
7af95a
7af95a
cat >$RPM_BUILD_ROOT%{_includedir}/bacula/src/config.h <
7af95a
#ifndef BACULACONF_H_MULTILIB
7af95a
#define BACULACONF_H_MULTILIB
7af95a
7af95a
#include <bits/wordsize.h>
7af95a
7af95a
#if __WORDSIZE == 32
7af95a
# include "config-32.h"
7af95a
#elif __WORDSIZE == 64
7af95a
# include "config-64.h"
7af95a
#else
7af95a
# error "unexpected value for __WORDSIZE macro"
7af95a
#endif
7af95a
7af95a
#endif
7af95a
EOF
7af95a
2785c5
%clean
2785c5
rm -rf %{buildroot}
2785c5
2785c5
%post libs
2785c5
/sbin/ldconfig
2785c5
2785c5
%postun libs
2785c5
/sbin/ldconfig
2785c5
exit 0
2785c5
2785c5
%post libs-sql
2785c5
/usr/sbin/alternatives --install %{_libdir}/libbaccats.so libbaccats.so %{_libdir}/libbaccats-mysql.so 50
2785c5
/usr/sbin/alternatives --install %{_libdir}/libbaccats.so libbaccats.so %{_libdir}/libbaccats-sqlite3.so 40
2785c5
/usr/sbin/alternatives --install %{_libdir}/libbaccats.so libbaccats.so %{_libdir}/libbaccats-postgresql.so 60
2785c5
# Fix for automatic selection of backends during upgrades
2785c5
if readlink /etc/alternatives/libbaccats.so | grep --silent mysql || \
2785c5
   readlink /etc/alternatives/bacula-dir | grep --silent mysql || \
2785c5
   readlink /etc/alternatives/bacula-sd | grep --silent mysql; then
2785c5
        /usr/sbin/alternatives --set libbaccats.so %{_libdir}/libbaccats-mysql.so
2785c5
elif readlink /etc/alternatives/libbaccats.so | grep --silent sqlite || \
2785c5
   readlink /etc/alternatives/bacula-dir | grep --silent sqlite || \
2785c5
   readlink /etc/alternatives/bacula-sd | grep --silent sqlite; then
2785c5
        /usr/sbin/alternatives --set libbaccats.so %{_libdir}/libbaccats-sqlite3.so
2785c5
else
2785c5
        /usr/sbin/alternatives --set libbaccats.so %{_libdir}/libbaccats-postgresql.so
2785c5
fi
2785c5
/sbin/ldconfig
2785c5
2785c5
%preun libs-sql
2785c5
if [ "$1" = 0 ]; then
2785c5
        /usr/sbin/alternatives --remove libbaccats.so %{_libdir}/libbaccats-mysql.so
2785c5
        /usr/sbin/alternatives --remove libbaccats.so %{_libdir}/libbaccats-sqlite3.so
2785c5
        /usr/sbin/alternatives --remove libbaccats.so %{_libdir}/libbaccats-postgresql.so
2785c5
fi
2785c5
2785c5
%postun libs-sql
2785c5
/sbin/ldconfig
2785c5
exit 0
2785c5
2785c5
%pre common
2785c5
getent group %username >/dev/null || groupadd -g %uid -r %username &>/dev/null || :
2785c5
getent passwd %username >/dev/null || useradd -u %uid -r -s /sbin/nologin \
2785c5
    -d /var/spool/bacula -M -c 'Bacula Backup System' -g %username %username &>/dev/null || :
2785c5
exit 0
2785c5
2785c5
%if 0%{?fedora} == 17
2785c5
2785c5
%post client
2785c5
if [ $1 -eq 1 ] ; then
2785c5
    # Initial installation
2785c5
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
2785c5
fi
2785c5
2785c5
%preun client
2785c5
if [ $1 -eq 0 ] ; then
2785c5
    # Package removal, not upgrade
2785c5
    /bin/systemctl --no-reload disable bacula-fd.service > /dev/null 2>&1 || :
2785c5
    /bin/systemctl stop bacula-fd.service > /dev/null 2>&1 || :
2785c5
fi
2785c5
2785c5
%postun client
2785c5
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
2785c5
if [ $1 -ge 1 ] ; then
2785c5
    # Package upgrade, not uninstall
2785c5
    /bin/systemctl try-restart bacula-fd.service >/dev/null 2>&1 || :
2785c5
fi
2785c5
2785c5
%triggerun client -- bacula-client < 5.0.3-10
2785c5
# Save the current service runlevel info
2785c5
# User must manually run systemd-sysv-convert --apply bacula-fd
2785c5
# to migrate them to systemd targets
2785c5
/usr/bin/systemd-sysv-convert --save bacula-fd >/dev/null 2>&1 ||:
2785c5
2785c5
# Run these because the SysV package being removed won't do them
2785c5
/sbin/chkconfig --del bacula-fd >/dev/null 2>&1 || :
2785c5
/bin/systemctl try-restart bacula-fd.service >/dev/null 2>&1 || :
2785c5
2785c5
%post director
2785c5
if [ $1 -eq 1 ] ; then
2785c5
    # Initial installation
2785c5
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
2785c5
fi
2785c5
2785c5
%preun director
2785c5
if [ $1 -eq 0 ] ; then
2785c5
    # Package removal, not upgrade
2785c5
    /bin/systemctl --no-reload disable bacula-dir.service > /dev/null 2>&1 || :
2785c5
    /bin/systemctl stop bacula-dir.service > /dev/null 2>&1 || :
2785c5
fi
2785c5
2785c5
%postun director
2785c5
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
2785c5
if [ $1 -ge 1 ] ; then
2785c5
    # Package upgrade, not uninstall
2785c5
    /bin/systemctl try-restart bacula-dir.service >/dev/null 2>&1 || :
2785c5
fi
2785c5
2785c5
%triggerun director -- bacula-director-common < 5.0.3-10
2785c5
# Save the current service runlevel info
2785c5
# User must manually run systemd-sysv-convert --apply bacula-dir
2785c5
# to migrate them to systemd targets
2785c5
/usr/bin/systemd-sysv-convert --save bacula-dir >/dev/null 2>&1 ||:
2785c5
2785c5
# Run these because the SysV package being removed won't do them
2785c5
/sbin/chkconfig --del bacula-dir >/dev/null 2>&1 || :
2785c5
/bin/systemctl try-restart bacula-dir.service >/dev/null 2>&1 || :
2785c5
2785c5
%post storage
2785c5
if [ $1 -eq 1 ] ; then
2785c5
    # Initial installation
2785c5
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
2785c5
fi
2785c5
2785c5
%preun storage
2785c5
if [ $1 -eq 0 ] ; then
2785c5
    # Package removal, not upgrade
2785c5
    /bin/systemctl --no-reload disable bacula-sd.service > /dev/null 2>&1 || :
2785c5
    /bin/systemctl stop bacula-sd.service > /dev/null 2>&1 || :
2785c5
fi
2785c5
2785c5
%postun storage
2785c5
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
2785c5
if [ $1 -ge 1 ] ; then
2785c5
    # Package upgrade, not uninstall
2785c5
    /bin/systemctl try-restart bacula-sd.service >/dev/null 2>&1 || :
2785c5
fi
2785c5
2785c5
%triggerun storage -- bacula-storage-common < 5.0.3-10
2785c5
# Save the current service runlevel info
2785c5
# User must manually run systemd-sysv-convert --apply bacula-sd
2785c5
# to migrate them to systemd targets
2785c5
/usr/bin/systemd-sysv-convert --save bacula-sd >/dev/null 2>&1 ||:
2785c5
2785c5
# Run these because the SysV package being removed won't do them
2785c5
/sbin/chkconfig --del bacula-sd >/dev/null 2>&1 || :
2785c5
/bin/systemctl try-restart bacula-sd.service >/dev/null 2>&1 || :
2785c5
2785c5
%endif
2785c5
2785c5
%if 0%{?fedora} >= 18 || 0%{?rhel} >= 7
2785c5
2785c5
%post client
2785c5
%systemd_post %{name}-fd.service
2785c5
2785c5
%preun client
2785c5
%systemd_preun %{name}-fd.service
2785c5
2785c5
%postun client
2785c5
%systemd_postun_with_restart %{name}-fd.service
2785c5
2785c5
%triggerun client -- bacula-client < 5.0.3-10
2785c5
/usr/bin/systemd-sysv-convert --save bacula-fd >/dev/null 2>&1 ||:
2785c5
/sbin/chkconfig --del bacula-fd >/dev/null 2>&1 || :
2785c5
/bin/systemctl try-restart bacula-fd.service >/dev/null 2>&1 || :
2785c5
2785c5
%post director
2785c5
%systemd_post %{name}-dir.service
2785c5
2785c5
%preun director
2785c5
%systemd_preun %{name}-dir.service
2785c5
2785c5
%postun director
2785c5
%systemd_postun_with_restart %{name}-dir.service
2785c5
2785c5
%triggerun director -- bacula-director-common < 5.0.3-10
2785c5
/usr/bin/systemd-sysv-convert --save bacula-dir >/dev/null 2>&1 ||:
2785c5
/sbin/chkconfig --del bacula-dir >/dev/null 2>&1 || :
2785c5
/bin/systemctl try-restart bacula-dir.service >/dev/null 2>&1 || :
2785c5
2785c5
%post storage
2785c5
%systemd_post %{name}-sd.service
2785c5
2785c5
%preun storage
2785c5
%systemd_preun %{name}-sd.service
2785c5
2785c5
%postun storage
2785c5
%systemd_postun_with_restart %{name}-sd.service
2785c5
2785c5
%triggerun storage -- bacula-storage-common < 5.0.3-10
2785c5
/usr/bin/systemd-sysv-convert --save bacula-sd >/dev/null 2>&1 ||:
2785c5
/sbin/chkconfig --del bacula-sd >/dev/null 2>&1 || :
2785c5
/bin/systemctl try-restart bacula-sd.service >/dev/null 2>&1 || :
2785c5
2785c5
%endif
2785c5
2785c5
%if 0%{?rhel} == 5 || 0%{?rhel} == 6
2785c5
2785c5
%post client
2785c5
/sbin/chkconfig --add bacula-fd
2785c5
2785c5
%preun client
2785c5
if [ "$1" = 0 ]; then
2785c5
        /sbin/service bacula-fd stop >/dev/null 2>&1 || :
2785c5
        /sbin/chkconfig --del bacula-fd
2785c5
fi
2785c5
2785c5
%postun client
2785c5
if [ "$1" -ge "1" ]; then
2785c5
        /sbin/service bacula-fd condrestart >/dev/null 2>&1 || :
2785c5
fi
2785c5
2785c5
%post director
2785c5
/sbin/chkconfig --add bacula-dir
2785c5
2785c5
%preun director
2785c5
if [ "$1" = 0 ]; then
2785c5
        /sbin/service bacula-dir stop >/dev/null 2>&1 || :
2785c5
        /sbin/chkconfig --del bacula-dir
2785c5
fi
2785c5
2785c5
%postun director
2785c5
if [ "$1" -ge "1" ]; then
2785c5
        /sbin/service bacula-dir condrestart >/dev/null 2>&1 || :
2785c5
fi
2785c5
2785c5
%post storage
2785c5
/sbin/chkconfig --add bacula-sd
2785c5
2785c5
%preun storage
2785c5
if [ "$1" = 0 ]; then
2785c5
        /sbin/service bacula-sd stop >/dev/null 2>&1 || :
2785c5
        /sbin/chkconfig --del bacula-sd
2785c5
fi
2785c5
2785c5
%postun storage
2785c5
if [ "$1" -ge "1" ]; then
2785c5
        /sbin/service bacula-sd condrestart >/dev/null 2>&1 || :
2785c5
fi
2785c5
2785c5
%endif
2785c5
2785c5
%files libs
2785c5
%defattr(-,root,root,-)
2785c5
%{_libdir}/libbac-%{version}.so
2785c5
%{_libdir}/libbaccfg-%{version}.so
2785c5
%{_libdir}/libbacfind-%{version}.so
2785c5
%{_libdir}/libbacpy-%{version}.so
2785c5
2785c5
%files libs-sql
2785c5
%defattr(-,root,root,-)
2785c5
%{_libdir}/libbaccats-mysql-%{version}.so
2785c5
%{_libdir}/libbaccats-mysql.so
2785c5
%{_libdir}/libbaccats-postgresql-%{version}.so
2785c5
%{_libdir}/libbaccats-postgresql.so
2785c5
%{_libdir}/libbaccats-sqlite3-%{version}.so
2785c5
%{_libdir}/libbaccats-sqlite3.so
2785c5
%{_libdir}/libbacsql-%{version}.so
2785c5
2785c5
%files common
2785c5
%defattr(-,root,root,-)
2785c5
%doc AUTHORS ChangeLog LICENSE SUPPORT
2785c5
%doc README.Redhat quickstart_*
2785c5
%config(noreplace) %{_sysconfdir}/logrotate.d/bacula
2785c5
%attr(755,root,root) %dir %{_sysconfdir}/%{name}
2785c5
%dir %{_libexecdir}/%{name}
2785c5
%{_sbindir}/btraceback
2785c5
%{_sbindir}/bpluginfo
2785c5
%{_libexecdir}/%{name}/btraceback.dbx
2785c5
%{_libexecdir}/%{name}/btraceback.gdb
2785c5
%{_libexecdir}/%{name}/bacula_config
2785c5
%{_libexecdir}/%{name}/btraceback.mdb
2785c5
%{_mandir}/man8/btraceback.8*
2785c5
%{_mandir}/man8/bpluginfo.8*
2785c5
%dir %attr(750, bacula, bacula) %{_localstatedir}/log/bacula
2785c5
%dir %attr(750, bacula, bacula) %{_localstatedir}/spool/bacula
2785c5
2785c5
%files director
2785c5
%defattr(-,root,root,-)
2785c5
%doc updatedb examples/sample-query.sql
2785c5
%attr(640,root,bacula) %config(noreplace) %{_sysconfdir}/bacula/bacula-dir.conf
2785c5
%attr(640,root,bacula) %config(noreplace) %{_sysconfdir}/bacula/query.sql
2785c5
%config(noreplace) %{_sysconfdir}/logwatch/conf/logfiles/bacula.conf
2785c5
%config(noreplace) %{_sysconfdir}/logwatch/conf/services/bacula.conf
2785c5
%config(noreplace) %{_sysconfdir}/sysconfig/bacula-dir
2785c5
%{_sysconfdir}/logwatch/scripts/services/bacula
2785c5
%{_sysconfdir}/logwatch/scripts/shared/applybaculadate
2785c5
%if 0%{?fedora} || 0%{?rhel} >= 7
2785c5
%{_unitdir}/bacula-dir.service
2785c5
%else
2785c5
%{_initrddir}/bacula-dir
2785c5
%endif
2785c5
%{_sbindir}/bacula-dir
2785c5
%{_sbindir}/bregex
2785c5
%{_sbindir}/bsmtp
2785c5
%{_sbindir}/bwild
2785c5
%{_sbindir}/dbcheck
2785c5
%{_mandir}/man1/bsmtp.1*
2785c5
%{_mandir}/man8/bacula-dir.8*
2785c5
%{_mandir}/man8/bregex.8*
2785c5
%{_mandir}/man8/bwild.8*
2785c5
%{_mandir}/man8/dbcheck.8*
2785c5
%{_libexecdir}/%{name}/create_bacula_database
2785c5
%{_libexecdir}/%{name}/delete_catalog_backup
2785c5
%{_libexecdir}/%{name}/drop_bacula_database
2785c5
%{_libexecdir}/%{name}/drop_bacula_tables
2785c5
%{_libexecdir}/%{name}/grant_bacula_privileges
2785c5
%{_libexecdir}/%{name}/make_bacula_tables
2785c5
%{_libexecdir}/%{name}/make_catalog_backup.pl
2785c5
%{_libexecdir}/%{name}/update_bacula_tables
2785c5
%{_libexecdir}/%{name}/create_mysql_database
2785c5
%{_libexecdir}/%{name}/drop_mysql_database
2785c5
%{_libexecdir}/%{name}/drop_mysql_tables
2785c5
%{_libexecdir}/%{name}/grant_mysql_privileges
2785c5
%{_libexecdir}/%{name}/make_mysql_tables
2785c5
%{_libexecdir}/%{name}/update_mysql_tables
2785c5
%{_libexecdir}/%{name}/create_sqlite3_database
2785c5
%{_libexecdir}/%{name}/drop_sqlite3_database
2785c5
%{_libexecdir}/%{name}/drop_sqlite3_tables
2785c5
%{_libexecdir}/%{name}/grant_sqlite3_privileges
2785c5
%{_libexecdir}/%{name}/make_sqlite3_tables
2785c5
%{_libexecdir}/%{name}/update_sqlite3_tables
2785c5
%{_libexecdir}/%{name}/create_postgresql_database
2785c5
%{_libexecdir}/%{name}/drop_postgresql_database
2785c5
%{_libexecdir}/%{name}/drop_postgresql_tables
2785c5
%{_libexecdir}/%{name}/grant_postgresql_privileges
2785c5
%{_libexecdir}/%{name}/make_postgresql_tables
2785c5
%{_libexecdir}/%{name}/update_postgresql_tables
2785c5
2785c5
%files storage
2785c5
%defattr(-,root,root,-)
2785c5
%{_sbindir}/bacula-sd
2785c5
%{_sbindir}/bcopy
2785c5
%{_sbindir}/bextract
2785c5
%{_sbindir}/bls
2785c5
%{_sbindir}/bscan
2785c5
%{_sbindir}/btape
2785c5
%attr(640,root,root) %config(noreplace) %{_sysconfdir}/bacula/bacula-sd.conf
2785c5
%config(noreplace) %{_sysconfdir}/sysconfig/bacula-sd
2785c5
%if 0%{?fedora} || 0%{?rhel} >= 7
2785c5
%{_unitdir}/bacula-sd.service
2785c5
%else
2785c5
%{_initrddir}/bacula-sd
2785c5
%endif
2785c5
%{_libexecdir}/%{name}/disk-changer
2785c5
%{_libexecdir}/%{name}/dvd-handler
2785c5
%{_libexecdir}/%{name}/mtx-changer
2785c5
%{_libexecdir}/%{name}/mtx-changer.conf
2785c5
%{_mandir}/man8/bacula-sd.8*
2785c5
%{_mandir}/man8/bcopy.8*
2785c5
%{_mandir}/man8/bextract.8*
2785c5
%{_mandir}/man8/bls.8*
2785c5
%{_mandir}/man8/bscan.8*
2785c5
%{_mandir}/man8/btape.8*
2785c5
2785c5
%files client
2785c5
%defattr(-,root,root,-)
2785c5
%{_sbindir}/bacula-fd
2785c5
%if 0%{?fedora} || 0%{?rhel} >= 7
2785c5
%{_unitdir}/bacula-fd.service
2785c5
%else
2785c5
%{_initrddir}/bacula-fd
2785c5
%endif
2785c5
%attr(640,root,root) %config(noreplace) %{_sysconfdir}/bacula/bacula-fd.conf
2785c5
%config(noreplace) %{_sysconfdir}/sysconfig/bacula-fd
2785c5
%{_mandir}/man8/bacula-fd.8*
2785c5
%{_libdir}/bacula/bpipe-fd.so
2785c5
2785c5
%files console
2785c5
%defattr(-,root,root,-)
2785c5
%{_sbindir}/bconsole
2785c5
%attr(640,root,root) %config(noreplace) %{_sysconfdir}/bacula/bconsole.conf
2785c5
%{_mandir}/man8/bconsole.8*
2785c5
2785c5
%if 0%{?fedora} || 0%{?rhel} >= 6
2785c5
%files console-bat
2785c5
%defattr(-,root,root,-)
2785c5
%doc %{_datadir}/doc/bacula-console-bat-%{version}/*
2785c5
%attr(640,root,root) %config(noreplace) %{_sysconfdir}/bacula/bat.conf
2785c5
%{_sbindir}/bat
2785c5
%{_mandir}/man1/bat.1*
2785c5
%{_datadir}/applications/bacula-bat.desktop
2785c5
%{_datadir}/pixmaps/bat.png
2785c5
2785c5
%files traymonitor
2785c5
%defattr(-,root,root,-)
2785c5
%{_sbindir}/bacula-tray-monitor
2785c5
%attr(640,root,root) %config(noreplace) %{_sysconfdir}/bacula/tray-monitor.conf
2785c5
%{_datadir}/applications/bacula-traymonitor.desktop
2785c5
%{_datadir}/pixmaps/bacula-tray-monitor.png
2785c5
%endif
2785c5
2785c5
%files devel
2785c5
%defattr(-,root,root,-)
2785c5
%{_includedir}/bacula
2785c5
%{_libdir}/libbac.la
2785c5
%{_libdir}/libbac.so
2785c5
%{_libdir}/libbaccats.la
2785c5
%{_libdir}/libbaccats-mysql.la
2785c5
%{_libdir}/libbaccats-postgresql.la
2785c5
%{_libdir}/libbaccats-sqlite3.la
2785c5
%{_libdir}/libbaccfg.la
2785c5
%{_libdir}/libbaccfg.so
2785c5
%{_libdir}/libbacfind.la
2785c5
%{_libdir}/libbacfind.so
2785c5
%{_libdir}/libbacpy.la
2785c5
%{_libdir}/libbacpy.so
2785c5
%{_libdir}/libbacsql.la
2785c5
%{_libdir}/libbacsql.so
2785c5
2785c5
%files -n nagios-plugins-bacula
2785c5
%defattr(-,root,root)
2785c5
%{_libdir}/nagios/plugins/check_bacula
2785c5
2785c5
%changelog
abd591
* Fri Aug 07 2015 Petr Hracek <phracek@redhat.com> - 5.2.13-23.1
abd591
- Update SPEC file
abd591
  Related: #1195625
abd591
abd591
* Mon May 11 2015 Petr Hracek <phracek@redhat.com> - 5.2.13-22.1
abd591
- Update SPEC file
abd591
  Related: #1195625
abd591
abd591
* Mon May 11 2015 Petr Hracek <phracek@redhat.com> - 5.2.13-21.1
abd591
- Increase bacula daemon name to 64 characters
abd591
Resolves: #1195625
abd591
abd591
* Wed May 06 2015 Petr Hracek <phracek@redhat.com> - 5.2.13-20.1
abd591
- PIE and RELRO check
abd591
Resolves: #1092525
abd591
abd591
* Thu Jul 31 2014 Petr Hracek <phracek@redhat.com> - 5.2.13-19.1
abd591
- Bump version
abd591
Resolves: #1059611
abd591
abd591
* Tue Mar 18 2014 Petr Hracek <phracek@redhat.com> - 5.2.13-18.1
abd591
- Add aarch64 support
abd591
Resolves: #1059611
abd591
abd591
* Tue Feb 4 2014 Brendan Conoboy <blc@redhat.com> - 5.2.13-17.1
abd591
- Per Marcin, add aarch64 to bacula-multilib.patch.
7af95a
7af95a
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 5.2.13-17
7af95a
- Mass rebuild 2014-01-24
7af95a
7af95a
* Wed Jan 15 2014 Honza Horak <hhorak@redhat.com> - 5.2.13-16
7af95a
- Rebuild for mariadb-libs
7af95a
  Related: #1045013
7af95a
7af95a
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 5.2.13-15
7af95a
- Mass rebuild 2013-12-27
7af95a
7af95a
* Tue Dec 17 2013 Petr Hracek <phracek@redhat.com> - 5.2.13-14
7af95a
- Resolves: #881146 Multilib issue
7af95a
2785c5
* Mon Jul 15 2013 Petr Hracek <phracek@redhat.com> - 5.2.13-13
2785c5
- make dependency of bacula packages on bacula-libs RHEL-7 rpmdiff (#881146)
2785c5
2785c5
* Thu Jun 27 2013 Petr Hracek <phracek@redhat.com> - 5.2.13-12
2785c5
- Correct systemd unitfiles permissions (#978833)
2785c5
2785c5
* Tue May 28 2013 Petr Hracek <phracek@redhat.com> - 5.2.13-11
2785c5
- Fix for nonfree code (#967417)
2785c5
2785c5
* Thu May 16 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-10
2785c5
- Add aarch64 patch (#925072).
2785c5
- Add bpluginfo commmand.
2785c5
2785c5
* Tue Apr 16 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-9
2785c5
- Systemd service files cleanup, thanks Michal Schmidt (#952334)
2785c5
2785c5
* Mon Apr 08 2013 Petr Hracek <phracek@redhat.com> - 5.2.13-8
2785c5
- Correcting options and man pages (#948837)
2785c5
2785c5
* Mon Apr 08 2013 Petr Hracek <phracek@redhat.com> - 5.2.13-7
2785c5
- include /var/log/bacula/*.log in logwatch (#924797)
2785c5
2785c5
* Mon Mar 04 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-6
2785c5
- Add mt-st requirement to storage package; update quick start docs.
2785c5
2785c5
* Tue Feb 26 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-5
2785c5
- Improve documentation.
2785c5
2785c5
* Mon Feb 25 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-4
2785c5
- Fix director reload command.
2785c5
- Adjust to 5.2.13 permission changes.
2785c5
2785c5
* Fri Feb 22 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-3
2785c5
- Renamed README to README.Redhat.
2785c5
2785c5
* Thu Feb 21 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-2
2785c5
- Removed bacula-checkconf stuff.
2785c5
- Separated postgresql, sqlite3 and mysql how to from README.
2785c5
2785c5
* Wed Feb 20 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-1
2785c5
- Update to 5.2.13, drop upstreamed patch.
2785c5
- Remove Fedora 16 (EOL) checks.
2785c5
2785c5
* Sun Feb 10 2013 Rahul Sundaram <sundaram@fedoraproject.org> - 5.2.12-9
2785c5
- remove vendor tag from desktop file. https://fedorahosted.org/fpc/ticket/247
2785c5
2785c5
* Fri Feb 08 2013 Petr Hracek <phracek@redhat.com> - 5.2.12-8
2785c5
- Fix: (#881146) syntax error in update_postgresql_tables_10_to_11.in
2785c5
2785c5
* Mon Feb 04 2013 Petr Hracek <phracek@redhat.com> - 5.2.12-7
2785c5
- Fix (#905309) e_msg: Process /usr/sbin/bat was killed by signal 11 (SIGSEGV)
2785c5
2785c5
* Thu Jan 10 2013 Simone Caronni <negativo17@gmail.com> - 5.2.12-6
2785c5
- Added missing line in bacula-sd SysV init script.
2785c5
2785c5
* Wed Jan 09 2013 Simone Caronni <negativo17@gmail.com> - 5.2.12-5
2785c5
- Move unversioned libraries into the devel package (#889244).
2785c5
2785c5
* Wed Jan 09 2013 Simone Caronni <negativo17@gmail.com> - 5.2.12-4
2785c5
- Updated SysV init script according to Fedora template:
2785c5
  https://fedoraproject.org/wiki/Packaging:SysVInitScript
2785c5
2785c5
* Wed Oct 17 2012 Simone Caronni <negativo17@gmail.com> - 5.2.12-3
2785c5
- Add sample-query.sql file to Director's docs.
2785c5
2785c5
* Wed Oct 17 2012 Simone Caronni <negativo17@gmail.com> - 5.2.12-2
2785c5
- Fix fedpkg checks. Requires fedpkg > 1.10:
2785c5
  http://git.fedorahosted.org/cgit/fedpkg.git/commit/?id=11c46c06a3c9cc2f58d68aea964dd37dc028e349
2785c5
- Change systemd requirements as per new package guidelines.
2785c5
2785c5
* Fri Sep 14 2012 Simone Caronni <negativo17@gmail.com> - 5.2.12-1
2785c5
- Update to 5.2.12, containing only patches from 5.2.11-4.
2785c5
2785c5
* Fri Sep 14 2012 Simone Caronni <negativo17@gmail.com> - 5.2.11-4
2785c5
- Add a sleep timer for RHEL init scripts restart as Debian does.
2785c5
  Problems verified on the sd exiting too early on VMs and slow boxes.
2785c5
2785c5
* Thu Sep 13 2012 Simone Caronni <negativo17@gmail.com> - 5.2.11-3
2785c5
- Introduce last minute critical patches.
2785c5
2785c5
* Thu Sep 13 2012 Simone Caronni <negativo17@gmail.com> - 5.2.11-2
2785c5
- Do not remove user on common subpackage uninstall.
2785c5
2785c5
* Tue Sep 11 2012 Simone Caronni <negativo17@gmail.com> - 5.2.11-1
2785c5
- Update to 5.2.11.
2785c5
- Removed upstreamed patches.
2785c5
- Updated bat patch.
2785c5
- Removed useless docs.
2785c5
2785c5
* Tue Sep 11 2012 Simone Caronni <negativo17@gmail.com> - 5.2.10-7
2785c5
- Add Fedora 18 systemd macros.
2785c5
- Remove old distribution checks.
2785c5
2785c5
* Wed Aug 29 2012 Simone Caronni <negativo17@gmail.com> - 5.2.10-6
2785c5
- Remove user definition during prep so they are not used during the install
2785c5
  phase (rhbz#852732).
2785c5
- Enforce permissions in default config files.
2785c5
2785c5
* Fri Jul 20 2012 Simone Caronni <negativo17@gmail.com> - 5.2.10-5
2785c5
- Removed make_catalog_backup bash script, leave only the default perl one (rhbz#456612,665498).
2785c5
2785c5
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2.10-4
2785c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
2785c5
2785c5
* Mon Jul 16 2012 Simone Caronni <negativo17@gmail.com> - 5.2.10-3
2785c5
- Updated log path patch (rhbz#837706).
2785c5
2785c5
* Tue Jul 10 2012 Simone Caronni <negativo17@gmail.com> - 5.2.10-2
2785c5
- Add nss-lookup.target as required to service files (rhbz#838828).
2785c5
- Fix bsmtp upstream bug sending mails to ipv4/ipv6 hosts.
2785c5
2785c5
* Mon Jul 02 2012 Simone Caronni <negativo17@gmail.com> - 5.2.10-1
2785c5
- Update to 5.2.10.
2785c5
2785c5
* Tue Jun 19 2012 Simone Caronni <negativo17@gmail.com> - 5.2.9-2
2785c5
- Remove _isa on BuildRequires.
2785c5
- Remove useless code in SysV init scripts.
2785c5
2785c5
* Tue Jun 12 2012 Simone Caronni <negativo17@gmail.com> - 5.2.9-1
2785c5
- Update to 5.2.9, remove termlib patch.
2785c5
2785c5
* Mon Jun 11 2012 Simone Caronni <negativo17@gmail.com> - 5.2.8-2
2785c5
- Fix console build on RHEL 5.
2785c5
2785c5
* Mon Jun 11 2012 Simone Caronni <negativo17@gmail.com> - 5.2.8-1
2785c5
- Update to 5.2.8.
2785c5
- Removed upstram xattr patch.
2785c5
- Added database backend detection to bacula-libs-sql for upgrades from
2785c5
  <= 5.0.3-28-fc16 and 5.2.6-1.fc17.
2785c5
2785c5
* Fri Jun 08 2012 Simone Caronni <negativo17@gmail.com> - 5.2.7-4
2785c5
- Make a note about mt-st and mtx (bz#829888).
2785c5
- Update README.Fedora with current information.
2785c5
- Fix bacula-sd group on Fedora and RHEL >= 6 (bz#829509).
2785c5
2785c5
* Wed Jun 06 2012 Simone Caronni <negativo17@gmail.com> - 5.2.7-3
2785c5
- Final xattr patch from upstream for bz#819158.
2785c5
- Switch alternatives to point to the unversioned system libraries.
2785c5
  Pointed out by the closely related bug #829219.
2785c5
2785c5
* Mon Jun 04 2012 Simone Caronni <negativo17@gmail.com> - 5.2.7-2
2785c5
- Remove python-devel test leftover.
2785c5
- Updated bat build patch to add support for RHEL 6.
2785c5
2785c5
* Mon Jun 04 2012 Simone Caronni <negativo17@gmail.com> - 5.2.7-1
2785c5
- Updated to 5.2.7, removed patches included upstream.
2785c5
- Removed python-devel patch, fix included in python package.
2785c5
- Replaced tabs with blanks in spec file (rpmlint).
2785c5
2785c5
* Mon May 28 2012 Simone Caronni <negativo17@gmail.com> - 5.2.6-6
2785c5
- Even if pulled in by dependencies, re-add explict BR on systemd-units.
2785c5
- Remove .gz suffix for man pages in file lists as per packaging guidelines.
2785c5
2785c5
* Mon May 28 2012 Simone Caronni <negativo17@gmail.com> - 5.2.6-5
2785c5
- Patch for bug #819158.
2785c5
- Updated hostname patch with official fix.
2785c5
- Sorted all BuildRequires and removed useless systemd-units.
2785c5
2785c5
* Wed May 23 2012 Simone Caronni <negativo17@gmail.com> - 5.2.6-4
2785c5
- Added python config workaround for Fedora 16.
2785c5
2785c5
* Mon May 21 2012 Simone Caronni <negativo17@gmail.com> - 5.2.6-3
2785c5
- Removed _install, _mkdir and _make macro.
2785c5
- Added _isa to BuildRequires.
2785c5
- Removed lzo-devel option for RHEL 4 (EOL).
2785c5
2785c5
* Fri Mar 16 2012 Simone Caronni <negativo17@gmail.com> - 5.2.6-2
2785c5
- Move libbaccats and libbacsql into bacula-libs-sql package so only
2785c5
  Director and Storage daemons pull in SQL dependencies:
2785c5
  http://old.nabble.com/Standalone-client-question-td33495990.html
2785c5
2785c5
* Wed Feb 22 2012 Simone Caronni <negativo17@gmail.com> - 5.2.6-1
2785c5
- Update to 5.2.6.
2785c5
2785c5
* Fri Feb 10 2012 Simone Caronni <negativo17@gmail.com> - 5.2.5-3
2785c5
- WX and gnome console should be upgraded from bconsole, not
2785c5
  libraries.
2785c5
2785c5
* Mon Jan 30 2012 Simone Caronni <negativo17@gmail.com> - 5.2.5-2
2785c5
- License has changed to AGPLv3 in 5.0.3. Thanks Erinn.
2785c5
- Fix ldconfig/alternatives symlinks on removal of packages and
2785c5
  upgrades from recent f15/f16 changes.
2785c5
2785c5
* Thu Jan 26 2012 Simone Caronni <negativo17@gmail.com> - 5.2.5-1
2785c5
- Update to 5.2.5.
2785c5
- Change the alternative library to the base shared object name
2785c5
  so the preference set is not lost when changing releases.
2785c5
2785c5
* Mon Jan 23 2012 Simone Caronni <negativo17@gmail.com> - 5.2.4-4
2785c5
- Remove old BuildRequires for bacula-docs.
2785c5
2785c5
* Fri Jan 20 2012 Simone Caronni <negativo17@gmail.com> - 5.2.4-3
2785c5
- Fix for rhbz#728693.
2785c5
2785c5
* Fri Jan 20 2012 Simone Caronni <negativo17@gmail.com> - 5.2.4-2
2785c5
- Close bugs rhbz#708712, rhbz#556669, rhbz#726147
2785c5
2785c5
* Wed Jan 18 2012 Simone Caronni <negativo17@gmail.com> - 5.2.4-1
2785c5
- Update to 5.2.4, rework libbaccats installation as they have
2785c5
  fixed the soname library problem.
2785c5
2785c5
* Thu Jan 12 2012 Simone Caronni <negativo17@gmail.com> - 5.2.3-8
2785c5
- Fix tray monitor desktop file.
2785c5
2785c5
* Wed Jan 11 2012 Simone Caronni <negativo17@gmail.com> - 5.2.3-7
2785c5
- Split off bacula-docs subpackage.
2785c5
2785c5
* Thu Jan 05 2012 Simone Caronni <negativo17@gmail.com> - 5.2.3-6
2785c5
- Make docs conditional at build for testing.
2785c5
- Add devel subpackage.
2785c5
2785c5
* Tue Jan 03 2012 Simone Caronni <negativo17@gmail.com> - 5.2.3-5
2785c5
- Trim changelog.
2785c5
- Merge bacula-director backends and move libbacats alternatives
2785c5
  to bacula-libs.
2785c5
- Move bscan to bacula-storage now that is dependent only on
2785c5
  bacula-libs.
2785c5
- Added README.Fedora.
2785c5
2785c5
* Tue Dec 20 2011 Simone Caronni <negativo17@gmail.com> - 5.2.3-4
2785c5
- Changing uid from 33 per previous discussion, static uid
2785c5
  already allocated is 133:
2785c5
  "cat /usr/share/doc/setup-2.8.36/uidgid | grep bacula"
2785c5
2785c5
* Mon Dec 19 2011 Simone Caronni <negativo17@gmail.com> - 5.2.3-3
2785c5
- Remove fedora-usermgmt entirely, see thread at:
2785c5
  http://lists.fedoraproject.org/pipermail/packaging/2011-December/008034.html
2785c5
2785c5
* Mon Dec 19 2011 Simone Caronni <negativo17@gmail.com> - 5.2.3-2
2785c5
- Remove leftover users when removing bacula-common.
2785c5
- Allow building "--without fedora" to avoid RHEL dependency on EPEL:
2785c5
  http://fedoraproject.org/wiki/PackageUserCreation
2785c5
2785c5
* Mon Dec 19 2011 Simone Caronni <negativo17@gmail.com> - 5.2.3-1
2785c5
- Updated to 5.2.3.
2785c5
- Remove fedora-usermgmt from libs Requires section.
2785c5
2785c5
* Sun Dec 11 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-11
2785c5
- Add bat html docs so the help button works.
2785c5
- Minor packaging changes.
2785c5
- Default permissions on bconsole and bat.
2785c5
- Use localhost as default on config files instead of patching fake
2785c5
  example.com hostnames.
2785c5
- Add QT tray monitor.
2785c5
2785c5
* Sat Dec 10 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-10
2785c5
- Added patch for mysql 5.5.18 from Oliver Falk.
2785c5
2785c5
* Wed Dec 07 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-9
2785c5
- Add sample-query.sql as config file.
2785c5
- Small log changes.
2785c5
2785c5
* Wed Dec 07 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-8
2785c5
- Fixed building on RHEL/CentOS 4.
2785c5
- Split out libs package to remove dependency on bacula-common for
2785c5
  bconsole, bat and check_bacula.
2785c5
- Fix typo in post scriptlet for director-sqlite.
2785c5
2785c5
* Tue Dec 06 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-7
2785c5
- Added libcap for POSIX.1e capabilities in bacula-fd (5.0.0 feature).
2785c5
- Allow systemd files to read options set in the sysconfig
2785c5
  configuration files like SysV scripts to enable capabilities.
2785c5
- Set capabilities as optional for now.
2785c5
2785c5
* Mon Dec 05 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-6
2785c5
- Removed leftover files and small rpmlint fixes.
2785c5
- Additional file moves between packages.
2785c5
- Enabled LZO compression (5.2.1 feature).
2785c5
2785c5
* Mon Dec 05 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-5
2785c5
- Remove redundant user/group in service files.
2785c5
- Reduce patching for what can be passed through configure.
2785c5
- Remove dsolink patch, not needed anymore.
2785c5
2785c5
* Fri Dec 02 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-4
2785c5
- Rename storage-common to storage and make it provide storage-common.
2785c5
- Move bscan to director-common.
2785c5
- Move storage scripts to storage.
2785c5
- Add html docs.
2785c5
- Install dummy catalogue library and mark it as ghost.
2785c5
2785c5
* Thu Dec 01 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-3
2785c5
- Add missing conditional for bat in the build section.
2785c5
- Make bat require qt4-devel on build (rhel 5 fix).
2785c5
- Bumped requirement for qt >= 4.6.2 for 5.2.2.
2785c5
- Renamed bacula-config.patch to bacula-5.2.2-config.patch as it
2785c5
  always changes.
2785c5
- Fix installation of bat and check_bacula binaries. Enabling
2785c5
  libtool for bpipe-fd.so produces binaries under .libs.
2785c5
- Removed fedora-usermgmt requirement for director-common.
2785c5
- Removed examples from docs and make them "noarch".
2785c5
- Fix bacula-console requirements.
2785c5
- Fix nagios plugin summary.
2785c5
- Removed checkconf functions from SysV init files and replace
2785c5
  the call with the script used in systemd service files. Make
2785c5
  the script available in all builds.
2785c5
- Make docs NoArch where supported.
2785c5
2785c5
* Thu Dec  1 2011 Tom Callaway <spot@fedoraproject.org> - 5.2.2-2
2785c5
- resolve broken dependency issues
2785c5
2785c5
* Tue Nov 29 2011 Tom Callaway <spot@fedoraproject.org> - 5.2.2-1
2785c5
- Update to 5.2.2
2785c5
- minor spec cleanups, conditionalized support for systemd
2785c5
2785c5
* Fri Nov 04 2011 Simone Caronni <negativo17@gmail.com> - 5.2.1-1
2785c5
- Updated to 5.2.1.
2785c5
- Reworked and removed some patches for 5.2.1 codebase.
2785c5
- Reworked bat installation.
2785c5
- Removed sqlite2 support.
2785c5
- Removed all the fancy database backend rebuilding.
2785c5
- Disabled libtool for bpipe-fd.so.
2785c5
- Passed plugins dir as libdir/bacula.
2785c5
- Added sql libs to alternatives.
2785c5
- Disabled traymonitor.
2785c5
- Minor fixes to spec file, rpmlint fixes.
2785c5
- Nagios patch for Enterprise FDs.
2785c5
- Removed all gui/web stuff.
2785c5
- Removed a lot of comments.
2785c5
- Conditional on Fedora 11 / RHEL 6 for bat build.
2785c5
- Obsolete bacula-sysconfdir.
2785c5
- Removed bwxconsole.
2785c5
2785c5
* Thu Nov 3 2011 Lukáš Nykrýn <lnykryn@redhat.com> - 5.0.3-13
2785c5
- fixed creating of bacula MySQL tables and bump
2785c5
2785c5
* Sun Oct  9 2011 Lukáš Nykrýn <lnykryn@redhat.com> - 5.0.3-12
2785c5
- fixed restart option in service files (#745529)
2785c5
- fixed creating of bacula MySQL tables (#724894)
2785c5
2785c5
* Fri Sep  9 2011 Tom Callaway <spot@fedoraproject.org> - 5.0.3-11
2785c5
- add missing scriptlets
2785c5
2785c5
* Thu Sep  8 2011 Tom Callaway <spot@fedoraproject.org> - 5.0.3-10 
2785c5
- convert to systemd
2785c5
2785c5
* Wed Mar 23 2011 Dan Horák <dan@danny.cz> - 5.0.3-9
2785c5
- rebuilt for mysql 5.5.10 (soname bump in libmysqlclient)
2785c5
2785c5
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.0.3-8
2785c5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2785c5
2785c5
* Mon Jan 03 2011 Jon Ciesla <limb@jcomserv.net> - 5.0.3-7
2785c5
- Rebuild for MySQL 5.5, with patch.
2785c5
2785c5
* Fri Nov 26 2010 Jan Görig <jgorig@redhat.com> - 5.0.3-6
2785c5
- Fixed previous fix of alternatives
2785c5
- Changed initscript return value for non-configured service
2785c5
- Director address is required in tray-monitor config now (#626490)
2785c5
2785c5
* Tue Nov 23 2010 Jan Görig <jgorig@redhat.com> - 5.0.3-5
2785c5
- Fixed alternatives for dbcheck (#650224)
2785c5
- Moved director log file to /var/log/bacula/
2785c5
- Changed permission of bacula-dir.conf (RHEL #651786)
2785c5
- SQLite database is created as bacula user
2785c5
2785c5
* Tue Oct 19 2010 Jan Görig <jgorig@redhat.com> - 5.0.3-4
2785c5
- Fixed initscripts and changed default group of bacula-sd (#629697)
2785c5
- Better warning for non-configured password (#556669)
2785c5
2785c5
* Wed Sep 29 2010 jkeating - 5.0.3-3
2785c5
- Rebuilt for gcc bug 634757
2785c5
2785c5
* Thu Sep 23 2010 Jan Görig <jgorig@redhat.com> - 5.0.3-2
2785c5
- fixed openssl patch, thanks to Enrico Scholz
2785c5
2785c5
* Tue Aug 10 2010 Jon Ciesla <limb@jcomserv.net> - 5.0.3-1
2785c5
- New upstream.
2785c5
- DSOlink fix for same.
2785c5
2785c5
* Fri Jul 30 2010 Jon Ciesla <limb@jcomserv.net> - 5.0.2-8
2785c5
- Patched configure scripts for Python 2.7.
2785c5
2785c5
* Fri Jul 30 2010 Jon Ciesla <limb@jcomserv.net> - 5.0.2-7
2785c5
- Rebuild against Python 2.7.
2785c5
2785c5
* Wed Jul 14 2010 Dan Horák <dan@danny.cz> - 5.0.2-6
2785c5
- rebuilt against wxGTK-2.8.11-2
2785c5
2785c5
* Thu Jun 3 2010 Jan Görig <jgorig@redhat.com> 5.0.2-5
2785c5
- removed no longer needed sysconfig subpackage (#593307]
2785c5
- build with $RPM_OPT_FLAGS, show compiler commands in build log (#575425)
2785c5
  fixed by Ville Skyttä
2785c5
- dropped tcp_wrappers build conditional (#537250)
2785c5
- fixed location of query.xml in config file (#556480)
2785c5
2785c5
* Wed Jun 2 2010 Jan Görig <jgorig@redhat.com> 5.0.2-4
2785c5
- initscripts improvements
2785c5
- fixed consolehelper settings and menu entries
2785c5
2785c5
* Tue Jun 01 2010 Jon Ciesla 
2785c5
- Corrected ssl patch, court. jgorig.
2785c5
2785c5
* Wed May 19 2010 Jon Ciesla 
2785c5
- Corrected bat build, BZ 593149.
2785c5
- Corrected ssl patch.
2785c5
2785c5
* Thu Apr 29 2010 Jon Ciesla 
2785c5
- New upstream, 5.0.2.
2785c5
- Updated openssl patch.
2785c5
2785c5
* Thu Feb 25 2010 Jon Ciesla 
2785c5
- New upstream, 5.0.1.
2785c5
2785c5
* Mon Jan 25 2010 Jon Ciesla 
2785c5
- New upstream, 5.0.0.