Skip to content

Commit

Permalink
bareos-storage-objectstorage: enable packaging
Browse files Browse the repository at this point in the history
packaging is done for RHEL7 and SLES12.
  • Loading branch information
joergsteffens committed Oct 26, 2017
1 parent c466785 commit fd85975
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions platforms/packaging/bareos.spec
Expand Up @@ -80,6 +80,7 @@ Vendor: The Bareos Team
# SLES 12
%if 0%{?suse_version} == 1315 && 0%{?is_opensuse} == 0
%define ceph 1
%define objectstorage 1
%endif

#
Expand All @@ -102,11 +103,15 @@ Vendor: The Bareos Team
%define python_plugins 0
%endif

%if 0%{?rhel_version} >= 700 || 0%{?centos_version} >= 700 || 0%{?fedora_version} >= 19
%define systemd_support 1
%if 0%{?fedora_version} != 19
%if 0%{?fedora_version} >= 20
%define glusterfs 1
%define systemd_support 1
%endif

%if 0%{?rhel_version} >= 700 || 0%{?centos_version} >= 700
%define glusterfs 1
%define objectstorage 1
%define systemd_support 1
%endif

%if 0%{?rhel_version} >= 700
Expand Down Expand Up @@ -316,7 +321,6 @@ Summary: Object Storage support for the Bareos Storage daemon
Group: Productivity/Archiving/Backup
Requires: %{name}-common = %{version}
Requires: %{name}-storage = %{version}
Requires: libdroplet-common
%endif

%if 0%{?glusterfs}
Expand Down Expand Up @@ -1017,8 +1021,8 @@ echo "This is a meta package to install a full bareos system" > %{buildroot}%{_d
%defattr(-, root, root)
%{backend_dir}/libbareossd-chunked*.so
%{backend_dir}/libbareossd-object*.so
%{_sysconfdir}/bareos/bareos-dir.d/storage/Object.conf.example
%{_sysconfdir}/bareos/bareos-sd.d/device/ObjectStorage.conf.example
%attr(0640, %{director_daemon_user},%{daemon_group}) %{_sysconfdir}/bareos/bareos-dir.d/storage/Object.conf.example
%attr(0640, %{storage_daemon_user},%{daemon_group}) %{_sysconfdir}/bareos/bareos-sd.d/device/ObjectStorage.conf.example
%endif

%if 0%{?glusterfs}
Expand Down

0 comments on commit fd85975

Please sign in to comment.