Package: magics++ / 4.5.3-1

soname-version.patch Patch series | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
Author: Alastair McKinstry <mckinstry@debian.org>
Description: Add versioned soname for Debian.
Forwarded: no
Last-Updated: 2015-06-19

Index: magics++-4.5.0/src/CMakeLists.txt
===================================================================
--- magics++-4.5.0.orig/src/CMakeLists.txt
+++ magics++-4.5.0/src/CMakeLists.txt
@@ -102,6 +102,10 @@ ecbuild_add_library( TARGET    MagPlus
                      PUBLIC_LIBS
                         ${MAGICS_EXTRA_LIBRARIES}
                         eccodes
+		     VERSION
+			3.0.0
+		     SOVERSION
+			3
                      PRIVATE_INCLUDES $<BUILD_INTERFACE:${PROJECT_SOURCE_DIR}/src/clipper>
                                       ${MAGICS_PRIVATE_INCLUDE_DIRS}
 
@@ -137,11 +141,15 @@ endif()
 ecbuild_add_library( TARGET         MagPlusSingle
                      SOURCES        MagicsSingle.cc
                      PRIVATE_LIBS   MagPlus
+		     VERSION        3.0.0
+		     SOVERSION      3
                      TYPE           SHARED )
 
 ecbuild_add_library( TARGET         MagPlusDouble
                      SOURCES        MagicsDouble.cc
                      PRIVATE_LIBS   MagPlus
+		     VERSION        3.0.0
+		     SOVERSION      3
                      TYPE           SHARED )
 
 if( metview )