[Pkg-ocaml-maint-commits] [SCM] uuidm packaging branch, master, updated. upstream/0.9.1-1-g4c0d6f8

Sylvain Le Gall gildor at debian.org
Mon Jul 28 14:07:35 UTC 2008


The following commit has been merged in the master branch:
commit 4c0d6f84fe3c766fa7ed3df375aaaf9fc74bb5fb
Author: Sylvain Le Gall <gildor at debian.org>
Date:   Mon Jul 28 16:07:14 2008 +0200

    Initial packaging of uuidm

diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..62605d2
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,5 @@
+This package use dpatch for patching the source. 
+
+Please consider reading dpatch manpage to patch the source.
+
+ -- Sylvain Le Gall <gildor at debian.org>  Sun, 22 Jun 2008 23:26:52 +0200
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..e8810bb
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+uuidm (0.9.1-1) UNRELEASED; urgency=low
+
+  * Initial release. (Closes: #492727)
+
+ -- Sylvain Le Gall <gildor at debian.org>  Mon, 28 Jul 2008 12:32:12 +0200
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..7ed6ff8
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+5
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..1e387a5
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,22 @@
+Source: uuidm
+Section: libdevel
+Priority: optional
+Maintainer: Debian OCaml Maintainers <debian-ocaml-maint at lists.debian.org>
+Uploaders: Sylvain Le Gall <gildor at debian.org>
+Build-Depends: cdbs (>= 0.4.23), debhelper (>= 5), dpatch, ocaml-nox (>= 3.10.0-8)
+Standards-Version: 3.8.0
+Vcs-Browser: http://git.debian.org/?p=pkg-ocaml-maint/packages/uuidm.git
+Vcs-Git: git://git.debian.org/git/pkg-ocaml-maint/packages/uuidm.git
+Homepage: http://erratique.ch/software/uuidm
+
+Package: libuuidm-ocaml-dev
+Architecture: any
+Section: libdevel
+Depends: ocaml-base-${F:OCamlABI}
+Description: Universally unique identifiers for OCaml
+ This library is an OCaml module implementing 128 bits universally unique
+ identifiers (uuid) version 3, 5 (name based with MD5, SHA-1 hashing) and 4
+ (random based) according to RFC 4122.
+ .
+ This package contains header and OCaml library.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..a1b9877
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,47 @@
+Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat
+Upstream-Author: Daniel C. Bünzli
+Packaged-By: Sylvain Le Gall <gildor at debian.org>
+Packaged-Date: Mon, 28 Jul 2008 12:42:57 +0200
+Original-Source-Location: http://erratique.ch/software/uuidm
+
+Files: *
+Copyright: © 2008 Daniel C. Bünzli
+License: other
+
+  Copyright (c) 2008, Daniel C. Bünzli
+  All rights reserved.
+
+  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. Neither the name of the Daniel C. Bünzli nor the names of
+     contributors may be used to endorse or promote products derived
+     from this software without specific prior written permission.
+
+  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+  "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 COPYRIGHT
+  OWNER OR CONTRIBUTORS 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: © 2008 Sylvain Le Gall <gildor at debian.org>
+License: GPL-2+
+
+The Debian packaging is licensed under the GNU General Public License, see
+`/usr/share/common-licenses/GPL' for the full text.
diff --git a/debian/patches/00list b/debian/patches/00list
new file mode 100644
index 0000000..90e0a70
--- /dev/null
+++ b/debian/patches/00list
@@ -0,0 +1,2 @@
+build-byte
+META
diff --git a/debian/patches/META.dpatch b/debian/patches/META.dpatch
new file mode 100755
index 0000000..fc0ed52
--- /dev/null
+++ b/debian/patches/META.dpatch
@@ -0,0 +1,33 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## META.dpatch by Sylvain Le Gall <gildor at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: ocamlfind META file.
+
+ at DPATCH@
+diff -urNad uuidm~/build uuidm/build
+--- uuidm~/build	2008-07-28 15:59:51.000000000 +0200
++++ uuidm/build	2008-07-28 16:00:37.000000000 +0200
+@@ -39,11 +39,11 @@
+     install-byte)
+       action module-byte
+       $MKDIR -p $INSTALLDIR
+-      $CP _build/src/*.{ml,mli,cmi,cmo} $INSTALLDIR ;;
++      $CP _build/src/*.{ml,mli,cmi,cmo} src/META $INSTALLDIR ;;
+     install)
+       action module
+       $MKDIR -p $INSTALLDIR
+-      $CP _build/src/*.{ml,mli,cmi,cmo,cmx,o} $INSTALLDIR ;;
++      $CP _build/src/*.{ml,mli,cmi,cmo,cmx,o} src/META $INSTALLDIR ;;
+     clean) 
+       ocb -clean ;;
+     clean-all) 
+diff -urNad uuidm~/src/META uuidm/src/META
+--- uuidm~/src/META	1970-01-01 01:00:00.000000000 +0100
++++ uuidm/src/META	2008-07-28 16:00:13.000000000 +0200
+@@ -0,0 +1,5 @@
++version = "0.9.1"
++description = "universally unique identifiers"
++archive(byte) = "uuidm.cmo"
++archive(native) = "uuidm.cmx"
++directory = "+uuidm"
diff --git a/debian/patches/build-byte.dpatch b/debian/patches/build-byte.dpatch
new file mode 100755
index 0000000..4e1c312
--- /dev/null
+++ b/debian/patches/build-byte.dpatch
@@ -0,0 +1,34 @@
+#! /bin/sh /usr/share/dpatch/dpatch-run
+## build-byte.dpatch by Sylvain Le Gall <gildor at debian.org>
+##
+## All lines beginning with `## DP:' are a description of the patch.
+## DP: Enable byte-only compilation.
+
+ at DPATCH@
+diff -urNad uuidm~/build uuidm/build
+--- uuidm~/build	2008-07-28 15:56:33.000000000 +0200
++++ uuidm/build	2008-07-28 15:57:22.000000000 +0200
+@@ -25,12 +25,21 @@
+ action () 
+ {
+   case $1 in
+-    module) 
+-      ocb $PROJECTNAME.cmx $PROJECTNAME.cmo ;;
++    module-native) 
++      ocb $PROJECTNAME.cmx ;;
++    module-byte) 
++      ocb $PROJECTNAME.cmo ;;
++    module)
++      action module-native
++      action module-byte ;;
+     doc)
+       ocb $PROJECTNAME.cmi
+       $OCAMLDOC -html -I src -colorize-code -d $DOCDIR src/$PROJECTNAME.mli ;;
+     distrib) distrib ;;
++    install-byte)
++      action module-byte
++      $MKDIR -p $INSTALLDIR
++      $CP _build/src/*.{ml,mli,cmi,cmo} $INSTALLDIR ;;
+     install)
+       action module
+       $MKDIR -p $INSTALLDIR
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..2418d0c
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,43 @@
+#!/usr/bin/make -f
+# debian/rules for uuidm package
+# Copyright (C) 2008 Sylvain Le Gall <gildor at debian.org>
+#
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License as
+# published by the Free Software Foundation; either version 2, or (at
+# your option) any later version.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+# General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
+# MA 02110-1301, USA.
+
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/rules/dpatch.mk
+include /usr/share/cdbs/1/class/ocaml.mk
+
+DESTDIR_DEV=$(CURDIR)/debian/libuuidm-ocaml-dev
+
+OCAML_OCAMLDOC_PACKAGES = libuuidm-ocaml-dev
+
+ifeq ($(OCAML_HAVE_OCAMLOPT),yes)
+build-arch:
+	$(CURDIR)/build module
+
+common-install-arch::
+	INSTALLDIR=$(DESTDIR_DEV)/$(OCAML_STDLIB_DIR)/uuidm $(CURDIR)/build install
+else
+build-arch:
+	$(CURDIR)/build module-byte
+
+common-install-arch::
+	INSTALLDIR=$(DESTDIR_DEV)/$(OCAML_STDLIB_DIR)/uuidm $(CURDIR)/build install-byte
+endif
+
+clean::
+	$(CURDIR)/build clean
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..d13a4a8
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,2 @@
+version=3
+http://erratique.ch/software/uuidm/releases/uuidm-([0-9\.]*).tbz

-- 
uuidm packaging



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