[med-svn] r7645 - in trunk/packages/dicom3tools/tags: . 1.0~20110901-1/debian

Mathieu Malaterre malat-guest at alioth.debian.org
Sat Sep 3 16:27:16 UTC 2011


Author: malat-guest
Date: 2011-09-03 16:27:15 +0000 (Sat, 03 Sep 2011)
New Revision: 7645

Added:
   trunk/packages/dicom3tools/tags/1.0~20110901-1/
   trunk/packages/dicom3tools/tags/1.0~20110901-1/debian/changelog
   trunk/packages/dicom3tools/tags/1.0~20110901-1/debian/rules
Removed:
   trunk/packages/dicom3tools/tags/1.0~20110901-1/debian/changelog
   trunk/packages/dicom3tools/tags/1.0~20110901-1/debian/rules
Log:
[svn-buildpackage] Tagging dicom3tools 1.0~20110901-1

Deleted: trunk/packages/dicom3tools/tags/1.0~20110901-1/debian/changelog
===================================================================
--- trunk/packages/dicom3tools/trunk/debian/changelog	2011-09-03 15:34:35 UTC (rev 7640)
+++ trunk/packages/dicom3tools/tags/1.0~20110901-1/debian/changelog	2011-09-03 16:27:15 UTC (rev 7645)
@@ -1,92 +0,0 @@
-dicom3tools (1.0~20110529-1) unstable; urgency=low
-
-  * New upstream
-  * Allow new executable: pnmtoraw
-
- -- Mathieu Malaterre <mathieu.malaterre at gmail.com>  Fri, 17 Jun 2011 12:10:34 +0200
-
-dicom3tools (1.0~20110522-1) unstable; urgency=low
-
-  * New upstream
-  * Update Standards-Version to 3.9.2. No changes needed
-  * Properly handle uncompressed icon. Closes: #625816
-
- -- Mathieu Malaterre <mathieu.malaterre at gmail.com>  Sat, 28 May 2011 17:55:51 +0200
-
-dicom3tools (1.0~20110207-1) unstable; urgency=low
-
-  * New upstream
-  * Fix dctopgm8 and MONOCHROME1 windowing
-  * Add cmd line opt for dctopgm8 (override VOI LUT)
-  * Add suggest on pvrg-jpeg
-  * Use --no-name when compressing orig tarball
-
- -- Mathieu Malaterre <mathieu.malaterre at gmail.com>  Wed, 20 Apr 2011 11:35:51 +0200
-
-dicom3tools (1.0~20101204-1) experimental; urgency=low
-
-  * New upsteam
-  * Add new command line tools: dctopgm8, dcposn, dctopgx, dctopnm
-  * Bump Standard-Version to 3.9.1, no change needed
-
- -- Mathieu Malaterre <mathieu.malaterre at gmail.com>  Thu, 13 Jan 2011 09:11:20 +0100
-
-dicom3tools (1.0~20100510-1) unstable; urgency=low
-
-  * New upstream (fix pnmtodc for odd length)
-
- -- Mathieu Malaterre <mathieu.malaterre at gmail.com>  Tue, 11 May 2010 11:39:07 +0200
-
-dicom3tools (1.0~20100206-2) unstable; urgency=low
-
-  * Add jpegdump command line tool for dumping jpeg structure.
-
- -- Mathieu Malaterre <mathieu.malaterre at gmail.com>  Mon, 03 May 2010 17:50:53 +0200
-
-dicom3tools (1.0~20100206-1) unstable; urgency=low
-
-  * New upstream.
-  * Bump Standard-Version to 3.8.4, no change needed
-
- -- Mathieu Malaterre <mathieu.malaterre at gmail.com>  Thu, 25 Feb 2010 09:49:28 +0100
-
-dicom3tools (1.0~20091217-1) unstable; urgency=low
-
-  * Fix DEB_BUILD_OPTIONS=nostrip discarded (Closes: #559320)
-  * dciodvfy: Allow RGB for RLE. Closes: #561122 
-
- -- Mathieu Malaterre <mathieu.malaterre at gmail.com>  Sun, 27 Dec 2009 15:06:08 +0100
-
-dicom3tools (1.0~20091113-1) unstable; urgency=low
-
-  * New upstream.
-  * Add new utilities: dcdirdmp, dcsrdump
-  * Remove static libraries
-
- -- Mathieu Malaterre <mathieu.malaterre at gmail.com>  Fri, 20 Nov 2009 14:44:50 +0100
-
-dicom3tools (1.0~20090716-4) unstable; urgency=low
-
-  * Fix compilation on hurd-i386 
-
- -- Mathieu Malaterre <mathieu.malaterre at gmail.com>  Fri, 11 Sep 2009 09:25:13 +0200
-
-dicom3tools (1.0~20090716-3) unstable; urgency=low
-
-  * debian/control: adding dep to x11proto-xext-dev, find X11/extensions/XShm.h
-  * Fix compilation on kFreeBSD (Closes: #545844) 
-
- -- Mathieu Malaterre <mathieu.malaterre at gmail.com>  Wed, 09 Sep 2009 18:27:23 +0200
-
-dicom3tools (1.0~20090716-2) unstable; urgency=low
-
-  * debian/control: adding dep to libx11-dev, to find X11/Xlib.h 
-  * Fix compilation on buildd machine with no tty (Closes: #545697) 
-
- -- Mathieu Malaterre <mathieu.malaterre at gmail.com>  Tue, 08 Sep 2009 16:44:03 +0200
-
-dicom3tools (1.0~20090716-1) unstable; urgency=low
-
-  * Initial Release (Closes: #508901)
-
- -- Mathieu Malaterre <mathieu.malaterre at gmail.com>  Sun, 09 Aug 2009 10:39:39 +0200

Copied: trunk/packages/dicom3tools/tags/1.0~20110901-1/debian/changelog (from rev 7644, trunk/packages/dicom3tools/trunk/debian/changelog)
===================================================================
--- trunk/packages/dicom3tools/tags/1.0~20110901-1/debian/changelog	                        (rev 0)
+++ trunk/packages/dicom3tools/tags/1.0~20110901-1/debian/changelog	2011-09-03 16:27:15 UTC (rev 7645)
@@ -0,0 +1,99 @@
+dicom3tools (1.0~20110901-1) unstable; urgency=low
+
+  * New upstream
+  * Fix lintian debian-rules-missing-recommended-target
+
+ -- Mathieu Malaterre <mathieu.malaterre at gmail.com>  Sat, 03 Sep 2011 17:39:25 +0200
+
+dicom3tools (1.0~20110529-1) unstable; urgency=low
+
+  * New upstream
+  * Allow new executable: pnmtoraw
+
+ -- Mathieu Malaterre <mathieu.malaterre at gmail.com>  Fri, 17 Jun 2011 12:10:34 +0200
+
+dicom3tools (1.0~20110522-1) unstable; urgency=low
+
+  * New upstream
+  * Update Standards-Version to 3.9.2. No changes needed
+  * Properly handle uncompressed icon. Closes: #625816
+
+ -- Mathieu Malaterre <mathieu.malaterre at gmail.com>  Sat, 28 May 2011 17:55:51 +0200
+
+dicom3tools (1.0~20110207-1) unstable; urgency=low
+
+  * New upstream
+  * Fix dctopgm8 and MONOCHROME1 windowing
+  * Add cmd line opt for dctopgm8 (override VOI LUT)
+  * Add suggest on pvrg-jpeg
+  * Use --no-name when compressing orig tarball
+
+ -- Mathieu Malaterre <mathieu.malaterre at gmail.com>  Wed, 20 Apr 2011 11:35:51 +0200
+
+dicom3tools (1.0~20101204-1) experimental; urgency=low
+
+  * New upsteam
+  * Add new command line tools: dctopgm8, dcposn, dctopgx, dctopnm
+  * Bump Standard-Version to 3.9.1, no change needed
+
+ -- Mathieu Malaterre <mathieu.malaterre at gmail.com>  Thu, 13 Jan 2011 09:11:20 +0100
+
+dicom3tools (1.0~20100510-1) unstable; urgency=low
+
+  * New upstream (fix pnmtodc for odd length)
+
+ -- Mathieu Malaterre <mathieu.malaterre at gmail.com>  Tue, 11 May 2010 11:39:07 +0200
+
+dicom3tools (1.0~20100206-2) unstable; urgency=low
+
+  * Add jpegdump command line tool for dumping jpeg structure.
+
+ -- Mathieu Malaterre <mathieu.malaterre at gmail.com>  Mon, 03 May 2010 17:50:53 +0200
+
+dicom3tools (1.0~20100206-1) unstable; urgency=low
+
+  * New upstream.
+  * Bump Standard-Version to 3.8.4, no change needed
+
+ -- Mathieu Malaterre <mathieu.malaterre at gmail.com>  Thu, 25 Feb 2010 09:49:28 +0100
+
+dicom3tools (1.0~20091217-1) unstable; urgency=low
+
+  * Fix DEB_BUILD_OPTIONS=nostrip discarded (Closes: #559320)
+  * dciodvfy: Allow RGB for RLE. Closes: #561122 
+
+ -- Mathieu Malaterre <mathieu.malaterre at gmail.com>  Sun, 27 Dec 2009 15:06:08 +0100
+
+dicom3tools (1.0~20091113-1) unstable; urgency=low
+
+  * New upstream.
+  * Add new utilities: dcdirdmp, dcsrdump
+  * Remove static libraries
+
+ -- Mathieu Malaterre <mathieu.malaterre at gmail.com>  Fri, 20 Nov 2009 14:44:50 +0100
+
+dicom3tools (1.0~20090716-4) unstable; urgency=low
+
+  * Fix compilation on hurd-i386 
+
+ -- Mathieu Malaterre <mathieu.malaterre at gmail.com>  Fri, 11 Sep 2009 09:25:13 +0200
+
+dicom3tools (1.0~20090716-3) unstable; urgency=low
+
+  * debian/control: adding dep to x11proto-xext-dev, find X11/extensions/XShm.h
+  * Fix compilation on kFreeBSD (Closes: #545844) 
+
+ -- Mathieu Malaterre <mathieu.malaterre at gmail.com>  Wed, 09 Sep 2009 18:27:23 +0200
+
+dicom3tools (1.0~20090716-2) unstable; urgency=low
+
+  * debian/control: adding dep to libx11-dev, to find X11/Xlib.h 
+  * Fix compilation on buildd machine with no tty (Closes: #545697) 
+
+ -- Mathieu Malaterre <mathieu.malaterre at gmail.com>  Tue, 08 Sep 2009 16:44:03 +0200
+
+dicom3tools (1.0~20090716-1) unstable; urgency=low
+
+  * Initial Release (Closes: #508901)
+
+ -- Mathieu Malaterre <mathieu.malaterre at gmail.com>  Sun, 09 Aug 2009 10:39:39 +0200

Deleted: trunk/packages/dicom3tools/tags/1.0~20110901-1/debian/rules
===================================================================
--- trunk/packages/dicom3tools/trunk/debian/rules	2011-09-03 15:34:35 UTC (rev 7640)
+++ trunk/packages/dicom3tools/tags/1.0~20110901-1/debian/rules	2011-09-03 16:27:15 UTC (rev 7645)
@@ -1,144 +0,0 @@
-#!/usr/bin/make -f
-# -*- makefile -*-
-# Sample debian/rules that uses debhelper.
-# This file was originally written by Joey Hess and Craig Small.
-# As a special exception, when this file is copied by dh-make into a
-# dh-make output file, you may use that output file without restriction.
-# This special exception was added by Craig Small in version 0.37 of dh-make.
-
-include /usr/share/quilt/quilt.make
-
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-
-# These are used for cross-compiling and for saving the configure script
-# from having to guess our platform (since we know it already)
-DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-
-VER_MAJOR = 1
-VER_MINOR = 0
-VER_PATCH = $(shell dpkg-parsechangelog | grep '^Version' | cut -d' ' -f2 | cut -f1 -d- | cut -f2 -d~)
-UPSTREAM_SRC = dicom3tools_1.00.snapshot.$(VER_PATCH)
-
-VER_FULL = $(VER_MAJOR).$(VER_MINOR)~$(VER_PATCH)
-DEBIAN_SRC_DIR = dicom3tools-$(VER_FULL)
-DEBIAN_SRC_TAR = dicom3tools_$(VER_FULL).orig.tar.gz
-
-CFLAGS = -Wall -g
-
-ifneq (,$(findstring regression_testing_dicom,$(MM_BUILD_OPTIONS)))
-DCLIST = -name andump\* -o -name dccp\* -o -name dcintro\* -o -name rawtodc\* -o -name pdftodc\* -o -name rawnjl2\* -o -name ancreate\* -o -name dcencap\* -o -name dccp\* -o -name dctoraw\* -o -name dcjpeg\* -o -name dcmulti\* -o -name dcuncat\* -o -name pnmtodc\* -o -name dcjls\* -o -name dcj2k\* -o -name dcunjpeg\* -o -name dcunjls\* -o -name bmpdump\* -o -name jpegdump\* -o -name dcdirdmp\* -o -name dcdump\* -o -name dcentvfy\* -o -name dcfile\* -o -name dchist\* -o -name dciodvfy\* -o -name dckey\* -o -name dcsort\* -o -name dcsrdump\* -o -name dcstats\* -o -name dctable\* -o -name dctopgm8\* -o -name dcposn\* -o -name dctopgx\* -o -name dctopnm\* -o -name pgxtodc\* -o -name pnmtodc\* -o -name rawftodc\* -o -name rawtodc\*
-ifneq (,$(filter default_uid_root=%,$(MM_BUILD_OPTIONS)))
-DEFAULTUIDROOT = $(patsubst default_uid_root=%,%,$(filter default_uid_root=%,$(MM_BUILD_OPTIONS)))
-IMAKEFLAGS = -DDefaultUIDRoot=$(DEFAULTUIDROOT)
-endif
-else
-DCLIST = -name andump\* -o -name jpegdump\* -o -name dcdirdmp\* -o -name dcdump\* -o -name dcentvfy\* -o -name dcfile\* -o -name dchist\* -o -name dciodvfy\* -o -name dckey\* -o -name dcsort\* -o -name dcsrdump\* -o -name dcstats\* -o -name dctable\* -o -name dctopgm8\* -o -name dcposn\* -o -name dctopgx\* -o -name dctopnm\*
-endif
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-	OPT_FLAGS = -O0
-else
-	OPT_FLAGS = -O2
-endif
-CFLAGS += $(OPT_FLAGS)
-
-configure: configure-stamp
-configure-stamp: $(QUILT_STAMPFN)
-	dh_testdir
-	# http://www.gnu.org/manual/gawk/html_node/Special-FD.html
-	find . -name \*.awk -exec sed -i -e 's@/dev/tty@/dev/stderr at g' {} \;
-	# Add here commands to configure the package.
-	sh Configure
-	imake -I./config -DTmpPath=/tmp -DOptimizeLevel=$(OPT_FLAGS) $(IMAKEFLAGS)
-	touch configure-stamp
-
-build: build-stamp
-build-stamp: configure-stamp
-	dh_testdir
-	# Add here commands to compile the package.
-	$(MAKE) World "C_DEBUGFLAGS=$(CFLAGS)" "CPLUSPLUS_DEBUGFLAGS=$(CFLAGS)"
-	touch $@
-
-clean:
-	dh_testdir
-	dh_testroot
-	rm -f build-stamp configure-stamp
-	[ ! -f Makefile ] || $(MAKE) clean
-	dh_clean 
-
-install: build
-	dh_testdir
-	dh_testroot
-	#dh_clean -k 
-	dh_prep
-	dh_installdirs
-
-	# Add here commands to install the package into debian/dicom3tools.
-	# install everything
-	$(MAKE) DESTDIR=$(CURDIR)/debian/dicom3tools install
-	# install man pages:
-	$(MAKE) DESTDIR=$(CURDIR)/debian/dicom3tools install.man
-	# remove empty man page
-	find $(CURDIR)/debian/dicom3tools -type f -size 0 -print | xargs rm
-	# now that we have removed empty man page, we need to remove associated binaries
-	for file in ancp andiff antodc.all binpatch dcanon dcburn dccmp dccomb dcdecmpr dcdiff dclutburn \
-							dclutmix dcmvhier.8only dcmvhier.all dcortho dcostosr dcpost dcproj dcrmsfx.all \
-							dcsrmrg dcsub dcswab dcunjpeg.all dumptiff dumpwhat gentodc.dat.all \
-							jpegsplit pbmswbit pgmtobmp pnmpred pqsplit rawarith rawdiff rawmask; do \
-		find $(CURDIR)/debian/dicom3tools -type f -name $$file\* -print | xargs rm; \
-	done
-	# Move the special .so (groff source file to /usr/share/dicom3tools to please lintian
-	mkdir -p $(CURDIR)/debian/dicom3tools/usr/share/dicom3tools
-	mv $(CURDIR)/debian/dicom3tools/usr/share/man/man1/*.so $(CURDIR)/debian/dicom3tools/usr/share/dicom3tools
-	# Let's use the new file location:
-	find $(CURDIR)/debian/dicom3tools/usr/share/man/man1 -type f -exec sed -i -e 's at .so man1 at .so ../dicom3tools at g' {} \;
-	# Cannot start a line with a . (it is a macro)
-	# http://www.mail-archive.com/groff@gnu.org/msg04712.html
-	find $(CURDIR)/debian/dicom3tools/usr/share/man/man1 -type f -exec sed -i -e 's/^\.\.\.$$/\\\&\.\.\./g' {} \;
-	#  a newline character is not allowed in an escape name / a space character is not allowed in an escape name
-	find $(CURDIR)/debian/dicom3tools/usr/share/man/man1 -type f -exec sed -i -e 's/\\n/\\/g' {} \;
-	# hyphen-used-as-minus-sign
-	#find $(CURDIR)/debian/dicom3tools/usr/share/man/man1 -type f -exec sed -i -e 's/-/\\-/g' {} \;
-	# Can't use above -> manpage-has-bad-whatis-entry
-	# Remove (except special list from official upstream releases) :
-	find $(CURDIR)/debian/dicom3tools/usr/bin -type f -not \( $(DCLIST) \) -print | xargs rm;
-	find $(CURDIR)/debian/dicom3tools/usr/share/man -type f -not \( $(DCLIST) \) -print | xargs rm;
-	# Remove all static lib
-	rm -rf $(CURDIR)/debian/dicom3tools/usr/lib
-
-# Build architecture-independent files here.
-binary-indep: build install
-# We have nothing to do by default.
-
-# Build architecture-dependent files here.
-binary-arch: build install
-	dh_testdir
-	dh_testroot
-	dh_installchangelogs CHANGES
-	dh_installdocs
-	dh_installexamples
-	dh_installman
-	dh_link
-	dh_strip
-	dh_compress
-	dh_fixperms
-	dh_installdeb
-	dh_shlibdeps
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-
-$(UPSTREAM_SRC).tar.bz2:
-	wget http://www.dclunie.com/dicom3tools/workinprogress/$@
-
-get-orig-source: $(UPSTREAM_SRC).tar.bz2
-	tar xjf $(UPSTREAM_SRC).tar.bz2
-	mv $(UPSTREAM_SRC) $(DEBIAN_SRC_DIR)
-	GZIP="--best --no-name" tar czf $(DEBIAN_SRC_TAR) $(DEBIAN_SRC_DIR)
-	rm -rf $(DEBIAN_SRC_DIR)
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure

Copied: trunk/packages/dicom3tools/tags/1.0~20110901-1/debian/rules (from rev 7643, trunk/packages/dicom3tools/trunk/debian/rules)
===================================================================
--- trunk/packages/dicom3tools/tags/1.0~20110901-1/debian/rules	                        (rev 0)
+++ trunk/packages/dicom3tools/tags/1.0~20110901-1/debian/rules	2011-09-03 16:27:15 UTC (rev 7645)
@@ -0,0 +1,147 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+# Sample debian/rules that uses debhelper.
+# This file was originally written by Joey Hess and Craig Small.
+# As a special exception, when this file is copied by dh-make into a
+# dh-make output file, you may use that output file without restriction.
+# This special exception was added by Craig Small in version 0.37 of dh-make.
+
+include /usr/share/quilt/quilt.make
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+
+# These are used for cross-compiling and for saving the configure script
+# from having to guess our platform (since we know it already)
+DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
+DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
+
+VER_MAJOR = 1
+VER_MINOR = 0
+VER_PATCH = $(shell dpkg-parsechangelog | grep '^Version' | cut -d' ' -f2 | cut -f1 -d- | cut -f2 -d~)
+UPSTREAM_SRC = dicom3tools_1.00.snapshot.$(VER_PATCH)
+
+VER_FULL = $(VER_MAJOR).$(VER_MINOR)~$(VER_PATCH)
+DEBIAN_SRC_DIR = dicom3tools-$(VER_FULL)
+DEBIAN_SRC_TAR = dicom3tools_$(VER_FULL).orig.tar.gz
+
+CFLAGS = -Wall -g
+
+ifneq (,$(findstring regression_testing_dicom,$(MM_BUILD_OPTIONS)))
+DCLIST = -name andump\* -o -name dccp\* -o -name dcintro\* -o -name rawtodc\* -o -name pdftodc\* -o -name rawnjl2\* -o -name ancreate\* -o -name dcencap\* -o -name dccp\* -o -name dctoraw\* -o -name dcjpeg\* -o -name dcmulti\* -o -name dcuncat\* -o -name pnmtodc\* -o -name dcjls\* -o -name dcj2k\* -o -name dcunjpeg\* -o -name dcunjls\* -o -name bmpdump\* -o -name jpegdump\* -o -name dcdirdmp\* -o -name dcdump\* -o -name dcentvfy\* -o -name dcfile\* -o -name dchist\* -o -name dciodvfy\* -o -name dckey\* -o -name dcsort\* -o -name dcsrdump\* -o -name dcstats\* -o -name dctable\* -o -name dctopgm8\* -o -name dcposn\* -o -name dctopgx\* -o -name dctopnm\* -o -name pgxtodc\* -o -name pnmtodc\* -o -name rawftodc\* -o -name rawtodc\*
+ifneq (,$(filter default_uid_root=%,$(MM_BUILD_OPTIONS)))
+DEFAULTUIDROOT = $(patsubst default_uid_root=%,%,$(filter default_uid_root=%,$(MM_BUILD_OPTIONS)))
+IMAKEFLAGS = -DDefaultUIDRoot=$(DEFAULTUIDROOT)
+endif
+else
+DCLIST = -name andump\* -o -name jpegdump\* -o -name dcdirdmp\* -o -name dcdump\* -o -name dcentvfy\* -o -name dcfile\* -o -name dchist\* -o -name dciodvfy\* -o -name dckey\* -o -name dcsort\* -o -name dcsrdump\* -o -name dcstats\* -o -name dctable\* -o -name dctopgm8\* -o -name dcposn\* -o -name dctopgx\* -o -name dctopnm\*
+endif
+
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+	OPT_FLAGS = -O0
+else
+	OPT_FLAGS = -O2
+endif
+CFLAGS += $(OPT_FLAGS)
+
+configure: configure-stamp
+configure-stamp: $(QUILT_STAMPFN)
+	dh_testdir
+	# http://www.gnu.org/manual/gawk/html_node/Special-FD.html
+	find . -name \*.awk -exec sed -i -e 's@/dev/tty@/dev/stderr at g' {} \;
+	# Add here commands to configure the package.
+	sh Configure
+	imake -I./config -DTmpPath=/tmp -DOptimizeLevel=$(OPT_FLAGS) $(IMAKEFLAGS)
+	touch configure-stamp
+
+build: build-stamp
+build-stamp: configure-stamp
+	dh_testdir
+	# Add here commands to compile the package.
+	$(MAKE) World "C_DEBUGFLAGS=$(CFLAGS)" "CPLUSPLUS_DEBUGFLAGS=$(CFLAGS)"
+	touch $@
+
+clean:
+	dh_testdir
+	dh_testroot
+	rm -f build-stamp configure-stamp
+	[ ! -f Makefile ] || $(MAKE) clean
+	dh_clean 
+
+install: build
+	dh_testdir
+	dh_testroot
+	#dh_clean -k 
+	dh_prep
+	dh_installdirs
+
+	# Add here commands to install the package into debian/dicom3tools.
+	# install everything
+	$(MAKE) DESTDIR=$(CURDIR)/debian/dicom3tools install
+	# install man pages:
+	$(MAKE) DESTDIR=$(CURDIR)/debian/dicom3tools install.man
+	# remove empty man page
+	find $(CURDIR)/debian/dicom3tools -type f -size 0 -print | xargs rm
+	# now that we have removed empty man page, we need to remove associated binaries
+	for file in ancp andiff antodc.all binpatch dcanon dcburn dccmp dccomb dcdecmpr dcdiff dclutburn \
+							dclutmix dcmvhier.8only dcmvhier.all dcortho dcostosr dcpost dcproj dcrmsfx.all \
+							dcsrmrg dcsub dcswab dcunjpeg.all dumptiff dumpwhat gentodc.dat.all \
+							jpegsplit pbmswbit pgmtobmp pnmpred pqsplit rawarith rawdiff rawmask; do \
+		find $(CURDIR)/debian/dicom3tools -type f -name $$file\* -print | xargs rm; \
+	done
+	# Move the special .so (groff source file to /usr/share/dicom3tools to please lintian
+	mkdir -p $(CURDIR)/debian/dicom3tools/usr/share/dicom3tools
+	mv $(CURDIR)/debian/dicom3tools/usr/share/man/man1/*.so $(CURDIR)/debian/dicom3tools/usr/share/dicom3tools
+	# Let's use the new file location:
+	find $(CURDIR)/debian/dicom3tools/usr/share/man/man1 -type f -exec sed -i -e 's at .so man1 at .so ../dicom3tools at g' {} \;
+	# Cannot start a line with a . (it is a macro)
+	# http://www.mail-archive.com/groff@gnu.org/msg04712.html
+	find $(CURDIR)/debian/dicom3tools/usr/share/man/man1 -type f -exec sed -i -e 's/^\.\.\.$$/\\\&\.\.\./g' {} \;
+	#  a newline character is not allowed in an escape name / a space character is not allowed in an escape name
+	find $(CURDIR)/debian/dicom3tools/usr/share/man/man1 -type f -exec sed -i -e 's/\\n/\\/g' {} \;
+	# hyphen-used-as-minus-sign
+	#find $(CURDIR)/debian/dicom3tools/usr/share/man/man1 -type f -exec sed -i -e 's/-/\\-/g' {} \;
+	# Can't use above -> manpage-has-bad-whatis-entry
+	# Remove (except special list from official upstream releases) :
+	find $(CURDIR)/debian/dicom3tools/usr/bin -type f -not \( $(DCLIST) \) -print | xargs rm;
+	find $(CURDIR)/debian/dicom3tools/usr/share/man -type f -not \( $(DCLIST) \) -print | xargs rm;
+	# Remove all static lib
+	rm -rf $(CURDIR)/debian/dicom3tools/usr/lib
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+build-arch: build
+build-indep: build
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs CHANGES
+	dh_installdocs
+	dh_installexamples
+	dh_installman
+	dh_link
+	dh_strip
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+$(UPSTREAM_SRC).tar.bz2:
+	wget http://www.dclunie.com/dicom3tools/workinprogress/$@
+
+get-orig-source: $(UPSTREAM_SRC).tar.bz2
+	tar xjf $(UPSTREAM_SRC).tar.bz2
+	mv $(UPSTREAM_SRC) $(DEBIAN_SRC_DIR)
+	GZIP="--best --no-name" tar czf $(DEBIAN_SRC_TAR) $(DEBIAN_SRC_DIR)
+	rm -rf $(DEBIAN_SRC_DIR)
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install configure




More information about the debian-med-commit mailing list