[med-svn] [irtk] 03/07: d/*: use versioned package

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Wed Mar 18 17:03:49 UTC 2015


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

ghisvail-guest pushed a commit to branch debian/sid
in repository irtk.

commit 1e98319419137289174033533faf24ff96707317
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Wed Mar 18 14:13:18 2015 +0000

    d/*: use versioned package
---
 debian/control |  6 +++---
 debian/rules   | 13 ++++++++++---
 2 files changed, 13 insertions(+), 6 deletions(-)

diff --git a/debian/control b/debian/control
index 9d004d9..d65ebe4 100644
--- a/debian/control
+++ b/debian/control
@@ -26,19 +26,19 @@ Homepage: https://github.com/BioMedIA/IRTK
 Vcs-Git: git://anonscm.debian.org/debian-med/irtk.git 
 Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/irtk.git
 
-Package: irtk
+Package: irtk1.0
 Architecture: any
 Depends:
  ${misc:Depends},
  ${shlibs:Depends}
 Suggests:
- irtk-doc
+ irtk1.0-doc
 Description: Binaries for ITK
  The Image Registration Toolkit
  .
  This package provides the binaries.
 
-Package: irtk-doc
+Package: irtk1.0-doc
 Section: doc
 Architecture: all
 Depends:
diff --git a/debian/rules b/debian/rules
index 1da8bbf..b50cb41 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,9 @@ DH_VERBOSE = 1
 # out-of-tree build
 BUILDDIR = $(CURDIR)/debian/build
 
+# for versioned package
+IRTK_MAJOR_VERSION = 1.0
+
 %:
 	dh $@ --buildsystem=cmake --builddirectory=$(BUILDDIR) --parallel
 
@@ -26,11 +29,15 @@ override_dh_auto_configure:
 
 override_dh_auto_build:
 		dh_auto_build
-		# Generate debhelper file to create symlinks for all 
-		# relevant ITK binaries
+		# Generate debhelper .install file to install the IRTK 
+		# executables to a private versioned location.
+		touch debian/irtk$(IRTK_MAJOR_VERSION).install
+		echo "/usr/bin/* /usr/lib/irtk$(IRTK_MAJOR_VERSION)" > debian/irtk$(IRTK_MAJOR_VERSION).install	
+		# Generate debhelper .links file to create the versioned 
+		# symlinks to the IRTK executables.
 		for f in $$(find $(BUILDDIR)/bin \! -type d | sort); do \
 				bname=$$(basename $$f); \
-				echo "/usr/lib/irtk/$$bname /usr/bin/irtk-$$bname" >> debian/irtk.links; \
+				echo "/usr/lib/irtk$(IRTK_MAJOR_VERSION)/$$bname /usr/bin/irtk$(IRTK_MAJOR_VERSION)-$$bname" >> debian/irtk$(IRTK_MAJOR_VERSION).links; \
 		done
 		# Make doxygen documentation
 		cd $(BUILDDIR) && $(MAKE) doc

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



More information about the debian-med-commit mailing list