1a9c4f1
%global uid 133
e004908
%global username bacula
4dac1ea
49b59b7
Name:               bacula
e66fa7d
Version:            7.4.1
e66fa7d
Release:            1%{?dist}
49b59b7
Summary:            Cross platform network backup for Linux, Unix, Mac and Windows
66f3524
# See LICENSE for details
49b59b7
License:            AGPLv3 with exceptions
49b59b7
Group:              System Environment/Daemons
49b59b7
URL:                http://www.bacula.org
49b59b7
BuildRoot:          %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
49b59b7
3eafafa
Source0:            http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
49b59b7
49b59b7
Source2:            quickstart_postgresql.txt
49b59b7
Source3:            quickstart_mysql.txt
49b59b7
Source4:            quickstart_sqlite3.txt
49b59b7
Source5:            README.Redhat
49b59b7
Source6:            %{name}.logrotate
49b59b7
Source7:            %{name}-fd.init
49b59b7
Source8:            %{name}-dir.init
49b59b7
Source9:            %{name}-sd.init
49b59b7
Source10:           %{name}-fd.service
49b59b7
Source11:           %{name}-dir.service
49b59b7
Source12:           %{name}-sd.service
49b59b7
Source13:           %{name}-bat.desktop
49b59b7
Source14:           %{name}-traymonitor.desktop
49b59b7
Source15:           %{name}-fd.sysconfig
49b59b7
Source16:           %{name}-dir.sysconfig
49b59b7
Source17:           %{name}-sd.sysconfig
49b59b7
Source18:           %{name}-sd.sysconfig.el5
e397501
# Image taken from http://www.bacula.org/git/cgit.cgi/bacula/plain/bacula/src/tray-monitor/generic.xpm
e397501
Source19:           generic.xpm
49b59b7
38cff71
Patch1:             %{name}-7.4.0-openssl.patch
38cff71
Patch2:             %{name}-7.4.0-queryfile.patch
38cff71
Patch3:             %{name}-7.4.0-sqlite-priv.patch
38cff71
Patch4:             %{name}-7.4.0-bat-build.patch
38cff71
Patch5:             %{name}-7.4.0-seg-fault.patch
49b59b7
Patch6:             %{name}-5.2.13-logwatch.patch
b5979e3
Patch7:             %{name}-7.2.0-non-free-code.patch
d1f6286
d1f6286
# Original patch removed by mistake, upstream is not willing to add it again:
d1f6286
# http://www.bacula.org/git/cgit.cgi/bacula/commit/?h=Branch-7.0&id=51b3b98fb77ab3c0decee455cc6c4d2eb3c5303a
d1f6286
# Without this, there is no library providing the correct shared object name
d1f6286
# required by the daemons.
d1f6286
# http://bugs.bacula.org/view.php?id=2084
b5979e3
Patch10:            %{name}-7.0.4-autoconf.patch
49b59b7
49b59b7
BuildRequires:      desktop-file-utils
49b59b7
BuildRequires:      perl
3766c97
BuildRequires:      perl-generators
49b59b7
BuildRequires:      sed
49b59b7
e397501
BuildRequires:      gcc
e397501
BuildRequires:      gcc-c++
49b59b7
BuildRequires:      glibc-devel
49b59b7
BuildRequires:      libacl-devel
49b59b7
BuildRequires:      libstdc++-devel
49b59b7
BuildRequires:      libxml2-devel
49b59b7
BuildRequires:      libcap-devel
49b59b7
BuildRequires:      lzo-devel
49b59b7
BuildRequires:      mysql-devel
49b59b7
BuildRequires:      ncurses-devel
49b59b7
BuildRequires:      openssl-devel
49b59b7
BuildRequires:      postgresql-devel
49b59b7
BuildRequires:      readline-devel
49b59b7
BuildRequires:      sqlite-devel
49b59b7
BuildRequires:      zlib-devel
16d9a36
2529f6c
%if 0%{?fedora} || 0%{?rhel} >= 6
49b59b7
BuildRequires:      qt4-devel >= 4.6.2
49b59b7
BuildRequires:      tcp_wrappers-devel
e397501
BuildRequires:      ImageMagick
16d9a36
%else
49b59b7
BuildRequires:      tcp_wrappers
16d9a36
%endif
16d9a36
115b75c
%if 0%{?fedora} || 0%{?rhel} >= 7
ea8caca
BuildRequires:      systemd
5663d98
%endif
0745245
0745245
%description
8f6eee7
Bacula is a set of programs that allow you to manage the backup, recovery, and
8f6eee7
verification of computer data across a network of different computers. It is
8f6eee7
based on a client/server architecture and is efficient and relatively easy to
8f6eee7
use, while offering many advanced storage management features that make it easy
8f6eee7
to find and recover lost or damaged files.
0745245
8390fc1
%package libs
49b59b7
Summary:            Bacula libraries
49b59b7
Group:              System Environment/Daemons
49b59b7
Obsoletes:          bacula-sysconfdir <= 2.4
964c499
964c499
%description libs
964c499
Bacula is a set of programs that allow you to manage the backup,
964c499
recovery, and verification of computer data across a network of
964c499
different computers. It is based on a client/server architecture.
964c499
964c499
This package contains basic Bacula libraries, which are used by all
964c499
Bacula programs.
964c499
964c499
%package libs-sql
49b59b7
Summary:            Bacula SQL libraries
49b59b7
Group:              System Environment/Daemons
49b59b7
Obsoletes:          bacula-libs-mysql <= 5.0.3
49b59b7
Obsoletes:          bacula-libs-sqlite <= 5.0.3
49b59b7
Obsoletes:          bacula-libs-postgresql <= 5.0.3
49b59b7
Provides:           bacula-libs-mysql = %{version}-%{release}
49b59b7
Provides:           bacula-libs-sqlite = %{version}-%{release}
49b59b7
Provides:           bacula-libs-postgresql = %{version}-%{release}
8390fc1
964c499
%description libs-sql
8f6eee7
Bacula is a set of programs that allow you to manage the backup, recovery, and
8f6eee7
verification of computer data across a network of different computers. It is
8f6eee7
based on a client/server architecture.
8390fc1
8f6eee7
This package contains the SQL Bacula libraries, which are used by Director and
8f6eee7
Storage daemons. You have to select your preferred catalog library through the
8f6eee7
alternatives system.
8390fc1
7dc2ef0
%package common
49b59b7
Summary:            Common Bacula files
49b59b7
Group:              System Environment/Daemons
49b59b7
Obsoletes:          bacula-sysconfdir <= 2.4
49b59b7
Provides:           group(%username) = %uid
49b59b7
Provides:           user(%username) = %uid
06474f4
Requires:           bacula-libs%{?_isa} = %{version}-%{release}
49b59b7
Requires(pre):      shadow-utils
49b59b7
Requires(postun):   shadow-utils
7dc2ef0
7dc2ef0
%description common
8f6eee7
Bacula is a set of programs that allow you to manage the backup, recovery, and
8f6eee7
verification of computer data across a network of different computers. It is
8f6eee7
based on a client/server architecture.
7dc2ef0
54639b9
This package contains files common to all Bacula daemons.
8390fc1
bf9089a
%package director
49b59b7
Summary:            Bacula Director files
49b59b7
Group:              System Environment/Daemons
49b59b7
Requires:           bacula-common%{?_isa} = %{version}-%{release}
06474f4
Requires:           bacula-libs%{?_isa} = %{version}-%{release}
65662da
Requires:           bacula-libs-sql%{?_isa} = %{version}-%{release}
bf9089a
# Director backends merged into core.
49b59b7
Provides:           bacula-director-common = %{version}-%{release}
49b59b7
Obsoletes:          bacula-director-common < 5.2.3-5
49b59b7
Provides:           bacula-director-mysql = %{version}-%{release}
49b59b7
Obsoletes:          bacula-director-mysql < 5.2.3-5
49b59b7
Provides:           bacula-director-sqlite = %{version}-%{release}
49b59b7
Obsoletes:          bacula-director-sqlite < 5.2.3-5
49b59b7
Provides:           bacula-director-postgresql = %{version}-%{release}
49b59b7
Obsoletes:          bacula-director-postgresql < 5.2.3-5
e66bd92
ea8caca
%if 0%{?fedora} || 0%{?rhel} >= 7
49b59b7
Requires(post):     systemd
49b59b7
Requires(preun):    systemd
49b59b7
Requires(postun):   systemd
e66bd92
%endif
e66bd92
156c8fd
%if 0%{?rhel} == 5 || 0%{?rhel} == 6
49b59b7
Requires(post):     /sbin/chkconfig
49b59b7
Requires(preun):    /sbin/chkconfig
49b59b7
Requires(preun):    /sbin/service
49b59b7
Requires(postun):   /sbin/service
7dc2ef0
%endif
7dc2ef0
bf9089a
%description director
8f6eee7
Bacula is a set of programs that allow you to manage the backup, recovery, and
8f6eee7
verification of computer data across a network of different computers. It is
8f6eee7
based on a client/server architecture.
7dc2ef0
bf9089a
This package contains the director files.
0745245
1fabaac
%package logwatch
1fabaac
Summary:            Bacula Director logwatch scripts
1fabaac
Group:              System Environment/Daemons
5259e5d
# RHEL 5 does not support noarch subpackages
5259e5d
%if 0%{?fedora} || 0%{?rhel} >= 6
1fabaac
BuildArch:          noarch
5259e5d
%endif
9c09f86
Requires:           bacula-director = %{version}-%{release}
1fabaac
Requires:           logwatch
1fabaac
1fabaac
%description logwatch
1fabaac
Bacula is a set of programs that allow you to manage the backup, recovery, and
1fabaac
verification of computer data across a network of different computers. It is
1fabaac
based on a client/server architecture.
1fabaac
1fabaac
This package contains logwatch scripts for Bacula Director.
1fabaac
7dc2ef0
%package storage
49b59b7
Summary:            Bacula storage daemon files
49b59b7
Group:              System Environment/Daemons
49b59b7
Requires:           bacula-common%{?_isa} = %{version}-%{release}
06474f4
Requires:           bacula-libs%{?_isa} = %{version}-%{release}
65662da
Requires:           bacula-libs-sql%{?_isa} = %{version}-%{release}
49b59b7
Requires:           mt-st
7dc2ef0
# Storage backends merged into core.
49b59b7
Provides:           bacula-storage-common = %{version}-%{release}
49b59b7
Obsoletes:          bacula-storage-common < 5.2.2-2
49b59b7
Provides:           bacula-storage-mysql = %{version}-%{release}
49b59b7
Obsoletes:          bacula-storage-mysql < 5.2.0
49b59b7
Provides:           bacula-storage-sqlite = %{version}-%{release}
49b59b7
Obsoletes:          bacula-storage-sqlite < 5.2.0
49b59b7
Provides:           bacula-storage-postgresql = %{version}-%{release}
49b59b7
Obsoletes:          bacula-storage-postgresql < 5.2.0
50deab8
ea8caca
%if 0%{?fedora} || 0%{?rhel} >= 7
49b59b7
Requires(post):     systemd
49b59b7
Requires(preun):    systemd
49b59b7
Requires(postun):   systemd
50deab8
%endif
50deab8
50deab8
%if 0%{?rhel} == 5 || 0%{?rhel} == 6
49b59b7
Requires(post):     /sbin/chkconfig
49b59b7
Requires(preun):    /sbin/chkconfig
49b59b7
Requires(preun):    /sbin/service
49b59b7
Requires(postun):   /sbin/service
16d9a36
%endif
16d9a36
7dc2ef0
%description storage
8f6eee7
Bacula is a set of programs that allow you to manage the backup, recovery, and
8f6eee7
verification of computer data across a network of different computers. It is
8f6eee7
based on a client/server architecture.
0745245
8f6eee7
This package contains the storage daemon, the daemon responsible for writing
8f6eee7
the data received from the clients onto tape drives or other mass storage
8f6eee7
devices.
0745245
0745245
%package client
49b59b7
Summary:            Bacula backup client
49b59b7
Group:              System Environment/Daemons
49b59b7
Requires:           bacula-common%{?_isa} = %{version}-%{release}
06474f4
Requires:           bacula-libs%{?_isa} = %{version}-%{release}
50deab8
ea8caca
%if 0%{?fedora} || 0%{?rhel} >= 7
49b59b7
Requires(post):     systemd
49b59b7
Requires(preun):    systemd
49b59b7
Requires(postun):   systemd
50deab8
%endif
50deab8
50deab8
%if 0%{?rhel} == 5 || 0%{?rhel} == 6
49b59b7
Requires(post):     /sbin/chkconfig
49b59b7
Requires(preun):    /sbin/chkconfig
49b59b7
Requires(preun):    /sbin/service
49b59b7
Requires(postun):   /sbin/service
16d9a36
%endif
0745245
0745245
%description client
8f6eee7
Bacula is a set of programs that allow you to manage the backup, recovery, and
8f6eee7
verification of computer data across a network of different computers. It is
8f6eee7
based on a client/server architecture.
0745245
8f6eee7
This package contains the bacula client, the daemon running on the system to be
8f6eee7
backed up.
0745245
0745245
%package console
49b59b7
Summary:            Bacula management console
49b59b7
Group:              System Environment/Daemons
49b59b7
Obsoletes:          bacula-console-gnome <= 2.4
49b59b7
Obsoletes:          bacula-console-wxwidgets <= 5.0.3
06474f4
Requires:           bacula-libs%{?_isa} = %{version}-%{release}
0745245
0745245
%description console
8f6eee7
Bacula is a set of programs that allow you to manage the backup, recovery, and
8f6eee7
verification of computer data across a network of different computers. It is
8f6eee7
based on a client/server architecture.
0745245
8f6eee7
This package contains the command-line management console for the bacula backup
8f6eee7
system.
0745245
2529f6c
%if 0%{?fedora} || 0%{?rhel} >= 6
7dc8299
%package console-bat
49b59b7
Summary:            Bacula bat console
49b59b7
Group:              System Environment/Daemons
06474f4
Requires:           bacula-libs%{?_isa} = %{version}-%{release}
77a6346
Requires:           dejavu-lgc-sans-fonts
7dc8299
7dc8299
%description console-bat
8f6eee7
Bacula is a set of programs that allow you to manage the backup, recovery, and
8f6eee7
verification of computer data across a network of different computers. It is
8f6eee7
based on a client/server architecture.
7dc8299
8390fc1
This package contains the bat version of the bacula management console.
367ff02
230fff0
%package traymonitor
230fff0
Summary:            Bacula system tray monitor
230fff0
Group:              System Environment/Daemons
230fff0
Requires:           bacula-libs%{?_isa} = %{version}-%{release}
77a6346
Requires:           dejavu-lgc-sans-fonts
367ff02
230fff0
%description traymonitor
230fff0
Bacula is a set of programs that allow you to manage the backup, recovery, and
230fff0
verification of computer data across a network of different computers. It is
230fff0
based on a client/server architecture.
367ff02
230fff0
This package contains the Gnome and KDE compatible tray monitor to monitor your
230fff0
bacula server.
16d9a36
%endif
0745245
3b6cb34
%package devel
49b59b7
Summary:            Bacula development files
49b59b7
Group:              Development/Libraries
65662da
Requires:           bacula-libs%{?_isa} = %{version}-%{release}
65662da
Requires:           bacula-libs-sql%{?_isa} = %{version}-%{release}
3b6cb34
3b6cb34
%description devel
8f6eee7
Bacula is a set of programs that allow you to manage the backup, recovery, and
8f6eee7
verification of computer data across a network of different computers. It is
8f6eee7
based on a client/server architecture.
3b6cb34
3b6cb34
This development package contains static libraries and header files.
3b6cb34
230fff0
%package -n nagios-plugins-bacula
230fff0
Summary:            Nagios Plugin - check_bacula
230fff0
Group:              Applications/System
230fff0
Requires:           bacula-libs%{?_isa} = %{version}-%{release}
457a0b7
Requires:           nagios-common%{?_isa}
3b6cb34
230fff0
%description -n nagios-plugins-bacula
230fff0
Provides check_bacula support for Nagios.
52eec75
16d9a36
%prep
d4f2ea5
%setup -q
47fa612
%patch1 -p1
2354547
%patch2 -p1
47fa612
%patch3 -p1
2354547
%patch4 -p1
2354547
%patch5 -p1
2354547
%patch6 -p1
2354547
%patch7 -p1
949abfa
%patch10 -p1
2e1584d
cp %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} .
0745245
0745245
# Remove execution permissions from files we're packaging as docs later on
0745245
find updatedb -type f | xargs chmod -x
0745245
0745245
%build
900706a
build() {
7ce52f3
export CFLAGS="$RPM_OPT_FLAGS -I%{_includedir}/ncurses"
16d9a36
export CPPFLAGS="$RPM_OPT_FLAGS -I%{_includedir}/ncurses"
a2fd9c6
export PATH="$PATH:%{_qt4_bindir}"
0745245
%configure \
2354547
        --disable-conio \
2354547
        --disable-rpath \
2354547
        --docdir=%{_datadir}/bacula \
2354547
        --enable-batch-insert \
2354547
        --enable-build-dird \
2354547
        --enable-build-stored \
2354547
        --enable-includes \
2354547
        --enable-largefile \
2354547
        --enable-readline \
2354547
        --enable-smartalloc \
2fee6f8
        --sysconfdir=%{_sysconfdir}/bacula \
2fee6f8
        --with-basename=bacula \
2354547
        --with-bsrdir=%{_localstatedir}/spool/bacula \
2fee6f8
        --with-dir-password=@@DIR_PASSWORD@@ \
2fee6f8
        --with-fd-password=@@FD_PASSWORD@@ \
2354547
        --with-hostname=localhost \
2354547
        --with-logdir=%{_localstatedir}/log/bacula \
2fee6f8
        --with-mon-dir-password=@@MON_DIR_PASSWORD@@ \
2fee6f8
        --with-mon-fd-password=@@MON_FD_PASSWORD@@ \
2fee6f8
        --with-mon-sd-password=@@MON_SD_PASSWORD@@ \
2354547
        --with-mysql \
2354547
        --with-openssl \
2354547
        --with-pid-dir=%{_localstatedir}/run \
2fee6f8
        --with-plugindir=%{_libdir}/bacula \
2354547
        --with-postgresql \
2354547
        --with-scriptdir=%{_libexecdir}/bacula \
2354547
        --with-sd-password=@@SD_PASSWORD@@ \
2fee6f8
        --with-smtp-host=localhost \
2354547
        --with-sqlite3 \
2fee6f8
        --with-subsys-dir=%{_localstatedir}/lock/subsys \
2fee6f8
        --with-tcp-wrappers \
2354547
        --with-working-dir=%{_localstatedir}/spool/bacula \
2fee6f8
        --with-x \
2fee6f8
        $*
900706a
}
900706a
2529f6c
%if 0%{?fedora} || 0%{?rhel} >= 6
65662da
build --enable-bat
900706a
%else
5fd2356
build --disable-bat
900706a
%endif
0745245
16d9a36
# Remove RPATH
16d9a36
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
16d9a36
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
eb59c7c
33a6de8
make %{?_smp_mflags}
457a0b7
make -C examples/nagios/check_bacula
4dac1ea
230fff0
%if 0%{?fedora} || 0%{?rhel} >= 6
230fff0
pushd src/qt-console/tray-monitor
Rex Dieter b3190cb
    %{?qmake_qt4}%{!?qmake_qt4:qmake-qt4} tray-monitor.pro
230fff0
    make %{?_smp_mflags}
f4700a3
    cp -f .libs/bacula-tray-monitor .
230fff0
popd
e397501
# Convert image to png for tray monitor icon
e397501
convert %{SOURCE19} bacula-tray-monitor.png
230fff0
%endif
0745245
0745245
%install
0745245
rm -rf %{buildroot}
16d9a36
make install DESTDIR=%{buildroot}
0745245
3b6cb34
# Nagios plugin
230fff0
install -p -m 755 -D examples/nagios/check_bacula/.libs/check_bacula %{buildroot}%{_libdir}/nagios/plugins/check_bacula
fae5422
e95438f
# Remove catalogue backend symlinks
e95438f
rm -f %{buildroot}%{_libdir}/libbaccats.so
fae5422
rm -f %{buildroot}%{_libdir}/libbaccats-%{version}.so
0745245
2529f6c
%if 0%{?fedora} || 0%{?rhel} >= 6
367ff02
# Bat
33a6de8
install -p -m 644 -D src/qt-console/images/bat_icon.png %{buildroot}%{_datadir}/pixmaps/bat.png
4eb05c1
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE13}
367ff02
367ff02
# QT Tray monitor
230fff0
install -p -m 755 -D src/qt-console/tray-monitor/bacula-tray-monitor %{buildroot}%{_sbindir}/bacula-tray-monitor
230fff0
install -p -m 644 -D src/qt-console/tray-monitor/tray-monitor.conf %{buildroot}%{_sysconfdir}/bacula/tray-monitor.conf
2354547
install -p -m 644 -D manpages/bacula-tray-monitor.1 %{buildroot}%{_mandir}/man1/bacula-tray-monitor.1
e397501
install -p -m 644 -D bacula-tray-monitor.png %{buildroot}%{_datadir}/pixmaps/bacula-tray-monitor.png
230fff0
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE14}
367ff02
16d9a36
%else
16d9a36
rm -f %{buildroot}%{_mandir}/man1/bat.1*
16d9a36
%endif
0745245
3b6cb34
# Logrotate
33a6de8
mkdir -p %{buildroot}%{_localstatedir}/log/bacula
33a6de8
install -p -m 644 -D %{SOURCE6} %{buildroot}%{_sysconfdir}/logrotate.d/bacula
0745245
3b6cb34
# Logwatch
33a6de8
install -p -m 755 -D scripts/logwatch/bacula %{buildroot}%{_sysconfdir}/logwatch/scripts/services/bacula
33a6de8
install -p -m 755 -D scripts/logwatch/applybaculadate %{buildroot}%{_sysconfdir}/logwatch/scripts/shared/applybaculadate
33a6de8
install -p -m 644 -D scripts/logwatch/logfile.bacula.conf %{buildroot}%{_sysconfdir}/logwatch/conf/logfiles/bacula.conf
33a6de8
install -p -m 644 -D scripts/logwatch/services.bacula.conf %{buildroot}%{_sysconfdir}/logwatch/conf/services/bacula.conf
0745245
115b75c
%if 0%{?fedora} || 0%{?rhel} >= 7
99bb2e4
# Systemd unit files
33a6de8
mkdir -p %{buildroot}%{_unitdir}
63bda35
install -p -m 644 -D %{SOURCE10} %{buildroot}%{_unitdir}/bacula-fd.service
63bda35
install -p -m 644 -D %{SOURCE11} %{buildroot}%{_unitdir}/bacula-dir.service
63bda35
install -p -m 644 -D %{SOURCE12} %{buildroot}%{_unitdir}/bacula-sd.service
16d9a36
%else
16d9a36
# Initscripts
33a6de8
install -p -m 755 -D %{SOURCE7} %{buildroot}%{_initrddir}/bacula-fd
33a6de8
install -p -m 755 -D %{SOURCE8} %{buildroot}%{_initrddir}/bacula-dir
33a6de8
install -p -m 755 -D %{SOURCE9} %{buildroot}%{_initrddir}/bacula-sd
16d9a36
%endif
Jan Görig e51227f
16d9a36
# Sysconfig
33a6de8
install -p -m 644 -D %{SOURCE15} %{buildroot}%{_sysconfdir}/sysconfig/bacula-fd
33a6de8
install -p -m 644 -D %{SOURCE16} %{buildroot}%{_sysconfdir}/sysconfig/bacula-dir
6c1a0c5
%if 0%{?fedora} || 0%{?rhel} >= 6
33a6de8
install -p -m 644 -D %{SOURCE17} %{buildroot}%{_sysconfdir}/sysconfig/bacula-sd
6c1a0c5
%else
6c1a0c5
install -p -m 644 -D %{SOURCE18} %{buildroot}%{_sysconfdir}/sysconfig/bacula-sd
6c1a0c5
%endif
Jan Görig e51227f
3b6cb34
# Spool directory
33a6de8
mkdir -p %{buildroot}%{_localstatedir}/spool/bacula
0745245
3b6cb34
# Remove stuff we do not need
07d3fd8
rm -f %{buildroot}%{_libexecdir}/bacula/{bacula,bacula-ctl-*,startmysql,stopmysql,bconsole,make_catalog_backup}
d49b54f
rm -f %{buildroot}%{_sbindir}/bacula
d49b54f
rm -f %{buildroot}%{_mandir}/man8/bacula.8.gz
3eafafa
rm -f %{buildroot}%{_libdir}/*.la
65662da
%if 0%{?fedora} || 0%{?rhel} >= 6
b5979e3
rm -f %{buildroot}%{_datadir}/bacula/{ChangeLog,INSTALL,LICENSE*,README,ReleaseNotes,VERIFYING,technotes}
65662da
%else
65662da
rm -rf %{buildroot}%{_datadir}/bacula
65662da
%endif
0745245
0745245
# Fix up some perms so rpmlint does not complain too much
0745245
chmod 755 %{buildroot}%{_sbindir}/*
16d9a36
chmod 755 %{buildroot}%{_libdir}/bacula/*
0745245
chmod 755 %{buildroot}%{_libexecdir}/bacula/*
0745245
chmod 644 %{buildroot}%{_libexecdir}/bacula/btraceback.*
0745245
0745245
%clean
0745245
rm -rf %{buildroot}
0745245
bf9089a
%post libs
964c499
/sbin/ldconfig
964c499
964c499
%postun libs
964c499
/sbin/ldconfig
964c499
exit 0
964c499
964c499
%post libs-sql
5f381d6
/usr/sbin/alternatives --install %{_libdir}/libbaccats.so libbaccats.so %{_libdir}/libbaccats-mysql.so 50
5f381d6
/usr/sbin/alternatives --install %{_libdir}/libbaccats.so libbaccats.so %{_libdir}/libbaccats-sqlite3.so 40
5f381d6
/usr/sbin/alternatives --install %{_libdir}/libbaccats.so libbaccats.so %{_libdir}/libbaccats-postgresql.so 60
29391a8
ddc6de9
# Fix for automatic selection of backends during upgrades
ddc6de9
if readlink /etc/alternatives/libbaccats.so | grep --silent mysql || \
ddc6de9
   readlink /etc/alternatives/bacula-dir | grep --silent mysql || \
ddc6de9
   readlink /etc/alternatives/bacula-sd | grep --silent mysql; then
ddc6de9
        /usr/sbin/alternatives --set libbaccats.so %{_libdir}/libbaccats-mysql.so
ddc6de9
elif readlink /etc/alternatives/libbaccats.so | grep --silent sqlite || \
ddc6de9
   readlink /etc/alternatives/bacula-dir | grep --silent sqlite || \
ddc6de9
   readlink /etc/alternatives/bacula-sd | grep --silent sqlite; then
ddc6de9
        /usr/sbin/alternatives --set libbaccats.so %{_libdir}/libbaccats-sqlite3.so
ddc6de9
else
ddc6de9
        /usr/sbin/alternatives --set libbaccats.so %{_libdir}/libbaccats-postgresql.so
ddc6de9
fi
bf9089a
/sbin/ldconfig
16d9a36
964c499
%preun libs-sql
e45f06f
if [ "$1" = 0 ]; then
ac1739c
        /usr/sbin/alternatives --remove libbaccats.so %{_libdir}/libbaccats-mysql.so
ac1739c
        /usr/sbin/alternatives --remove libbaccats.so %{_libdir}/libbaccats-sqlite3.so
ac1739c
        /usr/sbin/alternatives --remove libbaccats.so %{_libdir}/libbaccats-postgresql.so
e45f06f
fi
3b2d941
964c499
%postun libs-sql
bf9089a
/sbin/ldconfig
e95438f
exit 0
4dac1ea
0745245
%pre common
e004908
getent group %username >/dev/null || groupadd -g %uid -r %username &>/dev/null || :
e004908
getent passwd %username >/dev/null || useradd -u %uid -r -s /sbin/nologin \
e004908
    -d /var/spool/bacula -M -c 'Bacula Backup System' -g %username %username &>/dev/null || :
e004908
exit 0
4dac1ea
ea8caca
%if 0%{?fedora} || 0%{?rhel} >= 7
2529f6c
2529f6c
%post client
2529f6c
%systemd_post %{name}-fd.service
2529f6c
2529f6c
%preun client
2529f6c
%systemd_preun %{name}-fd.service
2529f6c
2529f6c
%postun client
2529f6c
%systemd_postun_with_restart %{name}-fd.service
2529f6c
2529f6c
%post director
2529f6c
%systemd_post %{name}-dir.service
2529f6c
2529f6c
%preun director
2529f6c
%systemd_preun %{name}-dir.service
2529f6c
2529f6c
%postun director
2529f6c
%systemd_postun_with_restart %{name}-dir.service
2529f6c
2529f6c
%post storage
2529f6c
%systemd_post %{name}-sd.service
2529f6c
2529f6c
%preun storage
2529f6c
%systemd_preun %{name}-sd.service
2529f6c
2529f6c
%postun storage
2529f6c
%systemd_postun_with_restart %{name}-sd.service
2529f6c
2529f6c
%endif
2529f6c
115b75c
%if 0%{?rhel} == 5 || 0%{?rhel} == 6
16d9a36
16d9a36
%post client
16d9a36
/sbin/chkconfig --add bacula-fd
16d9a36
16d9a36
%preun client
16d9a36
if [ "$1" = 0 ]; then
2fee6f8
        /sbin/service bacula-fd stop >/dev/null 2>&1 || :
2fee6f8
        /sbin/chkconfig --del bacula-fd
16d9a36
fi
16d9a36
16d9a36
%postun client
16d9a36
if [ "$1" -ge "1" ]; then
2fee6f8
        /sbin/service bacula-fd condrestart >/dev/null 2>&1 || :
16d9a36
fi
16d9a36
bf9089a
%post director
16d9a36
/sbin/chkconfig --add bacula-dir
16d9a36
bf9089a
%preun director
16d9a36
if [ "$1" = 0 ]; then
2fee6f8
        /sbin/service bacula-dir stop >/dev/null 2>&1 || :
2fee6f8
        /sbin/chkconfig --del bacula-dir
16d9a36
fi
16d9a36
bf9089a
%postun director
16d9a36
if [ "$1" -ge "1" ]; then
2fee6f8
        /sbin/service bacula-dir condrestart >/dev/null 2>&1 || :
16d9a36
fi
16d9a36
900706a
%post storage
16d9a36
/sbin/chkconfig --add bacula-sd
16d9a36
900706a
%preun storage
16d9a36
if [ "$1" = 0 ]; then
2fee6f8
        /sbin/service bacula-sd stop >/dev/null 2>&1 || :
2fee6f8
        /sbin/chkconfig --del bacula-sd
16d9a36
fi
16d9a36
900706a
%postun storage
16d9a36
if [ "$1" -ge "1" ]; then
2fee6f8
        /sbin/service bacula-sd condrestart >/dev/null 2>&1 || :
16d9a36
fi
16d9a36
16d9a36
%endif
16d9a36
8390fc1
%files libs
3060935
%{!?_licensedir:%global license %%doc}
e3a719c
%license LICENSE
b5979e3
%doc AUTHORS ChangeLog SUPPORT ReleaseNotes LICENSE-FAQ LICENSE-FOSS
8390fc1
%defattr(-,root,root,-)
8390fc1
%{_libdir}/libbac-%{version}.so
964c499
%{_libdir}/libbaccfg-%{version}.so
964c499
%{_libdir}/libbacfind-%{version}.so
964c499
964c499
%files libs-sql
964c499
%defattr(-,root,root,-)
bf9089a
%{_libdir}/libbaccats-mysql-%{version}.so
bf9089a
%{_libdir}/libbaccats-mysql.so
bf9089a
%{_libdir}/libbaccats-postgresql-%{version}.so
bf9089a
%{_libdir}/libbaccats-postgresql.so
bf9089a
%{_libdir}/libbaccats-sqlite3-%{version}.so
bf9089a
%{_libdir}/libbaccats-sqlite3.so
bf9089a
%{_libdir}/libbacsql-%{version}.so
0745245
0745245
%files common
b87413e
%defattr(-,root,root,-)
021eba8
%doc README.Redhat quickstart_*
0745245
%config(noreplace) %{_sysconfdir}/logrotate.d/bacula
2354547
%dir %{_localstatedir}/log/bacula %attr(750, bacula, bacula)
2354547
%dir %{_localstatedir}/spool/bacula %attr(750, bacula, bacula)
16d9a36
%dir %{_libexecdir}/%{name}
2354547
%dir %{_sysconfdir}/%{name} %attr(755,root,root)
16d9a36
%{_libexecdir}/%{name}/btraceback.dbx
16d9a36
%{_libexecdir}/%{name}/btraceback.gdb
16d9a36
%{_libexecdir}/%{name}/bacula_config
16d9a36
%{_libexecdir}/%{name}/btraceback.mdb
fa942d0
%{_mandir}/man8/btraceback.8*
2354547
%{_sbindir}/btraceback
0745245
bf9089a
%files director
0745245
%defattr(-,root,root,-)
145c1df
%doc updatedb examples/sample-query.sql
2354547
%config(noreplace) %{_sysconfdir}/bacula/bacula-dir.conf %attr(640,root,bacula)
2354547
%config(noreplace) %{_sysconfdir}/bacula/query.sql %attr(640,root,bacula)
16d9a36
%config(noreplace) %{_sysconfdir}/sysconfig/bacula-dir
16d9a36
%{_libexecdir}/%{name}/create_bacula_database
16d9a36
%{_libexecdir}/%{name}/delete_catalog_backup
16d9a36
%{_libexecdir}/%{name}/drop_bacula_database
16d9a36
%{_libexecdir}/%{name}/drop_bacula_tables
16d9a36
%{_libexecdir}/%{name}/grant_bacula_privileges
16d9a36
%{_libexecdir}/%{name}/make_bacula_tables
16d9a36
%{_libexecdir}/%{name}/make_catalog_backup.pl
16d9a36
%{_libexecdir}/%{name}/update_bacula_tables
16d9a36
%{_libexecdir}/%{name}/create_mysql_database
16d9a36
%{_libexecdir}/%{name}/drop_mysql_database
16d9a36
%{_libexecdir}/%{name}/drop_mysql_tables
16d9a36
%{_libexecdir}/%{name}/grant_mysql_privileges
16d9a36
%{_libexecdir}/%{name}/make_mysql_tables
16d9a36
%{_libexecdir}/%{name}/update_mysql_tables
16d9a36
%{_libexecdir}/%{name}/create_sqlite3_database
16d9a36
%{_libexecdir}/%{name}/drop_sqlite3_database
16d9a36
%{_libexecdir}/%{name}/drop_sqlite3_tables
16d9a36
%{_libexecdir}/%{name}/grant_sqlite3_privileges
16d9a36
%{_libexecdir}/%{name}/make_sqlite3_tables
16d9a36
%{_libexecdir}/%{name}/update_sqlite3_tables
16d9a36
%{_libexecdir}/%{name}/create_postgresql_database
16d9a36
%{_libexecdir}/%{name}/drop_postgresql_database
16d9a36
%{_libexecdir}/%{name}/drop_postgresql_tables
16d9a36
%{_libexecdir}/%{name}/grant_postgresql_privileges
16d9a36
%{_libexecdir}/%{name}/make_postgresql_tables
16d9a36
%{_libexecdir}/%{name}/update_postgresql_tables
2354547
%{_mandir}/man1/bsmtp.1*
2354547
%{_mandir}/man8/bacula-dir.8*
2354547
%{_mandir}/man8/bregex.8*
2354547
%{_mandir}/man8/bwild.8*
2354547
%{_mandir}/man8/dbcheck.8*
2354547
%{_sbindir}/bacula-dir
2354547
%{_sbindir}/bregex
2354547
%{_sbindir}/bsmtp
2354547
%{_sbindir}/bwild
2354547
%{_sbindir}/dbcheck
2354547
%if 0%{?fedora} || 0%{?rhel} >= 7
2354547
%{_unitdir}/bacula-dir.service
2354547
%else
2354547
%{_initrddir}/bacula-dir
2354547
%endif
0745245
1fabaac
%files logwatch
1fabaac
%defattr(-,root,root,-)
1fabaac
%config(noreplace) %{_sysconfdir}/logwatch/conf/logfiles/bacula.conf
1fabaac
%config(noreplace) %{_sysconfdir}/logwatch/conf/services/bacula.conf
1fabaac
%{_sysconfdir}/logwatch/scripts/services/bacula
1fabaac
%{_sysconfdir}/logwatch/scripts/shared/applybaculadate
1fabaac
900706a
%files storage
0745245
%defattr(-,root,root,-)
2354547
%config(noreplace) %{_sysconfdir}/bacula/bacula-sd.conf %attr(640,root,root)
16d9a36
%config(noreplace) %{_sysconfdir}/sysconfig/bacula-sd
5fd2356
%{_libexecdir}/%{name}/disk-changer
5fd2356
%{_libexecdir}/%{name}/dvd-handler
5fd2356
%{_libexecdir}/%{name}/mtx-changer
5fd2356
%{_libexecdir}/%{name}/mtx-changer.conf
fa942d0
%{_mandir}/man8/bacula-sd.8*
fa942d0
%{_mandir}/man8/bcopy.8*
fa942d0
%{_mandir}/man8/bextract.8*
fa942d0
%{_mandir}/man8/bls.8*
fa942d0
%{_mandir}/man8/bscan.8*
fa942d0
%{_mandir}/man8/btape.8*
2354547
%{_sbindir}/bacula-sd
2354547
%{_sbindir}/bcopy
2354547
%{_sbindir}/bextract
2354547
%{_sbindir}/bls
2354547
%{_sbindir}/bscan
2354547
%{_sbindir}/btape
2354547
%if 0%{?fedora} || 0%{?rhel} >= 7
2354547
%{_unitdir}/bacula-sd.service
2354547
%else
2354547
%{_initrddir}/bacula-sd
2354547
%endif
2354547
0745245
7dc2ef0
%files client
7dc2ef0
%defattr(-,root,root,-)
2354547
%config(noreplace) %{_sysconfdir}/bacula/bacula-fd.conf %attr(640,root,root)
2354547
%config(noreplace) %{_sysconfdir}/sysconfig/bacula-fd
2354547
%{_mandir}/man8/bacula-fd.8*
2354547
%{_libdir}/bacula/bpipe-fd.so
7dc2ef0
%{_sbindir}/bacula-fd
115b75c
%if 0%{?fedora} || 0%{?rhel} >= 7
7dc2ef0
%{_unitdir}/bacula-fd.service
7dc2ef0
%else
7dc2ef0
%{_initrddir}/bacula-fd
7dc2ef0
%endif
7dc2ef0
7dc2ef0
%files console
7dc2ef0
%defattr(-,root,root,-)
2354547
%config(noreplace) %{_sysconfdir}/bacula/bconsole.conf %attr(640,root,root)
fa942d0
%{_mandir}/man8/bconsole.8*
2354547
%{_sbindir}/bconsole
7dc2ef0
2529f6c
%if 0%{?fedora} || 0%{?rhel} >= 6
7dc2ef0
%files console-bat
7dc2ef0
%defattr(-,root,root,-)
2354547
%config(noreplace) %{_sysconfdir}/bacula/bat.conf %attr(640,root,root)
4eb05c1
%{_datadir}/applications/bacula-bat.desktop
65662da
%{_datadir}/bacula/*.html
65662da
%{_datadir}/bacula/*.png
367ff02
%{_datadir}/pixmaps/bat.png
2354547
%{_mandir}/man1/bat.1*
2354547
%{_sbindir}/bat
367ff02
230fff0
%files traymonitor
230fff0
%defattr(-,root,root,-)
2354547
%config(noreplace) %{_sysconfdir}/bacula/tray-monitor.conf %attr(640,root,root)
230fff0
%{_datadir}/applications/bacula-traymonitor.desktop
230fff0
%{_datadir}/pixmaps/bacula-tray-monitor.png
2354547
%{_mandir}/man1/bacula-tray-monitor.1*
2354547
%{_sbindir}/bacula-tray-monitor
7dc2ef0
%endif
7dc2ef0
3b6cb34
%files devel
3b6cb34
%defattr(-,root,root,-)
3b6cb34
%{_includedir}/bacula
8e73d46
%{_libdir}/libbac.so
8e73d46
%{_libdir}/libbaccfg.so
8e73d46
%{_libdir}/libbacfind.so
8e73d46
%{_libdir}/libbacsql.so
8e73d46
230fff0
%files -n nagios-plugins-bacula
230fff0
%defattr(-,root,root)
230fff0
%{_libdir}/nagios/plugins/check_bacula
0745245
0745245
%changelog
e66fa7d
* Thu Jun 02 2016 Simone Caronni <negativo17@gmail.com> - 7.4.1-1
e66fa7d
- Update to 7.4.1.
e66fa7d
a2fd9c6
* Mon Feb 22 2016 Simone Caronni <negativo17@gmail.com> - 7.4.0-4
a2fd9c6
- Fix FTBFS on rawhide (#1307338).
a2fd9c6
6df32d9
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 7.4.0-3
6df32d9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
6df32d9
Rex Dieter b3190cb
* Mon Feb 01 2016 Rex Dieter <rdieter@fedoraproject.org> - 7.4.0-2
Rex Dieter b3190cb
- use %%qmake_qt4 macro to ensure proper build flags
Rex Dieter b3190cb
38cff71
* Mon Jan 25 2016 Simone Caronni <negativo17@gmail.com> - 7.4.0-1
38cff71
- Update to 7.4.0.
38cff71
- Rebase patches, remove git patch.
38cff71
949abfa
* Sun Dec 13 2015 Simone Caronni <negativo17@gmail.com> - 7.2.0-3
949abfa
- Re-add autoconf patch erraneously removed.
949abfa
1592ddf
* Fri Dec 11 2015 Simone Caronni <negativo17@gmail.com> - 7.2.0-2
1592ddf
- Add fixes from upstream 7.2 branch.
1592ddf
b5979e3
* Tue Sep 29 2015 Simone Caronni <negativo17@gmail.com> - 7.2.0-1
b5979e3
- Update to 7.2.0.
b5979e3
- Remove bpluginfo(8).
b5979e3
e397501
* Wed Jul 15 2015 Marcin Haba <marcin.haba@bacula.pl> - 7.0.5-9
e397501
- Use an external icon for tray monitor.
e397501
- Add gcc and gcc-c++ to build requires.
e397501
a9f6cc0
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.0.5-8
a9f6cc0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
a9f6cc0
1fabaac
* Fri May 15 2015 Simone Caronni <negativo17@gmail.com> - 7.0.5-7
1fabaac
- Split logwatch files in its own package. Logwatch should be installed
1fabaac
  explicitly by an administrator, and not by defaul. Also, the current logwatch
1fabaac
  package for RHEL 7 has a bug and can not be customized:
1fabaac
  https://bugzilla.redhat.com/show_bug.cgi?id=1221903
1fabaac
  Thanks to Dimitri Maziuk for reporting.
1fabaac
77a6346
* Tue May 12 2015 Simone Caronni <negativo17@gmail.com> - 7.0.5-6
77a6346
- Require dejavu-lgc-sans-fonts for graphical programs. Fixes startup of bat on
77a6346
  headless servers without a desktop installed.
77a6346
d4ba2c6
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 7.0.5-5
d4ba2c6
- Rebuilt for GCC 5 C++11 ABI change
d4ba2c6
f4700a3
* Mon Mar 02 2015 Simone Caronni <negativo17@gmail.com> - 7.0.5-4
f4700a3
- Fix tray-monitor packaging (again).
f4700a3
e3a719c
* Tue Feb 24 2015 Simone Caronni <negativo17@gmail.com> - 7.0.5-3
e3a719c
- Add license macro.
e3a719c
a9b597a
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.0.5-2
a9b597a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
a9b597a
d1f6286
* Thu Jul 31 2014 Simone Caronni <negativo17@gmail.com> - 7.0.5-1
d1f6286
- Update to 7.0.5.
d1f6286
5f381d6
* Thu Jul 24 2014 Simone Caronni <negativo17@gmail.com> - 7.0.4-3
5f381d6
- Remove RPM filters, add back patch inadvertently removed during 7.0 upstream
5f381d6
  release.
5f381d6
58263ac
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.0.4-2
58263ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
58263ac
25a9a5f
* Wed Jun 04 2014 Simone Caronni <negativo17@gmail.com> - 7.0.4-1
25a9a5f
- Update to 7.0.4.
25a9a5f
29391a8
* Fri May 16 2014 Simone Caronni <negativo17@gmail.com> - 7.0.3-3
29391a8
- Add versioned library to alternatives system.
29391a8
9017302
* Fri May 16 2014 Simone Caronni <negativo17@gmail.com> - 7.0.3-2
9017302
- Filter out libbaccats from auto generated Provides/Obsoletes and add note on
9017302
  the libbaccats-x.x.x.so shared object name mess.
9017302
47fa612
* Thu May 15 2014 Simone Caronni <negativo17@gmail.com> - 7.0.3-1
47fa612
- Update to 7.0.3.
47fa612
fef9b05
* Thu Apr 24 2014 Simone Caronni <negativo17@gmail.com> - 7.0.2-2
fef9b05
- Bug fixes from upstream.
fef9b05
e47e3f5
* Thu Apr 03 2014 Simone Caronni <negativo17@gmail.com> - 7.0.2-1
e47e3f5
- Update to 7.0.2, drop upstreamed patches.
e47e3f5
457a0b7
* Tue Apr 01 2014 Simone Caronni <negativo17@gmail.com> - 7.0.1-2
457a0b7
- Add patch for Nagios plugin.
457a0b7
- Add missing requirement for Nagios plugin folder.
457a0b7
f0afcfd
* Tue Apr 01 2014 Simone Caronni <negativo17@gmail.com> - 7.0.1-1
f0afcfd
- Update to 7.0.1; remove Python.
f0afcfd
- Drop git patch.
f0afcfd
2354547
* Sun Mar 30 2014 Simone Caronni <negativo17@gmail.com> - 7.0.0-3
2354547
- Update git patch.
2354547
- Sort file sections.
2354547
230fff0
* Sun Mar 30 2014 Simone Caronni <negativo17@gmail.com> - 7.0.0-2
230fff0
- Backport changes from git for QT Tray monitor, Nagios plugin and configure
230fff0
  script.
230fff0
- Removed upstream patches.
230fff0
3eafafa
* Sun Mar 30 2014 Simone Caronni <negativo17@gmail.com> - 7.0.0-1
3eafafa
- Update to 7.0.0.
3eafafa
- Momentarily disable Nagios plugin and QT tray monitor as they don't build
3eafafa
  anymore.
3eafafa
65662da
* Tue Aug 06 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-17
65662da
- Fix dependencies for devel subpackage.
65662da
- Explicitly declare dependency also on libs-sql subpackage where required, so
65662da
  we can save one extra cpu cycle during the upgrade (...).
65662da
- Bat subpackage used to rely on files in %%_docdir for operation, move them
65662da
  elsewhere. Fixes also Fedora 20 unversioned %%_docdir feature.
65662da
- Make sure any package combination results in installed license files.
65662da
ea8caca
* Tue Aug 06 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-16
ea8caca
- Remove Fedora 17 conditionals, distribution EOL.
ea8caca
- Remove systemd-sysv dependency as per new packaging guidelines.
ea8caca
4f321c3
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2.13-15
4f321c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
4f321c3
f5cbacd
* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 5.2.13-14
f5cbacd
- Perl 5.18 rebuild
f5cbacd
06474f4
* Mon Jul 15 2013 Petr Hracek <phracek@redhat.com> - 5.2.13-13
06474f4
- make dependency of bacula packages on bacula-libs RHEL-7 rpmdiff (#881146)
06474f4
63bda35
* Thu Jun 27 2013 Petr Hracek <phracek@redhat.com> - 5.2.13-12
63bda35
- Correct systemd unitfiles permissions
63bda35
c0772e3
* Tue May 28 2013 Petr Hracek <phracek@redhat.com> - 5.2.13-11
c0772e3
- Fix for nonfree code (#967417)
c0772e3
6ed9acd
* Thu May 16 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-10
6ed9acd
- Add aarch64 patch (#925072).
fa942d0
- Add bpluginfo commmand.
6ed9acd
f0f03f2
* Tue Apr 16 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-9
f0f03f2
- Systemd service files cleanup, thanks Michal Schmidt (#952334)
f0f03f2
8bcad0a
* Mon Apr 08 2013 Petr Hracek <phracek@redhat.com> - 5.2.13-8
8bcad0a
- Correcting options and man pages (#948837)
8bcad0a
823c612
* Mon Apr 08 2013 Petr Hracek <phracek@redhat.com> - 5.2.13-7
823c612
- include /var/log/bacula/*.log in logwatch (#924797)
823c612
6dd1711
* Mon Mar 04 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-6
6dd1711
- Add mt-st requirement to storage package; update quick start docs.
6dd1711
e0efc06
* Tue Feb 26 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-5
e0efc06
- Improve documentation.
e0efc06
906e82a
* Mon Feb 25 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-4
906e82a
- Fix director reload command.
906e82a
- Adjust to 5.2.13 permission changes.
906e82a
021eba8
* Fri Feb 22 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-3
021eba8
- Renamed README to README.Redhat.
021eba8
20c451d
* Thu Feb 21 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-2
20c451d
- Removed bacula-checkconf stuff.
2e1584d
- Separated postgresql, sqlite3 and mysql how to from README.
20c451d
eff763c
* Wed Feb 20 2013 Simone Caronni <negativo17@gmail.com> - 5.2.13-1
eff763c
- Update to 5.2.13, drop upstreamed patch.
eff763c
- Remove Fedora 16 (EOL) checks.
eff763c
4eb05c1
* Sun Feb 10 2013 Rahul Sundaram <sundaram@fedoraproject.org> - 5.2.12-9
4eb05c1
- remove vendor tag from desktop file. https://fedorahosted.org/fpc/ticket/247
4eb05c1
d184bac
* Fri Feb 08 2013 Petr Hracek <phracek@redhat.com> - 5.2.12-8
d184bac
- Fix: (#881146) syntax error in update_postgresql_tables_10_to_11.in
d184bac
b2a44e5
* Mon Feb 04 2013 Petr Hracek <phracek@redhat.com> - 5.2.12-7
b2a44e5
- Fix (#905309) e_msg: Process /usr/sbin/bat was killed by signal 11 (SIGSEGV)
b2a44e5
da1e913
* Thu Jan 10 2013 Simone Caronni <negativo17@gmail.com> - 5.2.12-6
da1e913
- Added missing line in bacula-sd SysV init script.
da1e913
8e73d46
* Wed Jan 09 2013 Simone Caronni <negativo17@gmail.com> - 5.2.12-5
8e73d46
- Move unversioned libraries into the devel package (#889244).
8e73d46
dd59afd
* Wed Jan 09 2013 Simone Caronni <negativo17@gmail.com> - 5.2.12-4
dd59afd
- Updated SysV init script according to Fedora template:
dd59afd
  https://fedoraproject.org/wiki/Packaging:SysVInitScript
dd59afd
145c1df
* Wed Oct 17 2012 Simone Caronni <negativo17@gmail.com> - 5.2.12-3
145c1df
- Add sample-query.sql file to Director's docs.
145c1df
e66bd92
* Wed Oct 17 2012 Simone Caronni <negativo17@gmail.com> - 5.2.12-2
e66bd92
- Fix fedpkg checks. Requires fedpkg > 1.10:
e66bd92
  http://git.fedorahosted.org/cgit/fedpkg.git/commit/?id=11c46c06a3c9cc2f58d68aea964dd37dc028e349
e66bd92
- Change systemd requirements as per new package guidelines.
e66bd92
2e721e2
* Fri Sep 14 2012 Simone Caronni <negativo17@gmail.com> - 5.2.12-1
2e721e2
- Update to 5.2.12, containing only patches from 5.2.11-4.
2e721e2
7874639
* Fri Sep 14 2012 Simone Caronni <negativo17@gmail.com> - 5.2.11-4
7874639
- Add a sleep timer for RHEL init scripts restart as Debian does.
7874639
  Problems verified on the sd exiting too early on VMs and slow boxes.
7874639
40e02d4
* Thu Sep 13 2012 Simone Caronni <negativo17@gmail.com> - 5.2.11-3
40e02d4
- Introduce last minute critical patches.
40e02d4
c8ac0a0
* Thu Sep 13 2012 Simone Caronni <negativo17@gmail.com> - 5.2.11-2
c8ac0a0
- Do not remove user on common subpackage uninstall.
c8ac0a0
b410469
* Tue Sep 11 2012 Simone Caronni <negativo17@gmail.com> - 5.2.11-1
b410469
- Update to 5.2.11.
b410469
- Removed upstreamed patches.
9716ec6
- Updated bat patch.
9716ec6
- Removed useless docs.
b410469
2529f6c
* Tue Sep 11 2012 Simone Caronni <negativo17@gmail.com> - 5.2.10-7
2529f6c
- Add Fedora 18 systemd macros.
2529f6c
- Remove old distribution checks.
2529f6c
07887b2
* Wed Aug 29 2012 Simone Caronni <negativo17@gmail.com> - 5.2.10-6
07887b2
- Remove user definition during prep so they are not used during the install
07887b2
  phase (rhbz#852732).
07887b2
- Enforce permissions in default config files.
07887b2
07d3fd8
* Fri Jul 20 2012 Simone Caronni <negativo17@gmail.com> - 5.2.10-5
ac6894c
- Removed make_catalog_backup bash script, leave only the default perl one (rhbz#456612,665498).
07d3fd8
b09c1c9
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 5.2.10-4
b09c1c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b09c1c9
6ddbf50
* Mon Jul 16 2012 Simone Caronni <negativo17@gmail.com> - 5.2.10-3
6ddbf50
- Updated log path patch (rhbz#837706).
6ddbf50
217785f
* Tue Jul 10 2012 Simone Caronni <negativo17@gmail.com> - 5.2.10-2
3939b2b
- Add nss-lookup.target as required to service files (rhbz#838828).
3939b2b
- Fix bsmtp upstream bug sending mails to ipv4/ipv6 hosts.
217785f
1bd589a
* Mon Jul 02 2012 Simone Caronni <negativo17@gmail.com> - 5.2.10-1
1bd589a
- Update to 5.2.10.
1bd589a
61d9b5e
* Tue Jun 19 2012 Simone Caronni <negativo17@gmail.com> - 5.2.9-2
fce586b
- Remove _isa on BuildRequires.
bf11b44
- Remove useless code in SysV init scripts.
fce586b
154d0ad
* Tue Jun 12 2012 Simone Caronni <negativo17@gmail.com> - 5.2.9-1
154d0ad
- Update to 5.2.9, remove termlib patch.
154d0ad
cd32a5c
* Mon Jun 11 2012 Simone Caronni <negativo17@gmail.com> - 5.2.8-2
cd32a5c
- Fix console build on RHEL 5.
cd32a5c
9b2d74d
* Mon Jun 11 2012 Simone Caronni <negativo17@gmail.com> - 5.2.8-1
9b2d74d
- Update to 5.2.8.
9b2d74d
- Removed upstram xattr patch.
ddc6de9
- Added database backend detection to bacula-libs-sql for upgrades from
ddc6de9
  <= 5.0.3-28-fc16 and 5.2.6-1.fc17.
9b2d74d
6c1a0c5
* Fri Jun 08 2012 Simone Caronni <negativo17@gmail.com> - 5.2.7-4
6c1a0c5
- Make a note about mt-st and mtx (bz#829888).
6c1a0c5
- Update README.Fedora with current information.
6c1a0c5
- Fix bacula-sd group on Fedora and RHEL >= 6 (bz#829509).
6c1a0c5
0d818a8
* Wed Jun 06 2012 Simone Caronni <negativo17@gmail.com> - 5.2.7-3
0d818a8
- Final xattr patch from upstream for bz#819158.
ac1739c
- Switch alternatives to point to the unversioned system libraries.
ac1739c
  Pointed out by the closely related bug #829219.
0d818a8
80bfa76
* Mon Jun 04 2012 Simone Caronni <negativo17@gmail.com> - 5.2.7-2
80bfa76
- Remove python-devel test leftover.
80bfa76
- Updated bat build patch to add support for RHEL 6.
80bfa76
2fee6f8
* Mon Jun 04 2012 Simone Caronni <negativo17@gmail.com> - 5.2.7-1
2fee6f8
- Updated to 5.2.7, removed patches included upstream.
2fee6f8
- Removed python-devel patch, fix included in python package.
2fee6f8
- Replaced tabs with blanks in spec file (rpmlint).
2fee6f8
5663d98
* Mon May 28 2012 Simone Caronni <negativo17@gmail.com> - 5.2.6-6
5663d98
- Even if pulled in by dependencies, re-add explict BR on systemd-units.
5663d98
- Remove .gz suffix for man pages in file lists as per packaging guidelines.
5663d98
114d5db
* Mon May 28 2012 Simone Caronni <negativo17@gmail.com> - 5.2.6-5
114d5db
- Patch for bug #819158.
114d5db
- Updated hostname patch with official fix.
114d5db
- Sorted all BuildRequires and removed useless systemd-units.
114d5db
114d5db
* Wed May 23 2012 Simone Caronni <negativo17@gmail.com> - 5.2.6-4
275d7ea
- Added python config workaround for Fedora 16.
275d7ea
33a6de8
* Mon May 21 2012 Simone Caronni <negativo17@gmail.com> - 5.2.6-3
33a6de8
- Removed _install, _mkdir and _make macro.
eeddef5
- Added _isa to BuildRequires.
eeddef5
- Removed lzo-devel option for RHEL 4 (EOL).
33a6de8
964c499
* Fri Mar 16 2012 Simone Caronni <negativo17@gmail.com> - 5.2.6-2
964c499
- Move libbaccats and libbacsql into bacula-libs-sql package so only
964c499
  Director and Storage daemons pull in SQL dependencies:
964c499
  http://old.nabble.com/Standalone-client-question-td33495990.html
964c499
470ee2d
* Wed Feb 22 2012 Simone Caronni <negativo17@gmail.com> - 5.2.6-1
470ee2d
- Update to 5.2.6.
470ee2d
b882a1b
* Fri Feb 10 2012 Simone Caronni <negativo17@gmail.com> - 5.2.5-3
b882a1b
- WX and gnome console should be upgraded from bconsole, not
b882a1b
  libraries.
b882a1b
3b2d941
* Mon Jan 30 2012 Simone Caronni <negativo17@gmail.com> - 5.2.5-2
19abfa2
- License has changed to AGPLv3 in 5.0.3. Thanks Erinn.
3b2d941
- Fix ldconfig/alternatives symlinks on removal of packages and
3b2d941
  upgrades from recent f15/f16 changes.
19abfa2
f5b1393
* Thu Jan 26 2012 Simone Caronni <negativo17@gmail.com> - 5.2.5-1
f5b1393
- Update to 5.2.5.
f5b1393
- Change the alternative library to the base shared object name
f5b1393
  so the preference set is not lost when changing releases.
f5b1393
420ad7d
* Mon Jan 23 2012 Simone Caronni <negativo17@gmail.com> - 5.2.4-4
420ad7d
- Remove old BuildRequires for bacula-docs.
420ad7d
65d849b
* Fri Jan 20 2012 Simone Caronni <negativo17@gmail.com> - 5.2.4-3
65d849b
- Fix for rhbz#728693.
65d849b
e48b5c7
* Fri Jan 20 2012 Simone Caronni <negativo17@gmail.com> - 5.2.4-2
e48b5c7
- Close bugs rhbz#708712, rhbz#556669, rhbz#726147
e48b5c7
e95438f
* Wed Jan 18 2012 Simone Caronni <negativo17@gmail.com> - 5.2.4-1
e95438f
- Update to 5.2.4, rework libbaccats installation as they have
e95438f
  fixed the soname library problem.
e95438f
61d9b5e
* Thu Jan 12 2012 Simone Caronni <negativo17@gmail.com> - 5.2.3-8
57f5003
- Fix tray monitor desktop file.
57f5003
d4f2ea5
* Wed Jan 11 2012 Simone Caronni <negativo17@gmail.com> - 5.2.3-7
d4f2ea5
- Split off bacula-docs subpackage.
d4f2ea5
3edd26e
* Thu Jan 05 2012 Simone Caronni <negativo17@gmail.com> - 5.2.3-6
3edd26e
- Make docs conditional at build for testing.
3b6cb34
- Add devel subpackage.
3edd26e
bf9089a
* Tue Jan 03 2012 Simone Caronni <negativo17@gmail.com> - 5.2.3-5
bf9089a
- Trim changelog.
bf9089a
- Merge bacula-director backends and move libbacats alternatives
bf9089a
  to bacula-libs.
bf9089a
- Move bscan to bacula-storage now that is dependent only on
bf9089a
  bacula-libs.
f5d09cc
- Added README.Fedora.
bf9089a
1a9c4f1
* Tue Dec 20 2011 Simone Caronni <negativo17@gmail.com> - 5.2.3-4
1a9c4f1
- Changing uid from 33 per previous discussion, static uid
1a9c4f1
  already allocated is 133:
1a9c4f1
  "cat /usr/share/doc/setup-2.8.36/uidgid | grep bacula"
1a9c4f1
e004908
* Mon Dec 19 2011 Simone Caronni <negativo17@gmail.com> - 5.2.3-3
e004908
- Remove fedora-usermgmt entirely, see thread at:
e004908
  http://lists.fedoraproject.org/pipermail/packaging/2011-December/008034.html
e004908
4dac1ea
* Mon Dec 19 2011 Simone Caronni <negativo17@gmail.com> - 5.2.3-2
4dac1ea
- Remove leftover users when removing bacula-common.
4dac1ea
- Allow building "--without fedora" to avoid RHEL dependency on EPEL:
4dac1ea
  http://fedoraproject.org/wiki/PackageUserCreation
4dac1ea
d55721f
* Mon Dec 19 2011 Simone Caronni <negativo17@gmail.com> - 5.2.3-1
d55721f
- Updated to 5.2.3.
baa4b32
- Remove fedora-usermgmt from libs Requires section.
d55721f
51ec14d
* Sun Dec 11 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-11
51ec14d
- Add bat html docs so the help button works.
51ec14d
- Minor packaging changes.
88081c4
- Default permissions on bconsole and bat.
f45ba58
- Use localhost as default on config files instead of patching fake
f45ba58
  example.com hostnames.
367ff02
- Add QT tray monitor.
51ec14d
0e75ff5
* Sat Dec 10 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-10
0e75ff5
- Added patch for mysql 5.5.18 from Oliver Falk.
0e75ff5
9e56892
* Wed Dec 07 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-9
9e56892
- Add sample-query.sql as config file.
b43f212
- Small log changes.
9e56892
c3b2c9b
* Wed Dec 07 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-8
c3b2c9b
- Fixed building on RHEL/CentOS 4.
8390fc1
- Split out libs package to remove dependency on bacula-common for
8390fc1
  bconsole, bat and check_bacula.
e6d3589
- Fix typo in post scriptlet for director-sqlite.
c3b2c9b
a9c6a94
* Tue Dec 06 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-7
a9c6a94
- Added libcap for POSIX.1e capabilities in bacula-fd (5.0.0 feature).
a9c6a94
- Allow systemd files to read options set in the sysconfig
a9c6a94
  configuration files like SysV scripts to enable capabilities.
a9c6a94
- Set capabilities as optional for now.
a9c6a94
d49b54f
* Mon Dec 05 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-6
d49b54f
- Removed leftover files and small rpmlint fixes.
d49b54f
- Additional file moves between packages.
f5dea45
- Enabled LZO compression (5.2.1 feature).
d49b54f
6872dfc
* Mon Dec 05 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-5
6872dfc
- Remove redundant user/group in service files.
d6447bb
- Reduce patching for what can be passed through configure.
905079f
- Remove dsolink patch, not needed anymore.
6872dfc
61d9b5e
* Fri Dec 02 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-4
900706a
- Rename storage-common to storage and make it provide storage-common.
5fd2356
- Move bscan to director-common.
5fd2356
- Move storage scripts to storage.
1adcaf0
- Add html docs.
fae5422
- Install dummy catalogue library and mark it as ghost.
900706a
900706a
* Thu Dec 01 2011 Simone Caronni <negativo17@gmail.com> - 5.2.2-3
900706a
- Add missing conditional for bat in the build section.
900706a
- Make bat require qt4-devel on build (rhel 5 fix).
900706a
- Bumped requirement for qt >= 4.6.2 for 5.2.2.
900706a
- Renamed bacula-config.patch to bacula-5.2.2-config.patch as it
900706a
  always changes.
900706a
- Fix installation of bat and check_bacula binaries. Enabling
900706a
  libtool for bpipe-fd.so produces binaries under .libs.
900706a
- Removed fedora-usermgmt requirement for director-common.
900706a
- Removed examples from docs and make them "noarch".
900706a
- Fix bacula-console requirements.
900706a
- Fix nagios plugin summary.
900706a
- Removed checkconf functions from SysV init files and replace
900706a
  the call with the script used in systemd service files. Make
900706a
  the script available in all builds.
900706a
- Make docs NoArch where supported.
900706a
0e92b95
* Thu Dec  1 2011 Tom Callaway <spot@fedoraproject.org> - 5.2.2-2
0e92b95
- resolve broken dependency issues
0e92b95
16d9a36
* Tue Nov 29 2011 Tom Callaway <spot@fedoraproject.org> - 5.2.2-1
16d9a36
- Update to 5.2.2
16d9a36
- minor spec cleanups, conditionalized support for systemd
16d9a36
16d9a36
* Fri Nov 04 2011 Simone Caronni <negativo17@gmail.com> - 5.2.1-1
16d9a36
- Updated to 5.2.1.
16d9a36
- Reworked and removed some patches for 5.2.1 codebase.
16d9a36
- Reworked bat installation.
16d9a36
- Removed sqlite2 support.
16d9a36
- Removed all the fancy database backend rebuilding.
16d9a36
- Disabled libtool for bpipe-fd.so.
16d9a36
- Passed plugins dir as libdir/bacula.
16d9a36
- Added sql libs to alternatives.
16d9a36
- Disabled traymonitor.
16d9a36
- Minor fixes to spec file, rpmlint fixes.
16d9a36
- Nagios patch for Enterprise FDs.
16d9a36
- Removed all gui/web stuff.
16d9a36
- Removed a lot of comments.
16d9a36
- Conditional on Fedora 11 / RHEL 6 for bat build.
16d9a36
- Obsolete bacula-sysconfdir.
16d9a36
- Removed bwxconsole.