From b2d90f84d53896b5b195e168ac2c6ba4416245d5 Mon Sep 17 00:00:00 2001 From: Stefano Zacchiroli Date: Wed, 13 Mar 2002 23:20:21 +0000 Subject: [PATCH] Debian changes for version 0.3.0 of lablgtkmathview. Major changes: - split shared library package - debian native package, diff.gz is no longer needed --- helm/DEVEL/lablgtkmathview/Makefile.in | 14 +++-- helm/DEVEL/lablgtkmathview/debian/changelog | 19 +++++-- helm/DEVEL/lablgtkmathview/debian/control | 26 +++++++-- .../debian/liblablgtkmathview-ocaml-dev.dirs | 1 + .../debian/liblablgtkmathview-ocaml.dirs | 1 + .../debian/liblablgtkmathview-ocaml.files | 1 + helm/DEVEL/lablgtkmathview/debian/rules | 57 +++++++++---------- 7 files changed, 75 insertions(+), 44 deletions(-) create mode 100644 helm/DEVEL/lablgtkmathview/debian/liblablgtkmathview-ocaml-dev.dirs create mode 100644 helm/DEVEL/lablgtkmathview/debian/liblablgtkmathview-ocaml.dirs create mode 100644 helm/DEVEL/lablgtkmathview/debian/liblablgtkmathview-ocaml.files diff --git a/helm/DEVEL/lablgtkmathview/Makefile.in b/helm/DEVEL/lablgtkmathview/Makefile.in index 7883c0525..9621af743 100644 --- a/helm/DEVEL/lablgtkmathview/Makefile.in +++ b/helm/DEVEL/lablgtkmathview/Makefile.in @@ -9,7 +9,8 @@ INST = META gMathView.cmi gtkMathView.cmi gtk_mathview.cmi DIST_FILES = \ AUTHORS COPYING ChangeLog LICENSE Makefile.in NEWS README \ configure.in gMathView.ml gtkMathView.ml gtk_mathview.ml \ - ml_gtk_mathview.c META.in + ml_gtk_mathview.c META.in .depend debian/ test/ configure \ + lablgtkmathview.spec lablgtkmathview.spec.in DOC_FILES = AUTHORS COPYING ChangeLog NEWS README REQUIRES = gdome2 lablgtk PREDICATES = @@ -28,14 +29,15 @@ TESTDIR = ./test TMPDIR = .test TMPPKGDIR = $(TMPDIR)/$(PACKAGE) -all: $(ARCHIVE) $(ARCHIVE_SO) $(TESTDIR)/test +# all: $(ARCHIVE) $(ARCHIVE_SO) $(TESTDIR)/test +all: $(ARCHIVE) $(ARCHIVE_SO) opt: $(OBJECTS_C) $(ARCHIVE_OPT) $(ARCHIVE_A) $(ARCHIVE_SO) #$(TESTDIR)/test.opt dist: rm -rf $(PACKAGE)-$(VERSION) mkdir $(PACKAGE)-$(VERSION) - cp $(DIST_FILES) $(DOC_FILES) $(PACKAGE)-$(VERSION) + cp -a $(DIST_FILES) $(DOC_FILES) $(PACKAGE)-$(VERSION) tar cvfz $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION) rm -rf $(PACKAGE)-$(VERSION) @@ -88,7 +90,11 @@ $(TESTDIR)/test.opt: $(OBJECTS_C) $(ARCHIVE_A) $(ARCHIVE_OPT) $(TESTDIR)/test.ml install: test ! -f $(ARCHIVE_OPT) || extra="$(ARCHIVE_A) $(ARCHIVE_OPT)" ; \ - ocamlfind install $(PACKAGE) $(OBJECTS_C) $(ARCHIVE) $(ARCHIVE_SO) $(INST) $$extra + if [ "$(PREFIX)" = "" ]; then \ + ocamlfind install $(PACKAGE) $(OBJECTS_C) $(ARCHIVE) $(ARCHIVE_SO) $(INST) $$extra; \ + else \ + ocamlfind install -destdir $(PREFIX) $(PACKAGE) $(OBJECTS_C) $(ARCHIVE) $(ARCHIVE_SO) $(INST) $$extra; \ + fi uninstall: ocamlfind remove $(PACKAGE) diff --git a/helm/DEVEL/lablgtkmathview/debian/changelog b/helm/DEVEL/lablgtkmathview/debian/changelog index e2cab05e5..4b4eaeed7 100644 --- a/helm/DEVEL/lablgtkmathview/debian/changelog +++ b/helm/DEVEL/lablgtkmathview/debian/changelog @@ -1,9 +1,20 @@ -lablgtkmathview (0.2.8helm-1) unstable; urgency=low +lablgtkmathview (0.3.0-1) unstable; urgency=low - * New upstream release. - * Helm version: depends on Helm version of lablgtk. + * New upstream release + * Renamed resulting package to liblablgtkmathview-ocaml-dev + * Changed build-depends to adhere to the new ocaml packages naming schema + (e.g. lablgtk -> liblablgtk-ocaml-dev) (Closes: Bug#138116) + * Split away shared library in liblablgtkmathview-ocaml package - -- Stefano Zacchiroli Sat, 17 Nov 2001 09:40:37 +0100 + -- Stefano Zacchiroli Wed, 13 Mar 2002 18:53:50 +0100 + +lablgtkmathview (0.2.8-1) unstable; urgency=low + + * New upstream release + * Built with ocaml 3.04 and lablgtk 1.2.3 + * Removed useless build depends + + -- Stefano Zacchiroli Mon, 25 Feb 2002 18:18:25 +0100 lablgtkmathview (0.2.4-4) unstable; urgency=low diff --git a/helm/DEVEL/lablgtkmathview/debian/control b/helm/DEVEL/lablgtkmathview/debian/control index 645634cb4..287474d6b 100644 --- a/helm/DEVEL/lablgtkmathview/debian/control +++ b/helm/DEVEL/lablgtkmathview/debian/control @@ -2,14 +2,30 @@ Source: lablgtkmathview Section: devel Priority: optional Maintainer: Stefano Zacchiroli -Build-Depends: debhelper (>> 2.0.0), ocaml (>= 3.02), lablgtk (= 1.2.1helm-1), libgtk1.2-dev, libgtkmathview-dev (>= 0.3.0), libxml2-dev, ocaml-findlib -Standards-Version: 3.5.2 +Build-Depends: debhelper (>> 3.0.0), ocaml (>= 3.04), ocaml (<< 3.05), ocaml-findlib, liblablgtk-ocaml-dev (>= 1.2.3), libgdome2-ocaml-dev (>= 0.0.3), libgtkmathview-dev (>= 0.3.0), libxml2-dev +Standards-Version: 3.5.6 -Package: lablgtkmathview +Package: liblablgtkmathview-ocaml Architecture: any -Depends: ${shlibs:Depends} -Recommends: ocaml, libgtkmathview0 +Section: libs +Depends: ocaml (>= 3.04), ocaml (<< 3.05), ${shlibs:Depends} +Conflicts: lablgtkmathview (<< 0.3.0) Description: OCaml binding for libgtkmathview 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: devel +Depends: ocaml (>= 3.04), ocaml (<< 3.05), libgtkmathview0 (>= 0.3.0), liblablgtkmathview-ocaml (= ${Source-Version}) +Provides: lablgtkmathview +Conflicts: lablgtkmathview +Replaces: lablgtkmathview +Description: OCaml binding for libgtkmathview + 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/helm/DEVEL/lablgtkmathview/debian/liblablgtkmathview-ocaml-dev.dirs b/helm/DEVEL/lablgtkmathview/debian/liblablgtkmathview-ocaml-dev.dirs new file mode 100644 index 000000000..00a96aed3 --- /dev/null +++ b/helm/DEVEL/lablgtkmathview/debian/liblablgtkmathview-ocaml-dev.dirs @@ -0,0 +1 @@ +usr/lib/ocaml diff --git a/helm/DEVEL/lablgtkmathview/debian/liblablgtkmathview-ocaml.dirs b/helm/DEVEL/lablgtkmathview/debian/liblablgtkmathview-ocaml.dirs new file mode 100644 index 000000000..00a96aed3 --- /dev/null +++ b/helm/DEVEL/lablgtkmathview/debian/liblablgtkmathview-ocaml.dirs @@ -0,0 +1 @@ +usr/lib/ocaml diff --git a/helm/DEVEL/lablgtkmathview/debian/liblablgtkmathview-ocaml.files b/helm/DEVEL/lablgtkmathview/debian/liblablgtkmathview-ocaml.files new file mode 100644 index 000000000..0ef18cba1 --- /dev/null +++ b/helm/DEVEL/lablgtkmathview/debian/liblablgtkmathview-ocaml.files @@ -0,0 +1 @@ +usr/lib/ocaml/lablgtkmathview/*.so diff --git a/helm/DEVEL/lablgtkmathview/debian/rules b/helm/DEVEL/lablgtkmathview/debian/rules index 1f01a9948..f6e084d78 100755 --- a/helm/DEVEL/lablgtkmathview/debian/rules +++ b/helm/DEVEL/lablgtkmathview/debian/rules @@ -6,7 +6,9 @@ #export DH_VERBOSE=1 # This is the debhelper compatability version to use. -export DH_COMPAT=2 +export DH_COMPAT=3 + +TARGETDIR = debian/liblablgtkmathview-ocaml-dev configure: configure-stamp configure-stamp: @@ -22,8 +24,7 @@ build-stamp: # Add here commands to compile the package. $(MAKE) - -$(MAKE) opt - #/usr/bin/docbook-to-man debian/lablgtkmathview.sgml > lablgtkmathview.1 + -test -x /usr/bin/ocamlopt && $(MAKE) opt touch build-stamp @@ -41,45 +42,39 @@ install: build dh_testdir dh_testroot dh_clean -k - dh_installdirs + dh_installdirs -s - # Add here commands to install the package into debian/lablgtkmathview. - $(MAKE) install DESTDIR=$(CURDIR)/debian/lablgtkmathview/usr/lib/ocaml + # trick: redifine CAMLLIB so that findlibd doesn't try to modify the + # official /var/lib/ocaml/ld.conf + CAMLLIB=$(CURDIR) $(MAKE) install PREFIX=$(TARGETDIR)/usr/lib/ocaml +movefiles: install + dh_movefiles -p liblablgtkmathview-ocaml --sourcedir=$(TARGETDIR) # Build architecture-independent files here. -binary-indep: build install +binary-indep: build movefiles # We have nothing to do by default. # Build architecture-dependent files here. binary-arch: build install dh_testdir dh_testroot -# dh_installdebconf - dh_installdocs - dh_installexamples - dh_installmenu -# dh_installlogrotate -# dh_installemacsen -# dh_installpam -# dh_installmime -# dh_installinit - dh_installcron - dh_installmanpages - dh_installinfo + dh_installdocs -s + dh_installexamples -s + dh_installmanpages -s + dh_installinfo -s # dh_undocumented - dh_installchangelogs ChangeLog - dh_link - dh_strip - dh_compress - dh_fixperms -# dh_makeshlibs - dh_installdeb -# dh_perl - dh_shlibdeps - dh_gencontrol - dh_md5sums - dh_builddeb + dh_installchangelogs -s ChangeLog + dh_link -s + dh_strip -s + dh_compress -s + dh_ocamlld -p liblablgtkmathview-ocaml /usr/lib/ocaml/lablgtkmathview + dh_fixperms -s + dh_installdeb -s + dh_shlibdeps -s + dh_gencontrol -s + dh_md5sums -s + dh_builddeb -s binary: binary-indep binary-arch .PHONY: build clean binary-indep binary-arch binary install configure -- 2.39.2