mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-29 16:44:29 +02:00
parent
f322896165
commit
6042d98eda
@ -1,6 +1,8 @@
|
|||||||
%define revision 1
|
%define revision 1
|
||||||
%define opensuse_boost_version 1_49_0
|
%define opensuse_boost_version 1_49_0
|
||||||
%define el5_boost_version 141
|
%define el5_boost_version 141
|
||||||
|
%define el5_boost_libs %{_libdir}/boost%{el5_boost_version}
|
||||||
|
%define el5_boost_includes /usr/include/boost%{el5_boost_version}
|
||||||
|
|
||||||
%define logmsg logger -t %{name}/rpm
|
%define logmsg logger -t %{name}/rpm
|
||||||
|
|
||||||
@ -86,10 +88,26 @@ IDOUtils schema >= 1.10
|
|||||||
%setup -q -n %{name}-%{version}
|
%setup -q -n %{name}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
|
|
||||||
|
# el5 requires special treatment for boost from epel
|
||||||
|
# 1) set CPATH, LD_LIBRARY_PATH for path detection
|
||||||
|
# 2) set --with-boost[-libdir] for library version checks
|
||||||
|
%if 0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5"
|
||||||
|
export CPATH="%{el5_boost_includes}:$CPATH"
|
||||||
|
export LD_LIBRARY_PATH="%{el5_boost_libs}:$LD_LIBRARY_PATH"
|
||||||
|
%configure --with-icinga-user=$USER \
|
||||||
|
--with-icinga-group=$USER \
|
||||||
|
--with-icingacmd-user=$USER \
|
||||||
|
--with-icingacmd-group=$USER \
|
||||||
|
--with-boost="%{el5_boost_libs}" \
|
||||||
|
--with-boost-libdir="%{el5_boost_libs}"
|
||||||
|
%else
|
||||||
|
# the famous others
|
||||||
%configure --with-icinga-user=$USER \
|
%configure --with-icinga-user=$USER \
|
||||||
--with-icinga-group=$USER \
|
--with-icinga-group=$USER \
|
||||||
--with-icingacmd-user=$USER \
|
--with-icingacmd-user=$USER \
|
||||||
--with-icingacmd-group=$USER
|
--with-icingacmd-group=$USER
|
||||||
|
%endif
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user