The following commit has been merged in the master branch:
commit ece110e20c64f8030e619c6e604333a2fd91bf40
Author: Mehdi Dogguy <me...@debian.org>
Date:   Mon Feb 22 21:07:38 2010 +0100

    Fix version number in META
    
    The method can be judged fragile but upstream seems to have a coherent
    CHANGES file, enough to be able get all versions.

diff --git a/debian/META b/debian/META.in
similarity index 91%
rename from debian/META
rename to debian/META.in
index 3f2a542..98786dc 100644
--- a/debian/META
+++ b/debian/META.in
@@ -1,4 +1,4 @@
-version="1.00"
+version="@LABLGL_VERSION@"
 directory="+lablgl"
 archive(byte) = "lablgl.cma"
 archive(native) = "lablgl.cmxa"
diff --git a/debian/changelog b/debian/changelog
index 025ef02..786a2ca 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,9 +1,13 @@
 lablgl (1.04-6) UNRELEASED; urgency=low
 
+  [ Ralf Treinen ]
   * Minor language corrections in package descriptions.
   * Fixed spelling error in lablgl.1 manpage.
 
- -- Ralf Treinen <trei...@debian.org>  Sat, 02 Jan 2010 17:00:16 +0100
+  [ Mehdi Dogguy ]
+  * Fix version number in META
+
+ -- Mehdi Dogguy <me...@debian.org>  Mon, 22 Feb 2010 21:06:34 +0100
 
 lablgl (1.04-5) unstable; urgency=low
 
diff --git a/debian/rules b/debian/rules
index dbc8888..7f50bbd 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,9 @@ include /usr/share/ocaml/ocamlvars.mk
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
+VERSION:=$(shell sed -n "s/^LablGL \(.*\):/\1/p" CHANGES | head -n 1)
+export OCAMLINIT_SED=-e 's...@lablgl_version@%$(VERSION)%g'
+
 %:
        dh --with ocaml $@
 

-- 
lablgl packaging

_______________________________________________
Pkg-ocaml-maint-commits mailing list
Pkg-ocaml-maint-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/mailman/listinfo/pkg-ocaml-maint-commits

Reply via email to