Skip to content

Commit

Permalink
allow building SLES 10 packages
Browse files Browse the repository at this point in the history
  • Loading branch information
joergsteffens committed Mar 23, 2015
1 parent fe20ed8 commit 83e06c1
Showing 1 changed file with 25 additions and 6 deletions.
31 changes: 25 additions & 6 deletions platforms/packaging/bareos.spec
Expand Up @@ -78,6 +78,8 @@ Vendor: The Bareos Team
%define build_bat 0
%define build_qt_monitor 0
%define build_sqlite3 0
%define have_git 0
%define python_plugins 0
%endif

%if 0%{?suse_version} > 1010
Expand All @@ -98,16 +100,16 @@ Vendor: The Bareos Team
%define build_bat 0
%define build_qt_monitor 0
%define build_sqlite3 0
%define python_plugins 0
%define have_git 0
%define python_plugins 0
%endif

# centos/rhel 5 : segfault when building qt monitor
%if 0%{?centos_version} == 505 || 0%{?rhel_version} == 505
%define build_bat 0
%define build_qt_monitor 0
%define python_plugins 0
%define have_git 0
%define python_plugins 0
%endif

%if 0%{?rhel_version} >= 700 || 0%{?centos_version} >= 700 || 0%{?fedora_version} >= 19
Expand Down Expand Up @@ -138,7 +140,7 @@ BuildRequires: git-core

Source0: %{name}-%{version}.tar.gz

BuildRequires: elfutils
#BuildRequires: elfutils
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: make
Expand Down Expand Up @@ -177,21 +179,33 @@ BuildRequires: python-devel >= 2.6

%if 0%{?suse_version}

# link identical files
BuildRequires: fdupes
BuildRequires: lsb-release
# suse_version:
# 1315: SLE_12
# 1110: SLE_11
# 1010: SLE_10

BuildRequires: distribution-release
BuildRequires: pwdutils
BuildRequires: tcpd-devel
BuildRequires: termcap
BuildRequires: update-desktop-files

%if 0%{?sles_version} == 10
# SLES 10 on OBS
BuildRequires: sled-release
%else
%if 0%{?sles_version} || 0%{?suse_version} == 1315
BuildRequires: sles-release
%else
BuildRequires: openSUSE-release
%endif
%endif

%if 0%{?suse_version} > 1010
# link identical files
BuildRequires: fdupes
BuildRequires: lsb-release
%endif

%else
# non suse
Expand Down Expand Up @@ -701,6 +715,11 @@ for F in \
%{script_dir}/disk-changer \
%{script_dir}/mtx-changer \
%{_sysconfdir}/bareos/mtx-changer.conf \
%endif
%if 0%{?install_suse_fw} == 0
%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/bareos-dir \
%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/bareos-sd \
%{_sysconfdir}/sysconfig/SuSEfirewall2.d/services/bareos-fd \
%endif
%{script_dir}/bareos \
%{script_dir}/bareos_config \
Expand Down

0 comments on commit 83e06c1

Please sign in to comment.