Add a versioned Provides so we can have versioned Build-Depends elsewhere
authorXimin Luo <infinity0@debian.org>
Wed, 2 Nov 2016 12:08:21 +0000 (13:08 +0100)
committerXimin Luo <infinity0@debian.org>
Wed, 2 Nov 2016 12:08:21 +0000 (13:08 +0100)
debian/control
debian/control.in

index 085b2ee78e017cc8ab4722aa7ee725f05c79373f..449cc807fe9893096aab15911c1ed5e391b83327 100644 (file)
@@ -37,7 +37,7 @@ Depends:
  binutils
 Provides:
  ${ocaml:Provides},
- ${F:BestProvides},
+ ${F:BestProvides} (= ${binary:Version}),
  libnums-ocaml-dev
 Suggests:
  ocaml-doc,
@@ -153,7 +153,7 @@ Depends:
  gcc, binutils,
  ${shlibs:Depends},
  ${misc:Depends}
-Provides: ocaml-best-compilers
+Provides: ocaml-best-compilers (= ${binary:Version})
 Replaces: ocaml-nox (<= 3.09.2-3)
 Description: Native code compilers of the OCaml suite (the .opt ones)
  Objective Caml (OCaml) is an implementation of the ML language, based on
index 2ed859e73307c1aaca42f8e4127f6dd571152963..e3a696e2a58630c87481f6cebcd14c597b5f44b3 100644 (file)
@@ -37,7 +37,7 @@ Depends:
  binutils
 Provides:
  ${ocaml:Provides},
- ${F:BestProvides},
+ ${F:BestProvides} (= ${binary:Version}),
  libnums-ocaml-dev
 Suggests:
  ocaml-doc,
@@ -153,7 +153,7 @@ Depends:
  gcc, binutils,
  ${shlibs:Depends},
  ${misc:Depends}
-Provides: ocaml-best-compilers
+Provides: ocaml-best-compilers (= ${binary:Version})
 Replaces: ocaml-nox (<= 3.09.2-3)
 Description: Native code compilers of the OCaml suite (the .opt ones)
  Objective Caml (OCaml) is an implementation of the ML language, based on