r212 - in packages/libstring-similarity-perl/trunk: . debian

Allard Hoeve hoeve-guest@haydn.debian.org
Tue, 15 Jun 2004 08:08:09 -0600


Author: hoeve-guest
Date: 2004-06-15 08:07:50 -0600 (Tue, 15 Jun 2004)
New Revision: 212

Added:
   packages/libstring-similarity-perl/trunk/debian/
   packages/libstring-similarity-perl/trunk/debian/changelog
   packages/libstring-similarity-perl/trunk/debian/compat
   packages/libstring-similarity-perl/trunk/debian/control
   packages/libstring-similarity-perl/trunk/debian/copyright
   packages/libstring-similarity-perl/trunk/debian/rules
Log:
Load libstring-similarity-perl-1 into
packages/libstring-similarity-perl/trunk.


Added: packages/libstring-similarity-perl/trunk/debian/changelog
===================================================================
--- packages/libstring-similarity-perl/trunk/debian/changelog	2004-06-15 14:06:01 UTC (rev 211)
+++ packages/libstring-similarity-perl/trunk/debian/changelog	2004-06-15 14:07:50 UTC (rev 212)
@@ -0,0 +1,6 @@
+libstring-similarity-perl (1-1) unstable; urgency=low
+
+  * Initial Release.
+
+ -- Allard Hoeve <allard@byte.nl>  Tue, 15 Jun 2004 15:48:29 +0200
+

Added: packages/libstring-similarity-perl/trunk/debian/compat
===================================================================
--- packages/libstring-similarity-perl/trunk/debian/compat	2004-06-15 14:06:01 UTC (rev 211)
+++ packages/libstring-similarity-perl/trunk/debian/compat	2004-06-15 14:07:50 UTC (rev 212)
@@ -0,0 +1 @@
+4

Added: packages/libstring-similarity-perl/trunk/debian/control
===================================================================
--- packages/libstring-similarity-perl/trunk/debian/control	2004-06-15 14:06:01 UTC (rev 211)
+++ packages/libstring-similarity-perl/trunk/debian/control	2004-06-15 14:07:50 UTC (rev 212)
@@ -0,0 +1,28 @@
+Source: libstring-similarity-perl
+Section: perl
+Priority: optional
+Build-Depends: debhelper (>= 4.0.2), perl (>= 5.8.0-7), gcc (>= 3.3)
+Maintainer: Debian Perl Group <pkg-perl-maintainers@lists.alioth.debian.org>
+Uploaders: Allard Hoeve <allard@byte.nl>, Gunnar Wolf <gwolf@debian.org>, Joachim Breitner <nomeata@debian.org>
+Standards-Version: 3.6.1
+
+Package: libstring-similarity-perl
+Architecture: any
+Depends: ${perl:Depends}, ${shlibs:Depends}, ${misc:Depends},
+Description: Perl module to calculate the similarity of two strings
+ The similarity-function calculates the similarity index of its two
+ arguments. A value of 0 means that the strings are entirely 
+ different. A value of 1 means that the strings are identical.
+ Everything else lies between 0 and 1 and describes the amount of
+ similarity between the strings.
+ .
+ It roughly works by looking at the smallest number of edits to change
+ one string into the other.
+ .
+ You can add an optional argument $limit (default 0) that gives the
+ minimum similarity the two strings must satisfy.  similarity stops
+ analyzing the string as soon as the result drops below the given
+ limit, in which case the result will be invalid but lower than the
+ given $limit. You can use this to speed up the common case of
+ searching for the most similar string from a set by specifing the
+ maximum similarity found so far

Added: packages/libstring-similarity-perl/trunk/debian/copyright
===================================================================
--- packages/libstring-similarity-perl/trunk/debian/copyright	2004-06-15 14:06:01 UTC (rev 211)
+++ packages/libstring-similarity-perl/trunk/debian/copyright	2004-06-15 14:07:50 UTC (rev 212)
@@ -0,0 +1,16 @@
+This is the debian package for the String-Similarity module.
+It was created by Allard Hoeve <allard@byte.nl> using dh-make-perl.
+
+The upstream author is: 
+
+Marc Lehmann <pcg@goof.com>
+ http://www.goof.com/pcg/marc/
+
+(the underlying fstrcmp function was taken from gnu diffutils and
+ modified by Peter Miller <pmiller@agso.gov.au> and Marc Lehmann
+ <pcg@goof.com>).
+
+This module is licenced under the terms of the GPL.
+
+On Debian systems the complete text of the GPL license can be found at:
+        /usr/share/common-licenses/GPL

Added: packages/libstring-similarity-perl/trunk/debian/rules
===================================================================
--- packages/libstring-similarity-perl/trunk/debian/rules	2004-06-15 14:06:01 UTC (rev 211)
+++ packages/libstring-similarity-perl/trunk/debian/rules	2004-06-15 14:07:50 UTC (rev 212)
@@ -0,0 +1,99 @@
+#!/usr/bin/make -f
+# This debian/rules file is provided as a template for normal perl
+# packages. It was created by Marc Brockschmidt <marc@dch-faq.de> for
+# the Debian Perl Group (http://pkg-perl.alioth.debian.org/) but may
+# be used freely wherever it is useful.
+
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
+
+# If set to a true value then MakeMaker's prompt function will
+# always return the default without waiting for user input.
+export PERL_MM_USE_DEFAULT=1
+
+PACKAGE=$(shell dh_listpackages)
+
+ifndef PERL
+PERL = /usr/bin/perl
+endif
+
+TMP     =$(CURDIR)/debian/$(PACKAGE)
+
+# Allow disabling build optimation by setting noopt in
+# $DEB_BUILD_OPTIONS
+CFLAGS = -Wall -g
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+        CFLAGS += -O0
+else
+        CFLAGS += -O2
+endif
+
+build: build-stamp
+build-stamp:
+	dh_testdir
+
+	# Add commands to compile the package here
+	$(PERL) Makefile.PL INSTALLDIRS=vendor
+	$(MAKE) OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""
+
+	touch build-stamp
+
+clean:
+	dh_testdir
+	dh_testroot
+
+	# Add commands to clean up after the build process here
+	-$(MAKE) realclean
+
+	dh_clean build-stamp install-stamp
+
+install: install-stamp
+install-stamp:
+	dh_testdir
+	dh_testroot
+	dh_clean -k
+
+	# Add here commands to install the package into debian/tmp.
+	#$(MAKE) test
+	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+	
+	# As this is a architecture dependent package, we are not supposed to install
+	# stuff to /usr/share/perl5. MakeMaker creates the dirs, we delete them from 
+	# the deb:
+	rmdir --ignore-fail-on-non-empty --parents $(TMP)/usr/share/perl5
+	
+	touch install-stamp
+
+# Build architecture-independent files here.
+binary-indep: build install
+# We have nothing to do by default.
+
+# Build architecture-dependent files here.
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installdocs README
+	dh_installexamples 
+#	dh_installmenu
+#	dh_installcron
+#	dh_installman
+	dh_installchangelogs Changes
+	dh_link
+ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
+	dh_strip
+endif
+	dh_compress
+	dh_fixperms
+	dh_makeshlibs
+	dh_installdeb
+	dh_perl 
+	dh_shlibdeps
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+source diff:                                                                  
+	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary


Property changes on: packages/libstring-similarity-perl/trunk/debian/rules
___________________________________________________________________
Name: svn:executable
   + *