[med-svn] [libbpp-core] 01/03: Short dh rules file

Andreas Tille tille at debian.org
Fri Apr 8 20:19:04 UTC 2016


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

tille pushed a commit to branch master
in repository libbpp-core.

commit ce8c2bf6c5495b0e2fb8bc3e7e2f90cbaeb205f6
Author: Andreas Tille <tille at debian.org>
Date:   Fri Apr 8 22:15:41 2016 +0200

    Short dh rules file
---
 debian/changelog |   2 +
 debian/rules     | 114 ++-----------------------------------------------------
 2 files changed, 5 insertions(+), 111 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 7994bc2..4cc883b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,6 +5,8 @@ libbpp-core (2.2.0-1) UNRELEASED; urgency=medium
   * Better description
   * Team maintenance in Debian Med team
   * wrote watch file
+  * DEP5 copyright
+  * Short dh rules file
 
  -- Andreas Tille <tille at debian.org>  Thu, 07 Apr 2016 09:19:57 +0200
 
diff --git a/debian/rules b/debian/rules
index 34313ef..8bea1af 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,122 +1,14 @@
 #!/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.
-
-# 24/01/10 Modification for use with CMake by Julien Dutheil.
-
 # 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)
-
-
-CFLAGS = -Wall -g
-
-ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
-	CFLAGS += -O0
-else
-	CFLAGS += -O2
-endif
-
 # shared library versions
 version=`ls src/lib*.so.* | \
  awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
 major=`ls src/lib*.so.* | \
  awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
 
-configure:
-	cmake -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_TESTING=OFF .
-
-config.status: configure
-	dh_testdir
-
-build: build-arch build-indep
-build-arch: build-stamp
-build-indep: build-stamp
-build-stamp:  config.status
-	dh_testdir
-
-	# Add here commands to compile the package.
-	$(MAKE)
-
-	touch $@
-
-clean:
-	dh_testdir
-	dh_testroot
-
-	# Add here commands to clean up after the build process.
-	[ ! -f Makefile ] || $(MAKE) clean;
-	[ ! -f Makefile ] || rm Makefile;
-	[ ! -f src/Makefile ] || rm src/Makefile;
-	[ ! -f test/Makefile ] || rm test/Makefile;
-	rm -f config.sub config.guess
-	rm -f build-stamp
-	rm -f CMakeCache.txt
-	rm -f *.cmake
-	rm -f src/*.cmake
-	rm -f test/*.cmake
-	rm -rf CMakeFiles
-	rm -rf src/CMakeFiles
-	rm -rf test/CMakeFiles
-	rm -rf _CPack_Packages
-	rm -rf Testing
-	rm -f DartConfiguration.tcl
-
-	dh_clean 
-
-install: build
-	dh_testdir
-	dh_testroot
-	dh_prep 
-	dh_installdirs
-
-	# Add here commands to install the package into debian/tmp
-	$(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
-
-
-# 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 ChangeLog
-	dh_installdocs
-	dh_installexamples
-	dh_install
-#	dh_installmenu
-#	dh_installdebconf	
-#	dh_installlogrotate
-#	dh_installemacsen
-#	dh_installpam
-#	dh_installmime
-#	dh_installinit
-#	dh_installcron
-#	dh_installinfo
-	dh_installman
-	dh_link
-	dh_strip
-	dh_compress
-	dh_fixperms
-#	dh_perl
-#	dh_python
-	dh_makeshlibs
-	dh_installdeb
-	dh_shlibdeps
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
+CMAKE_EXTRA_FLAGS += -DBUILD_TESTING=OFF
 
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install 
+%:
+	dh $@

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



More information about the debian-med-commit mailing list