Skip to content

Commit

Permalink
SLE_12: distinguish between different service packs
Browse files Browse the repository at this point in the history
Use %{sle_version} to distinguish between different service packs.
Build Ceph backend only for SLE_12 and SLE_12_SP1.
  • Loading branch information
joergsteffens committed Oct 26, 2017
1 parent fd85975 commit b41ee7d
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions platforms/packaging/bareos.spec
Expand Up @@ -78,11 +78,17 @@ Vendor: The Bareos Team
%endif

# SLES 12
%if 0%{?suse_version} == 1315 && 0%{?is_opensuse} == 0
%define ceph 1
#%%if 0%{?suse_version} == 1315 && 0%%{?is_opensuse} == 0
%if 0%{?sle_version} >= 120000
%define objectstorage 1
%endif

# Ceph packages have changed with SLE_12_SP2,
# therefore build it only for SLE_12 and SLE_12_SP1
%if 0%{?sle_version} >= 120000 && 0%{?sle_version} <= 120100
%define ceph 1
%endif

#
# RedHat (CentOS, Fedora, RHEL) specific settings
#
Expand Down

0 comments on commit b41ee7d

Please sign in to comment.