The following commit has been merged in the master branch: commit c740edd4d9f33defa19453f5134c2b860bb13702 Author: Sylvain Le Gall <gil...@debian.org> Date: Tue Jun 19 22:54:16 2012 +0000
Initial packaging diff --git a/debian/README.source b/debian/README.source new file mode 100644 index 0000000..c27c83f --- /dev/null +++ b/debian/README.source @@ -0,0 +1,16 @@ +ocaml-sqlite3 Debian source package +=================================== + +Patching upstream sources +------------------------- + +This 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 generated from the Git repository, using +dom-{apply,save}-patches, from the dh-ocaml (>= 0.4.2) package. Please +refer to the appendix about Git in the Debian OCaml Packaging Policy +(from the same package). + + -- Stephane Glondu <st...@glondu.net>, Tue, 30 Jun 2009 20:53:27 +0200 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..25292a2 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +ocamlrss (2.0-1) UNRELEASED; urgency=low + + * Initial packaging + + -- Sylvain Le Gall <gil...@debian.org> Tue, 19 Jun 2012 22:19:41 +0000 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..45a4fb7 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +8 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..2160f5e --- /dev/null +++ b/debian/control @@ -0,0 +1,51 @@ +Source: ocamlrss +Priority: optional +Maintainer: Debian OCaml Maintainers <debian-ocaml-ma...@lists.debian.org> +Uploaders: + Sylvain Le Gall <gil...@debian.org> +Build-Depends: + debhelper (>= 8), + ocaml-nox (>= 3.11.1-3~), + ocaml-findlib (>= 1.2.5), + dh-ocaml (>= 0.9), + libxmlm-ocaml-dev (>= 1.1.0) +Conflicts: libcameleon-ocaml-dev +Standards-Version: 3.9.2 +Section: ocaml +Homepage: http://zoggy.github.com/ocamlrss +Vcs-Git: git://git.debian.org/git/pkg-ocaml-maint/packages/ocamlrss.git +Vcs-Browser: http://git.debian.org/?p=pkg-ocaml-maint/packages/ocamlrss.git + +Package: librss-ocaml +Architecture: any +Depends: + ${ocaml:Depends}, + ${shlibs:Depends}, + ${misc:Depends} +Provides: ${ocaml:Provides} +Conflicts: libcameleon-ocaml-dev +Description: RSS 2.0 parser and printer for OCaml + OCaml-RSS is a small OCaml library providing functions to parse and print RSS + 2.0 files. The parser can also parse some RDF files, but some fields are not + taken into account. There is still some work to do (add missing RSS 2.0 + attributes, add convenient functions). + . + OCaml-RSS was previously part of Cameleon but is now developed separately + and is findlib compatible. + +Package: librss-ocaml-dev +Architecture: any +Depends: + ${ocaml:Depends}, + ${shlibs:Depends}, + ${misc:Depends} +Provides: ${ocaml:Provides} +Recommends: ocaml-findlib +Description: RSS 2.0 parser and printer for OCaml + This package is a small OCaml library providing functions to parse and print + RSS 2.0 files. The parser can also parse some RDF files, but some fields are + not taken into account. There is still some work to do (add missing RSS 2.0 + attributes, add convenient functions). + . + OCaml-RSS was previously part of Cameleon but is now developed separately + and is findlib compatible. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..bc193a0 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,39 @@ +Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat +Upstream-Author: Maxence Guesdon +Packaged-By: Sylvain Le Gall <gil...@debian.org> +Packaged-Date: Tue, 19 Jun 2012 22:07:15 +0000 +Original-Source-Location: http://zoggy.github.com/ocamlrss/ + +Files: * +Copyright: (C) 2004-2012 Institut National de Recherche en Informatique et en Automatique +License: LGPL-3 + +The Library is distributed under the terms of the GNU Lesser General Public +License version 3, with the special exception to it reported above. + +The full text of the GNU Lessere General Public License version 3 can be +found in `/usr/share/common-licenses/LGPL-3'. + +Files: rss_date.* +Copyright: (C) 2001 Patrick Doane and Gerd Stolpmann +License: BSD3 + +This software is provided 'as-is', without any express or implied +warranty. In no event will the authors be held liable for any damages +arising from the use of this software. + +Permission is granted to anyone to use this software for any purpose, +including commercial applications, and to alter it and redistribute it +freely, subject to the following restrictions: + +1. The origin of this software must not be misrepresented; you must +not claim that you wrote the original software. If you use this +software in a product, an acknowledgment in the product documentation +would be appreciated but is not required. + +2. Altered source versions must be plainly marked as such, and must +not be misrepresented as being the original software. + +3. This notice may not be removed or altered from any source +distribution. + 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/librss-ocaml-dev.doc-base b/debian/librss-ocaml-dev.doc-base new file mode 100644 index 0000000..ac7e96f --- /dev/null +++ b/debian/librss-ocaml-dev.doc-base @@ -0,0 +1,9 @@ +Document: librss-ocaml-dev +Title: API for RSS 2.0 parser and printer +Author: Maxence Guesdon +Abstract: Ocamldoc-generated documentation for OCaml RSS 2.0 +Section: Programming/OCaml + +Format: HTML +Index: /usr/share/doc/librss-ocaml-dev/html/index.html +Files: /usr/share/doc/librss-ocaml-dev/html/*.html diff --git a/debian/librss-ocaml-dev.docs b/debian/librss-ocaml-dev.docs new file mode 100644 index 0000000..1936cc1 --- /dev/null +++ b/debian/librss-ocaml-dev.docs @@ -0,0 +1 @@ +html diff --git a/debian/librss-ocaml-dev.install.in b/debian/librss-ocaml-dev.install.in new file mode 100644 index 0000000..b00eb41 --- /dev/null +++ b/debian/librss-ocaml-dev.install.in @@ -0,0 +1,5 @@ +@OCamlStdlibDir@/rss/*.cmi +@OCamlStdlibDir@/rss/*.ml* +@OCamlStdlibDir@/rss/*.a +OPT: @OCamlStdlibDir@/rss/*.cmx +OPT: @OCamlStdlibDir@/rss/*.cmxa diff --git a/debian/librss-ocaml.install.in b/debian/librss-ocaml.install.in new file mode 100644 index 0000000..0bad08d --- /dev/null +++ b/debian/librss-ocaml.install.in @@ -0,0 +1,3 @@ +@OCamlStdlibDir@/rss/rss.cma +@OCamlStdlibDir@/rss/META +OPT: rss.cmxs @OCamlStdlibDir@/rss diff --git a/debian/patches/fix-makefile b/debian/patches/fix-makefile new file mode 100644 index 0000000..c2d5c26 --- /dev/null +++ b/debian/patches/fix-makefile @@ -0,0 +1,50 @@ +Description: create more generic rules for the Makefile + This patch allow to have a more flexible installation by not depending + on target byte + opt, so you just install what has been build (hence the + wildcard). It also adds a target .cmxs. It also cleans extra files. + . + ocamlrss (2.0-1) UNRELEASED; urgency=low + . + * Initial packaging +Author: Sylvain Le Gall <gil...@debian.org> + +--- +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: + +Bug: https://github.com/zoggy/ocamlrss/issues/1 + +--- ocamlrss-2.0.orig/Makefile ++++ ocamlrss-2.0/Makefile +@@ -79,8 +79,8 @@ test: rsstest + + # installation : + ################ +-install: byte opt +- $(OCAMLFIND) install rss META LICENSE rss.cmi rss.cma rss.cmxa rss.a ++install: ++ $(OCAMLFIND) install rss META LICENSE $(wildcard rss.cmi rss.cma rss.cmxa rss.a rss.cmxs rss.mli rss.cmx) + + uninstall: + ocamlfind remove rss +@@ -93,7 +93,9 @@ archive: + # Cleaning : + ############ + clean: +- rm -f *.cm* *.a *.annot *.o ++ -$(RM) *.cm* *.a *.annot *.o ++ -$(RM) -r html ++ -$(RM) rsstest t2.rss t.rss + + # headers : + ########### +@@ -121,5 +123,8 @@ noheaders: + %.cmx %.o:%.ml + $(OCAMLOPT) -c $< + ++%.cmxs: %.cmxa ++ $(OCAMLOPT) -I . -shared -linkall -o $@ $< ++ + include .depend + diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..4f20ff2 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +fix-makefile diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..675e87b --- /dev/null +++ b/debian/rules @@ -0,0 +1,25 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +include /usr/share/ocaml/ocamlvars.mk + +DESTDIR := $(CURDIR)/debian/tmp/$(OCAML_STDLIB_DIR) + +export OCAMLFIND_DESTDIR=$(DESTDIR) +%: + dh $@ --with ocaml + +.PHONY: override_dh_auto_build +override_dh_auto_build: + $(MAKE) byte doc +ifneq ($(OCAML_OPT_ARCH),) + $(MAKE) opt rss.cmxs +endif + +.PHONY: override_dh_auto_install +override_dh_auto_install: + mkdir -p $(DESTDIR) + $(MAKE) install 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/source/local-options b/debian/source/local-options new file mode 100644 index 0000000..c4cf480 --- /dev/null +++ b/debian/source/local-options @@ -0,0 +1,2 @@ +abort-on-upstream-changes +unapply-patches diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..9292b87 --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://zoggy.github.com/ocamlrss/ ocamlrss-(.*)\.tar\.gz -- ocamlrss packaging _______________________________________________ Pkg-ocaml-maint-commits mailing list Pkg-ocaml-maint-commits@lists.alioth.debian.org http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-ocaml-maint-commits