[Pkg-ocaml-maint-commits] [SCM] camlbz2 packaging branch, master, updated. a0c9736cd8802ed2ae6c4df0920f805c253abdea

Stefano Zacchiroli zack at upsilon.cc
Sat Nov 8 17:20:18 UTC 2008


The following commit has been merged in the master branch:
commit 9440d7c89c25635441be40ed7758f147154b0abd
Author: Stefano Zacchiroli <zack at upsilon.cc>
Date:   Sat Nov 8 17:14:20 2008 +0100

    initial packaging structure

diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..7587e22
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,69 @@
+Building camlbz2 Debian package
+===============================
+
+The camlbz2 source package uses quilt to apply and remove its patches.
+Please refer to /usr/share/doc/quilt/README.source for information
+about how to use quilt for source packages.
+
+The quilt series is, however, generated from the Git repository, using
+TopGit. Please refer to /usr/share/doc/topgit/README.source for more
+information.
+
+Branch layout
+-------------
+
+The following branches are in use in the package:
+
+- debian/*    	       Debian-specific patches
+- features/*  	       patches providing new features, targeted upstream
+- fixes/*     	       patches fixing problems with upstream
+- master      	       the main Debianisation branch
+- pristine-tar	       binary deltas for pristine-tar
+- upstream    	       tracks the upstream Git repository
+
+Upstream Git repository is available at:
+
+  http://git.ocamlcore.org/camlbz2/camlbz2.git/
+
+Cloning the repository
+----------------------
+
+Cloning a TopGit repository requires an additional step to normal Git
+cloning:
+
+ 1. debcheckout camlbz2
+ 2. cd camlbz2
+ 3. tg remote --populate origin
+
+(Steps 2--3 are optional with devscripts >= 2.10.40)
+
+Building from the Git repository
+--------------------------------
+
+ 1. Checkout the master branch
+ 2. Update (and commit) TG_BRANCHES in debian/rules (if needed)
+ 3. Checkout the build branch, and merge master into it
+ 4. Generate debian/patches:
+      debian/rules tg-export
+ 5. Update the branch (if needed):
+      git add -f -u
+      git add -f debian/patches
+      git commit "Releasing ${VERSION}"
+ 6. Build the package (and tag):
+      git-buildpackage \
+        --git-pristine-tar \
+	--git-tag \
+        --git-debian-branch=build \
+	[options]
+
+During development/tests, you can work directly on branch master,
+provided you tell git to ignore debian/patches. You can then skip
+steps 3 and 5, and forget --git-tag and --git-debian-branch options in
+step 6:
+
+  git-buildpackage --git-pristine-tar [options]
+
+Notes:
+ - don't commit serialized patches into master
+ - don't commit patched sources into master ("git status" will be
+   meaningful only after "debclean")
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..0c7e33a
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+camlbz2 (0.6.0-1) UNRELEASED; urgency=low
+
+  * Initial release (Closes: #504991)
+
+ -- Stefano Zacchiroli <zack at debian.org>  Sat, 08 Nov 2008 16:53:04 +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..62b3b13
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,62 @@
+Source: camlbz2
+Section: devel
+Priority: optional
+Maintainer: Debian OCaml Maintainers <debian-ocaml-maint at lists.debian.org>
+Uploaders: Stefano Zacchiroli <zack at debian.org>
+Build-Depends:
+ debhelper (>> 7.0.0),
+ ocaml-nox,
+ ocaml-findlib,
+ libbz2-dev,
+ dh-ocaml,
+ quilt,
+ cdbs
+Standards-Version: 3.8.0
+Vcs-Git: git://git.debian.org/git/pkg-ocaml-maint/packages/camlbz2.git
+Vcs-Browser: http://git.debian.org/?p=pkg-ocaml-maint/packages/camlbz2.git
+Homepage: http://camlbz2.forge.ocamlcore.org
+
+Package: libbz2-ocaml-dev
+Section: libdevel
+Architecture: any
+Depends:
+ ocaml-nox-${F:OCamlABI},
+ libbz2-ocaml (= ${binary:Version}),
+ ocaml-findlib,
+ ${shlibs:Depends},
+ ${misc:Depends}
+Description: OCaml bindings for the bzip2 compression library
+ CamlBZ2 provides OCaml bindings for libbz2 (AKA bzip2), a popular
+ compression library which typically compresses better (i.e., smaller
+ resulting files) than gzip.
+ .
+ Using CamlBZ2 you can read and write compressed "files", where files
+ can be anything offering an in_channel/out_channel abstraction
+ (files, sockets, ...).
+ .
+ Also, with CamlBZ2 you can compress and decompress strings in memory
+ using the bzip2 compression algorithm.
+ .
+ This package contains all the development stuff you need to use
+ CamlBZ2 in your programs.
+
+Package: libbz2-ocaml
+Section: libs
+Architecture: any
+Depends:
+ ocaml-base-nox-${F:OCamlABI},
+ ${shlibs:Depends},
+ ${misc:Depends}
+Description: OCaml bindings for the bzip2 compression library
+ CamlBZ2 provides OCaml bindings for libbz2 (AKA bzip2), a popular
+ compression library which typically compresses better (i.e., smaller
+ resulting files) than gzip.
+ .
+ Using CamlBZ2 you can read and write compressed "files", where files
+ can be anything offering an in_channel/out_channel abstraction
+ (files, sockets, ...).
+ .
+ Also, with CamlBZ2 you can compress and decompress strings in memory
+ using the bzip2 compression algorithm.
+ .
+ This package contains only the shared runtime stub libraries.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..2b320bd
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,38 @@
+This package was debianized by Stefano Zacchiroli <zack at debian.org> on
+Sat, 08 Nov 2008 16:53:04 +0100
+
+It was downloaded from <http://camlbz2.forge.ocamlcore.org>
+
+Files: *
+Copyright: © 2000-2005 Olivier Andrieu    <oandrieu at gmail.com>
+	   © 2008      Stefano Zacchiroli <zack at upsilon.cc>
+License: LGPL-2.1 | other
+ As a special exception to the GNU Library General Public License,
+ you may link, statically or dynamically, a "work that uses the
+ Library" with a publicly distributed version of the Library to
+ produce an executable file containing portions of the Library, and
+ distribute that executable file under terms of your choice, without
+ any of the additional requirements listed in clause 6 of the GNU
+ Library General Public License.  By "a publicly distributed version
+ of the Library", we mean either the unmodified Library as distributed
+ by INRIA, or a modified version of the Library that is distributed
+ under the conditions defined in clause 3 of the GNU Library General
+ Public License.  This exception does not however invalidate any other
+ reasons why the executable file might be covered by the GNU Library
+ General Public License.
+
+CamlBZ2 is distributed under the terms of the GNU Lesser General
+Public License version 2.1, with the special exception to it reported
+above.
+
+The full text of the GNU Lessere General Public License version 2.1
+can be found in `/usr/share/common-licenses/LGPL-2.1'.
+
+Files: debian/*
+Copyright: © 2008 Stefano Zacchiroli <zack at debian.org>
+License: GPL-3+
+
+  The Debian packaging is copyright Stefano Zacchiroli, and licensed
+  under the GNU General Public License, see
+  `/usr/share/common-licenses/GPL' for the full text.
+
diff --git a/debian/libbz2-ocaml-dev.docs b/debian/libbz2-ocaml-dev.docs
new file mode 100644
index 0000000..409b9a4
--- /dev/null
+++ b/debian/libbz2-ocaml-dev.docs
@@ -0,0 +1,3 @@
+BUGS
+README
+ROADMAP
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..926030e
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,29 @@
+#!/usr/bin/make -f
+include /usr/share/cdbs/1/rules/debhelper.mk
+include /usr/share/cdbs/1/class/autotools.mk
+include /usr/share/cdbs/1/rules/patchsys-quilt.mk
+include /usr/share/cdbs/1/class/ocaml.mk
+
+LIB_NAME = bz2
+DEV_PKG_NAME = lib$(LIB_NAME)-ocaml-dev
+DEST_DIR = $(CURDIR)/debian/$(DEV_PKG_NAME)$(OCAML_STDLIB_DIR)
+
+DEB_MAKE_BUILD_TARGET = all
+DEB_MAKE_INSTALL_TARGET = install DESTDIR=$(DEST_DIR)
+
+# TG_BRANCHES = features/flexi-build
+TG_BRANCHES = 
+SAVED_BRANCH := $(shell git branch 2> /dev/null | grep '^*' | cut -f 2 -d' ')
+tg-export:
+	tg create stage-debian $(TG_BRANCHES)
+	git commit -m "staging"
+	rm -Rf debian/patches.new
+	tg export --quilt debian/patches.new
+	git rm -f .top*
+	git checkout $(SAVED_BRANCH)
+	tg delete stage-debian
+	rm debian/patches.new/stage-*
+	sed -i '/^stage-/d' debian/patches.new/series
+	rm -Rf debian/patches
+	mv debian/patches.new debian/patches
+
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..aa1b1c5
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,3 @@
+version=3
+http://forge.ocamlcore.org/frs/?group_id=63 \
+    .*/camlbz2-([\d\.]*)\.tar\.gz

-- 
camlbz2 packaging



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