From 5c054b619496b6d6175b798464772b046e4f12a4 Mon Sep 17 00:00:00 2001
From: Stefano Zacchiroli <zack@upsilon.cc>
Date: Sun, 5 Jan 2003 14:57:37 +0000
Subject: [PATCH] - use version deps and build-deps - moved stuff in
 /usr/lib/ocaml/<version> stdlib dir

---
 helm/DEVEL/gdome_xslt/debian/changelog        |  8 +++-
 helm/DEVEL/gdome_xslt/debian/control          | 44 ++++++++++++++-----
 .../debian/libgdome2-xslt-ocaml-dev.dirs      |  2 +-
 .../debian/libgdome2-xslt-ocaml-dev.files     |  6 +--
 .../debian/libgdome2-xslt-ocaml.dirs          |  2 +-
 .../debian/libgdome2-xslt-ocaml.files         |  2 +-
 helm/DEVEL/gdome_xslt/debian/rules            |  2 +
 7 files changed, 48 insertions(+), 18 deletions(-)

diff --git a/helm/DEVEL/gdome_xslt/debian/changelog b/helm/DEVEL/gdome_xslt/debian/changelog
index 84046d755..4d53e0844 100644
--- a/helm/DEVEL/gdome_xslt/debian/changelog
+++ b/helm/DEVEL/gdome_xslt/debian/changelog
@@ -1,8 +1,14 @@
 gdome2-xslt (0.0.3-2) unstable; urgency=low
 
+  * Use versioned ocaml standard library directory
+  * Changed deps and build-deps to ocaml-3.06-1
   * Source named changed to gdome2-xslt
-  * Moved .so stub in /usr/lib/ocaml/stublibs
+  * Moved OCaml .so stub in <stdlib>/stublibs
+  * Moved ocaml stuff in /usr/lib/ocaml/3.06
   * Ship also C and C++ flavours
+  * Added dep from libgdome2-xslt-ocaml to libgdome2-ocaml
+  * Added dep from libgdome2-xslt-ocaml-dev to libgdome2-ocaml-dev-0.1.4
+  * Provided a better Description
   * Bumped Standards-Version to 3.5.8
   * Better test for ocamlopt existence
 
diff --git a/helm/DEVEL/gdome_xslt/debian/control b/helm/DEVEL/gdome_xslt/debian/control
index 4d3265d17..067230502 100644
--- a/helm/DEVEL/gdome_xslt/debian/control
+++ b/helm/DEVEL/gdome_xslt/debian/control
@@ -2,33 +2,55 @@ Source: gdome2-xslt
 Section: devel
 Priority: optional
 Maintainer: Stefano Zacchiroli <zack@debian.org>
-Build-Depends: debhelper (>> 4.0.0), ocaml-3.06, ocaml-findlib, libgdome2-ocaml-dev, libgdome2-dev, libxslt1-dev
+Build-Depends: debhelper (>> 4.0.0), ocaml-3.06-1, ocaml-findlib, libgdome2-ocaml-dev-0.1.4, libgdome2-dev, libxslt1-dev
 Standards-Version: 3.5.8
 
 Package: libgdome2-xslt0
 Section: libs
 Architecture: any
 Depends: ${shlibs:Depends}
-Description: TODO
- TODO
+Description: Minimal XSLT processor working on GDome2 documents
+ gdome2-xslt is a very small C library that implements a minimal
+ XSLT processor that can be used to apply XSLT stylesheets to
+ gdome2 documents.
+ .
+ This package includes shared libraries for the C implementation
+ and for the C++ bindings.
 
 Package: libgdome2-xslt-dev
 Section: devel
 Architecture: any
 Depends: libgdome2-xslt0 (= ${Source-Version}), libxslt1-dev, libgdome2-dev, libgdome2-cpp-smart-dev
-Description: TODO
- TODO
+Description: Minimal XSLT processor working on GDome2 documents
+ gdome2-xslt is a very small C library that implements a minimal
+ XSLT processor that can be used to apply XSLT stylesheets to
+ gdome2 documents.
+ .
+ This package includes development support files for the C
+ library and for its C++ bindings.
 
 Package: libgdome2-xslt-ocaml
 Architecture: any
-Depends: ocaml-base-3.06, ${shlibs:Depends}
-Description: TODO
- TODO
+Depends: ocaml-base-3.06-1, libgdome2-ocaml, ${shlibs:Depends}
+Description: OCaml bindings for a minimal GDome2 based XSLT processor
+ gdome2-xslt is a very small C library that implements a minimal
+ XSLT processor that can be used to apply XSLT stylesheets to
+ gdome2 documents.
+ .
+ This package ships the OCaml language bindings for gdome2-xslt.
+ .
+ This package contains only the OCaml shared runtime stub libraries.
 
 Package: libgdome2-xslt-ocaml-dev
 Architecture: any
 Section: devel
-Depends: ocaml-3.06, libgdome2-xslt-ocaml (= ${Source-Version}), libxslt1-dev, libgdome2-dev
-Description: TODO
- TODO
+Depends: ocaml-3.06-1, libgdome2-xslt-ocaml (= ${Source-Version}), libgdome2-ocaml-dev-0.1.4, libxslt1-dev, libgdome2-dev
+Description: OCaml bindings for a minimal GDome2 based XSLT processor
+ gdome2-xslt is a very small C library that implements a minimal
+ XSLT processor that can be used to apply XSLT stylesheets to
+ gdome2 documents.
+ .
+ This package ships the OCaml language bindings for gdome2-xslt.
+ .
+ This package contains OCaml development stuff for gdome2-xslt.
 
diff --git a/helm/DEVEL/gdome_xslt/debian/libgdome2-xslt-ocaml-dev.dirs b/helm/DEVEL/gdome_xslt/debian/libgdome2-xslt-ocaml-dev.dirs
index 00a96aed3..8fd999513 100644
--- a/helm/DEVEL/gdome_xslt/debian/libgdome2-xslt-ocaml-dev.dirs
+++ b/helm/DEVEL/gdome_xslt/debian/libgdome2-xslt-ocaml-dev.dirs
@@ -1 +1 @@
-usr/lib/ocaml
+usr/lib/ocaml/3.06
diff --git a/helm/DEVEL/gdome_xslt/debian/libgdome2-xslt-ocaml-dev.files b/helm/DEVEL/gdome_xslt/debian/libgdome2-xslt-ocaml-dev.files
index e997c414e..e7203c324 100644
--- a/helm/DEVEL/gdome_xslt/debian/libgdome2-xslt-ocaml-dev.files
+++ b/helm/DEVEL/gdome_xslt/debian/libgdome2-xslt-ocaml-dev.files
@@ -1,3 +1,3 @@
-usr/lib/ocaml/stublibs/*.owner
-usr/lib/ocaml/stublibs/lib*.so
-usr/lib/ocaml/gdome2-xslt/
+usr/lib/ocaml/3.06/stublibs/*.owner
+usr/lib/ocaml/3.06/stublibs/lib*.so
+usr/lib/ocaml/3.06/gdome2-xslt/
diff --git a/helm/DEVEL/gdome_xslt/debian/libgdome2-xslt-ocaml.dirs b/helm/DEVEL/gdome_xslt/debian/libgdome2-xslt-ocaml.dirs
index 00a96aed3..8fd999513 100644
--- a/helm/DEVEL/gdome_xslt/debian/libgdome2-xslt-ocaml.dirs
+++ b/helm/DEVEL/gdome_xslt/debian/libgdome2-xslt-ocaml.dirs
@@ -1 +1 @@
-usr/lib/ocaml
+usr/lib/ocaml/3.06
diff --git a/helm/DEVEL/gdome_xslt/debian/libgdome2-xslt-ocaml.files b/helm/DEVEL/gdome_xslt/debian/libgdome2-xslt-ocaml.files
index 263196f49..2dd4e59d9 100644
--- a/helm/DEVEL/gdome_xslt/debian/libgdome2-xslt-ocaml.files
+++ b/helm/DEVEL/gdome_xslt/debian/libgdome2-xslt-ocaml.files
@@ -1 +1 @@
-usr/lib/ocaml/stublibs/dll*.so
+usr/lib/ocaml/3.06/stublibs/dll*.so
diff --git a/helm/DEVEL/gdome_xslt/debian/rules b/helm/DEVEL/gdome_xslt/debian/rules
index 48dcdb7fb..560c28f01 100755
--- a/helm/DEVEL/gdome_xslt/debian/rules
+++ b/helm/DEVEL/gdome_xslt/debian/rules
@@ -9,6 +9,7 @@
 export DH_COMPAT=4
 
 TARGETDIR = debian/libgdome2-xslt-ocaml-dev
+SHARED_LIB_PKG = libgdome2-xslt0
 
 configure: configure-stamp
 configure-stamp:
@@ -50,6 +51,7 @@ binary-arch: build install
 	dh_strip -s
 	dh_compress -s
 	dh_fixperms -s
+	dh_makeshlibs -p $(SHARED_LIB_PKG)
 	dh_installdeb -s
 	dh_shlibdeps -s
 	dh_gencontrol -s
-- 
2.39.2