]> matita.cs.unibo.it Git - helm.git/commitdiff
Debian changes for version 0.3.0 of lablgtkmathview.
authorStefano Zacchiroli <zack@upsilon.cc>
Wed, 13 Mar 2002 23:20:21 +0000 (23:20 +0000)
committerStefano Zacchiroli <zack@upsilon.cc>
Wed, 13 Mar 2002 23:20:21 +0000 (23:20 +0000)
Major changes:
- split shared library package
- debian native package, diff.gz is no longer needed

helm/DEVEL/lablgtkmathview/Makefile.in
helm/DEVEL/lablgtkmathview/debian/changelog
helm/DEVEL/lablgtkmathview/debian/control
helm/DEVEL/lablgtkmathview/debian/liblablgtkmathview-ocaml-dev.dirs [new file with mode: 0644]
helm/DEVEL/lablgtkmathview/debian/liblablgtkmathview-ocaml.dirs [new file with mode: 0644]
helm/DEVEL/lablgtkmathview/debian/liblablgtkmathview-ocaml.files [new file with mode: 0644]
helm/DEVEL/lablgtkmathview/debian/rules

index 7883c0525d5852d45cc673edc053b0729dcc7fbf..9621af74384c2a81a18cdf4f8d9cff21657ca8aa 100644 (file)
@@ -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)
index e2cab05e5a78267617f9859e4b76e0482dd42c87..4b4eaeed745ea36282756c461c8c2773a6dc6e03 100644 (file)
@@ -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 <zack@debian.org>  Sat, 17 Nov 2001 09:40:37 +0100
+ -- Stefano Zacchiroli <zack@debian.org>  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 <zack@debian.org>  Mon, 25 Feb 2002 18:18:25 +0100
 
 lablgtkmathview (0.2.4-4) unstable; urgency=low
 
index 645634cb42c1e3f29988af60ff37a7d8f04728cb..287474d6bb0f6ac0b4b4aa34c52de3075802f9c7 100644 (file)
@@ -2,14 +2,30 @@ Source: lablgtkmathview
 Section: devel
 Priority: optional
 Maintainer: Stefano Zacchiroli <zack@debian.org>
-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 (file)
index 0000000..00a96ae
--- /dev/null
@@ -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 (file)
index 0000000..00a96ae
--- /dev/null
@@ -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 (file)
index 0000000..0ef18cb
--- /dev/null
@@ -0,0 +1 @@
+usr/lib/ocaml/lablgtkmathview/*.so
index 1f01a99486547bb1caef553fb01287afbaaa1511..f6e084d780098d7a5b695a9bd1665b3ffe875f7a 100755 (executable)
@@ -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