Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
packaging
rpm-icinga2
Commits
fbcf4cc0
Commit
fbcf4cc0
authored
Mar 13, 2019
by
Markus Frosch
Browse files
Update boost dependencies for SUSE
* Use icinga-boost packages for SLES 12 and OpenSUSE 42.3 * Update provide names
parent
46ae4538
Changes
1
Hide whitespace changes
Inline
Side-by-side
icinga2.spec
View file @
fbcf4cc0
...
...
@@ -143,15 +143,31 @@ BuildRequires: flex >= 2.5.35
BuildRequires: make
%if "%{_vendor}" == "suse"
%if 0%{?suse_version} > 13
20 # SLES 15 and OpenSUSE
#
TODO: multiple packages
%if 0%{?suse_version} >
=
13
15
#
SLES 12 and OpenSUSE 42 or later
%define boost_devel_pkg %nil
BuildRequires: libboost_program_options-devel >= %{boost_min_version}
BuildRequires: libboost_regex-devel >= %{boost_min_version}
BuildRequires: libboost_system-devel >= %{boost_min_version}
BuildRequires: libboost_thread-devel >= %{boost_min_version}
%endif #suse_version > 1320
# Using the split
# Provided by packages.icinga.com or OS, when boost is newer than %%{boost_min_version}
BuildRequires: libboost_program_options-devel-impl >= %{boost_min_version}
BuildRequires: libboost_regex-devel-impl >= %{boost_min_version}
BuildRequires: libboost_system-devel-impl >= %{boost_min_version}
BuildRequires: libboost_thread-devel-impl >= %{boost_min_version}
BuildRequires: libboost_test-devel-impl >= %{boost_min_version}
%if 0%{?suse_version} < 1320
# before SLES 15 and OpenSUSE 15
# Provided by packages.icinga.com
%define boost_library icinga-boost
%define boost_version 1.69
%define boost_rpath %{_libdir}/%{boost_library}
%endif # suse_version < 1320
%else # suse_version >= 1315
# old boost devel name
%define boost_devel_pkg boost-devel
%endif # suse_version >= 1315
%else # vendor == suse - assuming redhat or compatible
# 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
...
...
@@ -167,8 +183,8 @@ BuildRequires: libboost_thread-devel >= %{boost_min_version}
%endif # el7
%endif # vendor == suse
%if "%{?boost_devel_pkg}" != "
%nil
"
BuildRequires: %{
?
boost_devel_pkg}
%{!?boost_devel_pkg:boost-devel}
>= %{boost_min_version}
%if "%{?boost_devel_pkg}" != ""
BuildRequires: %{boost_devel_pkg} >= %{boost_min_version}
%endif # boost_devel_pkg
%if 0%{?use_systemd}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment