[Pkg-voip-commits] r2007 - yate/trunk/debian
Mikael Magnusson
mikma-guest at costa.debian.org
Mon Jul 3 11:17:15 UTC 2006
Author: mikma-guest
Date: 2006-07-03 11:17:15 +0000 (Mon, 03 Jul 2006)
New Revision: 2007
Modified:
yate/trunk/debian/changelog
yate/trunk/debian/rules
Log:
* Build DFSG compliant orig tarball without iLBC sources
Modified: yate/trunk/debian/changelog
===================================================================
--- yate/trunk/debian/changelog 2006-07-03 10:26:19 UTC (rev 2006)
+++ yate/trunk/debian/changelog 2006-07-03 11:17:15 UTC (rev 2007)
@@ -1,4 +1,4 @@
-yate (0.9.0-0.pre4-1) UNRELEASED; urgency=low
+yate (0.9.0-0.pre4.dfsg-1) UNRELEASED; urgency=low
[ Kilian Krause ]
* New upstream version (0.9.0pre4)
@@ -19,8 +19,9 @@
* Remove build-depends to libiax-dev and libspandsp-dev
* Fix lintian warning: "yate: package-name-doesnt-match-sonames
libyate0.9.0"
+ * Build DFSG compliant orig tarball without iLBC sources
- -- Mikael Magnusson <mikma at users.sourceforge.net> Mon, 3 Jul 2006 12:23:21 +0200
+ -- Mikael Magnusson <mikma at users.sourceforge.net> Mon, 3 Jul 2006 13:08:48 +0200
yate (0.8.7+cvs20050604-4) unstable; urgency=low
Modified: yate/trunk/debian/rules
===================================================================
--- yate/trunk/debian/rules 2006-07-03 10:26:19 UTC (rev 2006)
+++ yate/trunk/debian/rules 2006-07-03 11:17:15 UTC (rev 2007)
@@ -35,11 +35,20 @@
| sed -e 's/^[^(]*(\([^)]*\)).*/\1/')
UPVERSION:=$(shell echo $(DEBVERSION) | sed -e 's/^.*://' -e 's/-[0-9.]*$$//' -e 's/.dfsg$$//')
+DFSG:=$(shell echo $(DEBVERSION) | sed -e 's/-[0-9]*$$//')
+
FILENAME := yate_$(UPVERSION).orig.tar.gz
+SRCDIR := yate
+DFSGNAME := yate_$(DFSG).orig.tar.gz
#URL := http://yate.null.ro/tarballs/yate-$(UPVERSION).tar.gz
URL := http://yate.null.ro/tarballs/yate-0.9.0pre4.tar.gz
-config.status: patch-stamp configure
+check-ilbc:
+ ( [ ! -f contrib/ilbc/iLBC_define.h ] ) || \
+ (echo "WARNING: iLBC must be removed from sources before packaging." ; false )
+ touch $@
+
+config.status: check-ilbc patch-stamp configure
dh_testdir
#if [ ! -f config.sub.orig ];then \
# mv config.sub config.sub.orig; \
@@ -134,6 +143,7 @@
print-version:
@@echo "Debian version: $(DEBVERSION)"
+ @@echo "DFSG version: $(DFSG)"
@@echo "Upstream version: $(UPVERSION)"
get-orig-source:
@@ -141,6 +151,15 @@
@@[ -d ../tarballs/. ]||mkdir -p ../tarballs
@@echo Downloading $(FILENAME) from $(URL) ...
@@wget -N -nv -T10 -t3 -O ../tarballs/$(FILENAME) $(URL)
+ @@echo Removing non dfsg compliant parts out of it
+ @@[ -d ../tarballs/dfsg/. ]||mkdir -p ../tarballs/dfsg
+ @@tar -xzf ../tarballs/$(FILENAME) -C ../tarballs/dfsg
+ @@rm -rf ../tarballs/dfsg/$(SRCDIR)/contrib/ilbc
+ @@echo Building the dfsg tarball
+ @@GZIP=-9 tar -b1 -czf ../tarballs/$(DFSGNAME) -C ../tarballs/dfsg $(SRCDIR)
+ @@echo Cleaning up
+ @@rm -rf ../tarballs/dfsg
+ @@rm -f ../tarballs/$(FILENAME)
binary: binary-indep binary-arch
.PHONY: build clean clean-patched patch unpatch binary-indep binary-arch binary install
More information about the Pkg-voip-commits
mailing list