Fix incorrect package name for SLES/openSUSE

refs #8091
This commit is contained in:
Gunnar Beutner 2014-12-17 09:27:06 +01:00
parent 92eb6a2f45
commit 3436dbc697
2 changed files with 1 additions and 6 deletions

View File

@ -97,12 +97,7 @@ BuildRequires: cmake
BuildRequires: flex >= 2.5.35
BuildRequires: bison
BuildRequires: make
%if "%{_vendor}" == "suse"
BuildRequires: libreadline-devel
%else
BuildRequires: readline-devel
%endif
%if "%{_vendor}" == "redhat" && (0%{?el5} || 0%{?rhel} == 5 || "%{?dist}" == ".el5")
# el5 requires packages.icinga.org

View File

@ -38,7 +38,7 @@ add_library(cli SHARED ${cli_SOURCES})
target_link_libraries(cli ${Boost_LIBRARIES} base config remote)
if(HAVE_LIBREADLINE)
target_link_libraries(cli readline)
target_link_libraries(cli readline termcap)
endif()
set_target_properties (