[med-svn] [dcmtkpp] 04/04: Add soname to packages

Julien Lamy lamy-guest at moszumanska.debian.org
Mon Jul 20 16:02:49 UTC 2015


This is an automated email from the git hooks/post-receive script.

lamy-guest pushed a commit to branch master
in repository dcmtkpp.

commit 99908ad1cf67008499e4d6317207cfad1d565953
Author: Julien Lamy <lamy at unistra.fr>
Date:   Mon Jul 20 18:02:20 2015 +0200

    Add soname to packages
---
 debian/control                                     |  5 ++--
 debian/libdcmtkpp.install                          |  1 -
 debian/libdcmtkpp.postinst                         |  1 -
 ...dcmtkpp-dev.install => libdcmtkpp0-dev.install} |  1 +
 debian/libdcmtkpp0.install                         |  1 +
 debian/patches/fix-soname.patch                    | 27 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 7 files changed, 33 insertions(+), 4 deletions(-)

diff --git a/debian/control b/debian/control
index 587a82a..d81c1d4 100644
--- a/debian/control
+++ b/debian/control
@@ -4,6 +4,7 @@ Uploaders: Julien Lamy <lamy at unistra.fr>
 Section: science
 Priority: optional
 Build-Depends: debhelper (>= 9),
+               d-shlibs,
                cmake,
                libjsoncpp-dev,
                libdcmtk2-dev,
@@ -15,7 +16,7 @@ Vcs-Browser: http://anonscm.debian.org/viewvc/debian-med/trunk/packages/dcmtkpp/
 Vcs-Svn: svn://anonscm.debian.org/debian-med/trunk/packages/dcmtkpp/trunk/
 Homepage: https://github.com/lamyj/dcmtkpp
 
-Package: libdcmtkpp
+Package: libdcmtkpp0
 Architecture: any
 Section: libs
 Depends: ${shlibs:Depends},
@@ -24,7 +25,7 @@ Description: Wrappers around DCMTK to have an easier API
  DCMTK++ is a set of wrappers around DCMTK to have an easier API, notably for
  the networking part.
 
-Package: libdcmtkpp-dev
+Package: libdcmtkpp0-dev
 Architecture: any
 Section: libdevel
 Depends: libdcmtkpp (= ${binary:Version}),
diff --git a/debian/libdcmtkpp.install b/debian/libdcmtkpp.install
deleted file mode 100644
index f1d0181..0000000
--- a/debian/libdcmtkpp.install
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib/*
diff --git a/debian/libdcmtkpp.postinst b/debian/libdcmtkpp.postinst
deleted file mode 100644
index 8b0c822..0000000
--- a/debian/libdcmtkpp.postinst
+++ /dev/null
@@ -1 +0,0 @@
-/sbin/ldconfig
diff --git a/debian/libdcmtkpp-dev.install b/debian/libdcmtkpp0-dev.install
similarity index 51%
rename from debian/libdcmtkpp-dev.install
rename to debian/libdcmtkpp0-dev.install
index 41a1414..1537de1 100644
--- a/debian/libdcmtkpp-dev.install
+++ b/debian/libdcmtkpp0-dev.install
@@ -1 +1,2 @@
 usr/include/*
+usr/lib/*.so
diff --git a/debian/libdcmtkpp0.install b/debian/libdcmtkpp0.install
new file mode 100644
index 0000000..093956b
--- /dev/null
+++ b/debian/libdcmtkpp0.install
@@ -0,0 +1 @@
+usr/lib/*.so.*
diff --git a/debian/patches/fix-soname.patch b/debian/patches/fix-soname.patch
new file mode 100644
index 0000000..6533cfe
--- /dev/null
+++ b/debian/patches/fix-soname.patch
@@ -0,0 +1,27 @@
+Subject: Fix library SONAME
+Author: Julien Lamy <lamy at unistra.fr>
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -1,5 +1,11 @@
+ cmake_minimum_required(VERSION 2.8)
++
+ project("dcmtkpp")
++set(dcmtkpp_MAJOR_VERSION 0)
++set(dcmtkpp_MINOR_VERSION 2)
++set(dcmtkpp_PATCH_VERSION 1)
++set(dcmtkpp_VERSION 
++    ${dcmtkpp_MAJOR_VERSION}.${dcmtkpp_MINOR_VERSION}.${dcmtkpp_PATCH_VERSION})
+ 
+ option(BUILD_EXAMPLES "Build the examples directory." ON)
+ 
+--- a/src/CMakeLists.txt
++++ b/src/CMakeLists.txt
+@@ -17,5 +17,7 @@
+ install(FILES ${headers} ${templates} DESTINATION include/dcmtkpp)
+ 
+ target_link_libraries(dcmtkpp ${DCMTK_LIBRARIES} jsoncpp ${ICU_LIBRARIES})
+-
++set_target_properties(dcmtkpp PROPERTIES 
++    VERSION ${dcmtkpp_VERSION}
++    SOVERSION ${dcmtkpp_MAJOR_VERSION})
+ 
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..6961ae9
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix-soname.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/dcmtkpp.git



More information about the debian-med-commit mailing list