From a5c63a8ed78042e655441bf60bfab9dc86d3e515 Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Sat, 18 Aug 2018 00:48:27 +0500 Subject: [PATCH] configure: detect "rpm" instead of "rpmbuild" --- configure | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/configure b/configure index 752e4195..d43691a0 100755 --- a/configure +++ b/configure @@ -35,11 +35,11 @@ if [ -z ${OPENSSL_ROOT_DIR} ]; then fi fi -if [ -x "$(command -v rpmbuild)" ]; then - echo "'rpmbuild' executable found, CPack will generate RPM packages." +if [ -x "$(command -v rpm)" ]; then + echo "'rpm' executable found, CPack will generate RPM packages." CMAKE_FLAGS="-DCPACK_GENERATOR='RPM' ${CMAKE_FLAGS}" else - echo "'rpmbuild' executable not found, CPack will generate DEB packages." + echo "'rpm' executable not found, CPack will generate DEB packages." CMAKE_FLAGS="-DCPACK_GENERATOR='DEB' ${CMAKE_FLAGS}" fi