File uhttpd-cmake-use-gnuinstalldirs.patch of Package uhttpd

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 58eb6dd..e055edc 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,7 +2,8 @@ cmake_minimum_required(VERSION 2.6)
 
 PROJECT(uhttpd C)
 
-INCLUDE (CheckFunctionExists)
+INCLUDE(CheckFunctionExists)
+INCLUDE(GNUInstallDirs)
 
 SET(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "")
 ADD_DEFINITIONS(-D_FILE_OFFSET_BITS=64 -Os -Wall -Werror -Wmissing-declarations --std=gnu99 -g3)
@@ -96,6 +97,6 @@ IF(PLUGINS)
 ENDIF()
 
 INSTALL(TARGETS uhttpd ${PLUGINS}
-	RUNTIME DESTINATION bin
-	LIBRARY DESTINATION lib
+	RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
+	LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
 )
openSUSE Build Service is sponsored by