2e09fca
From: Jan Engelhardt <jengelh@inai.de>
2e09fca
Date: 2016-05-26 09:42:00.089515862 +0200
2e09fca
2e09fca
Shared libraries must change their SONAME when an ABI change occurs. Without
2e09fca
any versioning, this won't occur, so add versions as per
2e09fca
https://en.opensuse.org/openSUSE:Shared_library_packaging_policy.
2e09fca
2e09fca
---
2e09fca
 exodus/cbind/CMakeLists.txt        |   10 +++++-----
2e09fca
 exodus/cbind/test/CMakeLists.txt   |    4 ++--
2e09fca
 exodus/forbind/CMakeLists.txt      |    8 ++++----
2e09fca
 exodus/forbind/test/CMakeLists.txt |    2 +-
2e09fca
 4 files changed, 12 insertions(+), 12 deletions(-)
2e09fca
2e09fca
Index: exodus-6.02/exodus/cbind/CMakeLists.txt
2e09fca
===================================================================
d16b40d
--- exodus-6.09.orig/exodus/cbind/CMakeLists.txt	2016-11-07 14:47:34.347874074 -0700
d16b40d
+++ exodus-6.09/exodus/cbind/CMakeLists.txt	2016-11-07 14:51:11.507036420 -0700
d16b40d
@@ -279,20 +279,20 @@
2e09fca
     COMPILE_FLAGS -fno-common)
2e09fca
 ENDIF(APPLE)
2e09fca
 
d16b40d
-ADD_LIBRARY(exodus ${EXODUS_LIBRARY_TYPE} ${cbind_SRCS})
d16b40d
+ADD_LIBRARY(exodus-${EXODUSII_VERSION_FULL} ${EXODUS_LIBRARY_TYPE} ${cbind_SRCS})
2e09fca
 
d16b40d
-TARGET_LINK_LIBRARIES(exodus ${NETCDF_LIBRARY} ${HDF5_LIBRARY} ${HDF5HL_LIBRARY} ${ZLIB_LIBRARY} ${CURL} m dl)
d16b40d
+TARGET_LINK_LIBRARIES(exodus-${EXODUSII_VERSION_FULL} ${NETCDF_LIBRARY} ${HDF5_LIBRARY} ${HDF5HL_LIBRARY} ${ZLIB_LIBRARY} ${CURL} m dl)
2e09fca
 
2e09fca
 IF(MSVC)
d16b40d
-  set_target_properties(exodus PROPERTIES COMPILE_DEFINITIONS _CRT_SECURE_NO_WARNINGS)
d16b40d
+  set_target_properties(exodus-${EXODUSII_VERSION_FULL} PROPERTIES COMPILE_DEFINITIONS _CRT_SECURE_NO_WARNINGS)
2e09fca
 ENDIF(MSVC)
2e09fca
 
2e09fca
 IF(EXODUS_LIBRARY_PROPERTIES)
d16b40d
-  SET_TARGET_PROPERTIES(exodus PROPERTIES ${EXODUS_LIBRARY_PROPERTIES})
d16b40d
+  SET_TARGET_PROPERTIES(exodus-${EXODUSII_VERSION_FULL} PROPERTIES ${EXODUS_LIBRARY_PROPERTIES})
2e09fca
 ENDIF(EXODUS_LIBRARY_PROPERTIES)
2e09fca
 
2e09fca
 IF(NOT EXODUS_INSTALL_NO_LIBRARIES)
d16b40d
-  INSTALL(TARGETS exodus
d16b40d
+  INSTALL(TARGETS exodus-${EXODUSII_VERSION_FULL}
2e09fca
     RUNTIME DESTINATION lib COMPONENT Runtime
2e09fca
     LIBRARY DESTINATION lib COMPONENT Runtime
2e09fca
     ARCHIVE DESTINATION lib COMPONENT Development)
2e09fca
Index: exodus-6.02/exodus/cbind/test/CMakeLists.txt
2e09fca
===================================================================
d16b40d
--- exodus-6.09.orig/exodus/cbind/test/CMakeLists.txt	2016-11-07 14:47:34.355873712 -0700
d16b40d
+++ exodus-6.09/exodus/cbind/test/CMakeLists.txt	2016-11-07 14:49:49.541749578 -0700
d16b40d
@@ -17,7 +17,7 @@
2e09fca
   )
2e09fca
 
2e09fca
 ADD_EXECUTABLE( ExoIICTests ${ExoIICTests} )
d16b40d
-TARGET_LINK_LIBRARIES( ExoIICTests exodus )
d16b40d
+TARGET_LINK_LIBRARIES( ExoIICTests exodus-${EXODUSII_VERSION_FULL} )
2e09fca
 
2e09fca
 SET( TestsToRun ${ExoIICTests} )
2e09fca
 REMOVE( TestsToRun ExoIICTests.cxx )
d16b40d
@@ -73,7 +73,7 @@
2e09fca
 
2e09fca
 FOREACH ( testName ${cbind_OLDTESTS} )
2e09fca
   ADD_EXECUTABLE( ${testName} ${testName}.c )
d16b40d
-  TARGET_LINK_LIBRARIES( ${testName} exodus )
d16b40d
+  TARGET_LINK_LIBRARIES( ${testName} exodus-${EXODUSII_VERSION_FULL} )
2e09fca
 ENDFOREACH ( testName )
2e09fca
 
2e09fca
 #SET( EXECUTABLE_OUTPUT_DIR ${CMAKE_CURRENT_BINARY_DIR} )
2e09fca
Index: exodus-6.02/exodus/forbind/CMakeLists.txt
2e09fca
===================================================================
d16b40d
--- exodus-6.09.orig/exodus/forbind/CMakeLists.txt	2016-11-07 14:47:34.359873530 -0700
d16b40d
+++ exodus-6.09/exodus/forbind/CMakeLists.txt	2016-11-07 14:52:24.316738026 -0700
d16b40d
@@ -51,16 +51,16 @@
2e09fca
    src/exo_jack.c
2e09fca
 )
2e09fca
 
2e09fca
-ADD_LIBRARY(exoIIv2for ${EXODUS_LIBRARY_TYPE} ${forbind_SRCS})
2e09fca
+ADD_LIBRARY(exoIIv2for-${EXODUSII_VERSION_FULL} ${EXODUS_LIBRARY_TYPE} ${forbind_SRCS})
2e09fca
 
d16b40d
-TARGET_LINK_LIBRARIES(exoIIv2for exodus ${NETCDF_LIBRARY} ${HDF5_LIBRARY} ${HDF5HL_LIBRARY} ${ZLIB_LIBRARY} ${CURL} m dl)
d16b40d
+TARGET_LINK_LIBRARIES(exoIIv2for-${EXODUSII_VERSION_FULL} exodus-${EXODUSII_VERSION_FULL} ${NETCDF_LIBRARY} ${HDF5_LIBRARY} ${HDF5HL_LIBRARY} ${ZLIB_LIBRARY} ${CURL} m dl)
2e09fca
 
2e09fca
 IF(EXODUS_LIBRARY_PROPERTIES)
2e09fca
-  SET_TARGET_PROPERTIES(exoIIv2for PROPERTIES ${EXODUS_LIBRARY_PROPERTIES})
2e09fca
+  SET_TARGET_PROPERTIES(exoIIv2for-${EXODUSII_VERSION_FULL} PROPERTIES ${EXODUS_LIBRARY_PROPERTIES})
2e09fca
 ENDIF(EXODUS_LIBRARY_PROPERTIES)
2e09fca
 
2e09fca
 IF(NOT EXODUS_INSTALL_NO_LIBRARIES)
2e09fca
-  INSTALL(TARGETS exoIIv2for
2e09fca
+  INSTALL(TARGETS exoIIv2for-${EXODUSII_VERSION_FULL}
2e09fca
     RUNTIME DESTINATION lib COMPONENT Runtime
2e09fca
     LIBRARY DESTINATION lib COMPONENT Runtime
2e09fca
     ARCHIVE DESTINATION lib COMPONENT Development)
2e09fca
Index: exodus-6.02/exodus/forbind/test/CMakeLists.txt
2e09fca
===================================================================
d16b40d
@@ -30,7 +30,7 @@
2e09fca
 
2e09fca
 FOREACH ( testName ${forbind_OLDTESTS} )
2e09fca
   ADD_EXECUTABLE( f_${testName} ${testName}.f )
2e09fca
-  TARGET_LINK_LIBRARIES( f_${testName} exoIIv2for )
2e09fca
+  TARGET_LINK_LIBRARIES( f_${testName} exoIIv2for-${EXODUSII_VERSION_FULL} )
2e09fca
   SET_TARGET_PROPERTIES(f_${testName} PROPERTIES LINKER_LANGUAGE Fortran)
2e09fca
 ENDFOREACH ( testName )
2e09fca