]> matita.cs.unibo.it Git - helm.git/commitdiff
snapshot: first draft of binNMU safe cdbs packaging
authorStefano Zacchiroli <zack@upsilon.cc>
Mon, 11 Sep 2006 11:08:40 +0000 (11:08 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Mon, 11 Sep 2006 11:08:40 +0000 (11:08 +0000)
DEVEL/lablgtkmathview/debian/changelog
DEVEL/lablgtkmathview/debian/control
DEVEL/lablgtkmathview/debian/control.in [deleted file]
DEVEL/lablgtkmathview/debian/liblablgtkmathview-ocaml-dev.dirs [deleted file]
DEVEL/lablgtkmathview/debian/liblablgtkmathview-ocaml-dev.install [deleted file]
DEVEL/lablgtkmathview/debian/liblablgtkmathview-ocaml.dirs [deleted file]
DEVEL/lablgtkmathview/debian/liblablgtkmathview-ocaml.install [deleted file]
DEVEL/lablgtkmathview/debian/rules

index ba0745999e01e6b33401383aa3959c45f741c5ea..a3c792b5fd6c1bff55b153cae26bcee43e59410b 100644 (file)
@@ -1,3 +1,22 @@
+lablgtkmathview (0.7.3-1) unstable; urgency=low
+
+  * debian/*.dirs
+    - files removed: they were not needed since installation target
+      automatically create needed directories, and they induced spurious
+      empty directories in binary packages (closes: #369072)
+  * debian/control.in
+    - file removed: no longer needed
+  * debian/control
+    - added X-Vcs-Svn field pointing to package's svn repository
+    - added build-dep on cdbs
+  * debian/rules
+    - switched to cdbs
+    - moved destdir creation to "upstream" Makefile
+    - moved detection of native code compilation availability to "upstream"
+      Makefile/configure
+
+ -- Stefano Zacchiroli <zack@debian.org>  Sun, 10 Sep 2006 23:41:39 +0200
+
 lablgtkmathview (0.7.2-5) unstable; urgency=low
 
   * Rebuilt against OCaml 3.09.2, bumped deps accordingly.
index 2be2bda8cd33990de38c3f86181a241380cef57d..7ec8d0dfbdc0135b046f7d1184ffc64e587abe98 100644 (file)
@@ -2,8 +2,9 @@ Source: lablgtkmathview
 Section: devel
 Priority: optional
 Maintainer: Stefano Zacchiroli <zack@debian.org>
-Build-Depends: debhelper (>> 4.0.0), ocaml-nox (>= 3.09.2), ocaml-findlib (>= 1.1), liblablgtk2-ocaml-dev (>= 2.6.0-2), libgdome2-ocaml-dev (>= 0.2.3-5), libgtkmathview-dev (>= 0.7.5), pkg-config
+Build-Depends: debhelper (>> 4.0.0), cdbs, ocaml-nox (>= 3.09.2), ocaml-findlib (>= 1.1), liblablgtk2-ocaml-dev (>= 2.6.0-2), libgdome2-ocaml-dev (>= 0.2.3-5), libgtkmathview-dev (>= 0.7.5), pkg-config
 Standards-Version: 3.7.2
+XS-X-Vcs-Svn: svn://mowgli.cs.unibo.it/trunk/helm/software/DEVEL/lablgtkmathview
 
 Package: liblablgtkmathview-ocaml
 Architecture: any
diff --git a/DEVEL/lablgtkmathview/debian/control.in b/DEVEL/lablgtkmathview/debian/control.in
deleted file mode 100644 (file)
index cde2dfa..0000000
+++ /dev/null
@@ -1,27 +0,0 @@
-Source: lablgtkmathview
-Section: devel
-Priority: optional
-Maintainer: Stefano Zacchiroli <zack@debian.org>
-Build-Depends: debhelper (>> 4.0.0), ocaml-nox (>= @OCamlABI@), ocaml-findlib (>= 1.1), liblablgtk2-ocaml-dev (>= 2.6.0-2), libgdome2-ocaml-dev (>= 0.2.3-5), libgtkmathview-dev (>= 0.7.5), pkg-config
-Standards-Version: 3.7.2
-
-Package: liblablgtkmathview-ocaml
-Architecture: any
-Section: libs
-Depends: ocaml-base-nox-${F:OCamlABI}, liblablgtk2-ocaml (>= 2.6.0-2), libgdome2-ocaml (>= 0.2.3-5), libgtkmathview0c2a (>= 0.7.5), ${shlibs:Depends}, ${misc:Depends}
-Description: OCaml bindings for libgtkmathview, a GTK widget to render MathML
- This is the Ocaml binding for the GtkMathView widget, that is
- currently available in the libgtkmathview0 package.
- .
- This package contains only the shared runtime stub libraries.
-
-Package: liblablgtkmathview-ocaml-dev
-Architecture: any
-Section: libdevel
-Depends: ocaml-nox-${F:OCamlABI}, liblablgtk2-ocaml-dev (>= 2.6.0-2), liblablgtkmathview-ocaml (= ${Source-Version}), ocaml-findlib, libgdome2-ocaml-dev (>= 0.2.3-5), libgtkmathview-dev (>= 0.7.5), ${misc:Depends}
-Description: OCaml bindings for libgtkmathview, a GTK widget to render MathML
- These are the Ocaml bindings for the GtkMathView widget, that is
- currently available in the libgtkmathview0 package.
- .
- This package contains the development part of the lablgtkmathview package.
-
diff --git a/DEVEL/lablgtkmathview/debian/liblablgtkmathview-ocaml-dev.dirs b/DEVEL/lablgtkmathview/debian/liblablgtkmathview-ocaml-dev.dirs
deleted file mode 100644 (file)
index 7ba05d3..0000000
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib/ocaml/3.09.0
diff --git a/DEVEL/lablgtkmathview/debian/liblablgtkmathview-ocaml-dev.install b/DEVEL/lablgtkmathview/debian/liblablgtkmathview-ocaml-dev.install
deleted file mode 100644 (file)
index af24f2d..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-debian/tmp/usr/lib/ocaml/3.09.2/lablgtkmathview/*.a
-debian/tmp/usr/lib/ocaml/3.09.2/lablgtkmathview/*.cma
-debian/tmp/usr/lib/ocaml/3.09.2/lablgtkmathview/*.cmi
-debian/tmp/usr/lib/ocaml/3.09.2/lablgtkmathview/*.cmxa
-debian/tmp/usr/lib/ocaml/3.09.2/lablgtkmathview/META
-debian/tmp/usr/lib/ocaml/3.09.2/lablgtkmathview/*.ml
-debian/tmp/usr/lib/ocaml/3.09.2/lablgtkmathview/*.mli
diff --git a/DEVEL/lablgtkmathview/debian/liblablgtkmathview-ocaml.dirs b/DEVEL/lablgtkmathview/debian/liblablgtkmathview-ocaml.dirs
deleted file mode 100644 (file)
index 2c30991..0000000
+++ /dev/null
@@ -1 +0,0 @@
-usr/lib/ocaml/3.09.0/stublibs
diff --git a/DEVEL/lablgtkmathview/debian/liblablgtkmathview-ocaml.install b/DEVEL/lablgtkmathview/debian/liblablgtkmathview-ocaml.install
deleted file mode 100644 (file)
index eead5e4..0000000
+++ /dev/null
@@ -1 +0,0 @@
-debian/tmp/usr/lib/ocaml/3.09.2/lablgtkmathview/*.so  usr/lib/ocaml/3.09.2/stublibs/
index 5e0bab2fd6314008305fdd9e5b440cac8210efb5..9fca716f6ade59eeb4d3ceeddf5b8315ab58fd8e 100755 (executable)
@@ -1,69 +1,17 @@
 #!/usr/bin/make -f
-# Sample debian/rules that uses debhelper.
-# GNU copyright 1997 to 1999 by Joey Hess.
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/makefile.mk
 
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+PKGNAME = liblablgtkmathview-ocaml-dev
 
 OCAMLABI := $(shell ocamlc -version)
 OCAMLLIBDIR := $(shell ocamlc -where)
-OFILES := $(patsubst %.in,%,$(shell ls debian/*.in))
+OFILES := $(filter-out debian/control,$(patsubst %.in,%,$(wildcard debian/*.in)))
+HAVE_OCAMLOPT := $(shell test -x /usr/bin/ocamlopt && echo "yes")
+DEB_DH_GENCONTROL_ARGS = -- -VF:OCamlABI="$(OCAMLABI)"
 
 ocamlinit:
        for f in $(OFILES); do sed -e 's/@OCamlABI@/$(OCAMLABI)/g' $$f.in > $$f; done
-configure: configure-stamp
-configure-stamp:
-       dh_testdir
-       ./configure
+makebuilddir/$(PKGNAME):: ocamlinit
 
-       touch configure-stamp
-
-build: configure-stamp build-stamp
-build-stamp:
-       dh_testdir
-
-       $(MAKE)
-       if [ -x /usr/bin/ocamlopt ]; then $(MAKE) opt; else true; fi
-
-       touch build-stamp
-
-clean:
-       dh_testdir
-       dh_testroot
-       rm -f build-stamp configure-stamp
-
-       -$(MAKE) distclean
-
-       dh_clean
-
-install: build
-       dh_testdir
-       dh_testroot
-       dh_clean -k
-       dh_installdirs
-
-       mkdir -p debian/tmp$(OCAMLLIBDIR)
-       $(MAKE) install PREFIX=debian/tmp$(OCAMLLIBDIR)
-
-binary-arch: build install
-       dh_install
-       dh_testdir
-       dh_testroot
-       dh_installdocs
-       dh_installexamples
-       dh_installman
-       dh_installinfo
-       dh_installchangelogs ChangeLog
-       dh_link
-       dh_strip
-       dh_compress
-       dh_fixperms
-       dh_installdeb
-       dh_shlibdeps
-       dh_gencontrol -- -VF:OCamlABI="$(OCAMLABI)"
-       dh_md5sums
-       dh_builddeb
-
-binary-indep: build install
-binary: binary-indep binary-arch
-.PHONY: build clean binary-arch binary install configure
+DEB_MAKE_INSTALL_TARGET = install PREFIX=$(CURDIR)/debian/tmp$(OCAMLLIBDIR)