[Pkg-voip-commits] r3880 - libpri/trunk/debian

paravoid at alioth.debian.org paravoid at alioth.debian.org
Fri Aug 3 18:27:25 UTC 2007


Author: paravoid
Date: 2007-08-03 18:27:25 +0000 (Fri, 03 Aug 2007)
New Revision: 3880

Modified:
   libpri/trunk/debian/changelog
   libpri/trunk/debian/rules
Log:
* Loosen up shlibs: we want to create shlibs that are >= 1.4, not the
  specific version of libpri 1.4 (e.g. 1.4.1). 

Modified: libpri/trunk/debian/changelog
===================================================================
--- libpri/trunk/debian/changelog	2007-08-03 18:16:58 UTC (rev 3879)
+++ libpri/trunk/debian/changelog	2007-08-03 18:27:25 UTC (rev 3880)
@@ -21,8 +21,10 @@
   [ Faidon Liambotis ]
   * Change SONAME to 1.2 (fix-soname.dpatch); the library is incompatible to
     libpri 1.0 but backwards compatible with libpri 1.2.
+  * Loosen up shlibs: we want to create shlibs that are >= 1.4, not the
+    specific version of libpri 1.4 (e.g. 1.4.1). 
 
- -- Faidon Liambotis <paravoid at debian.org>  Fri, 03 Aug 2007 21:04:56 +0300
+ -- Faidon Liambotis <paravoid at debian.org>  Fri, 03 Aug 2007 21:26:23 +0300
 
 libpri (1.4.0-2) unstable; urgency=low
 

Modified: libpri/trunk/debian/rules
===================================================================
--- libpri/trunk/debian/rules	2007-08-03 18:16:58 UTC (rev 3879)
+++ libpri/trunk/debian/rules	2007-08-03 18:27:25 UTC (rev 3880)
@@ -21,9 +21,12 @@
 	INSTALL_PROGRAM += -s
 endif
 
+PKGNAME:=$(shell sed -nre 's/^Package: (.*[0-9])$$/\1/p' debian/control)
 DEBVERSION:=$(shell head -n 1 debian/changelog \
 		    | sed -e 's/^[^(]*(\([^)]*\)).*/\1/')
 UPVERSION:=$(shell echo $(DEBVERSION) | sed -e 's/^.*://' -e 's/-[0-9.]*$$//' -e 's/~dfsg$$//')
+UPVERSIONMAJOR:=$(shell echo $(UPVERSION) | sed -re 's/(^[0-9]\.[0-9]).*/\1/')
+SHLIBS = $(PKGNAME) (>= $(UPVERSIONMAJOR))
 
 FILENAME := libpri_$(UPVERSION).orig.tar.gz
 URL := http://ftp2.digium.com/pub/libpri/releases/libpri-$(UPVERSION).tar.gz
@@ -109,7 +112,7 @@
 	dh_strip
 	dh_compress
 	dh_fixperms
-	dh_makeshlibs -V 
+	dh_makeshlibs -V "$(SHLIBS)"
 	dh_installdeb
 	dh_shlibdeps
 	dh_gencontrol
@@ -119,6 +122,7 @@
 print-version:
 	@@echo "Debian version:          $(DEBVERSION)"
 	@@echo "Upstream version:        $(UPVERSION)"
+	@@echo "Upstream major version:  $(UPVERSIONMAJOR)"
 
 get-orig-source:
 	@@dh_testdir




More information about the Pkg-voip-commits mailing list