--- tre-0.7.2.orig/debian/changelog +++ tre-0.7.2/debian/changelog @@ -0,0 +1,50 @@ +tre (0.7.2-1) unstable; urgency=low + + * New upstream release. + + -- Santiago Vila Fri, 24 Dec 2004 20:13:14 +0100 + +tre (0.7.0-1) unstable; urgency=low + + * New upstream release (Closes: #280781). + + -- Santiago Vila Fri, 12 Nov 2004 18:33:02 +0100 + +tre (0.6.8-2) unstable; urgency=low + + * New package tre-agrep, contains /usr/bin/tre-agrep (Closes: #240166). + * Added Suggests: tre-agrep to libtre4. + + -- Santiago Vila Tue, 6 Jul 2004 17:37:46 +0200 + +tre (0.6.8-1) unstable; urgency=low + + * New upstream release, [[:blank:]] should work again (Closes: #250576). + + -- Santiago Vila Fri, 28 May 2004 00:29:00 +0200 + +tre (0.6.7-1) unstable; urgency=low + + * New upstream (stable) release. + + -- Santiago Vila Sun, 23 May 2004 17:09:04 +0200 + +tre (0.6.6-1) unstable; urgency=low + + * New upstream release. + * Added --enable-static, since the default is no. + + -- Santiago Vila Wed, 14 Apr 2004 01:01:22 +0200 + +tre (0.6.4-1) unstable; urgency=low + + * New upstream release (Closes: #226128). + * Changed control, rules and shlibs to match new soname. + + -- Santiago Vila Mon, 5 Jan 2004 15:41:22 +0100 + +tre (0.5.3-1) unstable; urgency=low + + * Initial release. + + -- Santiago Vila Mon, 27 Oct 2003 22:56:44 +0100 --- tre-0.7.2.orig/debian/control +++ tre-0.7.2/debian/control @@ -0,0 +1,35 @@ +Source: tre +Section: libs +Priority: optional +Maintainer: Santiago Vila +Standards-Version: 3.6.1 + +Package: libtre4 +Architecture: any +Section: libs +Priority: optional +Depends: ${shlibs:Depends} +Suggests: tre-agrep +Description: regexp matching library with approximate matching + TRE is a lightweight, robust, and efficient POSIX compliant regexp + matching library with some exciting features such as approximate + matching. + +Package: libtre-dev +Architecture: any +Section: libdevel +Priority: optional +Depends: ${shlibs:Depends}, libtre4 +Description: development package for the libtre4 regexp matching library + This package contains the header files and static libraries required + to develop programs based on the TRE library. TRE is a lightweight, + robust, and efficient POSIX compliant regexp matching library with + some exciting features such as approximate matching. + +Package: tre-agrep +Architecture: any +Section: text +Priority: optional +Depends: ${shlibs:Depends} +Description: approximate grep utility based on the tre library + This is an Approximate GREP utility based on the TRE regexp matching library --- tre-0.7.2.orig/debian/copyright +++ tre-0.7.2/debian/copyright @@ -0,0 +1,26 @@ +This is the Debian prepackaged version of libtre, a POSIX compliant +regexp matching library with approximate matching. + +This package was first put together by Santiago Vila, who currently +maintains it. + +The source code was taken from: + +http://laurikari.net/tre/tre-0.7.2.tar.gz + + +This software is free; you can redistribute it and/or modify it under +the terms of the GNU General Public License version 2 (June 1991) as +published by the Free Software Foundation. See the file `COPYING' for +the complete license. + +If you cannot accept the GNU GPL, it may be possible that you can +persuade me to give or sell you a version which is licensed +differently. Please contact me for more information. + + Ville Laurikari + http://www.iki.fi/vl/ + + +On Debian systems, the complete text of the GNU General Public License +can be found in `/usr/share/common-licenses/GPL'. --- tre-0.7.2.orig/debian/postinst +++ tre-0.7.2/debian/postinst @@ -0,0 +1,5 @@ +#!/bin/sh +set -e +if [ "$1" = "configure" ]; then + ldconfig +fi --- tre-0.7.2.orig/debian/rules +++ tre-0.7.2/debian/rules @@ -0,0 +1,112 @@ +#!/usr/bin/make -f + +CC = gcc +CFLAGS = -g -Wall -D_REENTRANT +INSTALL_PROGRAM = install + +STRIP = true +ATRIP = true + +ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O2 +endif +ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) + INSTALL_PROGRAM += -s + STRIP=strip --strip-unneeded --remove-section=.comment --remove-section=.note + ATRIP=strip --strip-debug +endif + +SOVERSION=4 +VERSION=4.2.2 + +build: + $(checkdir) + ./configure --prefix=/usr --enable-static + $(MAKE) CC="$(CC)" CFLAGS="$(CFLAGS)" + $(MAKE) install DESTDIR=`pwd`/debian/tmp \ + INSTALL_PROGRAM="$(INSTALL_PROGRAM)" + touch build + +clean: + $(checkdir) + rm -f build + -$(MAKE) distclean + rm -f `find . -name "*~"` + rm -rf debian/tmp debian/files* core debian/substvars + cd debian && rm -rf libtre$(SOVERSION) libtre-dev tre-agrep + +binary-indep: checkroot build + $(checkdir) + +binary-arch: checkroot build + debian/rules libtre$(SOVERSION) + debian/rules libtre-dev + debian/rules tre-agrep + +libtre$(SOVERSION): checkroot build + rm -rf debian/$@ + install -d debian/$@/DEBIAN debian/$@/usr/share/doc/$@ + install -d debian/$@/usr/lib + cp -a debian/tmp/usr/lib/libtre.so.$(SOVERSION)* debian/$@/usr/lib + install -m 755 debian/postinst debian/$@/DEBIAN + install -m 644 debian/shlibs debian/$@/DEBIAN + cp -p NEWS TODO README THANKS debian/$@/usr/share/doc/$@ + cp -p debian/copyright debian/$@/usr/share/doc/$@ + cp -p ChangeLog debian/$@/usr/share/doc/$@/changelog + cp -p debian/changelog debian/$@/usr/share/doc/$@/changelog.Debian + cd debian/$@/usr/share/doc/$@ && gzip -9 changelog changelog.Debian + $(STRIP) debian/$@/usr/lib/libtre.so.$(VERSION) + chmod -x debian/$@/usr/lib/* + dpkg-shlibdeps debian/$@/usr/lib/libtre.so.$(VERSION) + dpkg-gencontrol -isp -p$@ -Pdebian/$@ + cd debian/$@ && \ + md5sum `find * -type f ! -regex "DEBIAN/.*"` > DEBIAN/md5sums + chown -R root:root debian/$@ + chmod -R go=rX debian/$@ + dpkg --build debian/$@ .. + +libtre-dev: checkroot build + rm -rf debian/$@ + install -d debian/$@/DEBIAN debian/$@/usr/share/doc + install -d debian/$@/usr/lib + ln -s libtre$(SOVERSION) debian/$@/usr/share/doc/$@ + cp -a debian/tmp/usr/lib/*.so debian/$@/usr/lib + cp -p debian/tmp/usr/lib/*.a debian/$@/usr/lib + cp -p debian/tmp/usr/lib/*.la debian/$@/usr/lib + cp -a debian/tmp/usr/include debian/$@/usr + $(ATRIP) debian/$@/usr/lib/*.a + chmod -x debian/$@/usr/lib/*.la + dpkg-gencontrol -isp -p$@ -Pdebian/$@ + cd debian/$@ && \ + md5sum `find * -type f ! -regex "DEBIAN/.*"` > DEBIAN/md5sums + chown -R root:root debian/$@ + chmod -R go=rX debian/$@ + dpkg --build debian/$@ .. + +tre-agrep: checkroot build + rm -rf debian/$@ + install -d debian/$@/DEBIAN debian/$@/usr/share/doc + install -d debian/$@/usr/bin debian/$@/usr/share/man/man1 + ln -s libtre$(SOVERSION) debian/$@/usr/share/doc/$@ + cp -p debian/tmp/usr/bin/agrep debian/$@/usr/bin/tre-agrep + cp -p debian/tre-agrep.1 debian/$@/usr/share/man/man1 + gzip -r9 debian/$@/usr/share/man + dpkg-shlibdeps debian/$@/usr/bin/tre-agrep + dpkg-gencontrol -isp -p$@ -Pdebian/$@ + cd debian/$@ && \ + md5sum `find * -type f ! -regex "DEBIAN/.*"` > DEBIAN/md5sums + chown -R root:root debian/$@ + chmod -R go=rX debian/$@ + dpkg --build debian/$@ .. + +define checkdir + test -f debian/rules +endef + +binary: binary-indep binary-arch + +checkroot: + $(checkdir) + test root = "`whoami`" + +.PHONY: binary binary-arch binary-indep clean checkroot --- tre-0.7.2.orig/debian/shlibs +++ tre-0.7.2/debian/shlibs @@ -0,0 +1 @@ +libtre 4 libtre4 --- tre-0.7.2.orig/debian/tre-agrep.1 +++ tre-0.7.2/debian/tre-agrep.1 @@ -0,0 +1,91 @@ +.TH TRE-AGREP "1" "July 2004" "tre-agrep (TRE agrep) 0.6.8" "User Commands" +.SH NAME +tre-agrep \- print lines approximately matching a pattern +.SH SYNOPSIS +.B tre-agrep +[\fIOPTION\fR]... \fIPATTERN \fR[\fIFILE\fR]... +.SH DESCRIPTION +Searches for approximate matches of PATTERN in each FILE or standard input. +Example: `tre-agrep \fB\-2\fR optimize foo.txt' outputs all lines in file `foo.txt' that +match "optimize" within two errors. E.g. lines which contain "optimise", +"optmise", and "opitmize" all match. +.SS "Regexp selection and interpretation:" +.TP +\fB\-e\fR, \fB\-\-regexp\fR=\fIPATTERN\fR +use PATTERN as a regular expression +.TP +\fB\-i\fR, \fB\-\-ignore\-case\fR +ignore case distinctions +.TP +\fB\-w\fR, \fB\-\-word\-regexp\fR +force PATTERN to match only whole words +.SS "Approximate matching settings:" +.TP +\fB\-D\fR, \fB\-\-delete\-cost\fR=\fINUM\fR +set cost of missing characters +.TP +\fB\-I\fR, \fB\-\-insert\-cost\fR=\fINUM\fR +set cost of extra characters +.HP +\fB\-S\fR, \fB\-\-substitute\-cost\fR=\fINUM\fR set cost of wrong characters +.TP +\fB\-E\fR, \fB\-\-max\-errors\fR=\fINUM\fR +select records that have at most NUM errors +.TP +-# +select records that have at most # errors (# is a +digit between 0 and 9) +.SS "Miscellaneous:" +.TP +\fB\-d\fR, \fB\-\-delimiter\fR=\fIPATTERN\fR +set the record delimiter regular expression +.TP +\fB\-v\fR, \fB\-\-invert\-match\fR +select non-matching records +.TP +\fB\-V\fR, \fB\-\-version\fR +print version information and exit +.TP +\fB\-y\fR +does nothing (for compatibility with the non-free +agrep program) +.TP +\fB\-\-help\fR +display this help and exit +.SS "Output control:" +.TP +\fB\-B\fR, \fB\-\-best\-match\fR +only output records with least errors +.TP +\fB\-c\fR, \fB\-\-count\fR +only print a count of matching records per FILE +.TP +\fB\-h\fR, \fB\-\-no\-filename\fR +suppress the prefixing filename on output +.TP +\fB\-H\fR, \fB\-\-with\-filename\fR +print the filename for each match +.TP +\fB\-l\fR, \fB\-\-files\-with\-matches\fR +only print FILE names containing matches +.TP +\fB\-n\fR, \fB\-\-record\-number\fR +print record number with output +.TP +\fB\-s\fR, \fB\-\-show\-cost\fR +print match cost with output +.PP +With no FILE, or when FILE is -, reads standard input. If less than two +FILEs are given, \fB\-h\fR is assumed. Exit status is 0 if a match is found, 1 for +no match, and 2 if there were errors. If \fB\-E\fR or -# is not specified, only +exact matches are selected. +.PP +PATTERN is a POSIX extended regular expression (ERE) with the TRE extensions. +See tre(7) for a complete description. +.SH "REPORTING BUGS" +Report bugs to Ville Laurikari . +.SH COPYRIGHT +Copyright \(co 2002-2004 Ville Laurikari. +.br +This is free software; see the source for copying conditions. There is NO +warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.