[med-svn] [libdivsufsort] 02/02: initial debian packaging

Fabian Klötzl kloetzl-guest at moszumanska.debian.org
Wed Jul 22 12:20:35 UTC 2015


This is an automated email from the git hooks/post-receive script.

kloetzl-guest pushed a commit to branch master
in repository libdivsufsort.

commit 8fb8f39d15e30c18285407349ef556aba21e1ade
Author: Fabian Klötzl <fabian at kloetzl.info>
Date:   Wed Jul 22 12:37:15 2015 +0200

    initial debian packaging
---
 debian/README.source             | 16 ++++++++++++++
 debian/changelog                 |  5 +++++
 debian/compat                    |  1 +
 debian/control                   | 28 +++++++++++++++++++++++++
 debian/copyright                 | 31 +++++++++++++++++++++++++++
 debian/get-orig-source           | 45 ++++++++++++++++++++++++++++++++++++++++
 debian/libdivsufsort-dev.docs    |  2 ++
 debian/libdivsufsort-dev.install |  1 +
 debian/libdivsufsort-dev.links   |  1 +
 debian/libdivsufsort3.dirs       |  2 ++
 debian/libdivsufsort3.docs       |  1 +
 debian/libdivsufsort3.install    |  3 +++
 debian/libdivsufsort3.links      |  1 +
 debian/rules                     | 45 ++++++++++++++++++++++++++++++++++++++++
 debian/source/format             |  1 +
 debian/watch                     | 11 ++++++++++
 16 files changed, 194 insertions(+)

diff --git a/debian/README.source b/debian/README.source
new file mode 100644
index 0000000..a34bad1
--- /dev/null
+++ b/debian/README.source
@@ -0,0 +1,16 @@
+libdivsufsort
+=============
+
+The initial upload of this package uses the tarball
+distributed from the traditional google code repository.
+The maintainer is aware of the transition to github,
+however, that reimpor has issues with the build 
+instructions, while otherwise being functionally identical.
+
+For NMUs or team uploads, or whenever a migration to
+the github tarball seems appropriate, please inspect a
+espective pull request on
+https://github.com/y-256/libdivsufsort/pull/7
+
+-- 
+   Fabian Klötzl <kloetzl at evolbio.mpg.de>
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..5a7a2c5
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+libdivsufsort (2.0.1-1) unstable; urgency=low
+
+  * Initial release (Closes: #752825)
+
+ -- Fabian Klötzl <kloetzl at evolbio.mpg.de>  Wed, 22 Jul 2015 12:07:09 +0200
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..96ade5c
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,28 @@
+Source: libdivsufsort
+Section: science
+Priority: optional
+Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
+Uploaders: Fabian Klötzl <kloetzl at evolbio.mpg.de>
+Build-Depends: debhelper (>= 9), cmake
+Standards-Version: 3.9.6
+Vcs-Browser: http://anonscm.debian.org/viewvc/debian-med/trunk/packages/libdivsufsort/trunk/
+Vcs-Git: git://anonscm.debian.org/debian-med/trunk/packages/libdivsufsort/trunk/
+Homepage: https://github.com/y-256/libdivsufsort
+
+Package: libdivsufsort3
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: fast suffix array construction
+ The libdivsufsort project provides a fast, lightweight, and robust
+ C API library to construct the suffix array and the Burrows-Wheeler
+ transformed string for any input string of a constant-size alphabet.
+
+Package: libdivsufsort-dev
+Architecture: all
+Section: libdevel
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: libdivsufsort header files
+ The libdivsufsort project provides a fast, lightweight, and robust
+ C API library to construct the suffix array and the Burrows-Wheeler
+ transformed string for any input string of a constant-size alphabet.
+
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..808a41f
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,31 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: libdivsufsort
+Source: https://libdivsufsort.googlecode.com/files/libdivsufsort-2.0.1.tar.gz
+
+Files: *
+Copyright: © 2003-2008 Yuta Mori
+License: MIT
+
+Files: debian/*
+Copyright: © 2014 Fabian Klötzl <kloetzl at evolbio.mpg.de>
+License: MIT
+
+License: MIT
+ 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 AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, 
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE 
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
diff --git a/debian/get-orig-source b/debian/get-orig-source
new file mode 100755
index 0000000..e486809
--- /dev/null
+++ b/debian/get-orig-source
@@ -0,0 +1,45 @@
+#!/bin/sh
+# if you need to repack for whatever reason you can
+# use this script via uscan or directly
+#
+# FIXME: currently the code is not conform to Debian Policy
+#        http://www.debian.org/doc/debian-policy/ch-source.html
+#        "get-orig-source (optional)"
+#        This target may be invoked in any directory, ...
+# --> currently it is assumed the script is called in the
+#     source directory featuring the debian/ dir
+
+COMPRESS=xz
+
+set -e
+NAME=`dpkg-parsechangelog | awk '/^Source/ { print $2 }'`
+
+if ! echo $@ | grep -q upstream-version ; then
+    VERSION=`dpkg-parsechangelog | awk '/^Version:/ { print $2 }' | sed 's/\([0-9\.]\+\)-[0-9]\+$/\1/'`
+    uscan --force-download
+else
+    VERSION=`echo $@ | sed "s?^.*--upstream-version \([0-9.]\+\) .*${NAME}.*?\1?"`
+    if echo "$VERSION" | grep -q "upstream-version" ; then
+        echo "Unable to parse version number"
+        exit
+    fi
+fi
+
+TARDIR=${NAME}-${VERSION}
+mkdir -p ../tarballs
+cd ../tarballs
+# need to clean up the tarballs dir first because upstream tarball might
+# contain a directory with unpredictable name
+rm -rf *
+tar -xaf ../${TARDIR}.tar.gz
+
+UPSTREAMTARDIR=`find . -mindepth 1 -maxdepth 1 -type d`
+if [ "${UPSTREAMTARDIR}" != "${TARDIR}" ] ; then
+    mv "${UPSTREAMTARDIR}" "${TARDIR}"
+fi
+
+# Remove useless binaries
+# ... do something which needs to be done ...
+
+GZIP="--best --no-name" tar --owner=root --group=root --mode=a+rX -caf "$NAME"_"$VERSION".orig.tar.${COMPRESS} "${TARDIR}"
+rm -rf ${TARDIR}
diff --git a/debian/libdivsufsort-dev.docs b/debian/libdivsufsort-dev.docs
new file mode 100644
index 0000000..a89eb2b
--- /dev/null
+++ b/debian/libdivsufsort-dev.docs
@@ -0,0 +1,2 @@
+README
+examples
diff --git a/debian/libdivsufsort-dev.install b/debian/libdivsufsort-dev.install
new file mode 100644
index 0000000..75869a8
--- /dev/null
+++ b/debian/libdivsufsort-dev.install
@@ -0,0 +1 @@
+usr/include/divsufsort.h
diff --git a/debian/libdivsufsort-dev.links b/debian/libdivsufsort-dev.links
new file mode 100644
index 0000000..1bf8b7c
--- /dev/null
+++ b/debian/libdivsufsort-dev.links
@@ -0,0 +1 @@
+usr/lib/libdivsufsort.so.3.0.1 usr/lib/libdivsufsort.so
diff --git a/debian/libdivsufsort3.dirs b/debian/libdivsufsort3.dirs
new file mode 100644
index 0000000..b448f1a
--- /dev/null
+++ b/debian/libdivsufsort3.dirs
@@ -0,0 +1,2 @@
+usr/lib
+usr/lib/pkgconfig
diff --git a/debian/libdivsufsort3.docs b/debian/libdivsufsort3.docs
new file mode 100644
index 0000000..e845566
--- /dev/null
+++ b/debian/libdivsufsort3.docs
@@ -0,0 +1 @@
+README
diff --git a/debian/libdivsufsort3.install b/debian/libdivsufsort3.install
new file mode 100644
index 0000000..2b8e3bb
--- /dev/null
+++ b/debian/libdivsufsort3.install
@@ -0,0 +1,3 @@
+usr/lib/pkgconfig/libdivsufsort.pc
+usr/lib/libdivsufsort.so.3.0.1
+
diff --git a/debian/libdivsufsort3.links b/debian/libdivsufsort3.links
new file mode 100644
index 0000000..b038b6a
--- /dev/null
+++ b/debian/libdivsufsort3.links
@@ -0,0 +1 @@
+usr/lib/libdivsufsort.so.3.0.1 usr/lib/libdivsufsort.so.3
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..2dba2f9
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,45 @@
+#!/usr/bin/make -f
+
+# DH_VERBOSE := 1
+DEB_CMAKE_EXTRA_FLAGS= -DCMAKE_BUILD_TYPE="Release"
+
+# some helpful variables - uncomment them if needed
+# shamelessly stolen from http://jmtd.net/log/awk/
+#DEBVERS        := $(shell dpkg-parsechangelog | awk '/^Version:/ {print $$2}')
+#VERSION        := $(shell echo '$(DEBVERS)' | sed -e 's/^[0-9]*://' -e 's/-.*//')
+#DEBFLAVOR      := $(shell dpkg-parsechangelog | awk '/^Distribution:/ {print $$2}')
+#DEBPKGNAME     := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
+#DEBIAN_BRANCH  := $(shell awk 'BEGIN{FS="[= ]+"} /debian-branch/ {print $$2}' debian/gbp.conf)
+#GIT_TAG        := $(subst ~,_,$(VERSION))
+
+# alternatively to manually set those variables you can
+#  include /usr/share/cdbs/1/rules/buildvars.mk
+# and use what is set there.  Any hint whether dh might set variables in
+# a similar manner are welcome.
+
+%:
+	dh $@ --buildsystem=cmake
+
+override_dh_auto_config:
+
+override_dh_auto_build:
+	mkdir -p build
+	cd build && cmake -DCMAKE_BUILD_TYPE="Release" -DCMAKE_INSTALL_PREFIX=$(CURDIR)/debian/tmp ..
+	cd build && make
+	cd build && make install
+
+override_dh_clean:
+	dh_clean
+	find . -name "*.lo" -o -name "*.o" -o -name "*.la" -o -name Makefile | xargs -r rm
+	rm -f examples/bwt examples/mksary examples/sasearch examples/suftest examples/unbwt
+	rm -rf build lib/.libs
+	rm -r config.log config.status include/config.h include/divsufsort.h include/lfs.h include/stamp-h1 libtool
+
+
+#override_dh_install:
+#	dh_install
+#	cp build/lib/lib*so.3.0.1 $(CURDIR)/debian/libdivsufsort3/usr/lib/
+
+
+#get-orig-source:
+#	. debian/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/watch b/debian/watch
new file mode 100644
index 0000000..1eaaa07
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,11 @@
+version=3
+
+http://code.google.com/p/libdivsufsort/downloads/list?can=1 \
+ .*/libdivsufsort-([-.\d]+)\.(?:tgz|tbz|txz|(?:tar\.(?:bz2))|zip)
+
+# Uncomment to find new files on Github
+#  - when using releases:
+# https://github.com/#GITHUBUSER#/#PACKAGE#/releases .*/archive/#PREFIX#(\d[\d.-]+)\.(?:tar(?:\.gz|\.bz2)?|tgz)
+#  - when using tags
+# https://github.com/#GITHUBUSER#/#PACKAGE#/tags .*/#PREFIX#(\d.*)\.(?:tgz|tbz2|txz|tar\.(?:gz|bz2|xz))
+#

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/libdivsufsort.git



More information about the debian-med-commit mailing list