KartikMistry has uploaded a new change for review. https://gerrit.wikimedia.org/r/179153
Change subject: Added initial Debian packaging ...................................................................... Added initial Debian packaging Bug: T76984 Change-Id: I7b535decb5c9e77bb3f7a3ee9d74d84e2f4c21d6 --- A debian/changelog A debian/compat A debian/control A debian/copyright A debian/docs A debian/hfst.install A debian/libhfst39-dev.install A debian/libhfst39.install A debian/libhfst39.postinst A debian/patches/hfst_02_notimestamp.diff A debian/patches/series A debian/rules A debian/source/format A debian/watch 14 files changed, 202 insertions(+), 0 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/debs/contenttranslation/hfst refs/changes/53/179153/1 diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..998cedf --- /dev/null +++ b/debian/changelog @@ -0,0 +1,15 @@ +hfst (3.8.1~r4088-1) trusty; urgency=low + + [ Kartik Mistry ] + * Rebuild for Trusty. + + [ Tino Didriksen ] + * New upstream release + + -- Kartik Mistry <[email protected]> Thu, 11 Dec 2014 21:06:35 +0530 + +hfst (3.8.0~r4029-1) experimental; urgency=low + + * Initial release + + -- Tino Didriksen <[email protected]> Fri, 3 Oct 2014 13:13:49 +0000 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..c7e75de --- /dev/null +++ b/debian/control @@ -0,0 +1,52 @@ +Source: hfst +Section: science +Priority: optional +Maintainer: Debian Science Team <[email protected]> +Uploaders: Tino Didriksen <[email protected]>, + Kartik Mistry <[email protected]> +Build-Depends: autoconf, + automake, + autotools-dev, + bison, + debhelper (>= 9.0), + dh-autoreconf, + flex, + libicu-dev, + libreadline-dev, + libtool, + python, + python-dev, + zlib1g-dev +Standards-Version: 3.9.6 +Homepage: http://www.ling.helsinki.fi/kieliteknologia/tutkimus/hfst/ +Vcs-Git: git://anonscm.debian.org/debian-science/packages/hfst.git +Vcs-Browser: https://anonscm.debian.org/cgit/debian-science/packages/hfst.git + +Package: hfst +Architecture: any +Provides: hfst +Depends: libhfst39 (= ${binary:Version}), + python, + ${misc:Depends}, + ${shlibs:Depends} +Description: Helsinki Finite-State Transducer Technology + The Helsinki Finite-State Transducer software is intended for the + implementation of morphological analysers and other tools which are + based on weighted and unweighted finite-state transducer technology. + +Package: libhfst39 +Architecture: any +Depends: ${misc:Depends}, ${shlibs:Depends} +Provides: libhfst3 +Conflicts: libhfst3 +Description: Helsinki Finite-State Transducer Technology Libraries + Runtime libraries for HFST + +Package: libhfst39-dev +Architecture: any +Section: libdevel +Depends: libhfst39 (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends} +Provides: libhfst3-dev +Conflicts: libhfst3-dev +Description: Helsinki Finite-State Transducer Technology Development files + Development headers and libraries for HFST diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..4e75a08 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,49 @@ +Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Source: http://www.ling.helsinki.fi/kieliteknologia/tutkimus/hfst/ + +Files: * +Copyright: 2009-2014, Department of Modern Languages, University of Helsinki + See AUTHORS for more copyrights. +License: GPL-3 + 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 3 of the License, or + (at your option) any later version. + . + This package 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, see <http://www.gnu.org/licenses/>. + . + On Debian systems, the complete text of the GNU General + Public License version 3 can be found in "/usr/share/common-licenses/GPL-3". + +Files: tools/src/hfst-proc/buffer.h +Copyright: 2005 Universitat d'Alacant / Universidad de Alicante +License: GPL-2+ + +Files: back-ends/dlfcn/dlfcn.* +Copyright: 2007 Ramiro Polla +License: LGPL-2.1+ + +Files: test/tools/fsmbook-tests/xfst-scripts/Lingala.xfst.script +Copyright: 2003 Lauri Karttunen +License: GPL-2+ + +Files: back-ends/foma/* +Copyright: 2008-2013 Mans Hulden +License: GPL-2 +Comment: The code is not built or linked, due to incompatible license. + +Files: back-ends/openfst/* + back-ends/openfstwin/* +Copyright: 2005-2010 Google, Inc. +License: Apache-2.0 + +Files: back-ends/sfst/* +Copyright: 2012 Helmut Schmid <[email protected]> +License: GPL-3 +Comment: https://code.google.com/p/cistern/ diff --git a/debian/docs b/debian/docs new file mode 100644 index 0000000..05c2865 --- /dev/null +++ b/debian/docs @@ -0,0 +1,4 @@ +AUTHORS +NEWS +README +THANKS diff --git a/debian/hfst.install b/debian/hfst.install new file mode 100644 index 0000000..a833141 --- /dev/null +++ b/debian/hfst.install @@ -0,0 +1,2 @@ +debian/tmp/usr/bin +debian/tmp/usr/share diff --git a/debian/libhfst39-dev.install b/debian/libhfst39-dev.install new file mode 100644 index 0000000..992badc --- /dev/null +++ b/debian/libhfst39-dev.install @@ -0,0 +1,4 @@ +debian/tmp/usr/include/hfst +debian/tmp/usr/lib/*.a +debian/tmp/usr/lib/*.so +debian/tmp/usr/lib/pkgconfig diff --git a/debian/libhfst39.install b/debian/libhfst39.install new file mode 100644 index 0000000..307c522 --- /dev/null +++ b/debian/libhfst39.install @@ -0,0 +1,2 @@ +debian/tmp/usr/lib/*.so.* +debian/tmp/usr/lib/python*/*/*.py diff --git a/debian/libhfst39.postinst b/debian/libhfst39.postinst new file mode 100644 index 0000000..7df96b6 --- /dev/null +++ b/debian/libhfst39.postinst @@ -0,0 +1,8 @@ +#!/bin/sh +set -e + +#DEBHELPER# + +ldconfig + +exit 0 diff --git a/debian/patches/hfst_02_notimestamp.diff b/debian/patches/hfst_02_notimestamp.diff new file mode 100644 index 0000000..f87ac15 --- /dev/null +++ b/debian/patches/hfst_02_notimestamp.diff @@ -0,0 +1,24 @@ +Index: b/tools/src/hfst-optimized-lookup.cc +=================================================================== +--- a/tools/src/hfst-optimized-lookup.cc (revision 4029) ++++ b/tools/src/hfst-optimized-lookup.cc (working copy) +@@ -63,7 +63,6 @@ + std::cout << + "\n" << + PACKAGE_STRING << std::endl << +- __DATE__ << " " __TIME__ << std::endl << + "copyright (C) 2009 University of Helsinki\n"; + return true; + } +Index: b/tools/src/hfst-proc/hfst-proc.cc +=================================================================== +--- a/tools/src/hfst-proc/hfst-proc.cc (revision 4029) ++++ b/tools/src/hfst-proc/hfst-proc.cc (working copy) +@@ -140,7 +140,6 @@ + "\n" << + "hfst-proc 0.0 (" << + PACKAGE_STRING << ")" << std::endl << +- __DATE__ << " " __TIME__ << std::endl << + "copyright (C) 2009-2011 University of Helsinki\n"; + return true; + } diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..00479d1 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1 @@ +hfst_02_notimestamp.diff diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..5d1a227 --- /dev/null +++ b/debian/rules @@ -0,0 +1,35 @@ +#!/usr/bin/make -f +# -*- makefile -*- +# Sample debian/rules that uses debhelper. +# +# This file was originally written by Joey Hess and Craig Small. +# As a special exception, when this file is copied by dh-make into a +# dh-make output file, you may use that output file without restriction. +# This special exception was added by Craig Small in version 0.37 of dh-make. +# +# Modified to make a template file for a multi-binary package with separated +# build-arch and build-indep targets by Bill Allombert 2001 + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +NUMJOBS = 1 +ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) + NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS))) +endif + +# This has to be exported to make some magic below work. +export DH_OPTIONS + +%: + dh $@ --parallel --with autoreconf + +override_dh_auto_configure: + ./configure --without-foma --with-unicode-handler=ICU --enable-all-tools --prefix=/usr + +override_dh_auto_build: + ./scripts/generate-cc-files.sh + make -j$(NUMJOBS) || make -j$(NUMJOBS) || make + +override_dh_auto_test: + # Skip, as it breaks in various unpredictable ways 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/watch b/debian/watch new file mode 100644 index 0000000..be2c368 --- /dev/null +++ b/debian/watch @@ -0,0 +1,4 @@ +version=3 +opts=filenamemangle=s/\S*download=//g \ +https://qa.debian.org/cgi-bin/fakeupstream.cgi?upstream=sf/hfst/hfst \ +.*=hfst(?:[_\-]v?|)(\d[^\s/]*)\.(?:tar\.xz|txz|tar\.bz2|tbz2|tar\.gz|tgz) -- To view, visit https://gerrit.wikimedia.org/r/179153 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I7b535decb5c9e77bb3f7a3ee9d74d84e2f4c21d6 Gerrit-PatchSet: 1 Gerrit-Project: operations/debs/contenttranslation/hfst Gerrit-Branch: master Gerrit-Owner: KartikMistry <[email protected]> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
