icinga2.spec: remove dropped CentOS 6
This commit is contained in:
parent
a82791fee7
commit
8f4d029357
23
icinga2.spec
23
icinga2.spec
|
@ -19,7 +19,7 @@
|
|||
%define apacheuser apache
|
||||
%define apachegroup apache
|
||||
|
||||
%if 0%{?el6}%{?amzn}
|
||||
%if 0%{?amzn}
|
||||
%define use_systemd 0
|
||||
%define use_selinux 0
|
||||
%if %(uname -m) != "x86_64"
|
||||
|
@ -123,17 +123,8 @@ BuildRequires: gcc48-c++
|
|||
BuildRequires: libopenssl1-devel
|
||||
BuildRequires: libstdc++48-devel
|
||||
%else
|
||||
%if "%{_vendor}" == "redhat" && (0%{?el6} || 0%{?rhel} == 6 || "%{?dist}" == ".el6")
|
||||
# Requires devtoolset-7 scl
|
||||
%define scl_name devtoolset-7
|
||||
%define scl_enable scl enable %{scl_name} --
|
||||
BuildRequires: %{scl_name}-binutils
|
||||
BuildRequires: %{scl_name}-gcc-c++
|
||||
BuildRequires: %{scl_name}-libstdc++-devel
|
||||
%else
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: libstdc++-devel
|
||||
%endif
|
||||
BuildRequires: openssl-devel
|
||||
%endif
|
||||
BuildRequires: bison
|
||||
|
@ -170,13 +161,6 @@ BuildRequires: libboost_test-devel%{?boost_devel_suffix} >= %{boost_min_version
|
|||
# default boost devel package
|
||||
%define boost_devel_pkg boost-devel
|
||||
|
||||
%if (0%{?el6} || 0%{?rhel} == 6)
|
||||
# Provided by packages.icinga.com
|
||||
%define boost_library icinga-boost169
|
||||
%define boost_version 1.69
|
||||
%define boost_devel_pkg icinga-boost169-devel
|
||||
%define boost_rpath %{_libdir}/%{boost_library}
|
||||
%endif # el6
|
||||
%if (0%{?el7} || 0%{?rhel} == 7)
|
||||
# Provided by EPEL
|
||||
%define boost_library boost169
|
||||
|
@ -413,11 +397,6 @@ CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_WITH_PGSQL=ON"
|
|||
CMAKE_OPTS="$CMAKE_OPTS -DICINGA2_WITH_PGSQL=OFF"
|
||||
%endif
|
||||
|
||||
%if (0%{?el6} || 0%{?rhel} == 6)
|
||||
# Explicitly link against rt, because ld doesn't detect it automatically
|
||||
CMAKE_OPTS="$CMAKE_OPTS -DCMAKE_EXE_LINKER_FLAGS=-lrt"
|
||||
%endif # el6
|
||||
|
||||
%if "%{?boost_rpath}" != ""
|
||||
CMAKE_OPTS="$CMAKE_OPTS -DCMAKE_INSTALL_RPATH=%{boost_rpath}"
|
||||
%endif # boost_rpath
|
||||
|
|
Loading…
Reference in New Issue