spot / rpms / bacula

Forked from rpms/bacula 10 months ago
Clone
6be8d09
%define working_dir	/var/spool/bacula
6be8d09
%define script_dir	/usr/libexec/bacula
6be8d09
#%define rescue_version	2.0.0
6be8d09
%define docs_version	%{version}
6be8d09
%define gui_version	%{version}
6be8d09
%define config_dir	%{_sysconfdir}/bacula
6be8d09
6be8d09
Summary: Cross platform network backup for Linux, Unix, Mac and Windows
6be8d09
Name: bacula
fb2effc
Version: 3.0.3
0913641
Release: 4%{?dist}
1192071
# See LICENSE for details
1192071
License: GPLv2 with exceptions
6be8d09
Group: System Environment/Daemons
6be8d09
Source0: http://download.sourceforge.net/bacula/bacula-%{version}.tar.gz
a9e9456
Source1: http://download.sourceforge.net/bacula/bacula-docs-%{docs_version}.tar.bz2
6be8d09
#Source2: http://download.sourceforge.net/bacula/bacula-rescue-%{rescue_version}.tar.gz
6be8d09
Source3: bacula-gconsole.desktop
6be8d09
Source4: bacula-wxconsole.desktop
6be8d09
Source5: bacula-traymonitor.desktop
6be8d09
Source6: bacula.logrotate
6be8d09
Source7: bacula-fd.init
6be8d09
Source8: bacula-dir.init
6be8d09
Source9: bacula-sd.init
6be8d09
#Source10: http://download.sourceforge.net/bacula/bacula-gui-%{gui_version}.tar.gz
6be8d09
#Source11: bacula-web.apache
d4ba8db
Source12: bacula-bat.desktop
73b9166
Source13: bacula-traymonitor.desktop.consolehelper
6be8d09
Patch0: bacula-director-configuration.patch
6be8d09
Patch1: bacula-config.patch
a9e9456
#Patch2: bacula-wxconsole.patch
6be8d09
Patch3: bacula-pamd.patch
a9e9456
#Patch4: 2.0.3-ampm.patch
a9e9456
#Patch5: 2.0.3-maxbyteslist.patch
a9e9456
#Patch6: 2.0.3-maxwaittime.patch
a9e9456
#Patch7: 2.0.3-scheduler-next-hour.patch
a9e9456
#Patch8: 2.0.3-verify.patch
a9e9456
#Patch9: 2.0.3-tls-disconnect.patch
6be8d09
#Patch10: bacula-web-smarty.patch
6f00458
#Patch11: bacula-2.4.3-orphaned-jobs.patch
6f00458
#Patch12: bacula-2.4.3-python26.patch
f3d7374
Patch13: bacula-3.0.2-openssl.patch
6be8d09
URL: http://www.bacula.org
6be8d09
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
6be8d09
BuildRequires: openssl-devel, atk-devel, ncurses-devel, pango-devel, perl
6be8d09
BuildRequires: libstdc++-devel, libxml2-devel, zlib-devel, pkgconfig
2b828f6
BuildRequires: gtk2-devel, libgnomeui-devel, GConf2-devel
6be8d09
BuildRequires: glibc-devel, ORBit2-devel, libart_lgpl-devel, freetype-devel
6be8d09
BuildRequires: libbonobo-devel, libbonoboui-devel, bonobo-activation-devel
6be8d09
BuildRequires: mysql-devel, cdrecord, postgresql-devel, wxGTK-devel
6be8d09
BuildRequires: desktop-file-utils, python-devel, sqlite-devel, sed,
6be8d09
BuildRequires: libacl-devel, latex2html, tetex-latex, tetex, ghostscript
d4ba8db
BuildRequires: dvipdfm, qwt-devel
6be8d09
1192071
%if 0%{?fedora} >= 7
6be8d09
BuildRequires: tcp_wrappers-devel
6be8d09
%else
6be8d09
BuildRequires: tcp_wrappers
6be8d09
%endif
6be8d09
6be8d09
%description
6be8d09
Bacula is a set of programs that allow you to manage the backup,
6be8d09
recovery, and verification of computer data across a network of
6be8d09
different computers. It is based on a client/server architecture and is
6be8d09
efficient and relatively easy to use, while offering many advanced
6be8d09
storage management features that make it easy to find and recover lost
6be8d09
or damaged files.
6be8d09
6be8d09
6be8d09
%package director-mysql
6be8d09
Summary: Bacula Director with MySQL database support
6be8d09
Group: System Environment/Daemons
6be8d09
Provides: bacula-director = %{version}-%{release}
6be8d09
Requires: bacula-director-common = %{version}-%{release}
6be8d09
Requires: bacula-common = %{version}-%{release}
6be8d09
6be8d09
%description director-mysql
6be8d09
Bacula is a set of programs that allow you to manage the backup,
6be8d09
recovery, and verification of computer data across a network of
6be8d09
different computers. It is based on a client/server architecture.
6be8d09
6be8d09
This package contains the bacula director, the server which controls 
6be8d09
your backup run.
6be8d09
This director has support for the MySQL database.
6be8d09
6be8d09
6be8d09
%package director-sqlite
6be8d09
Summary: Bacula Director with sqlite database support
6be8d09
Group: System Environment/Daemons
6be8d09
Provides: bacula-director = %{version}-%{release}
6be8d09
Requires: bacula-director-common = %{version}-%{release}
6be8d09
Requires: bacula-common = %{version}-%{release}
6be8d09
6be8d09
%description director-sqlite
6be8d09
Bacula is a set of programs that allow you to manage the backup,
6be8d09
recovery, and verification of computer data across a network of
6be8d09
different computers. It is based on a client/server architecture.
6be8d09
6be8d09
This package contains the bacula director, the server which controls 
6be8d09
your backup run.
6be8d09
This director has support for the sqlite database.
6be8d09
6be8d09
6be8d09
%package director-postgresql
6be8d09
Summary: Bacula Director with PostgresSQL database support
6be8d09
Group: System Environment/Daemons
6be8d09
Provides: bacula-director = %{version}-%{release}
6be8d09
Requires: bacula-director-common = %{version}-%{release}
6be8d09
Requires: bacula-common = %{version}-%{release}
6be8d09
6be8d09
%description director-postgresql
6be8d09
Bacula is a set of programs that allow you to manage the backup,
6be8d09
recovery, and verification of computer data across a network of
6be8d09
different computers. It is based on a client/server architecture.
6be8d09
6be8d09
This package contains the bacula director, the server which controls 
6be8d09
your backup run.
6be8d09
This director has support for the PostgresSQL database.
6be8d09
6be8d09
6be8d09
%package director-common
6be8d09
Summary: Common Bacula Director files
6be8d09
Group: System Environment/Daemons
6be8d09
Requires: bacula-director = %{version}-%{release}
6be8d09
Requires: bacula-common = %{version}-%{release}
96bf1dd
Requires: logwatch
6be8d09
Requires(pre): fedora-usermgmt
6be8d09
Requires(postun): fedora-usermgmt
6be8d09
6be8d09
%description director-common
6be8d09
Bacula is a set of programs that allow you to manage the backup,
6be8d09
recovery, and verification of computer data across a network of
6be8d09
different computers. It is based on a client/server architecture.
6be8d09
6be8d09
This package contains the common director files, which are shared 
6be8d09
between all database backends. You have to select a possible
6be8d09
database backend though, which provides the needed bacula-director
6be8d09
dependency. Please choose from bacula-director-mysql,
6be8d09
bacula-director-sqlite or bacula-director-postgresql.
6be8d09
6be8d09
6be8d09
%package client
6be8d09
Summary: Bacula backup client
6be8d09
Group: System Environment/Daemons
6be8d09
Requires: bacula-common = %{version}-%{release}
6be8d09
Requires(post): /sbin/chkconfig
6be8d09
Requires(preun): /sbin/chkconfig
6be8d09
Requires(preun): /sbin/service
6be8d09
Requires(postun): /sbin/service
6be8d09
6be8d09
%description client
6be8d09
Bacula is a set of programs that allow you to manage the backup,
6be8d09
recovery, and verification of computer data across a network of
6be8d09
different computers. It is based on a client/server architecture.
6be8d09
6be8d09
This package contains the bacula client, the daemon running on the 
6be8d09
system to be backed up.
6be8d09
6be8d09
6be8d09
%package storage-common
6be8d09
Summary: Common Bacula storage daemon files
6be8d09
Group: System Environment/Daemons
6be8d09
Requires: bacula-storage = %{version}-%{release}
6be8d09
Requires: bacula-common = %{version}-%{release}
6be8d09
6be8d09
%description storage-common
6be8d09
Bacula is a set of programs that allow you to manage the backup,
6be8d09
recovery, and verification of computer data across a network of
6be8d09
different computers. It is based on a client/server architecture.
6be8d09
6be8d09
This package contains the storage daemon, the daemon responsible for 
6be8d09
writing the data received from the clients onto tape drives or other 
6be8d09
mass storage devices.
6be8d09
6be8d09
6be8d09
%package storage-mysql
6be8d09
Summary: MySQL Bacula storage daemon files
6be8d09
Group: System Environment/Daemons
6be8d09
Provides: bacula-storage = %{version}-%{release}
6be8d09
Requires: bacula-storage-common = %{version}-%{release}
6be8d09
Requires: bacula-common = %{version}-%{release}
6be8d09
6be8d09
%description storage-mysql
6be8d09
Bacula is a set of programs that allow you to manage the backup,
6be8d09
recovery, and verification of computer data across a network of
6be8d09
different computers. It is based on a client/server architecture.
6be8d09
6be8d09
This package contains the storage daemon, the daemon responsible for 
6be8d09
writing the data received from the clients onto tape drives or other 
6be8d09
mass storage devices.
6be8d09
6be8d09
6be8d09
%package storage-sqlite
6be8d09
Summary: SQLite Bacula storage daemon files
6be8d09
Group: System Environment/Daemons
6be8d09
Provides: bacula-storage = %{version}-%{release}
6be8d09
Requires: bacula-storage-common = %{version}-%{release}
6be8d09
Requires: bacula-common = %{version}-%{release}
6be8d09
6be8d09
%description storage-sqlite
6be8d09
Bacula is a set of programs that allow you to manage the backup,
6be8d09
recovery, and verification of computer data across a network of
6be8d09
different computers. It is based on a client/server architecture.
6be8d09
6be8d09
This package contains the storage daemon, the daemon responsible for 
6be8d09
writing the data received from the clients onto tape drives or other 
6be8d09
mass storage devices.
6be8d09
6be8d09
6be8d09
%package storage-postgresql
6be8d09
Summary: Common Bacula storage daemon files
6be8d09
Group: System Environment/Daemons
6be8d09
Provides: bacula-storage = %{version}-%{release}
6be8d09
Requires: bacula-storage-common = %{version}-%{release}
6be8d09
Requires: bacula-common = %{version}-%{release}
6be8d09
6be8d09
%description storage-postgresql
6be8d09
Bacula is a set of programs that allow you to manage the backup,
6be8d09
recovery, and verification of computer data across a network of
6be8d09
different computers. It is based on a client/server architecture.
6be8d09
6be8d09
This package contains the storage daemon, the daemon responsible for 
6be8d09
writing the data received from the clients onto tape drives or other 
6be8d09
mass storage devices.
6be8d09
6be8d09
6be8d09
%package common
6be8d09
Summary: Common Bacula utilities
6be8d09
Group: System Environment/Daemons
96bf1dd
Requires: bacula-sysconfdir = %{version}-%{release}
6be8d09
Requires(pre): fedora-usermgmt
6be8d09
Requires(postun): fedora-usermgmt
6be8d09
6be8d09
%description common
6be8d09
Bacula is a set of programs that allow you to manage the backup,
6be8d09
recovery, and verification of computer data across a network of
6be8d09
different computers. It is based on a client/server architecture.
6be8d09
6be8d09
6be8d09
%package console
6be8d09
Summary: Bacula management console
6be8d09
Group: System Environment/Daemons
4b4f45a
Requires: bacula-common = %{version}-%{release}
6be8d09
6be8d09
%description console
6be8d09
Bacula is a set of programs that allow you to manage the backup,
6be8d09
recovery, and verification of computer data across a network of
6be8d09
different computers. It is based on a client/server architecture.
6be8d09
6be8d09
This package contains the command-line management console for the bacula 
6be8d09
backup system.
6be8d09
6be8d09
6be8d09
%package console-gnome
6be8d09
Summary: Bacula console for the Gnome desktop environment
6be8d09
Group: System Environment/Daemons
4b4f45a
Requires: bacula-common = %{version}-%{release}
6be8d09
Requires: usermode
6be8d09
6be8d09
%description console-gnome
6be8d09
Bacula is a set of programs that allow you to manage the backup,
6be8d09
recovery, and verification of computer data across a network of
6be8d09
different computers. It is based on a client/server architecture.
6be8d09
6be8d09
This package contains the gnome version of the bacula management console
6be8d09
d4ba8db
%package console-bat
d4ba8db
Summary: Bacula bat console
d4ba8db
Group: System Environment/Daemons
4b4f45a
Requires: bacula-common = %{version}-%{release}
d4ba8db
Requires: usermode
d4ba8db
d4ba8db
%description console-bat
d4ba8db
Bacula is a set of programs that allow you to manage the backup,
d4ba8db
recovery, and verification of computer data across a network of
d4ba8db
different computers. It is based on a client/server architecture.
d4ba8db
d4ba8db
This package contains the bat version of the bacula management console
d4ba8db
6be8d09
6be8d09
%package console-wxwidgets
6be8d09
Summary: Bacula console using the wx widgets toolkit
6be8d09
Group: System Environment/Daemons
4b4f45a
Requires: bacula-common = %{version}-%{release}
6be8d09
Requires: usermode
6be8d09
6be8d09
%description console-wxwidgets
6be8d09
Bacula is a set of programs that allow you to manage the backup,
6be8d09
recovery, and verification of computer data across a network of
6be8d09
different computers. It is based on a client/server architecture.
6be8d09
6be8d09
This package contains the wxWidgets version of the bacula management 
6be8d09
console.
6be8d09
6be8d09
96bf1dd
%package sysconfdir
96bf1dd
Summary: /etc/bacula dependency for Bacula
96bf1dd
Group: System Environment/Daemons
96bf1dd
96bf1dd
%description sysconfdir
96bf1dd
Bacula is a set of programs that allow you to manage the backup,
96bf1dd
recovery, and verification of computer data across a network of
96bf1dd
different computers. It is based on a client/server architecture.
96bf1dd
96bf1dd
This package provides the /etc/bacula directory in order to satisfy
96bf1dd
certain scripted checks.
96bf1dd
6be8d09
%package traymonitor
6be8d09
Summary: Bacula monitor for the Gnome and KDE system tray
6be8d09
Group: System Environment/Daemons
bfc12c0
Requires: bacula-common = %{version}-%{release}
6be8d09
6be8d09
%description traymonitor
6be8d09
Bacula is a set of programs that allow you to manage the backup,
6be8d09
recovery, and verification of computer data across a network of
6be8d09
different computers. It is based on a client/server architecture.
6be8d09
6be8d09
This package contains the Gnome- and KDE-compatible tray monitor to 
6be8d09
monitor your bacula server.
6be8d09
6be8d09
6be8d09
#%package web
6be8d09
#Summary: Bacula Web Interface for monitoring the Backup status
6be8d09
#Group: System Environment/Daemons
6be8d09
#Conflicts: bacula-storage-sqlite
6be8d09
#Requires: php, webserver, php-pear-DB, php-gd, php-Smarty
6be8d09
6be8d09
#%description web
6be8d09
#Bacula is a set of programs that allow you to manage the backup,
6be8d09
#recovery, and verification of computer data across a network of
6be8d09
#different computers. It is based on a client/server architecture.
6be8d09
6be8d09
#This package contains the bacula-web PHP application, which is
6be8d09
#a management level tool for reporting Backup job status.
6be8d09
6be8d09
6be8d09
%package docs
6be8d09
Summary: Bacula documentation
6be8d09
Group: Documentation
6be8d09
6be8d09
%description docs
6be8d09
Bacula is a set of programs that allow you to manage the backup,
6be8d09
recovery, and verification of computer data across a network of
6be8d09
different computers. It is based on a client/server architecture.
6be8d09
6be8d09
This package contains the documentation for most of the bacula-packages.
6be8d09
6be8d09
6be8d09
%prep
6be8d09
%setup -q -c -n bacula-%{version}
6be8d09
%setup -q -a 1 -D -T
6be8d09
#%setup -q -a 2 -D -T
6be8d09
#%setup -q -a 10 -D -T
6be8d09
6be8d09
# Patching and other source preparation
6be8d09
pushd bacula-%{version}
6be8d09
%patch0 -p1
6be8d09
%patch1 -p1
a9e9456
#%patch2 -p1
6be8d09
%patch3 -p1
a9e9456
#%patch4 -p0
a9e9456
#%patch5 -p0
a9e9456
#%patch6 -p0
a9e9456
#%patch7 -p0
a9e9456
#%patch8 -p0
a9e9456
#%patch9 -p0
6f00458
#%patch11 -p0
6f00458
#%patch12 -p0
de180db
%patch13 -p2 -b .openssl
6be8d09
6be8d09
# Remove execution permissions from files we're packaging as docs later on
6be8d09
find examples -type f | xargs chmod -x
6be8d09
find updatedb -type f | xargs chmod -x
6be8d09
popd
6be8d09
6be8d09
# Remove cvs left-overs
6be8d09
find -name '.cvsignore' | xargs rm -f 
6be8d09
6be8d09
# Fix perms of c files to silent rpmlint
6be8d09
find -type f -name '*.c' | xargs chmod -x 
6be8d09
find -type f -name '*.h' | xargs chmod -x 
6be8d09
6be8d09
# GUI Stuff is postponed for later
6be8d09
#pushd bacula-gui-%{gui_version}
6be8d09
#%patch10 -p0
6be8d09
#popd
6be8d09
6be8d09
# We are building the source several times, each with a different storage backend
6be8d09
mkdir bacula-mysql bacula-postgresql bacula-sqlite
6be8d09
6be8d09
%build
6be8d09
# Shell function to configure and build a Bacula tree
6be8d09
build() {
6be8d09
cp -rl ../bacula-%{version}/* .
2b828f6
export CFLAGS=-I%{_includedir}/ncurses
2b828f6
export CPPFLAGS=-I%{_includedir}/ncurses
6be8d09
%configure \
6be8d09
	--sysconfdir=%{_sysconfdir}/bacula \
6be8d09
	--with-dir-user=bacula \
6be8d09
	--with-dir-group=bacula \
6be8d09
	--with-sd-user=bacula \
6be8d09
	--with-sd-group=bacula \
6be8d09
	--with-fd-user=root \
6be8d09
	--with-fd-group=root \
6be8d09
	--with-dir-password=@@DIR_PASSWORD@@ \
6be8d09
	--with-fd-password=@@FD_PASSWORD@@ \
6be8d09
	--with-sd-password=@@SD_PASSWORD@@ \
6be8d09
	--with-mon-dir-password=@@MON_DIR_PASSWORD@@ \
6be8d09
	--with-mon-fd-password=@@MON_FD_PASSWORD@@ \
6be8d09
	--with-mon-sd-password=@@MON_SD_PASSWORD@@ \
6be8d09
	--with-working-dir=%{working_dir} \
6be8d09
	--with-scriptdir=%{script_dir} \
6be8d09
	--with-smtp-host=localhost \
6be8d09
	--with-subsys-dir=%{_localstatedir}/lock/subsys \
6be8d09
	--with-pid-dir=%{_localstatedir}/run \
6be8d09
	--enable-conio \
6be8d09
	--enable-largefile \
6be8d09
	--enable-gnome \
a9e9456
	--enable-bwx-console \
6be8d09
	--enable-tray-monitor \
6be8d09
	--enable-build-dird \
6be8d09
	--enable-build-stored \
6be8d09
	--with-openssl \
6be8d09
	--with-tcp-wrappers \
6be8d09
	--with-python \
6be8d09
	--enable-smartalloc \
6be8d09
	--with-x \
d4ba8db
	--enable-bat \
d4ba8db
	--with-qwt=/usr/lib \
441582c
	--disable-libtool \
6be8d09
	$*
6be8d09
# Scratch this, it is trouble
6be8d09
#	--with-readline \
6be8d09
6be8d09
if test $? != 0; then 
6be8d09
  tail -500 config.log
6be8d09
  : configure failed
6be8d09
  exit 1
6be8d09
fi
6be8d09
6be8d09
%{__make} %{?_smp_mflags}
6be8d09
6be8d09
}				
6be8d09
6be8d09
# Build sqlite director
6be8d09
pushd bacula-sqlite
6be8d09
%if 0%{?fedora}%{?rhel}
6be8d09
	%if 0%{?fedora}
663f781
		%if 0%{fedora} >= 5
6be8d09
			%define	sqlite_suffix 3
6be8d09
			build --with-sqlite3
6be8d09
		%else
6be8d09
			build --with-sqlite
6be8d09
		%endif
6be8d09
	%endif
6be8d09
	%if 0%{?rhel}
663f781
		%if 0%{rhel} >=  5
6be8d09
			%define	sqlite_suffix 3
6be8d09
			build --with-sqlite3
6be8d09
		%else
6be8d09
			build --with-sqlite
6be8d09
		%endif
6be8d09
	%endif
6be8d09
%else
6be8d09
	echo 'Neither %%{fedora} nor %%{rhel} are defined.'
6be8d09
	echo 'Please call rpmbuild with at least --define "fedora 7" or --define "rhel 5"'
6be8d09
	echo 'depending on your release version you are building on.'
6be8d09
	exit 1
6be8d09
%endif
6be8d09
popd
6be8d09
6be8d09
# Build MySQL director
6be8d09
pushd bacula-mysql
6be8d09
	build --with-mysql
6be8d09
popd
6be8d09
6be8d09
# Build PostgreSQL director
6be8d09
pushd bacula-postgresql
6be8d09
	build --with-postgresql
6be8d09
popd
6be8d09
6be8d09
# Build the docs
6be8d09
pushd bacula-docs-%{docs_version}
6be8d09
 %configure --with-bacula=%{_builddir}/bacula-%{version}/bacula-%{version}
6be8d09
 make
6be8d09
popd
6be8d09
6be8d09
%install
6be8d09
rm -rf %{buildroot}
6be8d09
6be8d09
pushd bacula-sqlite
6be8d09
	make install DESTDIR=%{buildroot}
6be8d09
	mv %{buildroot}%{_sbindir}/bacula-dir  %{buildroot}%{_sbindir}/bacula-dir.sqlite
6be8d09
	mv %{buildroot}%{_sbindir}/dbcheck  %{buildroot}%{_sbindir}/dbcheck.sqlite
6be8d09
	mv %{buildroot}%{_sbindir}/bcopy  %{buildroot}%{_sbindir}/bcopy.sqlite
6be8d09
	mv %{buildroot}%{_sbindir}/bscan  %{buildroot}%{_sbindir}/bscan.sqlite
6be8d09
6be8d09
	for script in create_bacula_database drop_bacula_database drop_bacula_tables \
6be8d09
			grant_bacula_privileges make_bacula_tables make_catalog_backup \
6be8d09
			update_bacula_tables; do
6be8d09
		mv %{buildroot}%{_libexecdir}/bacula/${script} %{buildroot}%{_libexecdir}/bacula/${script}.sqlite
6be8d09
	done
6be8d09
popd
6be8d09
6be8d09
pushd bacula-mysql
6be8d09
	make install DESTDIR=%{buildroot}
6be8d09
	mv %{buildroot}%{_sbindir}/bacula-dir  %{buildroot}%{_sbindir}/bacula-dir.mysql
6be8d09
	mv %{buildroot}%{_sbindir}/dbcheck  %{buildroot}%{_sbindir}/dbcheck.mysql
6be8d09
	mv %{buildroot}%{_sbindir}/bcopy  %{buildroot}%{_sbindir}/bcopy.mysql
6be8d09
	mv %{buildroot}%{_sbindir}/bscan  %{buildroot}%{_sbindir}/bscan.mysql
6be8d09
6be8d09
	for script in create_bacula_database drop_bacula_database drop_bacula_tables \
6be8d09
			grant_bacula_privileges make_bacula_tables make_catalog_backup \
6be8d09
			update_bacula_tables; do
6be8d09
		mv %{buildroot}%{_libexecdir}/bacula/${script} %{buildroot}%{_libexecdir}/bacula/${script}.mysql
6be8d09
	done
6be8d09
popd
6be8d09
6be8d09
pushd bacula-postgresql
6be8d09
	make install DESTDIR=%{buildroot}
6be8d09
	mv %{buildroot}%{_sbindir}/bacula-dir  %{buildroot}%{_sbindir}/bacula-dir.postgresql
6be8d09
	mv %{buildroot}%{_sbindir}/dbcheck  %{buildroot}%{_sbindir}/dbcheck.postgresql
6be8d09
	mv %{buildroot}%{_sbindir}/bcopy  %{buildroot}%{_sbindir}/bcopy.postgresql
6be8d09
	mv %{buildroot}%{_sbindir}/bscan  %{buildroot}%{_sbindir}/bscan.postgresql
6be8d09
6be8d09
	for script in create_bacula_database drop_bacula_database drop_bacula_tables \
6be8d09
			grant_bacula_privileges make_bacula_tables make_catalog_backup \
6be8d09
			update_bacula_tables; do
6be8d09
		mv %{buildroot}%{_libexecdir}/bacula/${script} %{buildroot}%{_libexecdir}/bacula/${script}.postgresql
6be8d09
	done
6be8d09
popd
6be8d09
6be8d09
pushd bacula-docs-%{docs_version}
6be8d09
 # No install target anymore, we'll include the stuff directly in the %%files section
6be8d09
 #	make install DESTDIR=%{buildroot}
6be8d09
popd
6be8d09
6be8d09
# GUI is not being packaged yet
6be8d09
#pushd bacula-gui-%{gui_version}/bacula-web
6be8d09
#	mkdir -p %{buildroot}%{_datadir}/bacula-web
6be8d09
#	cp -r -p * %{buildroot}%{_datadir}/bacula-web
6be8d09
#	for f in ChangeLog CONTACT COPYING README TODO; do
6be8d09
#		rm -f %{buildroot}%{_datadir}/bacula-web/$f
6be8d09
#	done
6be8d09
#	rm -f %{buildroot}%{_datadir}/bacula-web/tsmarty2c.php
6be8d09
#	rm -rf %{buildroot}%{_datadir}/bacula-web/external_packages/smarty
6be8d09
#	mv %{buildroot}%{_datadir}/bacula-web/configs/bacula.conf %{buildroot}%{_sysconfdir}/bacula/bacula-web.conf
6be8d09
#	ln -sf /etc/bacula/bacula-web.conf %{buildroot}%{_datadir}/bacula-web/configs/bacula.conf
6be8d09
#	install -D -m 644 %{SOURCE11} %{buildroot}%{_sysconfdir}/httpd/conf.d/bacula-web.conf
6be8d09
#	mkdir -p %{buildroot}%{_localstatedir}/cache/bacula
6be8d09
#popd
6be8d09
6be8d09
6be8d09
# Rename some manpages
6be8d09
# Not needed right-now
6be8d09
#mv %{buildroot}%{_mandir}/man1/bacula-tray-monitor.1 %{buildroot}%{_mandir}/man1/tray-monitor.1
6be8d09
6be8d09
6be8d09
# Fix some wrapper braindeadness
6be8d09
rm -f %{buildroot}%{_libexecdir}/bacula/bconsole
6be8d09
rm -f %{buildroot}%{_libexecdir}/bacula/gconsole
a9e9456
mv %{buildroot}%{_sbindir}/bwx-console %{buildroot}%{_sbindir}/bwxconsole
a9e9456
mv %{buildroot}%{_sysconfdir}/bacula/bwx-console.conf %{buildroot}%{_sysconfdir}/bacula/bwxconsole.conf
6be8d09
6be8d09
6be8d09
# Desktop Integration for the console apps and the traymonitor
6be8d09
mkdir -p %{buildroot}%{_bindir}
6be8d09
install -m 644 -D bacula-sqlite/scripts/bacula.png %{buildroot}%{_datadir}/pixmaps/bacula.png
a9e9456
install -m 644 -D bacula-sqlite/scripts/bgnome-console.pamd %{buildroot}%{_sysconfdir}/pam.d/bgnome-console
a9e9456
install -m 644 -D bacula-sqlite/scripts/bgnome-console.console_apps %{buildroot}%{_sysconfdir}/security/console.apps/bgnome-console
6be8d09
install -m 644 -D bacula-sqlite/src/wx-console/wxwin16x16.xpm %{buildroot}%{_datadir}/pixmaps/wxwin16x16.xpm
6be8d09
install -m 644 -D bacula-sqlite/scripts/wxconsole.pamd %{buildroot}%{_sysconfdir}/pam.d/wxconsole
6be8d09
install -m 644 -D bacula-sqlite/scripts/wxconsole.desktop.consolehelper %{buildroot}%{_sysconfdir}/security/console.apps/wxconsole
8d8c9fd
#bat.pamd is broken.
8d8c9fd
install -m 644 -D bacula-sqlite/scripts/bgnome-console.pamd %{buildroot}%{_sysconfdir}/pam.d/bat
8d8c9fd
install -m 644 -D bacula-sqlite/scripts/bat.desktop.consolehelper %{buildroot}%{_sysconfdir}/security/console.apps/bat
6be8d09
install -m 644 -D bacula-sqlite/src/tray-monitor/generic.xpm %{buildroot}%{_datadir}/pixmaps/bacula-tray-monitor.xpm
d4ba8db
install -m 644 -D bacula-sqlite/src/qt-console/images/bat_icon.png %{buildroot}%{_datadir}/pixmaps/bat_icon.png
73b9166
install -m 644 -D bacula-sqlite/scripts/bgnome-console.pamd %{buildroot}%{_sysconfdir}/pam.d/bacula-tray-monitor
73b9166
install -m 644 %{SOURCE13} %{buildroot}%{_sysconfdir}/security/console.apps/bacula-tray-monitor
d4ba8db
73b9166
ln -sf consolehelper %{buildroot}%{_bindir}/bgnome-console
6be8d09
ln -sf consolehelper %{buildroot}%{_bindir}/wxconsole
8d8c9fd
ln -sf consolehelper %{buildroot}%{_bindir}/bat
73b9166
ln -sf consolehelper %{buildroot}%{_bindir}/bacula-tray-monitor
d4ba8db
install -m 755 bacula-sqlite/src/qt-console/bat %{buildroot}%{_sbindir}
6be8d09
6be8d09
desktop-file-install --vendor="fedora" --dir=%{buildroot}%{_datadir}/applications %{SOURCE3}
6be8d09
desktop-file-install --vendor="fedora" --dir=%{buildroot}%{_datadir}/applications %{SOURCE4}
6be8d09
desktop-file-install --vendor="fedora" --dir=%{buildroot}%{_datadir}/applications %{SOURCE5}
d4ba8db
desktop-file-install --vendor="fedora" --dir=%{buildroot}%{_datadir}/applications %{SOURCE12}
6be8d09
6be8d09
6be8d09
# logrotate
6be8d09
mkdir -p %{buildroot}%{_localstatedir}/log/bacula
6be8d09
install -m 644 -D %{SOURCE6} %{buildroot}%{_sysconfdir}/logrotate.d/bacula
6be8d09
6be8d09
6be8d09
# And logwatch
6be8d09
install -m 755 -D bacula-sqlite/scripts/logwatch/bacula %{buildroot}%{_sysconfdir}/logwatch/scripts/services/bacula
fb2effc
install -m 755 -D bacula-sqlite/scripts/logwatch/applybaculadate %{buildroot}%{_sysconfdir}/logwatch/scripts/shared/applybaculadate
6be8d09
install -m 644 -D bacula-sqlite/scripts/logwatch/logfile.bacula.conf %{buildroot}%{_sysconfdir}/logwatch/conf/logfiles/bacula.conf
6be8d09
install -m 644 -D bacula-sqlite/scripts/logwatch/services.bacula.conf %{buildroot}%{_sysconfdir}/logwatch/conf/services/bacula.conf
6be8d09
6be8d09
6be8d09
# Initscripts
6be8d09
install -m 755 -D %{SOURCE7}  %{buildroot}%{_initrddir}/bacula-fd
6be8d09
install -m 755 -D %{SOURCE8}  %{buildroot}%{_initrddir}/bacula-dir
6be8d09
install -m 755 -D %{SOURCE9}  %{buildroot}%{_initrddir}/bacula-sd
6be8d09
6be8d09
6be8d09
# Wipe backup files from the multiple make install calls
6be8d09
rm -vf %{buildroot}%{_sysconfdir}/bacula/*.{new,old}
6be8d09
rm -vf %{buildroot}%{_libexecdir}/bacula/*.{new,old}
6be8d09
6be8d09
6be8d09
# Create the spooling
6be8d09
mkdir -p %{buildroot}%{_localstatedir}/spool/bacula
6be8d09
6be8d09
6be8d09
# Move some files around
6be8d09
mv %{buildroot}%{_libexecdir}/bacula/query.sql %{buildroot}%{_sysconfdir}/bacula/query.sql
6be8d09
6be8d09
6be8d09
# Nuke the scripts we do not need
6be8d09
rm -vf %{buildroot}%{_libexecdir}/bacula/{bacula,bacula-ctl-*,startmysql,stopmysql} 
6be8d09
6be8d09
6be8d09
# Fix up some perms so rpmlint does not complain too much
6be8d09
chmod 755 %{buildroot}%{_sbindir}/*
6be8d09
chmod 755 %{buildroot}%{_libexecdir}/bacula/*
6be8d09
chmod 644 %{buildroot}%{_libexecdir}/bacula/btraceback.*
6be8d09
441582c
# Remove extra docs
441582c
rm -rf %{buildroot}%{_datadir}/doc/bacula/
441582c
6be8d09
%clean
6be8d09
rm -rf %{buildroot}
6be8d09
6be8d09
6be8d09
%post director-mysql
6be8d09
/usr/sbin/alternatives --install /usr/sbin/bacula-dir bacula-dir /usr/sbin/bacula-dir.mysql 50 \
6be8d09
	--slave /usr/sbin/dbcheck bacula-dbcheck /usr/sbin/dbcheck.mysql \
3e4a04a
	--slave /usr/libexec/bacula/create_bacula_database create_bacula_database /usr/libexec/bacula/create_bacula_database.mysql \
3e4a04a
	--slave /usr/libexec/bacula/drop_bacula_database drop_bacula_database /usr/libexec/bacula/drop_bacula_database.mysql \
3e4a04a
	--slave /usr/libexec/bacula/drop_bacula_tables drop_bacula_tables /usr/libexec/bacula/drop_bacula_tables.mysql \
3e4a04a
	--slave /usr/libexec/bacula/grant_bacula_privileges grant_bacula_privileges /usr/libexec/bacula/grant_bacula_privileges.mysql \
3e4a04a
	--slave /usr/libexec/bacula/make_bacula_tables make_bacula_tables /usr/libexec/bacula/make_bacula_tables.mysql \
3e4a04a
	--slave /usr/libexec/bacula/make_catalog_backup make_catalog_backup /usr/libexec/bacula/make_catalog_backup.mysql \
3e4a04a
	--slave /usr/libexec/bacula/update_bacula_tables update_bacula_tables /usr/libexec/bacula/update_bacula_tables.mysql
6be8d09
6be8d09
6be8d09
%post director-sqlite
6be8d09
/usr/sbin/alternatives --install /usr/sbin/bacula-dir bacula-dir /usr/sbin/bacula-dir.sqlite 40 \
6be8d09
	--slave /usr/sbin/dbcheck bacula-dbcheck /usr/sbin/dbcheck.sqlite \
3e4a04a
	--slave /usr/libexec/bacula/create_bacula_database create_bacula_database /usr/libexec/bacula/create_bacula_database.sqlite \
3e4a04a
	--slave /usr/libexec/bacula/drop_bacula_database drop_bacula_database /usr/libexec/bacula/drop_bacula_database.sqlite \
3e4a04a
	--slave /usr/libexec/bacula/drop_bacula_tables drop_bacula_tables /usr/libexec/bacula/drop_bacula_tables.sqlite \
3e4a04a
	--slave /usr/libexec/bacula/grant_bacula_privileges grant_bacula_privileges /usr/libexec/bacula/grant_bacula_privileges.sqlite \
3e4a04a
	--slave /usr/libexec/bacula/make_bacula_tables make_bacula_tables /usr/libexec/bacula/make_bacula_tables.sqlite \
3e4a04a
	--slave /usr/libexec/bacula/make_catalog_backup make_catalog_backup /usr/libexec/bacula/make_catalog_backup.sqlite \
3e4a04a
	--slave /usr/libexec/bacula/update_bacula_tables update_bacula_tables /usr/libexec/bacula/update_bacula_tables.sqlite
6be8d09
6be8d09
6be8d09
%post director-postgresql
6be8d09
/usr/sbin/alternatives --install /usr/sbin/bacula-dir bacula-dir /usr/sbin/bacula-dir.postgresql 60 \
6be8d09
	--slave /usr/sbin/dbcheck bacula-dbcheck /usr/sbin/dbcheck.postgresql \
3e4a04a
	--slave /usr/libexec/bacula/create_bacula_database create_bacula_database /usr/libexec/bacula/create_bacula_database.postgresql \
3e4a04a
	--slave /usr/libexec/bacula/drop_bacula_database drop_bacula_database /usr/libexec/bacula/drop_bacula_database.postgresql \
3e4a04a
	--slave /usr/libexec/bacula/drop_bacula_tables drop_bacula_tables /usr/libexec/bacula/drop_bacula_tables.postgresql \
3e4a04a
	--slave /usr/libexec/bacula/grant_bacula_privileges grant_bacula_privileges /usr/libexec/bacula/grant_bacula_privileges.postgresql \
3e4a04a
	--slave /usr/libexec/bacula/make_bacula_tables make_bacula_tables /usr/libexec/bacula/make_bacula_tables.postgresql \
3e4a04a
	--slave /usr/libexec/bacula/make_catalog_backup make_catalog_backup /usr/libexec/bacula/make_catalog_backup.postgresql \
3e4a04a
	--slave /usr/libexec/bacula/update_bacula_tables update_bacula_tables /usr/libexec/bacula/update_bacula_tables.postgresql
6be8d09
6be8d09
6be8d09
%preun director-mysql
3c5f05e
if [ "$1" = 0 ]; then
3c5f05e
	/usr/sbin/alternatives --remove bacula-dir /usr/sbin/bacula-dir.mysql
3c5f05e
fi
6be8d09
6be8d09
6be8d09
%preun director-sqlite
3c5f05e
if [ "$1" = 0 ]; then
3c5f05e
	/usr/sbin/alternatives --remove bacula-dir /usr/sbin/bacula-dir.sqlite
3c5f05e
fi
6be8d09
6be8d09
6be8d09
%preun director-postgresql
3c5f05e
if [ "$1" = 0 ]; then
3c5f05e
	/usr/sbin/alternatives --remove bacula-dir /usr/sbin/bacula-dir.postgresql
3c5f05e
fi
6be8d09
6be8d09
%pre common
6be8d09
/usr/sbin/fedora-groupadd 33 -r bacula &>/dev/null || :
6be8d09
/usr/sbin/fedora-useradd  33 -r -s /sbin/nologin -d /var/spool/bacula -M \
6be8d09
	-c 'Bacula Backup System' -g bacula bacula &>/dev/null || :
6be8d09
6be8d09
6be8d09
%postun common
bfc12c0
Dropped due to Guidelines
bfc12c0
#test "$1" != 0 || /usr/sbin/fedora-userdel  bacula &>/dev/null || :
bfc12c0
#test "$1" != 0 || /usr/sbin/fedora-groupdel bacula &>/dev/null || :
6be8d09
6be8d09
6be8d09
%post storage-mysql
6be8d09
/usr/sbin/alternatives --install /usr/sbin/bcopy bacula-sd /usr/sbin/bcopy.mysql 50 \
6be8d09
	--slave /usr/sbin/dbcheck bacula-bscan /usr/sbin/bscan.mysql 
6be8d09
6be8d09
6be8d09
%post storage-sqlite
6be8d09
/usr/sbin/alternatives --install /usr/sbin/bcopy bacula-sd /usr/sbin/bcopy.sqlite 40 \
6be8d09
	--slave /usr/sbin/dbcheck bacula-bscan /usr/sbin/bscan.sqlite
6be8d09
6be8d09
6be8d09
%post storage-postgresql
6be8d09
/usr/sbin/alternatives --install /usr/sbin/bcopy bacula-sd /usr/sbin/bcopy.postgresql 60 \
6be8d09
	--slave /usr/sbin/dbcheck bacula-bscan /usr/sbin/bscan.postgresql
6be8d09
6be8d09
6be8d09
%preun storage-mysql
3c5f05e
if [ "$1" = 0 ]; then
3c5f05e
	/usr/sbin/alternatives --remove bacula-sd /usr/sbin/bcopy.mysql
3c5f05e
fi
6be8d09
6be8d09
%preun storage-sqlite
3c5f05e
if [ "$1" = 0 ]; then
3c5f05e
	/usr/sbin/alternatives --remove bacula-sd /usr/sbin/bcopy.sqlite
3c5f05e
fi
6be8d09
6be8d09
%preun storage-postgresql
3c5f05e
if [ "$1" = 0 ]; then
3c5f05e
	/usr/sbin/alternatives --remove bacula-sd /usr/sbin/bcopy.postgresql
3c5f05e
fi
6be8d09
6be8d09
%post client
6be8d09
/sbin/chkconfig --add bacula-fd
6be8d09
6be8d09
6be8d09
%preun client
3c5f05e
if [ "$1" = 0 ]; then
6be8d09
	/sbin/service bacula-fd stop >/dev/null 2>&1 || :
6be8d09
	/sbin/chkconfig --del bacula-fd
6be8d09
fi
6be8d09
6be8d09
6be8d09
%postun client
6be8d09
if [ "$1" -ge "1" ]; then
6be8d09
	/sbin/service bacula-fd condrestart >/dev/null 2>&1 || :
6be8d09
fi
6be8d09
6be8d09
6be8d09
%post director-common
6be8d09
/sbin/chkconfig --add bacula-dir
6be8d09
6be8d09
6be8d09
%preun director-common
3c5f05e
if [ "$1" = 0 ]; then
6be8d09
	/sbin/service bacula-dir stop >/dev/null 2>&1 || :
6be8d09
	/sbin/chkconfig --del bacula-dir
6be8d09
fi
6be8d09
6be8d09
6be8d09
%postun director-common
6be8d09
if [ "$1" -ge "1" ]; then
6be8d09
	/sbin/service bacula-dir condrestart >/dev/null 2>&1 || :
6be8d09
fi
6be8d09
6be8d09
6be8d09
%post storage-common
6be8d09
/sbin/chkconfig --add bacula-sd
6be8d09
6be8d09
6be8d09
%preun storage-common
3c5f05e
if [ "$1" = 0 ]; then
6be8d09
	/sbin/service bacula-sd stop >/dev/null 2>&1 || :
6be8d09
	/sbin/chkconfig --del bacula-sd
6be8d09
fi
6be8d09
6be8d09
6be8d09
%postun storage-common
6be8d09
if [ "$1" -ge "1" ]; then
6be8d09
	/sbin/service bacula-sd condrestart >/dev/null 2>&1 || :
6be8d09
fi
6be8d09
6be8d09
96bf1dd
# For this braindeadness, please see
96bf1dd
# https://bugzilla.redhat.com/show_bug.cgi?id=473627
96bf1dd
%files sysconfdir
96bf1dd
%defattr(-,root,root,-)
96bf1dd
%dir %{_sysconfdir}/bacula
96bf1dd
96bf1dd
6be8d09
%files common
a9e9456
%defattr(-,root,root,-)
6be8d09
%doc bacula-%{version}/AUTHORS bacula-%{version}/ChangeLog bacula-%{version}/COPYING bacula-%{version}/LICENSE
6be8d09
%doc bacula-%{version}/README bacula-%{version}/SUPPORT bacula-%{version}/VERIFYING
6be8d09
%doc bacula-%{version}/examples/
6be8d09
%config(noreplace) %{_sysconfdir}/logrotate.d/bacula
6be8d09
%dir %{_libexecdir}/bacula
6be8d09
%{_sbindir}/bsmtp
6be8d09
%{_sbindir}/btraceback
6be8d09
%{_libexecdir}/bacula/btraceback.dbx
6be8d09
%{_libexecdir}/bacula/btraceback.gdb
6be8d09
%{_mandir}/man1/bsmtp.1*
6be8d09
%{_mandir}/man8/bacula.8*
6be8d09
%{_mandir}/man8/btraceback.8*
6be8d09
%dir %attr(750, bacula, bacula) %{_localstatedir}/log/bacula
6be8d09
%dir %attr(750, bacula, bacula) %{_localstatedir}/spool/bacula
441582c
%{_sbindir}/bacula
441582c
%{_libdir}/bpipe-fd.so
441582c
/usr/libexec/bacula/mtx-changer.conf
6be8d09
6be8d09
%files client
6be8d09
%defattr(-,root,root,-)
6be8d09
%{_sbindir}/bacula-fd
6be8d09
%{_initrddir}/bacula-fd
6be8d09
%config(noreplace) %{_sysconfdir}/bacula/bacula-fd.conf
6be8d09
%{_mandir}/man8/bacula-fd.8*
6be8d09
6be8d09
6be8d09
%files console
6be8d09
%defattr(-,root,root,-)
6be8d09
%{_sbindir}/bconsole
8113da1
%attr(640,root,bacula) %config(noreplace) %{_sysconfdir}/bacula/bconsole.conf
6be8d09
%{_mandir}/man8/bconsole.8*
6be8d09
6be8d09
6be8d09
%files console-gnome
6be8d09
%defattr(-,root,root,-)
a9e9456
%config %{_sysconfdir}/security/console.apps/bgnome-console
a9e9456
%config %{_sysconfdir}/pam.d/bgnome-console
8113da1
%attr(640,root,bacula) %config(noreplace) %{_sysconfdir}/bacula/bgnome-console.conf
73b9166
%{_bindir}/bgnome-console
a9e9456
%{_sbindir}/bgnome-console
a9e9456
%{_mandir}/man1/bacula-bgnome-console.1.gz
a9e9456
#%{_mandir}/man1/bacula-bconsole-gnome.1*
6be8d09
%{_datadir}/applications/fedora-bacula-gconsole.desktop
6be8d09
%{_datadir}/pixmaps/bacula.png
6be8d09
d4ba8db
%files console-bat
d4ba8db
%defattr(-,root,root,-)
8d8c9fd
%config %{_sysconfdir}/security/console.apps/bat
8d8c9fd
%config %{_sysconfdir}/pam.d/bat
d4ba8db
%attr(640,root,bacula) %config(noreplace) %{_sysconfdir}/bacula/bat.conf
8d8c9fd
%{_bindir}/bat
d4ba8db
%{_sbindir}/bat
d4ba8db
%{_mandir}/man1/bat.1.gz
d4ba8db
%{_datadir}/applications/fedora-bacula-bat.desktop
d4ba8db
%{_datadir}/pixmaps/bat_icon.png
d4ba8db
6be8d09
6be8d09
%files console-wxwidgets
6be8d09
%defattr(-,root,root,-)
6be8d09
%config %{_sysconfdir}/security/console.apps/wxconsole
6be8d09
%config %{_sysconfdir}/pam.d/wxconsole
8113da1
%attr(640,root,bacula) %config(noreplace) %{_sysconfdir}/bacula/bwxconsole.conf
6be8d09
%{_bindir}/wxconsole
a9e9456
%{_sbindir}/bwxconsole
a9e9456
%{_mandir}/man1/bacula-bwxconsole.1*
6be8d09
%{_datadir}/applications/fedora-bacula-wxconsole.desktop
6be8d09
%{_datadir}/pixmaps/wxwin16x16.xpm
6be8d09
6be8d09
6be8d09
%files director-common
6be8d09
%defattr(-,root,root,-)
a9e9456
%doc bacula-%{version}/updatedb/
6be8d09
%config(noreplace) %{_sysconfdir}/bacula/bacula-dir.conf
6be8d09
%config(noreplace) %{_sysconfdir}/bacula/query.sql
6be8d09
%config %{_sysconfdir}/logwatch/conf/logfiles/bacula.conf
6be8d09
%config %{_sysconfdir}/logwatch/conf/services/bacula.conf
6be8d09
%{_sysconfdir}/logwatch/scripts/services/bacula
fb2effc
%{_sysconfdir}/logwatch/scripts/shared/applybaculadate
6be8d09
%{_initrddir}/bacula-dir
6be8d09
%{_sbindir}/bregex
6be8d09
%{_sbindir}/bwild
6be8d09
%{_mandir}/man8/dbcheck.8*
6be8d09
%{_mandir}/man8/bacula-dir.8*
6be8d09
%{_libexecdir}/bacula/delete_catalog_backup
6be8d09
6be8d09
6be8d09
%files director-mysql
6be8d09
%defattr(-,root,root,-)
6be8d09
%{_sbindir}/bacula-dir.mysql
6be8d09
%{_sbindir}/dbcheck.mysql
6be8d09
%{_libexecdir}/bacula/create_mysql_database
6be8d09
%{_libexecdir}/bacula/drop_mysql_database
6be8d09
%{_libexecdir}/bacula/drop_mysql_tables
6be8d09
%{_libexecdir}/bacula/grant_mysql_privileges
6be8d09
%{_libexecdir}/bacula/make_mysql_tables
6be8d09
%{_libexecdir}/bacula/update_mysql_tables
6be8d09
%{_libexecdir}/bacula/create_bacula_database.mysql
6be8d09
%{_libexecdir}/bacula/drop_bacula_database.mysql
6be8d09
%{_libexecdir}/bacula/drop_bacula_tables.mysql
6be8d09
%{_libexecdir}/bacula/grant_bacula_privileges.mysql
6be8d09
%{_libexecdir}/bacula/make_bacula_tables.mysql
6be8d09
%{_libexecdir}/bacula/make_catalog_backup.mysql
6be8d09
%{_libexecdir}/bacula/update_bacula_tables.mysql
6be8d09
6be8d09
6be8d09
6be8d09
%files director-sqlite
6be8d09
%defattr(-,root,root,-)
6be8d09
%{_sbindir}/bacula-dir.sqlite
6be8d09
%{_sbindir}/dbcheck.sqlite
6be8d09
# DANGER Will Robinson. Bacula has versioned sqlite filenames
6be8d09
%{_libexecdir}/bacula/create_sqlite%{?sqlite_suffix}_database
6be8d09
%{_libexecdir}/bacula/drop_sqlite%{?sqlite_suffix}_database
6be8d09
%{_libexecdir}/bacula/drop_sqlite%{?sqlite_suffix}_tables
6be8d09
%{_libexecdir}/bacula/grant_sqlite%{?sqlite_suffix}_privileges
6be8d09
%{_libexecdir}/bacula/make_sqlite%{?sqlite_suffix}_tables
6be8d09
%{_libexecdir}/bacula/update_sqlite%{?sqlite_suffix}_tables
6be8d09
%{_libexecdir}/bacula/create_bacula_database.sqlite
6be8d09
%{_libexecdir}/bacula/drop_bacula_database.sqlite
6be8d09
%{_libexecdir}/bacula/drop_bacula_tables.sqlite
6be8d09
%{_libexecdir}/bacula/grant_bacula_privileges.sqlite
6be8d09
%{_libexecdir}/bacula/make_bacula_tables.sqlite
6be8d09
%{_libexecdir}/bacula/make_catalog_backup.sqlite
6be8d09
%{_libexecdir}/bacula/update_bacula_tables.sqlite
6be8d09
6be8d09
6be8d09
%files director-postgresql
6be8d09
%defattr(-,root,root,-)
6be8d09
%{_sbindir}/bacula-dir.postgresql
6be8d09
%{_sbindir}/dbcheck.postgresql
6be8d09
%{_libexecdir}/bacula/create_postgresql_database
6be8d09
%{_libexecdir}/bacula/drop_postgresql_database
6be8d09
%{_libexecdir}/bacula/drop_postgresql_tables
6be8d09
%{_libexecdir}/bacula/grant_postgresql_privileges
6be8d09
%{_libexecdir}/bacula/make_postgresql_tables
6be8d09
%{_libexecdir}/bacula/update_postgresql_tables
6be8d09
%{_libexecdir}/bacula/create_bacula_database.postgresql
6be8d09
%{_libexecdir}/bacula/drop_bacula_database.postgresql
6be8d09
%{_libexecdir}/bacula/drop_bacula_tables.postgresql
6be8d09
%{_libexecdir}/bacula/grant_bacula_privileges.postgresql
6be8d09
%{_libexecdir}/bacula/make_bacula_tables.postgresql
6be8d09
%{_libexecdir}/bacula/make_catalog_backup.postgresql
6be8d09
%{_libexecdir}/bacula/update_bacula_tables.postgresql
6be8d09
6be8d09
6be8d09
%files storage-common
6be8d09
%defattr(-,root,root,-)
6be8d09
%{_sbindir}/bacula-sd
6be8d09
%{_sbindir}/bextract
6be8d09
%{_sbindir}/bls
6be8d09
%{_sbindir}/btape
6be8d09
%config(noreplace) %{_sysconfdir}/bacula/bacula-sd.conf
6be8d09
%{_initrddir}/bacula-sd
6be8d09
%{_libexecdir}/bacula/disk-changer
6be8d09
%{_libexecdir}/bacula/dvd-handler
6be8d09
%{_libexecdir}/bacula/mtx-changer
6be8d09
%{_mandir}/man8/bcopy.8*
6be8d09
%{_mandir}/man8/bextract.8*
6be8d09
%{_mandir}/man8/bls.8*
6be8d09
%{_mandir}/man8/bscan.8*
6be8d09
%{_mandir}/man8/btape.8*
6be8d09
%{_mandir}/man8/bacula-sd.8*
6be8d09
6be8d09
6be8d09
%files storage-mysql
6be8d09
%defattr(-,root,root,-)
6be8d09
%{_sbindir}/bcopy.mysql
6be8d09
%{_sbindir}/bscan.mysql
6be8d09
6be8d09
6be8d09
%files storage-sqlite
6be8d09
%defattr(-,root,root,-)
6be8d09
%{_sbindir}/bcopy.sqlite
6be8d09
%{_sbindir}/bscan.sqlite
6be8d09
6be8d09
6be8d09
%files storage-postgresql
6be8d09
%defattr(-,root,root,-)
6be8d09
%{_sbindir}/bcopy.postgresql
6be8d09
%{_sbindir}/bscan.postgresql
6be8d09
6be8d09
6be8d09
%files traymonitor
6be8d09
%defattr(-,root,root,-)
73b9166
%{_bindir}/bacula-tray-monitor
6be8d09
%{_sbindir}/bacula-tray-monitor
8113da1
%attr(640,root,bacula) %config(noreplace) %{_sysconfdir}/bacula/tray-monitor.conf
73b9166
%config %{_sysconfdir}/security/console.apps/bacula-tray-monitor
73b9166
%config %{_sysconfdir}/pam.d/bacula-tray-monitor
6be8d09
%{_mandir}/man1/bacula-tray-monitor.1*
6be8d09
%{_datadir}/applications/fedora-bacula-traymonitor.desktop
6be8d09
%{_datadir}/pixmaps/bacula-tray-monitor.xpm
6be8d09
6be8d09
6be8d09
%files docs
a9e9456
%defattr(-,root,root,-)
441582c
%doc bacula-docs-%{docs_version}/manuals/en/install/install.pdf
441582c
%doc bacula-docs-%{docs_version}/manuals/en/problems/problems.pdf
441582c
%doc bacula-docs-%{docs_version}/manuals/en/console/console.pdf
441582c
%doc bacula-docs-%{docs_version}/manuals/en/utility/utility.pdf
441582c
%doc bacula-docs-%{docs_version}/manuals/en/concepts/concepts.pdf
441582c
%doc bacula-docs-%{docs_version}/manuals/en/catalog/catalog.pdf
441582c
%doc bacula-docs-%{docs_version}/manuals/en/developers/developers.pdf
6be8d09
6be8d09
6be8d09
#%files web
6be8d09
#%defattr(-,root,root,-)
6be8d09
#%doc bacula-gui-%{gui_version}/bacula-web/CONTACT bacula-gui-%{gui_version}/bacula-web/COPYING
6be8d09
#%doc bacula-gui-%{gui_version}/bacula-web/README bacula-gui-%{gui_version}/bacula-web/TODO
6be8d09
#%{_datadir}/bacula-web/
6be8d09
#%config(noreplace) %{_sysconfdir}/bacula/bacula-web.conf
6be8d09
#%config(noreplace) %{_sysconfdir}/httpd/conf.d/bacula-web.conf
6be8d09
#%dir %attr(755, apache, apache) %{_localstatedir}/cache/bacula-web
6be8d09
6be8d09
6be8d09
%changelog
fb2effc
* Thu Dec 03 2009 Jon Ciesla 
fb2effc
- Fix applybaculadate location.
fb2effc
fb2effc
* Tue Dec 01 2009 Jon Ciesla 
fb2effc
- Add applybaculadate, BZ 540861.
fb2effc
fb2effc
* Tue Nov 24 2009 Kevin Kofler <Kevin@tigcc.ticalc.org> - 3.0.3-2
fb2effc
- Rebuild for Qt 4.6.0 RC1 in F13 (was built against Beta 1 with unstable ABI)
fb2effc
fb2effc
* Mon Oct 19 2009 Jon Ciesla 
fb2effc
- New upstream, 3.0.3.
fb2effc
f3d7374
* Sat Aug 22 2009 Tomas Mraz <tmraz@redhat.com> - 3.0.2-4
0913641
- rebuilt with new openssl
0913641
bfc12c0
* Mon Aug 10 2009 Jon Ciesla 
bfc12c0
- Dropped user/group removal per guidelines.
bfc12c0
- Added -common dep to traymonitor.
bfc12c0
73b9166
* Thu Jul 30 2009 Jon Ciesla 
73b9166
- gnome-console consolehelper correction. BZ 426790.
73b9166
- add tray-monitor to consolehelper. BZ 426790
73b9166
addf830
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.2-1
addf830
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
addf830
4b4f45a
* Tue Jul 21 2009 Jon Ciesla 
4b4f45a
- Update to new upstream, 3.0.2.
4b4f45a
- Put full paths in desktop files. BZ 426790.
4b4f45a
- Moved console requires from sysconfdir to common BZ 505755.
4b4f45a
03d58d4
* Thu Apr 30 2009 Jon Ciesla 
03d58d4
- Update to new upstream, 3.0.1.
03d58d4
441582c
* Tue Apr 21 2009 Jon Ciesla 
441582c
- Update to new upstream, 3.0.0.
441582c
2a80879
* Mon Feb 23 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.4-3
2a80879
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
2a80879
7a6d762
* Fri Jan 23 2009 Jon Ciesla 
7a6d762
- Rebuild against mysql 5.1.
7a6d762
6f00458
* Mon Jan 05 2009 Jon Ciesla 
6f00458
- Update to new upstream, 2.4.4.
6f00458
- Dropped orphaned jobs patch, python 2.6 patch, applied upstream.
6f00458
0bc5362
* Mon Dec 15 2008 Jon Ciesla 
0bc5362
- Patched to support Python 2.6, BZ 476547.
0bc5362
8d8c9fd
* Fri Dec 12 2008 Jon Ciesla 
8d8c9fd
- Fix consolehelper behaviour for bat.
8d8c9fd
44fbe91
* Wed Dec 10 2008 Jon Ciesla 
44fbe91
- Re-diffed fuzzy bacula-director-configuration and bacula-config patches.
44fbe91
96bf1dd
* Mon Dec 1 2008 Andreas Thienemann <andreas@bawue.net> - 2.4.3-4
96bf1dd
- Fixed dependency "issues" #473627 by adding the sysconfdir subpackage.
96bf1dd
a967c79
* Mon Nov 17 2008 Jon Ciesla <limb@jcomserv.net> - 2.4.3-3
a967c79
- Added upstream orphaned jobs patch.
ccbef3b
- Fixed logrotate file.
a967c79
d4ba8db
* Mon Nov 10 2008 Jon Ciesla <limb@jcomserv.net> - 2.4.3-2
d4ba8db
- Added bat.  BZ 470800.
d4ba8db
5e58535
* Wed Oct 22 2008 Jon Ciesla <limb@jcomserv.net> - 2.4.3-1
5e58535
- Update to 2.4.3.
5e58535
3c5f05e
* Tue Sep 09 2008 Jon Ciesla <limb@jcomserv.net> - 2.4.2-2
3c5f05e
- Logrotate fix. BZ 457894.
3c5f05e
- Alternatives fix. BZ 458432.
3c5f05e
4dd05c4
* Thu Jul 31 2008 Jon Ciesla <limb@jcomserv.net> - 2.4.2-1
4dd05c4
- Update to 2.4.2.
4dd05c4
663f781
* Wed Jul 30 2008 Andreas Thienemann <athienem@redhat.com> - 2.2.8-2
663f781
- Fixed %%{fedora} comparision, making bacula-sqlite build on rawhide
663f781
a9e9456
* Fri Jul 25 2008 Jon Ciesla <limb@jcomserv.net> - 2.2.8-1
a9e9456
- Update to 2.2.8. BZ 446461.
a9e9456
- Dropped director and storage DB-server hard Reqs. BZ 426788.
a9e9456
- .desktop fixes.  BZ 450278, 426789.
a9e9456
- Updated config patch.
a9e9456
- Dropped wxconsole patch, applied upstream.
a9e9456
- Updated pamd patch.
a9e9456
- Dropped ampm patch, applied upstream.
a9e9456
- Dropped maxbyteslist patch, N/A.
a9e9456
- Dropped maxwaittime patch, applied upstream.
a9e9456
- Dropped scheduler-next-hour patch, applied upstream.
a9e9456
- Dropped verify patch, applied upstream.
a9e9456
- Dropped tls-disconnect patch, applied upstream.
8113da1
- Fix for 426791.
8113da1
- Introduced patch fuzz workaround, will fix.
a9e9456
1192071
* Mon Jul  7 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.0.3-14
1192071
- fix conditional comparison
1192071
- fix license tag
1192071
20a7595
* Mon Jan 07 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 2.0.3-13
20a7595
- add BR: dvipdfm
20a7595
f68a224
* Thu Dec 06 2007 Release Engineering <rel-eng at fedoraproject dot org> - 2.0.3-12
f68a224
 - Rebuild for deps
f68a224
2b828f6
* Wed Sep 5 2007 Andreas Thienemann <andreas@bawue.net> - 2.0.3-11
2b828f6
- Remove spooldir in client, fixing #251879
2b828f6
- Remove dependency on libtermcap, fixing #251158
2b828f6
c84732b
* Wed Aug 29 2007 Fedora Release Engineering <rel-eng at fedoraproject dot org> - 2.0.3-10
c84732b
- Rebuild for selinux ppc32 issue.
c84732b
3e4a04a
* Wed Jul 25 2007 Andreas Thienemann <andreas@bawue.net> 2.0.3-9
3e4a04a
- Corrected the %%post alternatives calls. Fixing #249560.
3e4a04a
6be8d09
* Wed Jul 19 2007 Andreas Thienemann <andreas@bawue.net> 2.0.3-8
6be8d09
- Moved some files around in the %%files section and refactored
6be8d09
  spec parts a bit
6be8d09
- Fixed up the catalog-backup scripts by including them in the
6be8d09
  alternatives system
6be8d09
- Applied tls patch fixing some tls disconnection issues.
6be8d09
6be8d09
* Thu Jul 18 2007 Andreas Thienemann <andreas@bawue.net> 2.0.3-7
6be8d09
- Minor specchanges, mostly typos in the comments
6be8d09
- Incorporated minor changes from dgilmore's review.
6be8d09
6be8d09
* Fri Jul 13 2007 Andreas Thienemann <andreas@bawue.net> 2.0.3-6
6be8d09
- Fixing %%preun scripts. Thx to Dan for spotting this
6be8d09
6be8d09
* Fri Jul 13 2007 Andreas Thienemann <andreas@bawue.net> 2.0.3-5
6be8d09
- Fixed provides and requires
6be8d09
6be8d09
* Wed Jul 11 2007 Andreas Thienemann <andreas@bawue.net> 2.0.3-4
6be8d09
- Fixed many rpmlint issues
6be8d09
6be8d09
* Thu Apr 26 2007 Andreas Thienemann <andreas@bawue.net> 2.0.3-3
6be8d09
- Final cleanups for fedora
6be8d09
- Removed webgui for now. It will be back in a future release
6be8d09
- Added LANG=C calls to the initscripts
6be8d09
6be8d09
* Thu Apr 26 2007 Andreas Thienemann <andreas@bawue.net> 2.0.3-2
6be8d09
- Added logdir
6be8d09
- Fixed up doc-creation to actually work
6be8d09
- Fixed up web interface
6be8d09
- Included docs sub-package
6be8d09
- Included README et al as docs where appropriate
6be8d09
6be8d09
* Sat Mar 10 2007 Andreas Thienemann <andreas@bawue.net> 2.0.3-1
6be8d09
- Updated to 2.0.3
6be8d09
- Reverted the database-check as we're not sure the db is running on the
6be8d09
  local machine. A later revision might parse the bacula-dir.conf file
6be8d09
  and just connect to the db to see if it's running.
6be8d09
6be8d09
* Sat Feb 28 2007 Andreas Thienemann <andreas@bawue.net> 2.0.2-1
6be8d09
- Further updates on the spec
6be8d09
6be8d09
* Sat Feb 18 2007 Andreas Thienemann <andreas@bawue.net> 2.0.2-1
6be8d09
- Much work on the spec
6be8d09
- Updated to 2.0.2
6be8d09
6be8d09
* Sat Feb 18 2006 Andreas Thienemann <andreas@bawue.net> 1.38.11-1
6be8d09
- Initial spec.