Skip to content

Commit

Permalink
Ported new stuff to RHEL4 spec
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz committed Apr 26, 2014
1 parent 393b122 commit 021a6aa
Showing 1 changed file with 90 additions and 7 deletions.
97 changes: 90 additions & 7 deletions platforms/packaging/bareos-RHEL-4.spec
@@ -1,7 +1,7 @@
#
# spec file for package bareos
# Copyright (c) 2011-2012 Bruno Friedmann (Ioda-Net) and Philipp Storz (dass IT)
# 2013 Bareos GmbH & Co KG
# 2013-2014 Bareos GmbH & Co KG
#
# Redesign of the bareos specfile: goals (20110922)
#
Expand Down Expand Up @@ -33,8 +33,8 @@

Summary: The Network Backup Solution
Name: bareos
Version: 14.2.0
Release: 0
Version: 14.2.0
Release: 1.0
Group: Productivity/Archiving/Backup
License: AGPL-3.0
BuildRoot: %{_tmppath}/%{name}-root
Expand Down Expand Up @@ -69,6 +69,7 @@ Vendor: The Bareos Team
%define build_qt_monitor 0
%define build_sqlite3 0
%define systemd 0
%define python_plugins 1

# firewall installation
%define install_suse_fw 0
Expand All @@ -86,6 +87,7 @@ Vendor: The Bareos Team
%if 0%{?centos_version} == 505 || 0%{?rhel_version} == 505
%define build_bat 0
%define build_qt_monitor 0
%define python_plugins 0
%endif

%if 0%{?sles_version} == 10
Expand Down Expand Up @@ -179,7 +181,11 @@ BuildRequires: lsb-release
BuildRequires: tcp_wrappers-devel
%endif

Summary: Bares All-In-One package (dir,sd,fd)
%if 0%{?python_plugins}
BuildRequires: python-devel >= 2.6
%endif

Summary: Bareos All-In-One package (dir,sd,fd)
#BuildArch: noarch
Requires: %{name}-director = %{version}
Requires: %{name}-storage = %{version}
Expand Down Expand Up @@ -244,6 +250,7 @@ Provides: %{name}-fd
%package common
Summary: Generic libs needed by every package
Group: Productivity/Archiving/Backup
Requires: openssl
Provides: %{name}-libs

%package database-common
Expand Down Expand Up @@ -326,6 +333,40 @@ Requires: sqlite-devel
Requires: libopenssl-devel
Requires: libcap-devel

%if 0%{?python_plugins}
%package director-python-plugin
Summary: Python plugin for Director Daemon
Group: Productivity/Archiving/Backup
Requires: bareos-director = %{version}

%package filedaemon-python-plugin
Summary: Python plugin for File Daemon
Group: Productivity/Archiving/Backup
Requires: bareos-filedaemon = %{version}

%package storage-python-plugin
Summary: Python plugin for Storage Daemon
Group: Productivity/Archiving/Backup
Requires: bareos-storage = %{version}

%description director-python-plugin
%{dscr}

This package contains the python plugin for the director daemon

%description filedaemon-python-plugin
%{dscr}

This package contains the python plugin for the filedaemon

%description storage-python-plugin
%{dscr}

This package contains the python plugin for the storagedaemon

%endif


%description client
%{dscr}

Expand Down Expand Up @@ -444,12 +485,16 @@ export MTX=/usr/sbin/mtx
--with-bsrdir=%{bsr_dir} \
--with-logdir=/var/log/bareos \
--with-subsys-dir=%{_subsysdir} \
%if 0%{?python_plugins}
--with-python \
%endif
--enable-smartalloc \
--disable-conio \
--enable-readline \
--enable-batch-insert \
--enable-dynamic-cats-backends \
--enable-scsi-crypto \
--enable-lmdb \
--enable-ndmp \
--enable-ipv6 \
--enable-acl \
Expand Down Expand Up @@ -547,6 +592,11 @@ do
rm -f "%{buildroot}/$F"
done

%if ! 0%{?python_plugins}
rm -f %{buildroot}/%{plugin_dir}/python-*.so
rm -f %{buildroot}/%{plugin_dir}/*.py*
%endif

%if 0%{?build_bat}
%if 0%{?suse_version} > 1010
%suse_update_desktop_file -i bat System Utility Archiving
Expand Down Expand Up @@ -623,7 +673,8 @@ echo "This is a meta package to install a full bareos system" > %{buildroot}%{_d
%endif
%attr(0640, %{director_daemon_user}, %{daemon_group}) %config(noreplace) %{_sysconfdir}/bareos/bareos-dir.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}-dir
%{plugin_dir}/*-dir.so
# we do not have any dir plugin but the python plugin
#%%{plugin_dir}/*-dir.so
%{script_dir}/delete_catalog_backup
%{script_dir}/make_catalog_backup
%{script_dir}/make_catalog_backup.pl
Expand Down Expand Up @@ -657,7 +708,8 @@ echo "This is a meta package to install a full bareos system" > %{buildroot}%{_d
%{_sysconfdir}/rc.d/init.d/bareos-sd
%endif
%{_sbindir}/bscrypto
%{plugin_dir}/*-sd.so
%{plugin_dir}/autoxflate-sd.so
%{plugin_dir}/scsicrypto-sd.so
%{script_dir}/disk-changer
%{_sbindir}/bareos-sd
%{_mandir}/man8/bscrypto.8.gz
Expand Down Expand Up @@ -692,7 +744,7 @@ echo "This is a meta package to install a full bareos system" > %{buildroot}%{_d
%{_sysconfdir}/rc.d/init.d/bareos-fd
%endif
%{_sbindir}/bareos-fd
%{plugin_dir}/*-fd.so
%{plugin_dir}/bpipe-fd.so
%{_mandir}/man8/bareos-fd.8.gz
# tray monitor
%if 0%{?systemd_support}
Expand All @@ -709,6 +761,8 @@ echo "This is a meta package to install a full bareos system" > %{buildroot}%{_d
%{_libdir}/libbareoscfg.so
%{_libdir}/libbareosfind-%{_libversion}.so
%{_libdir}/libbareosfind.so
%{_libdir}/libbareoslmdb-%{_libversion}.so
%{_libdir}/libbareoslmdb.so
%if !0%{?client_only}
%{_libdir}/libbareosndmp-%{_libversion}.so
%{_libdir}/libbareosndmp.so
Expand All @@ -718,6 +772,7 @@ echo "This is a meta package to install a full bareos system" > %{buildroot}%{_d
%dir %{script_dir}
%{script_dir}/bareos-config
%{script_dir}/bareos-config-lib.sh
%{script_dir}/bareos-explorer
%{script_dir}/btraceback.gdb
%if "%{_libdir}/bareos/" != "/usr/lib/bareos/"
%dir %{_libdir}/bareos/
Expand Down Expand Up @@ -749,6 +804,7 @@ echo "This is a meta package to install a full bareos system" > %{buildroot}%{_d
%{script_dir}/grant_bareos_privileges
%{script_dir}/make_bareos_tables
%{script_dir}/update_bareos_tables
%{script_dir}/ddl/versions.map

%files database-postgresql
# postgresql catalog files
Expand Down Expand Up @@ -841,6 +897,33 @@ echo "This is a meta package to install a full bareos system" > %{buildroot}%{_d
%{_libdir}/*.la


%if 0%{?python_plugins}
%files filedaemon-python-plugin
%defattr(-, root, root)
%{plugin_dir}/python-fd.so
%{plugin_dir}/bareos-fd.py*
%{plugin_dir}/bareos-fd-local-fileset.py*
%{plugin_dir}/bareos-fd-mock-test.py*
%{plugin_dir}/BareosFdPluginBaseclass.py*
%{plugin_dir}/BareosFdPluginLocalFileset.py*
%{plugin_dir}/BareosFdWrapper.py*
%{plugin_dir}/bareos_fd_consts.py*

%files director-python-plugin
%defattr(-, root, root)
%{plugin_dir}/python-dir.so
%{plugin_dir}/bareos-dir.py*
%{plugin_dir}/bareos_dir_consts.py*


%files storage-python-plugin
%defattr(-, root, root)
%{plugin_dir}/python-sd.so
%{plugin_dir}/bareos-sd.py*
%{plugin_dir}/bareos_sd_consts.py*

%endif # python_plugins

#
# Define some macros for updating the system settings.
# SUSE has most macros by default others have not so we
Expand Down

0 comments on commit 021a6aa

Please sign in to comment.