[SCM] liblscp packaging branch, master, updated. upstream/0.5.6-14-gbc69f67

alessio at users.alioth.debian.org alessio at users.alioth.debian.org
Tue Aug 17 13:08:13 UTC 2010


The following commit has been merged in the master branch:
commit b5ba1e7f33d1a3c5f049e547f5022275d18a18a0
Author: Alessio Treglia <alessio at debian.org>
Date:   Tue Aug 17 15:01:17 2010 +0200

    Switch to DH 7 + autotools_dev add-on.

diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
index 24059e3..f45d469 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,8 @@ Priority: optional
 Maintainer: Debian Multimedia Maintainers <pkg-multimedia-maintainers at lists.alioth.debian.org>
 Uploaders: Paul Brossier <piem at debian.org>,
  Free Ekanayaka <freee at debian.org>
-Build-Depends: debhelper (>= 4.0.0),
+Build-Depends: debhelper (>= 7),
+ autotools-dev (>= 20100122.1~),
  automake1.9,
  libtool
 Standards-Version: 3.9.1
diff --git a/debian/rules b/debian/rules
index 7433803..dcf6189 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,116 +1,4 @@
 #!/usr/bin/make -f
-# -*- makefile -*-
-# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
 
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
-
-DEBIAN_VERSION=$(shell dpkg-parsechangelog |grep ^Version: | cut -f 2 -d " ")
-UPSTREAM_VERSION=$(shell echo $(DEBIAN_VERSION) | sed -e 's/\(.*\)-.*/\1/g')
-DEBIAN_REVISION=$(shell echo $(DEBIAN_VERSION) | sed -e 's/.*-\([^\+]*\).*/\1/g')
-
-# This is the debhelper compatibility version to use.
-export DH_COMPAT=4
-
-# 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)
-
-
-ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
-	CFLAGS += -g
-endif
-ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
-	INSTALL_PROGRAM += -s
-endif
-
-config.status: patch-stamp
-	dh_testdir
-	# Add here commands to configure the package.
-ifneq (,$(findstring +cvs,$(DEBIAN_VERSION)))
-	$(MAKE) -f Makefile.cvs clean
-	$(MAKE) -f Makefile.cvs
-	chmod a+x configure
-endif
-	CXXFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info
-
-
-build: build-stamp
-build-stamp:  config.status
-	dh_testdir
-
-	# Add here commands to compile the package.
-	$(MAKE)
-
-	# the build should fail if the tests are not successful
-	#$(MAKE) check
-
-	touch build-stamp
-
-clean: unpatch
-	dh_testdir
-	dh_testroot
-	-rm -f build-stamp config.log
-	-rm -f build-stamp config.log
-	-mv debian/liblscp.install debian/liblscp2.install
-
-	# Add here commands to clean up after the build process.
-	-$(MAKE) distclean
-
-	dh_clean -a
-
-install: build
-	dh_testdir
-	dh_testroot
-	dh_clean -k -a
-	dh_installdirs
-
-	# Add here commands to install the package into debian/tmp
-	$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
-
-# 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_install -a --list-missing
-	dh_installchangelogs -a ChangeLog
-	dh_installdocs -a
-#	dh_installexamples
-#	dh_installmenu
-#	dh_installdebconf
-#	dh_installlogrotate
-#	dh_installemacsen
-#	dh_installpam
-#	dh_installmime
-#	dh_installinit
-#	dh_installcron
-#	dh_installinfo
-#	dh_installman
-#	dh_link
-	dh_strip -a
-	dh_compress -a
-	dh_fixperms -a
-#	dh_perl
-#	dh_python
-	dh_makeshlibs
-	dh_installdeb -a
-	dh_shlibdeps
-	dh_gencontrol -a
-	dh_md5sums -a
-	dh_builddeb -a
-
-update-cvs-snapshot:
-
-	cat debian/patches/10_cvs-snapshot.dpatch | head -25 > debian/patches/10_cvs-snapshot.dpatch
-	cvs -z3 -d :pserver:anonymous at cvs.linuxsampler.org:/var/cvs/linuxsampler \
-		rdiff -u -r liblscp_$(shell echo $(UPSTREAM_VERSION) | tr "." "_") -D today liblscp|\
-		filterdiff -x "debian/*" -p1  >> debian/patches/10_cvs-snapshot.dpatch
-	dch -v $(UPSTREAM_VERSION)-$(DEBIAN_REVISION)+cvs`date +%y%m%d` -m "New cvs snapshot"
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install
+%:
+	dh $@ --with autotools_dev

-- 
liblscp packaging



More information about the pkg-multimedia-commits mailing list