[med-svn] [libncl] 02/02: Add initial packaging
Andreas Tille
tille at debian.org
Fri Jan 1 22:16:20 UTC 2016
This is an automated email from the git hooks/post-receive script.
tille pushed a commit to branch master
in repository libncl.
commit acf835052b7f752f8c6fdd52cb9a5c54bc7bedd8
Author: Andreas Tille <tille at debian.org>
Date: Fri Jan 1 23:14:47 2016 +0100
Add initial packaging
---
debian/changelog | 5 +
debian/compat | 1 +
debian/control | 56 ++++
debian/copyright | 33 +++
debian/d-shlibmove | 296 +++++++++++++++++++++
debian/libncl-dev.install | 5 +
debian/libncl.install | 2 +
debian/ncl-tools.install | 1 +
debian/patches/do_not_hardcode_libs.patch | 33 +++
.../patches/do_not_hardcode_libs_not_working.patch | 105 ++++++++
debian/patches/series | 2 +
debian/rules | 41 +++
debian/source/format | 1 +
debian/upstream/metadata | 12 +
debian/watch | 4 +
15 files changed, 597 insertions(+)
diff --git a/debian/changelog b/debian/changelog
new file mode 100644
index 0000000..2c002ce
--- /dev/null
+++ b/debian/changelog
@@ -0,0 +1,5 @@
+libncl (2.1.18+dfsg-1) UNRELEASED; urgency=low
+
+ * Initial release (Closes: #<bug>)
+
+ -- Andreas Tille <tille at debian.org> Sat, 24 Oct 2015 08:47:31 +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..693bc4b
--- /dev/null
+++ b/debian/control
@@ -0,0 +1,56 @@
+Source: libncl
+Maintainer: Debian Med Packaging Team <debian-med-packaging at lists.alioth.debian.org>
+Uploaders: Andreas Tille <tille at debian.org>
+Section: science
+Priority: optional
+Build-Depends: debhelper (>= 9),
+ dh-autoreconf,
+ autotools-dev,
+ d-shlibs,
+ dh-exec,
+ python
+Standards-Version: 3.9.6
+Vcs-Browser: https://anonscm.debian.org/cgit/debian-med/libncl.git
+Vcs-Git: git://anonscm.debian.org/debian-med/libncl.git
+Homepage: http://sourceforge.net/projects/ncl/
+
+Package: ncl-tools
+Architecture: any
+Depends: ${shlibs:Depends},
+ ${misc:Depends}
+Description: tools to deal with NEXUS files
+ The NEXUS Class Library is a C++ library for parsing NEXUS files.
+ .
+ The NEXUS file format is widely used in bioinformatics. Several popular
+ phylogenetic programs such as Paup, MrBayes, Mesquite, and MacClade use
+ this format.
+
+Package: libncl
+Architecture: any
+Section: libs
+Depends: ${shlibs:Depends},
+ ${misc:Depends}
+Description: NEXUS Class Library
+ The NEXUS Class Library is a C++ library for parsing NEXUS files.
+ .
+ The NEXUS file format is widely used in bioinformatics. Several popular
+ phylogenetic programs such as Paup, MrBayes, Mesquite, and MacClade use
+ this format.
+ .
+ This package contains the dynamic NEXUS library.
+
+Package: libncl-dev
+Architecture: any
+Section: libdevel
+Depends: ${shlibs:Depends},
+ ${misc:Depends},
+ libncl (= ${binary:Version})
+Description: NEXUS Class Library
+ The NEXUS Class Library is a C++ library for parsing NEXUS files.
+ .
+ The NEXUS file format is widely used in bioinformatics. Several popular
+ phylogenetic programs such as Paup, MrBayes, Mesquite, and MacClade use
+ this format.
+ .
+ This package contains the static library and header files of the NEXUS
+ library.
diff --git a/debian/copyright b/debian/copyright
new file mode 100644
index 0000000..14a0497
--- /dev/null
+++ b/debian/copyright
@@ -0,0 +1,33 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: NCL
+Upstream-Contact: Mark T. Holder <mholder at users.sourceforge.net>
+Source: http://sourceforge.net/projects/ncl/files/
+Files-Excluded: *.pyc
+ */._*
+
+Files: *
+Copyright: 1999-2010 Paul O. Lewis <paul.lewis at uconn.edu>
+ 2008-2012 Mark T. Holder <mholder at users.sourceforge.net>
+License: GPL-2+
+
+Files: example/phylobaseinterface/*
+Copyright: 2007-2008 Brian O'Meara & Derrick Zwickl
+License: GPL-2+
+
+Files: debian/*
+Copyright: 2015 Andreas Tille <tille at debian.org>
+License: GPL-2+
+
+License: GPL-2+
+ NCL 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.
+ .
+ NCL 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.
+ .
+ On Debian systems you can find a copy of the text of the GNU General
+ Public License version 2 at /usr/share/common-licenses/GPL-2.
diff --git a/debian/d-shlibmove b/debian/d-shlibmove
new file mode 100755
index 0000000..c124e38
--- /dev/null
+++ b/debian/d-shlibmove
@@ -0,0 +1,296 @@
+#!/bin/bash
+exit 0
+# d-shlibmove -- move shared library files around for Debian packaging
+# Copyright (C) 2002, 2005 Junichi Uekawa
+#
+# 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 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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+
+# 2002 Apr 23. Created.
+# automatic packaging of libtool-created library packages.
+
+# from d-shlibs package
+
+set -e
+set -o pipefail
+
+eval "$(dpkg-architecture -s)"
+
+getname() {
+echo getname
+set -x
+ local SONAMELIBNAME
+ local SONAMEVERSION
+ local SONAME
+ SONAME="$1"
+ SONAMELIBNAME=${SONAME/%.so*}
+ SONAMEVERSION=${SONAME/#*.so.}
+ case "$SONAMELIBNAME" in
+ *[0-9])
+ RETURN="$SONAMELIBNAME-$SONAMEVERSION"
+ ;;
+ *)
+ RETURN="$SONAMELIBNAME$SONAMEVERSION"
+ ;;
+ esac
+set +x
+}
+
+readlibnameinfo() {
+echo readlibnameinfo
+set -x
+ LIBNAME="$1"
+
+ if [ -z "$1" ] || ! echo "$1" | grep ".so$" > /dev/null; then
+ echo "$0: [$1] is not a valid shared library file name" >&2
+ exit 1;
+ fi
+
+ if [ ! -h "$1" ]; then
+ echo "$0: expected [$1] to be a symlink, but it is not" >&2
+ exit 1;
+ fi
+
+ SONAME=$(set -o pipefail; "$DEB_HOST_GNU_TYPE-objdump" -p "$LIBNAME" \
+ | sed -n 's/^.*SONAME *//p')
+ getname "$SONAME"
+ SONAMEPKGNAME=$(echo "$RETURN" | tr '[:upper:]_' '[:lower:]-')
+ PK=$(basename "$1" | sed 's/\.so$//')
+ PK_LOWER=$(echo "$PK" | tr '[:upper:]_' '[:lower:]-')
+ REALSO=$(readlink -f "$LIBNAME")
+set +x
+}
+
+check_line() {
+ local PKGNAME="$1"
+ local ENTRYLINE="$2"
+
+ if ! awk '/^Package:.*'"$PKGNAME"'/,/^$/{print}' "$CONTROL" \
+ | perl -0 -pe 's/\n[ \t]+/ /g' \
+ | grep "$ENTRYLINE" > /dev/null; then
+ echo "E: line [$ENTRYLINE] not found in $CONTROL section for $PKGNAME"
+ # set this error signifier to true
+ CHECK_ERROR=true
+ fi
+}
+
+
+echo "Library package automatic movement utility"
+
+CONTROL=debian/control
+
+execscript=$(tempfile)
+INSTALLFILE_SHLPKG=$(tempfile)
+INSTALLFILE_DEVPKG=$(tempfile)
+cat > "$execscript" <<EOF
+set -e
+EOF
+
+EXTRALIBS=()
+SUFFIX=
+DEVSUFFIX=
+TRANSITIONSUFFIX=
+
+DOIT=no
+DEVUNVERSIONED=no
+IGNORELIBDEP=no
+INCLUDEA=yes
+INCLUDELA=yes
+MULTIARCH=no
+while [ -n "$1" ]; do
+ case "$1" in
+ --moveshl)
+ echo "$2 $3" >> "$INSTALLFILE_SHLPKG"
+ shift; shift; shift;
+ ;;
+ --movedev)
+ echo "$2 $3" >> "$INSTALLFILE_DEVPKG"
+ shift; shift; shift;
+ ;;
+ --movedevdoc)
+ echo "$2 usr/share/doc/\${PKGDEV}" >> "$INSTALLFILE_DEVPKG"
+ shift; shift;
+ ;;
+ --commit)
+ DOIT=yes
+ shift;
+ ;;
+ --multiarch)
+ MULTIARCH=yes
+ shift;
+ ;;
+ --extralib)
+ EXTRALIBS+=("$2")
+ shift; shift;
+ ;;
+ --shlibs-local)
+ shift;
+ SHLIBSLOCALVER="$1";
+ shift;
+ ;;
+ --suffix)
+ shift;
+ SUFFIX="$1";
+ shift;
+ ;;
+ --devsuffix)
+ shift;
+ DEVSUFFIX="$1";
+ shift;
+ ;;
+ --devunversioned)
+ DEVUNVERSIONED=yes
+ shift;;
+ --ignorelibdep)
+ IGNORELIBDEP=yes
+ shift;;
+ --c102)
+ TRANSITIONSUFFIX="c102"
+ shift;;
+ --ldbl)
+ TRANSITIONSUFFIX="ldbl"
+ shift;;
+ --v5)
+ TRANSITIONSUFFIX="v5"
+ shift;;
+ --include-a)
+ INCLUDEA=yes
+ shift;;
+ --exclude-a)
+ INCLUDEA=no
+ shift;;
+ --include-la)
+ INCLUDELA=yes
+ shift;;
+ --exclude-la)
+ INCLUDELA=no
+ shift;;
+ --override)
+ OVERRIDE[${#OVERRIDE[@]}]="$2"
+ shift; shift;;
+ --|*)
+ break;
+ ;;
+ esac
+done
+
+# path/libxxxx.so.yyy.zz.zz
+# ------------------------- REALSO (actual .so filename that is linked to)
+# -------------- SONAME
+# ------- --- SONAMEPKGNAME (lowercased for package name)
+# --------------- $1
+# ---------- PK
+# ---------- PK_LOWER (lowercased for package name)
+
+DEVLIB_TO_CHECK=()
+for extralib in "${EXTRALIBS[@]}"; do
+ readlibnameinfo "$extralib"
+ DEVLIB_TO_CHECK+=("$extralib")
+ if [ "$INCLUDEA" = "yes" ]; then
+ echo "$(dirname "$extralib")/$PK.a usr/lib" >> "$INSTALLFILE_DEVPKG"
+ fi
+ if [ "$INCLUDELA" = "yes" ]; then
+ echo "$(dirname "$extralib")/$PK.la usr/lib || true" >> "$INSTALLFILE_DEVPKG"
+ fi
+ echo "$(dirname "$extralib")/$PK.so usr/lib" >> "$INSTALLFILE_DEVPKG"
+ echo "$(dirname "$REALSO")/$SONAME usr/lib" >> "$INSTALLFILE_SHLPKG"
+ echo "$REALSO usr/lib" >> "$INSTALLFILE_SHLPKG"
+done
+
+DEVLIB_TO_CHECK+=("$1")
+readlibnameinfo "$1"
+if [ "$DEVUNVERSIONED" = "yes" ]; then
+ PKGDEV="$PK_LOWER$DEVSUFFIX-dev"
+else
+ PKGDEV="$SONAMEPKGNAME$DEVSUFFIX-dev"
+fi
+PKGSHL="$SONAMEPKGNAME$SUFFIX$TRANSITIONSUFFIX"
+
+INSTALLDIR="install -d -m 755"
+echo "$INSTALLDIR debian/$PKGDEV/usr/lib" >> "$execscript"
+echo "$INSTALLDIR debian/$PKGSHL/usr/lib" >> "$execscript"
+if [ "$INCLUDEA" = "yes" ]; then
+ echo "mv $(dirname "$1")/$PK.a debian/$PKGDEV/usr/lib" >> "$execscript"
+fi
+if [ "$INCLUDELA" = "yes" ]; then
+ echo "mv $(dirname "$1")/$PK.la debian/$PKGDEV/usr/lib || true" >> "$execscript"
+fi
+echo "mv $(dirname "$1")/$PK.so debian/$PKGDEV/usr/lib" >> "$execscript"
+echo "mv $(dirname "$REALSO")/$SONAME debian/$PKGSHL/usr/lib" >> "$execscript"
+if [ "$(dirname "$REALSO")/$SONAME" != "$REALSO" ]; then
+ echo "mv $REALSO debian/$PKGSHL/usr/lib" >> "$execscript"
+fi
+if [ -n "$SHLIBSLOCALVER" ]; then
+ echo "echo \"$SONAMELIBNAME $SONAMEVERSION $PKGSHL (>= $SHLIBSLOCALVER)\" >> debian/shlibs.local" >> "$execscript"
+fi
+
+d-devlibdeps "${OVERRIDE[@]/#/--override=}" "debian/$PKGDEV.substvars" "${DEVLIB_TO_CHECK[@]}"
+
+#do some definition for the file.
+echo "PKGDEV=$PKGDEV" >> "$execscript"
+echo "PKGSHL=$PKGSHL" >> "$execscript"
+
+#do the extra files
+while read A B; do
+ echo "$INSTALLDIR debian/$PKGSHL/$B" >> "$execscript"
+ echo "mv $A debian/$PKGSHL/$B" >> "$execscript"
+done < "$INSTALLFILE_SHLPKG"
+if [ "$INCLUDELA" = "no" ]; then
+ sed -i -e "/^.*\.la usr\/lib || true$/d" "$INSTALLFILE_DEVPKG"
+fi
+while read A B; do
+ echo "$INSTALLDIR debian/$PKGDEV/$B" >> "$execscript"
+ echo "mv $A debian/$PKGDEV/$B" >> "$execscript"
+done < "$INSTALLFILE_DEVPKG"
+
+if [ "$MULTIARCH" = "yes" ]; then
+ sed -i -e "s/usr\/lib\( || true\)\?$/usr\/lib\/$DEB_HOST_MULTIARCH\1/" "$execscript"
+fi
+
+cat "$execscript"
+
+# check the syntax of the control file.
+CHECK_ERROR=false
+
+if ! [ "$DEVUNVERSIONED" = "yes" ]; then
+ check_line "$PKGDEV" "Provides:.*$PK_LOWER-dev"
+ check_line "$PKGDEV" "Conflicts:.*$PK_LOWER-dev"
+fi
+check_line "$PKGSHL" "Section: libs"
+if [ -n "$SUFFIX" ]; then
+ check_line "$PKGSHL" "Conflicts: $SONAMEPKGNAME"
+fi
+if [ -n "$TRANSITIONSUFFIX" ]; then
+ check_line "$PKGSHL" "Conflicts: $SONAMEPKGNAME$SUFFIX"
+fi
+check_line "$PKGDEV" "Section: \(devel\|libdevel\)"
+if ! [ "$IGNORELIBDEP" = "yes" ]; then
+ check_line "$PKGDEV" "Depends:.*$PKGSHL"
+fi
+check_line "$PKGSHL" "Depends:.*[$]{shlibs:Depends}"
+
+if [ "$CHECK_ERROR" = "true" ]; then
+ echo "Error occurred, aborting" >&2
+ exit 1
+fi
+
+if [ "$DOIT" = "yes" ]; then
+ sh "$execscript"
+else
+ echo "Dry-run. If you are satisfied, run with --commit"
+ exit 2
+fi
+rm -f "$execscript" "$INSTALLFILE_DEVPKG" "$INSTALLFILE_SHLPKG"
+
+exit 0
diff --git a/debian/libncl-dev.install b/debian/libncl-dev.install
new file mode 100755
index 0000000..75cd65b
--- /dev/null
+++ b/debian/libncl-dev.install
@@ -0,0 +1,5 @@
+#!/usr/bin/dh-exec
+debian/tmp/usr/lib/${DEB_HOST_MULTIARCH}/ncl/libncl.so /usr/lib/${DEB_HOST_MULTIARCH}/
+debian/tmp/usr/lib/${DEB_HOST_MULTIARCH}/ncl/*.a /usr/lib/${DEB_HOST_MULTIARCH}/
+debian/tmp/usr/lib/${DEB_HOST_MULTIARCH}/pkgconfig /usr/lib/${DEB_HOST_MULTIARCH}/
+debian/tmp/usr/include /usr
diff --git a/debian/libncl.install b/debian/libncl.install
new file mode 100755
index 0000000..9c79585
--- /dev/null
+++ b/debian/libncl.install
@@ -0,0 +1,2 @@
+#!/usr/bin/dh-exec
+debian/tmp/usr/lib/${DEB_HOST_MULTIARCH}/ncl/*[0-9].so /usr/lib/${DEB_HOST_MULTIARCH}
diff --git a/debian/ncl-tools.install b/debian/ncl-tools.install
new file mode 100644
index 0000000..e772481
--- /dev/null
+++ b/debian/ncl-tools.install
@@ -0,0 +1 @@
+usr/bin
diff --git a/debian/patches/do_not_hardcode_libs.patch b/debian/patches/do_not_hardcode_libs.patch
new file mode 100644
index 0000000..99672ca
--- /dev/null
+++ b/debian/patches/do_not_hardcode_libs.patch
@@ -0,0 +1,33 @@
+--- a/config/ltmain.sh
++++ b/config/ltmain.sh
+@@ -2652,6 +2652,7 @@ func_mode_finish ()
+ libs=
+ libdirs=
+ admincmds=
++ hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "
+
+ for opt in "$nonopt" ${1+"$@"}
+ do
+@@ -5080,6 +5081,9 @@ func_win32_import_lib_p ()
+ # func_mode_link arg...
+ func_mode_link ()
+ {
++ hardcode_libdir_flag_spec=" -D__LIBTOOL_IS_A_FOOL__ "
++ hardcode_libdir_flag_spec_ld=" -D__LIBTOOL_IS_A_FOOL__ "
++
+ $opt_debug
+ case $host in
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
+--- a/config/libtool.m4
++++ b/config/libtool.m4
+@@ -4516,8 +4516,8 @@ m4_if([$1], [CXX], [
+ _LT_TAGVAR(hardcode_automatic, $1)=no
+ _LT_TAGVAR(hardcode_direct, $1)=no
+ _LT_TAGVAR(hardcode_direct_absolute, $1)=no
+- _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
+- _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
++ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=no
++ _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=no
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=
+ _LT_TAGVAR(hardcode_minus_L, $1)=no
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
diff --git a/debian/patches/do_not_hardcode_libs_not_working.patch b/debian/patches/do_not_hardcode_libs_not_working.patch
new file mode 100644
index 0000000..6206285
--- /dev/null
+++ b/debian/patches/do_not_hardcode_libs_not_working.patch
@@ -0,0 +1,105 @@
+--- a/config/libtool.m4
++++ b/config/libtool.m4
+@@ -1042,7 +1042,7 @@ m4_defun([_LT_DARWIN_LINKER_FEATURES],
+ [
+ m4_require([_LT_REQUIRED_DARWIN_CHECKS])
+ _LT_TAGVAR(archive_cmds_need_lc, $1)=no
+- _LT_TAGVAR(hardcode_direct, $1)=no
++ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_automatic, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
+ if test "$lt_cv_ld_force_load" = "yes"; then
+@@ -4514,8 +4514,8 @@ m4_if([$1], [CXX], [
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)=
+ _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
+ _LT_TAGVAR(hardcode_automatic, $1)=no
+- _LT_TAGVAR(hardcode_direct, $1)=no
+- _LT_TAGVAR(hardcode_direct_absolute, $1)=no
++ _LT_TAGVAR(hardcode_direct, $1)=yes
++ _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
+ _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=
+@@ -4695,7 +4695,7 @@ _LT_EOF
+ ;;
+
+ interix[[3-9]]*)
+- _LT_TAGVAR(hardcode_direct, $1)=no
++ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+@@ -5215,7 +5215,7 @@ _LT_EOF
+
+ case $host_cpu in
+ hppa*64*|ia64*)
+- _LT_TAGVAR(hardcode_direct, $1)=no
++ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+ *)
+@@ -5424,11 +5424,11 @@ _LT_EOF
+ ## CC just makes a GrossModule.
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
+ _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
+- _LT_TAGVAR(hardcode_direct, $1)=no
++ _LT_TAGVAR(hardcode_direct, $1)=yes
+ ;;
+ motorola)
+ _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
+- _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
++ _LT_TAGVAR(hardcode_direct, $1)=yes #Motorola manual says yes, but my tests say they lie
+ ;;
+ esac
+ runpath_var='LD_RUN_PATH'
+@@ -5764,8 +5764,8 @@ _LT_TAGVAR(always_export_symbols, $1)=no
+ _LT_TAGVAR(archive_expsym_cmds, $1)=
+ _LT_TAGVAR(compiler_needs_object, $1)=no
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)=
+-_LT_TAGVAR(hardcode_direct, $1)=no
+-_LT_TAGVAR(hardcode_direct_absolute, $1)=no
++_LT_TAGVAR(hardcode_direct, $1)=yes
++_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
+ _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=
+@@ -6213,7 +6213,7 @@ if test "$_lt_caught_CXX_error" != yes;
+ fi
+ case $host_cpu in
+ hppa*64*|ia64*)
+- _LT_TAGVAR(hardcode_direct, $1)=no
++ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ ;;
+ *)
+@@ -6276,7 +6276,7 @@ if test "$_lt_caught_CXX_error" != yes;
+ ;;
+
+ interix[[3-9]]*)
+- _LT_TAGVAR(hardcode_direct, $1)=no
++ _LT_TAGVAR(hardcode_direct, $1)=yes
+ _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
+@@ -7097,8 +7097,8 @@ _LT_TAGVAR(allow_undefined_flag, $1)=
+ _LT_TAGVAR(always_export_symbols, $1)=no
+ _LT_TAGVAR(archive_expsym_cmds, $1)=
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)=
+-_LT_TAGVAR(hardcode_direct, $1)=no
+-_LT_TAGVAR(hardcode_direct_absolute, $1)=no
++_LT_TAGVAR(hardcode_direct, $1)=yes
++_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
+ _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=
+@@ -7230,8 +7230,8 @@ _LT_TAGVAR(allow_undefined_flag, $1)=
+ _LT_TAGVAR(always_export_symbols, $1)=no
+ _LT_TAGVAR(archive_expsym_cmds, $1)=
+ _LT_TAGVAR(export_dynamic_flag_spec, $1)=
+-_LT_TAGVAR(hardcode_direct, $1)=no
+-_LT_TAGVAR(hardcode_direct_absolute, $1)=no
++_LT_TAGVAR(hardcode_direct, $1)=yes
++_LT_TAGVAR(hardcode_direct_absolute, $1)=yes
+ _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
+ _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
+ _LT_TAGVAR(hardcode_libdir_separator, $1)=
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..961011a
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1,2 @@
+# do_not_hardcode_libs_not_working.patch
+# do_not_hardcode_libs.patch
diff --git a/debian/rules b/debian/rules
new file mode 100755
index 0000000..2dedfb3
--- /dev/null
+++ b/debian/rules
@@ -0,0 +1,41 @@
+#!/usr/bin/make -f
+
+# DH_VERBOSE := 1
+
+# 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/dpkg/default.mk
+# and use what is set there.
+
+%:
+ dh $@ --with autotools_dev,autoreconf
+
+override_dh_clean:
+ dh_clean
+ find . -name ".roundTripNCL*" -delete
+
+do_not_override_dh_auto_configure:
+ dh_auto_configure
+ # remove rpath specification since I failed to patch the Build-System properly
+ sed -i 's/ -rpath $(pkglibdir)//' ncl/Makefile.in
+ # Throw error if rpath remains ...
+ if grep -- ' -rpath' ncl/Makefile.in ; then exit 1 ; fi
+
+override_dh_install:
+ dh_install
+ bash debian/d-shlibmove --commit \
+ --multiarch \
+ --devunversioned \
+ --movedev "debian/tmp/usr/include/ncl/*.h" usr/include/ncl \
+ debian/tmp/usr/lib/*/ncl/libncl.so
+
+get-orig-source:
+ uscan --verbose --force-download --repack --compression xz
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/upstream/metadata b/debian/upstream/metadata
new file mode 100644
index 0000000..d8b5812
--- /dev/null
+++ b/debian/upstream/metadata
@@ -0,0 +1,12 @@
+Reference:
+ Author:
+ Title:
+ Journal:
+ Year:
+ Volume:
+ Number:
+ Pages:
+ DOI:
+ PMID:
+ URL:
+ eprint:
diff --git a/debian/watch b/debian/watch
new file mode 100644
index 0000000..c15ec97
--- /dev/null
+++ b/debian/watch
@@ -0,0 +1,4 @@
+version=3
+
+opts="repacksuffix=+dfsg,dversionmangle=s/\+dfsg//g" \
+ http://sf.net/ncl/ncl-(\d[\d\.]+)\.(?:tgz|tbz|txz|(?:tar\.(?:gz|bz2|xz)))
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/libncl.git
More information about the debian-med-commit
mailing list