File libtins-3.5_build.patch of Package libtins

Index: libtins-3.5/CMakeLists.txt
===================================================================
--- libtins-3.5.orig/CMakeLists.txt
+++ libtins-3.5/CMakeLists.txt
@@ -232,7 +232,7 @@ CONFIGURE_FILE(
 )
 
 # Support for pkg-config
-SET(CMAKE_INSTALL_LIBDIR lib)
+SET(CMAKE_INSTALL_LIBDIR lib${LIB_SUFFIX})
 SET(pkgconfig_prefix      ${CMAKE_INSTALL_PREFIX})
 SET(pkgconfig_exec_prefix ${CMAKE_INSTALL_PREFIX})
 SET(pkgconfig_libdir      ${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR})
@@ -324,13 +324,13 @@ INSTALL(
     FILES
     "${PROJECT_BINARY_DIR}/libtinsConfig.cmake"
     "${PROJECT_BINARY_DIR}/libtinsConfigVersion.cmake"
-    DESTINATION CMake
+    DESTINATION lib${LIB_SUFFIX}/cmake/tins
     COMPONENT dev
 )
 
 # Install the export set for use with the install-tree
 INSTALL(
     EXPORT libtinsTargets
-    DESTINATION CMake
+    DESTINATION lib${LIB_SUFFIX}/cmake/tins 
     COMPONENT dev
 )
Index: libtins-3.5/src/CMakeLists.txt
===================================================================
--- libtins-3.5.orig/src/CMakeLists.txt
+++ libtins-3.5/src/CMakeLists.txt
@@ -92,13 +92,13 @@ ADD_LIBRARY(
 TARGET_LINK_LIBRARIES(tins ${PCAP_LIBRARY} ${OPENSSL_LIBRARIES} ${LIBTINS_OS_LIBS})
 
 SET_TARGET_PROPERTIES(tins PROPERTIES OUTPUT_NAME tins)
-SET_TARGET_PROPERTIES(tins PROPERTIES VERSION ${LIBTINS_VERSION} SOVERSION ${LIBTINS_VERSION} )
+SET_TARGET_PROPERTIES(tins PROPERTIES VERSION ${LIBTINS_VERSION} SOVERSION ${LIBTINS_VERSION_MAJOR} )
 
 # Install instructions for this target
 INSTALL( 
     TARGETS tins
     EXPORT libtinsTargets
-    LIBRARY DESTINATION lib
-    ARCHIVE DESTINATION lib
+    LIBRARY DESTINATION lib${LIB_SUFFIX}
+    ARCHIVE DESTINATION lib${LIB_SUFFIX}
     COMPONENT dev
 )
openSUSE Build Service is sponsored by