summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog7
-rw-r--r--debian/control2
-rw-r--r--debian/debian-dune1
-rwxr-xr-xdebian/rules18
4 files changed, 11 insertions, 17 deletions
diff --git a/debian/changelog b/debian/changelog
index bb5c4de..c33f8d5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+ocamldap (2.4.2-2) unstable; urgency=medium
+
+ * Team upload
+ * Use ocaml_dune DH buildsystem
+
+ -- Stéphane Glondu <glondu@debian.org> Sat, 15 Jul 2023 14:37:54 +0200
+
ocamldap (2.4.2-1) unstable; urgency=medium
[ Stéphane Glondu ]
diff --git a/debian/control b/debian/control
index 9feeaf4..057b597 100644
--- a/debian/control
+++ b/debian/control
@@ -10,7 +10,7 @@ Build-Depends:
ocaml-dune,
libocamlnet-ocaml-dev,
libssl-ocaml-dev,
- dh-ocaml
+ dh-ocaml (>= 1.2)
Standards-Version: 4.5.1
Rules-Requires-Root: no
Vcs-Git: https://salsa.debian.org/ocaml-team/ocamldap.git
diff --git a/debian/debian-dune b/debian/debian-dune
new file mode 100644
index 0000000..c1142c3
--- /dev/null
+++ b/debian/debian-dune
@@ -0,0 +1 @@
+ldap
diff --git a/debian/rules b/debian/rules
index d285b6e..5f443ee 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,19 +1,5 @@
#!/usr/bin/make -f
-
-include /usr/share/ocaml/ocamlvars.mk
-
-DESTDIR := $(CURDIR)/debian/tmp
+# -*- makefile -*-
%:
- dh $@ --with ocaml
-
-override_dh_auto_build:
- dune build -p ldap
-
-override_dh_auto_test:
-ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
- dune runtest -p ldap
-endif
-
-override_dh_auto_install:
- dune install --destdir=$(DESTDIR) --prefix=/usr --libdir=..$(OCAML_STDLIB_DIR) ldap
+ dh $@ --with ocaml --buildsystem ocaml_dune