[Pkg-ocaml-maint-commits] [SCM] biniou packaging branch, master, updated. debian/0.9.1-1

Sylvain Le Gall gildor at debian.org
Sat Dec 4 23:30:11 UTC 2010


The following commit has been merged in the master branch:
commit 3acfe4ec7d884b9c457c03e8b1e42ba523e06c88
Author: Sylvain Le Gall <gildor at debian.org>
Date:   Sun Dec 5 00:29:38 2010 +0100

    Initial packaging

diff --git a/Makefile b/Makefile
index c212eaf..4961c97 100644
--- a/Makefile
+++ b/Makefile
@@ -45,6 +45,10 @@ bdump: $(SOURCES) bdump.ml
 	ocamlfind ocamlopt -o bdump -package $(PACKS) -linkpkg \
 		biniou.cmxa bdump.ml
 
+bdump.byte: $(SOURCES) bdump.ml
+	ocamlfind ocamlc -o bdump -package $(PACKS) -linkpkg \
+		biniou.cma bdump.ml
+
 test_biniou: $(SOURCES) test_biniou.ml
 	ocamlfind ocamlopt -o test_biniou -package "$(PACKS) unix" -linkpkg \
 		biniou.cmxa test_biniou.ml
diff --git a/debian/bdump.1 b/debian/bdump.1
new file mode 100644
index 0000000..8e9101d
--- /dev/null
+++ b/debian/bdump.1
@@ -0,0 +1,29 @@
+.TH BDUMP 1 "December 5, 2010" "bdump User Manual"
+.SH NAME
+.PP
+bdump - dump biniou data.
+.SH SYNOPSIS
+.PP
+bdump [options] file*
+.SH DESCRIPTION
+.PP
+Dump biniou data on standard output.
+.SH OPTIONS
+.TP
+.B -w word1,word2,\&...
+Comma-separated list of words to add to the dictionary
+.RS
+.RE
+.TP
+.B -d file
+File containing words to add to the dictionary, one per line
+.RS
+.RE
+.TP
+.B -help|--help
+Display list of options
+.RS
+.RE
+.SH AUTHORS
+Sylvain Le Gall.
+
diff --git a/debian/bdump.mkd b/debian/bdump.mkd
new file mode 100644
index 0000000..63550e7
--- /dev/null
+++ b/debian/bdump.mkd
@@ -0,0 +1,26 @@
+% BDUMP(1) bdump User Manual
+% Sylvain Le Gall 
+% December 5, 2010
+
+# NAME
+
+bdump - dump biniou data.
+
+# SYNOPSIS
+
+bdump [options] file\*
+
+# DESCRIPTION
+
+Dump biniou data on standard output.
+
+# OPTIONS
+
+-w word1,word2,...
+:   Comma-separated list of words to add to the dictionary
+
+-d file
+:   File containing words to add to the dictionary, one per line
+
+-help|\--help
+:   Display list of options
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..af79488
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+biniou (0.9.1-1) unstable; urgency=low
+
+  * Initial release. (Closes: #605672)
+
+ -- Sylvain Le Gall <gildor at debian.org>  Sun, 05 Dec 2010 00:07:39 +0100
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7f8f011
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+7
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..18ae26d
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,46 @@
+Source: biniou
+Section: ocaml
+Priority: optional
+Maintainer: Debian OCaml Maintainers <debian-ocaml-maint at lists.debian.org>
+Uploaders:
+  Sylvain Le Gall <gildor at debian.org>
+Build-Depends:
+  ocaml-nox (>= 3.11.1-3~),
+  ocaml-findlib,
+  dh-ocaml (>= 0.9~),
+  debhelper (>= 7.0.50~),
+  libeasy-format-ocaml-dev
+Standards-Version: 3.9.1
+Homepage: http://martin.jambon.free.fr/biniou.html
+Vcs-Git: git://git.debian.org/git/pkg-ocaml-maint/packages/biniou.git
+Vcs-Browser: http://git.debian.org/?p=pkg-ocaml-maint/packages/biniou.git
+
+Package: libbiniou-ocaml-dev
+Architecture: any
+Depends: ${ocaml:Depends}, ${misc:Depends}, ${shlibs:Depends}
+Provides: ${ocaml:Provides}
+Recommends: ocaml-findlib
+Description: flexible binary data format in OCaml
+ Biniou is a binary data format designed for speed, safety, ease of use
+ and backward compatibility as protocols evolve. Biniou is vastly
+ equivalent to JSON in terms of functionality but allows implementations
+ about 4 times as fast (see godi-yojson for comparison), with 25-35%
+ space savings. Biniou data can be decoded into human-readable form
+ without knowledge of type definitions except for field and variant names
+ which are represented by 31-bit hashes.
+
+Package: libbiniou-ocaml
+Architecture: any
+Depends: ${ocaml:Depends}, ${misc:Depends}
+Provides: ${ocaml:Provides}
+Recommends: ocaml-findlib
+Description: flexible binary data format in OCaml
+ Biniou is a binary data format designed for speed, safety, ease of use
+ and backward compatibility as protocols evolve. Biniou is vastly
+ equivalent to JSON in terms of functionality but allows implementations
+ about 4 times as fast (see godi-yojson for comparison), with 25-35%
+ space savings. Biniou data can be decoded into human-readable form
+ without knowledge of type definitions except for field and variant names
+ which are represented by 31-bit hashes.
+ .
+ This package contains the shared runtime libraries.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..f0fafc8
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,35 @@
+Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135
+Name: biniou
+Maintainer: Sylvain Le Gall <gildor at debian.org>
+
+Files: *
+Copyright: Copyright (c) 2010 Martin Jambon
+License: BSD3
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+    notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+    notice, this list of conditions and the following disclaimer in the
+    documentation and/or other materials provided with the distribution.
+ 3. The name of the author may not be used to endorse or promote products
+    derived from this software without specific prior written permission.
+ 
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Files: debian/*
+Copyright: (C) 2010 Sylvain Le Gall <gildor at debian.org>
+License: GPL-3+
+
+ See '/usr/share/common-licenses/GPL-3' for the full text.
diff --git a/debian/gbp.conf b/debian/gbp.conf
new file mode 100644
index 0000000..cec628c
--- /dev/null
+++ b/debian/gbp.conf
@@ -0,0 +1,2 @@
+[DEFAULT]
+pristine-tar = True
diff --git a/debian/libbiniou-ocaml-dev.docs b/debian/libbiniou-ocaml-dev.docs
new file mode 100644
index 0000000..0b07615
--- /dev/null
+++ b/debian/libbiniou-ocaml-dev.docs
@@ -0,0 +1 @@
+doc 
diff --git a/debian/libbiniou-ocaml-dev.install.in b/debian/libbiniou-ocaml-dev.install.in
new file mode 100644
index 0000000..8ba5da8
--- /dev/null
+++ b/debian/libbiniou-ocaml-dev.install.in
@@ -0,0 +1,8 @@
+ at OCamlStdlibDir@/biniou/*.cmo
+ at OCamlStdlibDir@/biniou/*.cmi
+ at OCamlStdlibDir@/biniou/*.mli
+OPT: @OCamlStdlibDir@/biniou/*.o
+OPT: @OCamlStdlibDir@/biniou/*.cmxa
+OPT: @OCamlStdlibDir@/biniou/*.a
+OPT: @OCamlStdlibDir@/biniou/*.cmx
+/usr/bin/bdump
diff --git a/debian/libbiniou-ocaml-dev.manpages b/debian/libbiniou-ocaml-dev.manpages
new file mode 100644
index 0000000..aeb224c
--- /dev/null
+++ b/debian/libbiniou-ocaml-dev.manpages
@@ -0,0 +1 @@
+debian/bdump.1
diff --git a/debian/libbiniou-ocaml-dev.ocamldoc b/debian/libbiniou-ocaml-dev.ocamldoc
new file mode 100644
index 0000000..40038c8
--- /dev/null
+++ b/debian/libbiniou-ocaml-dev.ocamldoc
@@ -0,0 +1,2 @@
+-d doc
+--doc-base-generate
diff --git a/debian/libbiniou-ocaml.install.in b/debian/libbiniou-ocaml.install.in
new file mode 100644
index 0000000..c8392d9
--- /dev/null
+++ b/debian/libbiniou-ocaml.install.in
@@ -0,0 +1,2 @@
+ at OCamlStdlibDir@/biniou/META
+ at OCamlStdlibDir@/biniou/*.cma
diff --git a/debian/patches/debian-changes-0.9.1-1 b/debian/patches/debian-changes-0.9.1-1
new file mode 100644
index 0000000..7883326
--- /dev/null
+++ b/debian/patches/debian-changes-0.9.1-1
@@ -0,0 +1,39 @@
+Description: Upstream changes introduced in version 0.9.1-1
+ This patch has been created by dpkg-source during the package build.
+ Here's the last changelog entry, hopefully it gives details on why
+ those changes were made:
+ .
+ biniou (0.9.1-1) unstable; urgency=low
+ .
+   * Initial release. (Closes: #605672)
+ .
+ The person named in the Author field signed this changelog entry.
+Author: Sylvain Le Gall <gildor at debian.org>
+Bug-Debian: http://bugs.debian.org/605672
+
+---
+The information above should follow the Patch Tagging Guidelines, please
+checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
+are templates for supplementary fields that you might want to add:
+
+Origin: <vendor|upstream|other>, <url of original patch>
+Bug: <url in upstream bugtracker>
+Bug-Debian: http://bugs.debian.org/<bugnumber>
+Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
+Forwarded: <no|not-needed|url proving that it has been forwarded>
+Reviewed-By: <name and email of someone who approved the patch>
+Last-Update: <YYYY-MM-DD>
+
+--- biniou-0.9.1.orig/Makefile
++++ biniou-0.9.1/Makefile
+@@ -45,6 +45,10 @@ bdump: $(SOURCES) bdump.ml
+ 	ocamlfind ocamlopt -o bdump -package $(PACKS) -linkpkg \
+ 		biniou.cmxa bdump.ml
+ 
++bdump.byte: $(SOURCES) bdump.ml
++	ocamlfind ocamlc -o bdump -package $(PACKS) -linkpkg \
++		biniou.cma bdump.ml
++
+ test_biniou: $(SOURCES) test_biniou.ml
+ 	ocamlfind ocamlopt -o test_biniou -package "$(PACKS) unix" -linkpkg \
+ 		biniou.cmxa test_biniou.ml
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..b8c1f9d
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+debian-changes-0.9.1-1
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..32402ad
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,43 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+DESTDIR=$(CURDIR)/debian/tmp
+
+include /usr/share/ocaml/ocamlvars.mk
+
+OCAMLFIND_DESTDIR=$(DESTDIR)/$(OCAML_STDLIB_DIR)
+export OCAMLFIND_DESTDIR
+OCAMLFIND_LDCONF=ignore
+export OCAMLFIND_LDCONF
+
+%:
+	dh --with ocaml $@
+
+.PHONY: override_dh_auto_build
+override_dh_auto_build:
+ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
+	$(MAKE)
+else
+	$(MAKE) all bdump.byte
+endif 
+	$(MAKE) doc
+
+.PHONY: override_dh_auto_install
+override_dh_auto_install:
+	mkdir -p '$(OCAMLFIND_DESTDIR)'
+	mkdir -p '$(DESTDIR)/usr/bin'
+	make install 'BINDIR=$(DESTDIR)/usr/bin'
+
+.PHONY: override_dh_install
+override_dh_install:
+	dh_install --fail-missing
+
+.PHONY: override_dh_auto_clean
+override_dh_auto_clean:
+	$(MAKE) clean
+
+debian/bdump.1: debian/bdump.mkd
+	pandoc -s -w man $^ -o $@
diff --git a/debian/source/format b/debian/source/format
new file mode 100644
index 0000000..163aaf8
--- /dev/null
+++ b/debian/source/format
@@ -0,0 +1 @@
+3.0 (quilt)
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..aa83861
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://martin.jambon.free.fr/biniou.html biniou-([\d\.]*)\.tar\.gz

-- 
biniou packaging



More information about the Pkg-ocaml-maint-commits mailing list