[Pkg-voip-commits] r8363 - in /ptlib/branches/ptlib-2.6/debian: changelog control libpt2.6.6.install rules watch
msp at alioth.debian.org
msp at alioth.debian.org
Sat May 1 10:18:13 UTC 2010
Author: msp
Date: Sat May 1 10:18:13 2010
New Revision: 8363
URL: http://svn.debian.org/wsvn/pkg-voip/?sc=1&rev=8363
Log:
* Switch to dh (7) - drop cdbs
* Depreciate libpt2.4.5-plugins -> libpt2.4.5
- Makes dependent packages binNMU safe
Modified:
ptlib/branches/ptlib-2.6/debian/changelog
ptlib/branches/ptlib-2.6/debian/control
ptlib/branches/ptlib-2.6/debian/libpt2.6.6.install
ptlib/branches/ptlib-2.6/debian/rules
ptlib/branches/ptlib-2.6/debian/watch
Modified: ptlib/branches/ptlib-2.6/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-voip/ptlib/branches/ptlib-2.6/debian/changelog?rev=8363&op=diff
==============================================================================
--- ptlib/branches/ptlib-2.6/debian/changelog (original)
+++ ptlib/branches/ptlib-2.6/debian/changelog Sat May 1 10:18:13 2010
@@ -4,9 +4,11 @@
- NEW package libpt2.6.6 - soname bump
* Constrain debian/watch to just track 2.6 series (Lalande release)
- Move to svn://svn.debian.org/pkg-voip/ptlib/branches/ptlib-2.6
- * Provides: libpt-plugins - preferred method for others to depend
-
- -- Mark Purcell <msp at debian.org> Sat, 24 Apr 2010 13:27:22 +1000
+ * Switch to dh (7) - drop cdbs
+ * Depreciate libpt2.4.5-plugins -> libpt2.4.5
+ - Makes dependent packages binNMU safe
+
+ -- Mark Purcell <msp at debian.org> Sat, 01 May 2010 13:52:11 +1000
ptlib (2.6.5-1) unstable; urgency=low
Modified: ptlib/branches/ptlib-2.6/debian/control
URL: http://svn.debian.org/wsvn/pkg-voip/ptlib/branches/ptlib-2.6/debian/control?rev=8363&op=diff
==============================================================================
--- ptlib/branches/ptlib-2.6/debian/control (original)
+++ ptlib/branches/ptlib-2.6/debian/control Sat May 1 10:18:13 2010
@@ -3,41 +3,37 @@
Priority: optional
Maintainer: Debian VoIP Team <pkg-voip-maintainers at lists.alioth.debian.org>
Uploaders: Mark Purcell <msp at debian.org>, Eugen Dedu <Eugen.Dedu at pu-pm.univ-fcomte.fr>
-Build-Depends: debhelper (>= 7), dpatch, g++ (>= 2.95), autotools-dev, doxygen, pkg-config, bison, flex,
+Build-Depends: debhelper (>= 7.0.50~), autotools-dev, doxygen, pkg-config, bison, flex,
unixodbc-dev, libssl-dev, libldap2-dev, libsasl2-dev, libkrb5-dev, libexpat1-dev,
libsdl1.2-dev, libdv4-dev,
libv4l-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386],
libasound2-dev [!kfreebsd-i386 !kfreebsd-amd64 !hurd-i386]
Build-Conflicts:
- libpt2.6.5, libpt2.6.4, libpt2.6.3, libpt2.6.2, libpt2.6.1, libpt2.4.2, libpt2.4.1, libpt2.3-beta1,
- libpt-1.11.2, libpt-1.11.2-ptrace, libpt-1.11.2-develop,
+ libpt2.6.5,
libpt-1.10.10, libpt-1.10.10-ptrace, libpt-1.10.10-develop,
- libpt-1.10.0, libpt-1.10.0-ptrace, libpt-1.10.0-develop,
- libpt-1.8.7, libpt-1.8.3, libpt-1.8.3c2, libpt-1.8.3c2a,
- libpt-dev,
- libpt-snapshot
-Standards-Version: 3.8.3
+ libpt-dev
+Standards-Version: 3.8.4
Homepage: http://www.opalvoip.org/
Vcs-Svn: svn://svn.debian.org/pkg-voip/ptlib/branches/ptlib-2.6
Vcs-Browser: http://svn.debian.org/wsvn/pkg-voip/ptlib/branches/ptlib-2.6/?opt=dir&sc=1
Package: libpt2.6.6
Architecture: any
-Depends: ${shlibs:Depends}
-Suggests: libpt2.6.6-plugins
-Replaces: libpt-snapshot, libpt2.3-beta1
-Conflicts: libpt-snapshot, libpt2.3-beta1
+Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Portable Tools Library
This package contains the shared version of the library PTLib, which is
a moderately large class library that has its genesis many years ago as
a method to produce applications to run on both Microsoft Windows and
Unix X-Window systems.
+ .
+ This package also contains all the current PTLib plugins (alsa, oss, v4l2,
+ and v4l).
Package: libpt-dev
Section: libdevel
Architecture: any
-Depends: libpt2.6.6 (= ${binary:Version}), libc6-dev, libssl-dev, libldap2-dev, libsdl1.2-dev, libexpat1-dev, libsasl2-dev, unixodbc-dev, pkg-config
-Conflicts: libpt-snapshot-dev, libpt2.3-beta1-dev, libpt-1.11.2-dev
+Depends: ${shlibs:Depends}, ${misc:Depends}, libpt2.6.6 (= ${binary:Version}),
+ libc6-dev, libssl-dev, libldap2-dev, libsdl1.2-dev, libexpat1-dev, libsasl2-dev, unixodbc-dev, pkg-config
Description: Portable Tools Library development files
This package contains the headers and a static version of the library
PTLib, which is a moderately large class library that has its genesis
@@ -48,9 +44,7 @@
Section: debug
Priority: extra
Architecture: any
-Depends: libpt2.6.6 (= ${binary:Version})
-Replaces: libpt-snapshot-dbg, libpt2.3-beta1-dbg
-Conflicts: libpt-snapshot-dbg, libpt2.3-beta1-dbg
+Depends: ${shlibs:Depends}, ${misc:Depends}, libpt2.6.6 (= ${binary:Version})
Description: Portable Tools Library development debug files
This package contains the shared and static debug symbols of the library
PTLib, which is a moderately large class library that has its genesis
@@ -62,20 +56,10 @@
Package: libpt-doc
Section: doc
Priority: extra
+Depends: ${shlibs:Depends}, ${misc:Depends}
Architecture: all
Description: Portable Tools Library documentation & sample files
This package contains the documentation and samples to program with
PTLib, which is a moderately large class library that has its genesis
many years ago as a method to produce applications to run on both
Microsoft Windows and Unix X-Window systems.
-
-Package: libpt2.6.6-plugins
-Architecture: any
-Depends: ${shlibs:Depends}, libpt2.6.6 (= ${binary:Version})
-Provides: libpt-plugins
-Replaces: libpt2.6.3-plugins-alsa, libpt2.6.3-plugins-oss, libpt2.6.3-plugins-v4l2, libpt2.6.3-plugins-v4l, libpt2.6.1-plugins-alsa, libpt2.6.1-plugins-oss, libpt2.6.1-plugins-v4l2, libpt2.6.1-plugins-v4l, libpt-snapshot-plugins-v4l2, libpt2.3-beta1-plugins-v4l2
-Conflicts: libpt2.6.3-plugins-alsa, libpt2.6.3-plugins-oss, libpt2.6.3-plugins-v4l2, libpt2.6.3-plugins-v4l, libpt2.6.1-plugins-alsa, libpt2.6.1-plugins-oss, libpt2.6.1-plugins-v4l2, libpt2.6.1-plugins-v4l, libpt-snapshot-plugins-v4l2, libpt2.3-beta1-plugins-v4l2
-Description: Portable Tools Library plugins
- This package contains all the current PTLib plugins (alsa, oss, v4l2,
- and v4l). Install this package if you want to use a video or audio
- device.
Modified: ptlib/branches/ptlib-2.6/debian/libpt2.6.6.install
URL: http://svn.debian.org/wsvn/pkg-voip/ptlib/branches/ptlib-2.6/debian/libpt2.6.6.install?rev=8363&op=diff
==============================================================================
--- ptlib/branches/ptlib-2.6/debian/libpt2.6.6.install (original)
+++ ptlib/branches/ptlib-2.6/debian/libpt2.6.6.install Sat May 1 10:18:13 2010
@@ -1,1 +1,2 @@
usr/lib/libpt.so.*.*[.-]*
+usr/lib/ptlib-*/devices/*
Modified: ptlib/branches/ptlib-2.6/debian/rules
URL: http://svn.debian.org/wsvn/pkg-voip/ptlib/branches/ptlib-2.6/debian/rules?rev=8363&op=diff
==============================================================================
--- ptlib/branches/ptlib-2.6/debian/rules (original)
+++ ptlib/branches/ptlib-2.6/debian/rules Sat May 1 10:18:13 2010
@@ -1,203 +1,26 @@
#!/usr/bin/make -f
-DEBVERSION := $(shell head -n 1 debian/changelog \
- | sed -e 's/^[^(]*(\([^)]*\)).*/\1/')
-UPVERSION := $(shell echo $(DEBVERSION) | sed -r -e 's/^.*://' -e 's/-[0-9.]*(\+b[0-9])?$$//' -e 's/.dfsg[0-9]*$$//')
-REV := $(shell echo $(UPVERSION) | sed -r -e 's/^.*svn//')
+%:
+ dh $@
-FILENAME := ptlib_$(UPVERSION).orig.tar.gz
-URL := http://ftp.gnome.org/pub/gnome/sources/ptlib/2.6/ptlib-$(UPVERSION).tar.gz
+override_dh_auto_configure:
+ dh_auto_configure -- --enable-oss --enable-v4l --disable-avc --disable-dc --disable-odbc
+override_dh_auto_build:
+ dh_auto_build -- all docs
-ifneq (,$(shell test -f version.h&&grep MAJOR_VERSION version.h))
-VER_MAJOR := $(shell awk '/MAJOR_VERSION/ { print $$3 }' version.h 2>/dev/null)
-VER_MINOR := $(shell awk '/MINOR_VERSION/ { print $$3 }' version.h 2>/dev/null)
-VER_SUB := $(shell awk '/BUILD_NUMBER/ { print $$3 }' version.h 2>/dev/null)
-endif
+override_dh_strip:
+ dh_strip -a --dbg-package=libpt2.6.6-dbg
-DIRNAME := $(VER_MAJOR).$(VER_MINOR).$(VER_SUB)
-#DIRNAME := 2.4.1
-PACKAGE=libpt$(DIRNAME)
-
-CFLAGS += -Wall -g -O$(if $(findstring noopt,$(DEB_BUILD_OPTIONS)),0,2)
-LDFLAGS += -Wl,-z,def
-
-ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
- NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
- MAKEFLAGS += -j$(NUMJOBS)
-endif
-
-
-# used for sed-ating out host specific data
-export UNAME_R=`uname -r`
-
-export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
-export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
-
-ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
- confflags += --build $(DEB_HOST_GNU_TYPE)
-else
- confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
-endif
-
-include /usr/share/dpatch/dpatch.make
-
-build: build-arch build-indep
-
-build-arch: config.status build-arch-stamp
-
-config.status: patch-stamp autotools configure
- ./configure $(confflags) --prefix=/usr --enable-oss --enable-v4l --disable-dc
-
-autotools:
- rm -f config.sub config.guess
- cp /usr/share/misc/config.sub config.sub
- cp /usr/share/misc/config.guess config.guess
- rm -f plugins/config.sub plugins/config.guess
- cp /usr/share/misc/config.sub plugins/config.sub
- cp /usr/share/misc/config.guess plugins/config.guess
- touch autotools
-
-build-arch-stamp: config.status
- $(MAKE) $(MAKEFLAGS)
-
- # then we ensure that the fresh build works with hello world.
+override_dh_auto_test:
$(MAKE) PTLIBDIR=$(CURDIR) -C samples/hello_world clean
$(MAKE) PTLIBDIR=$(CURDIR) -C samples/hello_world opt
if (samples/hello_world/obj*/hello 2>/dev/null);then \
- echo opt hello_world sample incorrectly compiled static; false ; \
+ echo opt hello_world sample incorrectly compiled static; false ; \
else \
- echo opt hello_world sample correctly compiled non-static; \
+ echo opt hello_world sample correctly compiled non-static; \
fi
ln -s lib* lib ; LD_LIBRARY_PATH=$(CURDIR)/lib samples/hello_world/obj*/hello
# if this won't work, we needn't even try going any further...
rm lib
- touch build-arch-stamp
-
-build-indep: build-indep-stamp
-build-indep-stamp: config.status
- $(MAKE) docs
- touch build-indep-stamp
-
-clean: clean-patched unpatch
-clean-patched:
- $(checkdir)
- rm -f build-arch-stamp build-indep-stamp patch-stamp
- if [ -f Makefile ];then \
- $(MAKE) clean || true ; \
- $(MAKE) PTLIBDIR=$(CURDIR) -C samples/hello_world clean||true ; \
- fi
- rm -f include/ptbuildopts.h
- rm -f Makefile config.log config.status autotools
- rm -f config.sub config.guess plugins/config.sub plugins/config.guess
- rm -f plugins/Makefile plugins/config.status plugins/config.log
- rm -rf lib
- rm -f make/ptbuildopts.mak make/ptlib-config include/ptbuildopts.h
- rm -rf plugins/ptlib*
- rm -f plugins/Makefile plugins/config.status plugins/config.log
- rm -f `find . -name "*~"`
- rm -rf `find debian/* -type d -name "libpt-*"`
- rm -rf debian/files* core
- rm -f debian/*substvars
- rm -f debian/*.debhelper
- rm -rf html
- rm -f core a.out
- dh_clean
-
-install: install-indep install-arch
-install-indep:
- dh_testdir
- dh_testroot
- dh_prep
- dh_clean -i
- dh_installdirs -i
-
-install-arch:
- dh_testdir
- dh_testroot
- dh_clean -a
- dh_installdirs -a
-
- $(MAKE) DESTDIR=$(CURDIR)/debian/tmp install
-
- dh_install -a
- # see libpt-dev.install for list of files
-
- # TODO replace by libpt2.6.4-plugins.install
- mkdir -p debian/$(PACKAGE)-plugins/usr/lib/ptlib-$(DIRNAME)
- mv debian/tmp/usr/lib/ptlib*/devices/ debian/$(PACKAGE)-plugins/usr/lib/ptlib-$(DIRNAME)
-
-# Must not depend on anything. This is to be called by
-# binary-arch/binary-multi
-# in another 'make' thread.
-binary-common:
- dh_testdir
- dh_testroot
- #$(PACKAGE) has docs in /usr/share/doc, all the others use links
- dh_installdocs -N$(PACKAGE)-plugins -N$(PACKAGE)-dev -N$(PACKAGE)-dbg
- dh_installman
- dh_installchangelogs -N$(PACKAGE)-plugins -N$(PACKAGE)-dev -N$(PACKAGE)-dbg
- -test "x$(DH_OPTIONS)" = "x-a" && for pkg in plugins dev dbg; do mkdir -p debian/$(PACKAGE)-$$pkg/usr/share/doc; ln -s $(PACKAGE) debian/$(PACKAGE)-$$pkg/usr/share/doc/$(PACKAGE)-$$pkg; done
-
- dh_link
- dh_compress
- dh_fixperms
- # a new variable will be needed if an epoch is introduced to our versioning
- dh_makeshlibs -V '$(PACKAGE) (>= $(UPVERSION)~)'
- dh_installdeb
- dh_shlibdeps -L $(PACKAGE) -l debian/$(PACKAGE)/usr/lib
- dh_gencontrol
- dh_md5sums
- dh_builddeb
-
-binary-strip:
- dh_testdir
- dh_testroot
-
-ifneq (4,$(DH_COMPAT))
- dh_strip -N$(PACKAGE)-dbg --dbg-package=$(PACKAGE)-dbg
-else
- # As dh_strip does not work fine for multiple binary package
- # we need to workaround that manually
- dh_strip --exclude=libpt_d --keep-debug
-
- for pack in $(PACKAGE) $(PACKAGE)-plugins ; \
- do \
- cp -af debian/$$pack/usr/lib/debug debian/$(PACKAGE)-dbg/usr/lib && \
- rm -rf debian/$$pack/usr/lib/debug; \
- done
-endif
-
-# Build architecture independant packages using the common target.
-binary-indep: build-indep install-indep
- $(MAKE) -f debian/rules DH_OPTIONS=-i binary-common
-
-# Build architecture dependant packages using the common target.
-binary-arch: build-arch install-arch
- $(MAKE) -f debian/rules DH_OPTIONS=-a binary-strip
- $(MAKE) -f debian/rules DH_OPTIONS=-a binary-common
-
-print-version:
- @@echo "Debian version: $(DEBVERSION)"
- @@echo "Upstream version: $(UPVERSION)"
- @@echo "svn REV: $(REV)"
-
-get-orig-source:
- @@dh_testdir
- @@[ -d ../tarballs/. ]||mkdir -p ../tarballs
- @@#this is for stable versions
- @@echo Downloading $(FILENAME) from $(URL) for repacking ...
- @@wget -nv -T10 -t3 -O ../tarballs/$(FILENAME) $(URL)
- @@#and this is for SVN
- @@#echo 'Checking out for repacking (might take 15 min) ...'
- @@#svn export https://opalvoip.svn.sourceforge.net/svnroot/opalvoip/ptlib/trunk@$(REV) ../tarballs/ptlib-$(REV).tmp
- @@#echo 'Getting the changelog (might take 15 min) ...'
- @@#cd ../tarballs/ptlib-$(REV).tmp; svn2cl -o changelog https://opalvoip.svn.sourceforge.net/svnroot/opalvoip/ptlib/trunk@$(REV)
- @@#echo Creating the tarball ...
- @@#cd ../tarballs/ptlib-$(REV).tmp; tar zcf ../ptlib_$(UPVERSION).orig.tar.gz *
- @@#rm -rf ../tarballs/ptlib-$(REV).tmp
- @@echo Ready for packaging.
-
-binary: binary-arch binary-indep
-.PHONY: build clean clean-patched binary-indep binary-arch binary install install-indep install-arch
Modified: ptlib/branches/ptlib-2.6/debian/watch
URL: http://svn.debian.org/wsvn/pkg-voip/ptlib/branches/ptlib-2.6/debian/watch?rev=8363&op=diff
==============================================================================
--- ptlib/branches/ptlib-2.6/debian/watch (original)
+++ ptlib/branches/ptlib-2.6/debian/watch Sat May 1 10:18:13 2010
@@ -1,4 +1,3 @@
version=3
http://sf.net/opalvoip/ptlib-(2.6.\d).tar.bz2 debian svn-upgrade
-http://ftp.gnome.org/pub/gnome/sources/ptlib/(?:[\d\.]+)/ptlib-(2.6.*).tar.gz debian svn-upgrade
More information about the Pkg-voip-commits
mailing list