diff --git a/icinga2.spec b/icinga2.spec index d7e577c12..a24f769b5 100644 --- a/icinga2.spec +++ b/icinga2.spec @@ -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 diff --git a/lib/cli/CMakeLists.txt b/lib/cli/CMakeLists.txt index db2a473a3..4969bcdc9 100644 --- a/lib/cli/CMakeLists.txt +++ b/lib/cli/CMakeLists.txt @@ -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 (