--- ocamlagrep-1.0.orig/debian/changelog +++ ocamlagrep-1.0/debian/changelog @@ -0,0 +1,127 @@ +ocamlagrep (1.0-11build6) trusty; urgency=medium + + * Rebuild for ocaml-4.01. + + -- Matthias Klose Mon, 23 Dec 2013 12:11:37 +0000 + +ocamlagrep (1.0-11build5) precise; urgency=low + + * Rebuild with ocamlopt on armhf. + + -- Colin Watson Tue, 24 Jan 2012 00:51:41 +0000 + +ocamlagrep (1.0-11build4) precise; urgency=low + + * Rebuild for OCaml 3.12.1. + + -- Colin Watson Fri, 18 Nov 2011 20:59:09 +0000 + +ocamlagrep (1.0-11build3) oneiric; urgency=low + + * Rebuild to pick up armel ocaml fixes. + + -- Adam Conrad Fri, 19 Aug 2011 13:32:26 -0600 + +ocamlagrep (1.0-11build2) oneiric; urgency=low + + * Rebuild for OCaml 3.12.0. + + -- Colin Watson Mon, 16 May 2011 19:53:51 +0100 + +ocamlagrep (1.0-11build1) lucid; urgency=low + + * No-change rebuild for OCaml 3.11.2 transition (LP: #522363). + + -- Ilya Barygin Wed, 17 Feb 2010 18:09:23 +0300 + +ocamlagrep (1.0-11) unstable; urgency=low + + * Use dh-ocaml 0.9.1 features + * Add homepage field and update debian/watch to point to + forge.ocamlcore.org + * Add myself to Uploaders + * Upgrade Standards-Version to 3.8.3 (section ocaml) + + -- Sylvain Le Gall Thu, 17 Dec 2009 00:10:18 +0000 + +ocamlagrep (1.0-10) unstable; urgency=low + + [ Stefano Zacchiroli ] + * fix vcs-svn field to point just above the debian/ dir + + [ Ralf Treinen ] + * Changed doc-base section to Programming/OCaml + + [ Samuel Mimram ] + * Switch packaging to git + * Use dh-ocaml. + * Update compat to 7. + * Update standards version to 3.8.0. + + -- Samuel Mimram Tue, 24 Feb 2009 18:38:46 +0100 + +ocamlagrep (1.0-9) unstable; urgency=low + + * Rebuild with OCaml 3.10. + + -- Samuel Mimram Sat, 08 Sep 2007 01:11:09 +0200 + +ocamlagrep (1.0-8) unstable; urgency=low + + * Rebuild with OCaml 3.09.2. + * Update standards version to 3.7.2, no changes needed. + + -- Samuel Mimram Thu, 18 May 2006 16:48:03 +0000 + +ocamlagrep (1.0-7) unstable; urgency=low + + * Correctly generating the dependencies on ocaml-nox, closes: #347457. + + -- Samuel Mimram Tue, 10 Jan 2006 22:25:30 +0100 + +ocamlagrep (1.0-6) unstable; urgency=low + + [ Julien Cristau ] + * Stop hardcoding the OCaml version number in the package. + + [ Samuel Mimram ] + * Updated watch file. + * Rebuild with OCaml 3.09.1. + + -- Samuel Mimram Sat, 7 Jan 2006 13:18:00 +0100 + +ocamlagrep (1.0-5) unstable; urgency=low + + * Updated to OCaml 3.09.0. + * Updated standards version to 3.6.2, no changes needed. + + -- Samuel Mimram Wed, 9 Nov 2005 19:50:04 +0100 + +ocamlagrep (1.0-4) unstable; urgency=medium + + * Updated to OCaml 3.08.3. + * Set Debian OCaml Maintainers as Maintainer and put myself in Uploaders. + + -- Samuel Mimram Wed, 23 Mar 2005 15:04:47 +0100 + +ocamlagrep (1.0-3) unstable; urgency=low + + * Installing agrep.a since gcc seems to look for it when compiling with + ocamlopt, closes: #293696. + * Changed my email since I'm a DD now. + + -- Samuel Mimram Tue, 8 Feb 2005 00:40:27 +0100 + +ocamlagrep (1.0-2) unstable; urgency=low + + * Build with OCaml 3.08. + * Depends on -nox version of ocaml packages. + + -- Samuel Mimram Wed, 21 Jul 2004 18:48:42 +0200 + +ocamlagrep (1.0-1) unstable; urgency=low + + * Initial Release. + + -- Samuel Mimram Wed, 21 Jan 2004 17:58:10 +0100 + --- ocamlagrep-1.0.orig/debian/compat +++ ocamlagrep-1.0/debian/compat @@ -0,0 +1 @@ +7 --- ocamlagrep-1.0.orig/debian/control +++ ocamlagrep-1.0/debian/control @@ -0,0 +1,63 @@ +Source: ocamlagrep +Section: ocaml +Priority: optional +Maintainer: Debian OCaml Maintainers +Uploaders: Samuel Mimram , Sylvain Le Gall +Build-Depends: debhelper (>= 7), dh-ocaml (>= 0.9.1), ocaml-nox (>= 3.11) +Standards-Version: 3.8.3 +Vcs-Git: git://git.debian.org/git/pkg-ocaml-maint/packages/ocamlagrep.git +Vcs-Browser: http://git.debian.org/?p=pkg-ocaml-maint/packages/ocamlagrep.git +Homepage: http://forge.ocamlcore.org/projects/ocamlagrep/ + +Package: libagrep-ocaml-dev +Architecture: any +Depends: libagrep-ocaml (= ${binary:Version}), ${ocaml:Depends} +Provides: ${ocaml:Provides} +Description: Wu-Manber algorithm for string searching with errors + This OCaml library implements the Wu-Manber algorithm for string searching + with errors, popularized by the "agrep" Unix command and the "glimpse" file + indexing tool. It was developed as part of a search engine for a largish MP3 + collection; the "with error" searching comes handy for those who can't spell + Liszt or Shostakovitch. + . + Given a search pattern and a string, this algorithm determines whether the + string contains a substring that matches the pattern up to a parameterizable + number N of "errors". An "error" is either a substitution (replace a + character of the string with another character), a deletion (remove a + character) or an insertion (add a character to the string). In more + scientific terms, the number of errors is the Levenshtein edit distance + between the pattern and the matched substring. + . + The search patterns are roughly those of the Unix shell, including + one-character wildcard (?), character classes ([0-9]) and multi-character + wildcard (*). In addition, conjunction (&) and alternative (|) are supported. + General regular expressions are not supported, however. + . + This package contains all the development stuff you need to use + the agrep OCaml library in your programs. + +Package: libagrep-ocaml +Architecture: any +Depends: ${ocaml:Depends}, ${shlibs:Depends} +Provides: ${ocaml:Provides} +Description: Wu-Manber algorithm for string searching with errors + This OCaml library implements the Wu-Manber algorithm for string searching + with errors, popularized by the "agrep" Unix command and the "glimpse" file + indexing tool. It was developed as part of a search engine for a largish MP3 + collection; the "with error" searching comes handy for those who can't spell + Liszt or Shostakovitch. + . + Given a search pattern and a string, this algorithm determines whether the + string contains a substring that matches the pattern up to a parameterizable + number N of "errors". An "error" is either a substitution (replace a + character of the string with another character), a deletion (remove a + character) or an insertion (add a character to the string). In more + scientific terms, the number of errors is the Levenshtein edit distance + between the pattern and the matched substring. + . + The search patterns are roughly those of the Unix shell, including + one-character wildcard (?), character classes ([0-9]) and multi-character + wildcard (*). In addition, conjunction (&) and alternative (|) are supported. + General regular expressions are not supported, however. + . + This package contains only the shared runtime stub libraries. --- ocamlagrep-1.0.orig/debian/copyright +++ ocamlagrep-1.0/debian/copyright @@ -0,0 +1,17 @@ +This package was debianized by Samuel Mimram on +Wed, 21 Jan 2004 17:58:10 +0100. + +It was downloaded from http://pauillac.inria.fr/~xleroy/software.html + +Upstream Author: Xavier Leroy + +Copyright (C) 2002 Institut National de Recherche en Informatique et en +Automatique. + +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 of the License, or +(at your option) any later version. + +On Debian systems you can find the text of this license in +/usr/share/common-licenses/LGPL. --- ocamlagrep-1.0.orig/debian/dirs.in +++ ocamlagrep-1.0/debian/dirs.in @@ -0,0 +1 @@ +@OCamlStdlibDir@/agrep --- ocamlagrep-1.0.orig/debian/examples/Makefile +++ ocamlagrep-1.0/debian/examples/Makefile @@ -0,0 +1,6 @@ +# Makefile for testagrep example program. +# +# Added for the ocamlagrep Debian package. + +all: + ocamlc -o testagrep -I +agrep agrep.cma testagrep.ml --- ocamlagrep-1.0.orig/debian/examples/README +++ ocamlagrep-1.0/debian/examples/README @@ -0,0 +1,41 @@ +******************************************************************************** +* testagrep * +******************************************************************************** + + +testagrep is a program which shows the features of the Agrep OCaml module. It +checks if a string approximatively (you can specify the number of errors +allowed) matches a pattern using the Wu-Manber algorithm. + + +To compile it using the provided Makfile, just type "make". + + +The syntax of the program's command line is: + +testagrep [options] + +where options are: + + -1 one error + -2 two error + -3 three error + -e n errors + -f search in given file rather than in string + -w match entire words + -v match string verbatim (no special chars) + -help display this list of options + --help display this list of options + + +The pattern can be constituted of one or more of the following constructs: + - ? match any single character + - * match any sequence of characters + - [..] character set: ranges are denoted with -, as in [a-z]; an initial ^, as in [^0-9], complements the set + - & conjunction (e.g. sweet&sour) + - | alternative (e.g. high|low) + - (..) grouping + - \ escape special characters; the special characters are \?*[]&|(). + + +This file was added for the ocamlagrep Debian package. --- ocamlagrep-1.0.orig/debian/gbp.conf +++ ocamlagrep-1.0/debian/gbp.conf @@ -0,0 +1,2 @@ +[DEFAULT] +pristine-tar = True --- ocamlagrep-1.0.orig/debian/libagrep-ocaml-dev.doc-base +++ ocamlagrep-1.0/debian/libagrep-ocaml-dev.doc-base @@ -0,0 +1,9 @@ +Document: ocamlagrep +Title: AGrep OCaml Module Reference Manual +Author: Xavier Leroy +Abstract: This OCaml library implements the Wu-Manber algorithm for string searching with errors, popularized by the "agrep" Unix command and the "glimpse" file indexing tool. It was developed as part of a search engine for a largish MP3 collection; the "with error" searching comes handy for those who can't spell Liszt or Shostakovitch. +Section: Programming/OCaml + +Format: HTML +Index: /usr/share/doc/libagrep-ocaml-dev/html/index.html +Files: /usr/share/doc/libagrep-ocaml-dev/html/*.html --- ocamlagrep-1.0.orig/debian/libagrep-ocaml-dev.docs +++ ocamlagrep-1.0/debian/libagrep-ocaml-dev.docs @@ -0,0 +1 @@ +debian/doc/* --- ocamlagrep-1.0.orig/debian/libagrep-ocaml-dev.examples +++ ocamlagrep-1.0/debian/libagrep-ocaml-dev.examples @@ -0,0 +1,2 @@ +testagrep.ml +debian/examples/* --- ocamlagrep-1.0.orig/debian/libagrep-ocaml-dev.install.in +++ ocamlagrep-1.0/debian/libagrep-ocaml-dev.install.in @@ -0,0 +1,3 @@ +@OCamlStdlibDir@/agrep/*.a +@OCamlStdlibDir@/agrep/*.cm* +@OCamlStdlibDir@/agrep/*.ml* --- ocamlagrep-1.0.orig/debian/libagrep-ocaml.docs +++ ocamlagrep-1.0/debian/libagrep-ocaml.docs @@ -0,0 +1 @@ +README --- ocamlagrep-1.0.orig/debian/libagrep-ocaml.install.in +++ ocamlagrep-1.0/debian/libagrep-ocaml.install.in @@ -0,0 +1 @@ +@OCamlStdlibDir@/agrep/dllagrep.so @OCamlDllDir@ --- ocamlagrep-1.0.orig/debian/rules +++ ocamlagrep-1.0/debian/rules @@ -0,0 +1,82 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +include /usr/share/ocaml/ocamlvars.mk +include /usr/share/ocaml/ocamlinit.mk + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O3 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s +endif + +configure: configure-stamp +configure-stamp: + dh_testdir + + touch configure-stamp + +build: ocamlinit build-stamp +build-stamp: configure-stamp + dh_testdir + + $(MAKE) libagrep.a agrep.cma +ifneq ($(OCAML_OPT_ARCH),) + $(MAKE) agrep.cmxa +endif + + touch build-stamp + +clean: ocamlinit-clean + dh_testdir + dh_testroot + + rm -f build-stamp configure-stamp + $(MAKE) clean + rm -rf debian/doc + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + mkdir -p debian/tmp/$(OCAML_STDLIB_DIR)/agrep + # Default install doesn't handle no-ocamlopt platforms + cp $(wildcard *.cmi *.cma *.cmxa *.a *.so *.mli) debian/tmp/$(OCAML_STDLIB_DIR)/agrep + mkdir -p debian/doc/html + $(OCAML_OCAMLDOC) -html -m A -keep-code -d debian/doc/html agrep.mli + +binary-indep: build install + +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples + dh_install --list-missing + dh_installman + dh_link + dh_strip + dh_compress + dh_fixperms + dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_ocaml + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install configure ocamlinit --- ocamlagrep-1.0.orig/debian/watch +++ ocamlagrep-1.0/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://forge.ocamlcore.org/frs/?group_id=136 (?:.*/)?ocamlagrep-([0-9\.]*)\.tar\.gz debian uupdate