[SCM] Common Astronomy Software Applications core library branch, debian, updated. 883c9fd044ebd982f989c036a1e7b2447c8fd841

Ole Streicher debian at liska.ath.cx
Wed Sep 12 07:49:42 UTC 2012


The following commit has been merged in the debian branch:
commit 883c9fd044ebd982f989c036a1e7b2447c8fd841
Author: Ole Streicher <debian at liska.ath.cx>
Date:   Wed Sep 12 09:49:26 2012 +0200

    Set the SONAME of the libraries

diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..fee9cb5
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+set_soversion.patch
diff --git a/debian/patches/set_soversion.patch b/debian/patches/set_soversion.patch
new file mode 100644
index 0000000..0c5b784
--- /dev/null
+++ b/debian/patches/set_soversion.patch
@@ -0,0 +1,34 @@
+Author: Ole Streicher <debian at liska.ath.cx>
+Description: Set the SONAME of the libraries to comply with the Debian Policy
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -3,9 +3,14 @@
+ #
+ project(casacore)
+ 
++set(PROJECT_VERSION_MAJOR 1)
++set(PROJECT_VERSION_MINOR 5)
++set(PROJECT_VERSION_PATCH 0)
++set(PROJECT_VERSION_REVISION 1)
++set(PROJECT_VERSION
++"${PROJECT_VERSION_MAJOR}.${PROJECT_VERSION_MINOR}.${PROJECT_VERSION_PATCH}")
++
+ SET(CPACK_PACKAGE_NAME "casacore")
+-SET(PROJECT_VERSION "1.4.0")
+-SET(PROJECT_VERSION_REVISION 1)
+ string(TOLOWER "${CPACK_PACKAGE_NAME}" CPACK_PACKAGE_NAME_LOWERCASE) 
+ find_program(DPKG_PROGRAM dpkg DOC "dpkg program of Debian-based systems") 
+ if(DPKG_PROGRAM) 
+@@ -179,6 +184,12 @@
+ # Add the modules to be built.
+ foreach (module ${_modules})
+     add_subdirectory (${module})
++    set_target_properties(
++      casa_${module}
++      PROPERTIES
++          VERSION "${PROJECT_VERSION}"
++          SOVERSION "${PROJECT_VERSION_MAJOR}"
++      )
+     if (APPLE)
+         if (${module} STREQUAL scimath_f OR ${module} STREQUAL fits OR ${module} STREQUAL mirlib OR ${module} STREQUAL coordinates)
+             set_target_properties(casa_${module} PROPERTIES LINK_FLAGS -single_module)

-- 
Common Astronomy Software Applications core library



More information about the debian-science-commits mailing list