From 5a567c67b84b68ab3f75531a2b018bafcba08d4f Mon Sep 17 00:00:00 2001 From: Stefano Zacchiroli Date: Mon, 11 Sep 2006 11:08:40 +0000 Subject: [PATCH] snapshot: first draft of binNMU safe cdbs packaging --- DEVEL/lablgtkmathview/debian/changelog | 19 ++++++ DEVEL/lablgtkmathview/debian/control | 3 +- DEVEL/lablgtkmathview/debian/control.in | 27 -------- .../debian/liblablgtkmathview-ocaml-dev.dirs | 1 - .../liblablgtkmathview-ocaml-dev.install | 7 -- .../debian/liblablgtkmathview-ocaml.dirs | 1 - .../debian/liblablgtkmathview-ocaml.install | 1 - DEVEL/lablgtkmathview/debian/rules | 68 +++---------------- 8 files changed, 29 insertions(+), 98 deletions(-) delete mode 100644 DEVEL/lablgtkmathview/debian/control.in delete mode 100644 DEVEL/lablgtkmathview/debian/liblablgtkmathview-ocaml-dev.dirs delete mode 100644 DEVEL/lablgtkmathview/debian/liblablgtkmathview-ocaml-dev.install delete mode 100644 DEVEL/lablgtkmathview/debian/liblablgtkmathview-ocaml.dirs delete mode 100644 DEVEL/lablgtkmathview/debian/liblablgtkmathview-ocaml.install diff --git a/DEVEL/lablgtkmathview/debian/changelog b/DEVEL/lablgtkmathview/debian/changelog index ba0745999..a3c792b5f 100644 --- a/DEVEL/lablgtkmathview/debian/changelog +++ b/DEVEL/lablgtkmathview/debian/changelog @@ -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 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. diff --git a/DEVEL/lablgtkmathview/debian/control b/DEVEL/lablgtkmathview/debian/control index 2be2bda8c..7ec8d0dfb 100644 --- a/DEVEL/lablgtkmathview/debian/control +++ b/DEVEL/lablgtkmathview/debian/control @@ -2,8 +2,9 @@ Source: lablgtkmathview Section: devel Priority: optional Maintainer: Stefano Zacchiroli -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 index cde2dfa98..000000000 --- a/DEVEL/lablgtkmathview/debian/control.in +++ /dev/null @@ -1,27 +0,0 @@ -Source: lablgtkmathview -Section: devel -Priority: optional -Maintainer: Stefano Zacchiroli -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 index 7ba05d3c3..000000000 --- a/DEVEL/lablgtkmathview/debian/liblablgtkmathview-ocaml-dev.dirs +++ /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 index af24f2df2..000000000 --- a/DEVEL/lablgtkmathview/debian/liblablgtkmathview-ocaml-dev.install +++ /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 index 2c3099109..000000000 --- a/DEVEL/lablgtkmathview/debian/liblablgtkmathview-ocaml.dirs +++ /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 index eead5e48f..000000000 --- a/DEVEL/lablgtkmathview/debian/liblablgtkmathview-ocaml.install +++ /dev/null @@ -1 +0,0 @@ -debian/tmp/usr/lib/ocaml/3.09.2/lablgtkmathview/*.so usr/lib/ocaml/3.09.2/stublibs/ diff --git a/DEVEL/lablgtkmathview/debian/rules b/DEVEL/lablgtkmathview/debian/rules index 5e0bab2fd..9fca716f6 100755 --- a/DEVEL/lablgtkmathview/debian/rules +++ b/DEVEL/lablgtkmathview/debian/rules @@ -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) -- 2.39.2