summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog66
-rw-r--r--debian/clean2
-rw-r--r--debian/compat1
-rw-r--r--debian/control38
-rw-r--r--debian/copyright151
-rwxr-xr-xdebian/get-orig-source.sh36
-rw-r--r--debian/libguess-dev.examples1
-rw-r--r--debian/libguess-dev.install3
-rw-r--r--debian/libguess1.docs1
-rw-r--r--debian/libguess1.install1
-rw-r--r--debian/patches/00-remove-colours.diff43
-rw-r--r--debian/patches/series1
-rwxr-xr-xdebian/rules42
-rw-r--r--debian/source/format1
-rw-r--r--debian/source/lintian-overrides2
-rw-r--r--debian/version-script6
-rw-r--r--debian/watch7
17 files changed, 402 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..1eba46a
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,66 @@
+libguess (1.2~git20131128.cc43cefc-2) unstable; urgency=medium
+
+ * Update the homepage URL.
+ * Update Vcs-* fields.
+
+ -- Andrew Shadura <andrewsh@debian.org> Tue, 01 Jul 2014 15:42:16 +0200
+
+libguess (1.2~git20131128.cc43cefc-1) unstable; urgency=medium
+
+ * Update to the latest upstream snapshot.
+ * Add pkg-config dependency.
+
+ -- Andrew Shadura <andrewsh@debian.org> Sat, 21 Jun 2014 14:26:27 +0200
+
+libguess (1.1-4) unstable; urgency=low
+
+ * Update config.sub and config.guess on build.
+ * Build-depend on autotools-dev to have fresh config.* files.
+ * Update Standards-Version.
+
+ -- Andrew Shadura <andrewsh@debian.org> Mon, 27 Jan 2014 19:52:50 +0100
+
+libguess (1.1-3) unstable; urgency=low
+
+ * Remove myself from Uploaders.
+
+ -- Jakub Wilk <jwilk@debian.org> Tue, 22 Oct 2013 14:52:40 +0200
+
+libguess (1.1-2) unstable; urgency=low
+
+ * Remove autotools-dev dependency.
+ * Depend on debhelper 9.
+ * Update Standards-Version to 3.9.4 (no changes).
+ * Fix FTBFS with latest debhelper (Closes: #724184).
+
+ -- Andrew Shadura <andrewsh@debian.org> Mon, 21 Oct 2013 11:17:08 +0200
+
+libguess (1.1-1) unstable; urgency=low
+
+ * New upstream release, drop patches which were applied upstream.
+ * Require mowgli 0.7.0, there's no need for anything newer.
+ * Fix maintainer's last name spelling.
+ * Add multiarch support:
+ - raise dh compat level to 9
+ - raise debhelper build-dependency to 8.1.3~
+ - add Pre-Depends to the binary package
+ - change install files to use multiarch paths
+ - use Multi-Arch: same for binary packages
+ * Update the watch file.
+ * Update the copyright file.
+ * Run autoreconf to regenerate the configure script; depend on dh-autoreconf
+ for that.
+ * Honour dpkg-buildflags' CPPFLAGS.
+ * Change the priority to 'optional' as per Policy Section 2.5.
+
+ -- Andrew O. Shadura <bugzilla@tut.by> Tue, 20 Dec 2011 21:41:47 +0300
+
+libguess (1.0-1) unstable; urgency=low
+
+ [ Andrew O. Shadura ]
+ * Initial release (Closes: #599700)
+
+ [ Jakub Wilk ]
+ * Add myself to uploaders.
+
+ -- Andrew O. Shadura <bugzilla@tut.by> Sun, 01 May 2011 19:38:35 +0300
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..958d57b
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,2 @@
+.deps src/.deps src/*/.deps src/libguess/guess_tab.c buildsys.mk config.log config.status extra.mk libguess.pc src/libguess/autoconf.h src/libguess/libguess.so.1
+config.sub config.guess configure aclocal.m4
diff --git a/debian/compat b/debian/compat
new file mode 100644
index 0000000..ec63514
--- /dev/null
+++ b/debian/compat
@@ -0,0 +1 @@
+9
diff --git a/debian/control b/debian/control
new file mode 100644
index 0000000..4e13f9e
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,38 @@
+Source: libguess
+Priority: optional
+Maintainer: Andrew Shadura <andrewsh@debian.org>
+Build-Depends:
+ debhelper (>= 9),
+ dh-autoreconf,
+ libmowgli-2-dev,
+ pkgconf | pkg-config,
+ gauche,
+ autotools-dev
+Standards-Version: 3.9.5
+Section: libs
+Homepage: http://www.atheme.org/projects/libguess.html
+Vcs-hg: http://anonscm.debian.org/hg/collab-maint/libguess
+Vcs-Browser: http://anonscm.debian.org/hg/collab-maint/libguess/summary
+
+Package: libguess-dev
+Section: libdevel
+Architecture: any
+Depends: libguess1 (= ${binary:Version}), ${misc:Depends}, libmowgli-2-dev, pkgconf | pkg-config
+Multi-Arch: same
+Description: high-speed character set detection library (development)
+ libguess employs discrete-finite automata to deduce the character set of the
+ input buffer. The advantage of this is that all character sets can be checked
+ in parallel, and quickly.
+ .
+ This package contains files needed for development with libguess.
+
+Package: libguess1
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Pre-Depends: ${misc:Pre-Depends}
+Multi-Arch: same
+Description: high-speed character set detection library
+ libguess employs discrete-finite automata to deduce the character set of the
+ input buffer. The advantage of this is that all character sets can be checked
+ in parallel, and quickly.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..84696eb
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,151 @@
+This package was initially debianized by Andrew O. Shadura <bugzilla@tut.by>
+on Fri, 07 Oct 2010 18:08:23. It was downloaded from
+http://www.atheme.org/project/libguess
+
+Upstream Authors:
+
+ Shiro Kawai <shiro@lava.net>
+ Yoshiki Yazawa <yaz@cc.rim.or.jp>
+ William Pitcock <nenolod@atheme.org>
+
+Copyright:
+
+ Copyright (C) 2000-2003 Shiro Kawai
+ Copyright (C) 2005-2010 Yoshiki Yazawa
+ Copyright (C) 2007-2010 William Pitcock
+
+License: BSD
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ 3. Neither the name of the authors nor the names of its contributors
+ may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
+ TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+Files: aclocal.m4
+Copyright:
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
+ 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
+License:
+ This file is free software; the Free Software Foundation
+ gives unlimited permission to copy and/or distribute it,
+ with or without modifications, as long as this notice is preserved.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY, to the extent permitted by law; without
+ even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ PARTICULAR PURPOSE.
+
+Files: buildsys.m4, m4/buildsys.m4
+Copyright:
+ Copyright (c) 2007 - 2009, Jonathan Schleifer <js@webkeks.org>
+License:
+ Permission to use, copy, modify, and/or distribute this software for any
+ purpose with or without fee is hereby granted, provided that the above
+ copyright notice and this permission notice is present in all copies.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+ AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
+ LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
+ CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
+ SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
+ INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
+ CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+
+Files: config.guess, config.sub
+Copyright:
+ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
+ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
+ Foundation, Inc.
+License:
+ This file 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.
+
+ This program is distributed in the hope that it will be useful, but
+ WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
+ 02110-1301, USA.
+
+ As a special exception to the GNU General Public License, if you
+ distribute this file as part of a program that contains a
+ configuration script generated by Autoconf, you may include it under
+ the same distribution terms that you use for the rest of that program.
+
+Files: configure
+Copyright:
+ Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
+ 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
+ Foundation, Inc.
+License:
+ This configure script is free software; the Free Software Foundation
+ gives unlimited permission to copy, distribute and modify it.
+
+Files: install-sh
+Copyright:
+ Copyright (C) 1994 X Consortium
+License:
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to
+ deal in the Software without restriction, including without limitation the
+ rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
+ sell copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
+ AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
+ TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+ Except as contained in this notice, the name of the X Consortium shall not
+ be used in advertising or otherwise to promote the sale, use or other deal-
+ ings in this Software without prior written authorization from the X Consor-
+ tium.
+
+ FSF changes to this file are in the public domain.
+
+On Debian systems, the complete text of the GNU General Public
+License, version 2, can be found in /usr/share/common-licenses/GPL-2.
+
+The Debian packaging for this package is:
+
+ Copyright (C) 2010, 2011 Andrew O. Shadura <bugzilla@tut.by>
+
+and is licensed under the same license as the upstream project.
+
diff --git a/debian/get-orig-source.sh b/debian/get-orig-source.sh
new file mode 100755
index 0000000..12f6b80
--- /dev/null
+++ b/debian/get-orig-source.sh
@@ -0,0 +1,36 @@
+#!/bin/sh -e
+
+# run with GIT_REVISION set to check out a new tarball
+
+UPSTREAM_REPO=git://github.com/atheme/libguess.git
+TARBALLDIR=${1:-.}
+WDIR=debian/orig-source
+rm -rf ${WDIR}
+mkdir ${WDIR}
+
+set -- $(head -n1 debian/changelog | tr -d '()')
+
+PACKAGE=$1
+VERSION=$2
+SRC_VERSION=${2%%-*}
+if [ -z "$GIT_REVISION" ]
+then
+ TARBALLNAME=${PACKAGE}_${SRC_VERSION}
+ GIT_REVISION=${SRC_VERSION##*.}
+fi
+
+rm -rf debian/orig-source
+mkdir debian/orig-source
+
+git clone -n ${UPSTREAM_REPO} debian/orig-source/
+export GIT_DIR=debian/orig-source/.git
+if [ -z "$TARBALLNAME" ]
+then
+ DATE=$(date +%Y%m%d -d @$(git log ${GIT_REVISION} -1 --pretty=format:%ct))
+ TARBALLNAME=${PACKAGE}_${SRC_VERSION%%+*}+git${DATE}.$(echo ${GIT_REVISION}| cut -b 1-8)
+fi
+git archive -o ${TARBALLDIR}/${TARBALLNAME}.orig.tar --prefix=${TARBALLNAME}/ ${GIT_REVISION}
+bzip2 ${TARBALLDIR}/${TARBALLNAME}.orig.tar
+
+rm -rf debian/orig-source
+
diff --git a/debian/libguess-dev.examples b/debian/libguess-dev.examples
new file mode 100644
index 0000000..cd3592b
--- /dev/null
+++ b/debian/libguess-dev.examples
@@ -0,0 +1 @@
+src/examples/guessconv/*.c
diff --git a/debian/libguess-dev.install b/debian/libguess-dev.install
new file mode 100644
index 0000000..70ec735
--- /dev/null
+++ b/debian/libguess-dev.install
@@ -0,0 +1,3 @@
+usr/include/*
+usr/lib/*/pkgconfig/*
+usr/lib/*/*.so
diff --git a/debian/libguess1.docs b/debian/libguess1.docs
new file mode 100644
index 0000000..e845566
--- /dev/null
+++ b/debian/libguess1.docs
@@ -0,0 +1 @@
+README
diff --git a/debian/libguess1.install b/debian/libguess1.install
new file mode 100644
index 0000000..3ddde58
--- /dev/null
+++ b/debian/libguess1.install
@@ -0,0 +1 @@
+usr/lib/*/lib*.so.*
diff --git a/debian/patches/00-remove-colours.diff b/debian/patches/00-remove-colours.diff
new file mode 100644
index 0000000..ef1634c
--- /dev/null
+++ b/debian/patches/00-remove-colours.diff
@@ -0,0 +1,43 @@
+Description: Remove colour escape sequences from the output
+Author: Andrew O. Shadura <bugzilla@tut.by>
+
+--- a/buildsys.mk.in
++++ b/buildsys.mk.in
+@@ -473,21 +473,21 @@
+ fi \
+ done
+
+-DIR_ENTER = printf "\033[K\033[0;36mEntering directory \033[1;36m$$i\033[0;36m.\033[0m\n"; cd $$i || exit 1
+-DIR_LEAVE = printf "\033[K\033[0;36mLeaving directory \033[1;36m$$i\033[0;36m.\033[0m\n"; cd .. || exit 1
+-DEPEND_STATUS = printf "\033[K\033[0;33mGenerating dependencies...\033[0m\r"
+-DEPEND_OK = printf "\033[K\033[0;32mSuccessfully generated dependencies.\033[0m\n"
+-DEPEND_FAILED = printf "\033[K\033[0;31mFailed to generate dependencies!\033[0m\n"; exit 1
+-COMPILE_STATUS = printf "\033[K\033[0;33mCompiling \033[1;33m$<\033[0;33m...\033[0m\r"
+-COMPILE_OK = printf "\033[K\033[0;32mSuccessfully compiled \033[1;32m$<\033[0;32m.\033[0m\n"
+-COMPILE_FAILED = printf "\033[K\033[0;31mFailed to compile \033[1;31m$<\033[0;31m!\033[0m\n"; exit 1
+-LINK_STATUS = printf "\033[K\033[0;33mLinking \033[1;33m$@\033[0;33m...\033[0m\r"
+-LINK_OK = printf "\033[K\033[0;32mSuccessfully linked \033[1;32m$@\033[0;32m.\033[0m\n"
+-LINK_FAILED = printf "\033[K\033[0;31mFailed to link \033[1;31m$@\033[0;31m!\033[0m\n"; exit 1
+-INSTALL_STATUS = printf "\033[K\033[0;33mInstalling \033[1;33m$$i\033[0;33m...\033[0m\r"
+-INSTALL_OK = printf "\033[K\033[0;32mSuccessfully installed \033[1;32m$$i\033[0;32m.\033[0m\n"
+-INSTALL_FAILED = printf "\033[K\033[0;31mFailed to install \033[1;31m$$i\033[0;31m!\033[0m\n"; exit 1
+-DELETE_OK = printf "\033[K\033[0;34mDeleted \033[1;34m$$i\033[0;34m.\033[0m\n"
+-DELETE_FAILED = printf "\033[K\033[0;31mFailed to delete \033[1;31m$$i\033[0;31m!\033[0m\n"; exit 1
++DIR_ENTER = printf "Entering directory $$i.\n"; cd $$i || exit 1
++DIR_LEAVE = printf "Leaving directory $$i.\n"; cd .. || exit 1
++DEPEND_STATUS = printf "Generating dependencies...\n"
++DEPEND_OK = printf "Successfully generated dependencies.\n"
++DEPEND_FAILED = printf "Failed to generate dependencies!\n"; exit 1
++COMPILE_STATUS = printf "Compiling $<...\n"
++COMPILE_OK = printf "Successfully compiled $<.\n"
++COMPILE_FAILED = printf "Failed to compile $<!\n"; exit 1
++LINK_STATUS = printf "Linking $@...\n"
++LINK_OK = printf "Successfully linked $@.\n"
++LINK_FAILED = printf "Failed to link $@!\n"; exit 1
++INSTALL_STATUS = printf "Installing $$i...\n"
++INSTALL_OK = printf "Successfully installed $$i.\n"
++INSTALL_FAILED = printf "Failed to install $$i!\n"; exit 1
++DELETE_OK = printf "Deleted $$i.\n"
++DELETE_FAILED = printf "Failed to delete $$i!\n"; exit 1
+
+ include .deps
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..a48ced7
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+00-remove-colours.diff
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..eef6fc0
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,42 @@
+#!/usr/bin/make -f
+
+export CFLAGS := $(shell dpkg-buildflags --get CFLAGS)
+export CPPFLAGS := $(shell dpkg-buildflags --get CPPFLAGS)
+export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) -Wl,--version-script=$(CURDIR)/debian/version-script
+
+export ACLOCAL := aclocal -I m4
+
+%:
+ dh $@ --with=autoreconf
+
+override_dh_auto_configure:
+ifneq "$(wildcard /usr/share/misc/config.sub)" ""
+ cp -f /usr/share/misc/config.sub config.sub
+endif
+ifneq "$(wildcard /usr/share/misc/config.guess)" ""
+ cp -f /usr/share/misc/config.guess config.guess
+endif
+ dh_auto_configure -- SHELL=/bin/sh
+
+override_dh_auto_build:
+ gosh src/libguess/guess.scm src/libguess/guess_tab.c
+ dh_auto_build
+ ln -s $(CURDIR)/src/libguess/libguess.so src/libguess/libguess.so.1
+
+override_dh_compress:
+ dh_compress -Xguessconv.c
+
+override_dh_auto_clean:
+ [ ! -f buildsys.mk ] || dh_auto_clean
+
+override_dh_auto_test:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
+ LD_LIBRARY_PATH=$(LD_LIBRARY_PATH):$(CURDIR)/src/libguess make -C src/tests/testbench --no-print-directory run
+endif
+
+get-orig-source:
+ @d=$$(readlink -e $(MAKEFILE_LIST)); \
+ cd $${d%/*}/..; \
+ debian/get-orig-source.sh $(CURDIR)
+
+.PHONY: override_dh_auto_clean override_dh_auto_configure override_dh_auto_build override_dh_compress override_dh_auto_test get-orig-source
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/lintian-overrides b/debian/source/lintian-overrides
new file mode 100644
index 0000000..cb91e30
--- /dev/null
+++ b/debian/source/lintian-overrides
@@ -0,0 +1,2 @@
+# For multiarch support, we have to use compat level 9
+libguess source: package-needs-versioned-debhelper-build-depends 9
diff --git a/debian/version-script b/debian/version-script
new file mode 100644
index 0000000..f7143ca
--- /dev/null
+++ b/debian/version-script
@@ -0,0 +1,6 @@
+{
+ global:
+ libguess_*; guess_[a-z][a-z];
+ local:
+ *;
+};
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..5c17f6f
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,7 @@
+# Watch control file for uscan
+# See uscan(1) for format
+
+version=3
+
+http://distfiles.atheme.org/libguess-(.*)\.t.*bz2
+