From 169c8b924e05c97b2128180cd7854ab8e513fe29 Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Fri, 21 Apr 2006 13:50:26 +0000 Subject: [PATCH] Back to Debian package libyaz (from libyaz2 experiment) --- debian/control | 6 ++---- debian/libyaz.install | 2 ++ debian/libyaz.postinst | 45 +++++++++++++++++++++++++++++++++++++++++++++ debian/libyaz2.install | 2 -- debian/libyaz2.postinst | 45 --------------------------------------------- debian/rules | 2 +- 6 files changed, 50 insertions(+), 52 deletions(-) create mode 100644 debian/libyaz.install create mode 100755 debian/libyaz.postinst delete mode 100644 debian/libyaz2.install delete mode 100755 debian/libyaz2.postinst diff --git a/debian/control b/debian/control index 35257d7..4e4710e 100644 --- a/debian/control +++ b/debian/control @@ -5,12 +5,10 @@ Maintainer: Adam Dickmeiss Priority: extra Build-Depends: debhelper (>= 4), libxml2-dev, libssl-dev, libreadline5-dev, libwrap0-dev -Package: libyaz2 +Package: libyaz Section: libs Architecture: any Depends: ${shlibs:Depends} -Provides: libyaz -Replaces: libyaz Conflicts: idzebra (<= 1.3.4-2), php4-yaz (<= 4.1.2-5) Description: The YAZ Z39.50 toolkit (runtime files) YAZ is a toolkit that allows you to develop software using the @@ -39,7 +37,7 @@ Description: The YAZ Z39.50 toolkit (documentation) This packages includes documentation for YAZ in HTML and PDF. Package: libyaz-dev -Depends: libyaz2 (= ${Source-Version}), libxml2-dev, libwrap0-dev, libssl-dev +Depends: libyaz (= ${Source-Version}), libxml2-dev, libwrap0-dev, libssl-dev Replaces: yaz-devel Conflicts: yaz-devel Section: devel diff --git a/debian/libyaz.install b/debian/libyaz.install new file mode 100644 index 0000000..4da001b --- /dev/null +++ b/debian/libyaz.install @@ -0,0 +1,2 @@ +debian/tmp/usr/lib/lib*.so.* +debian/tmp/usr/share/man/man7/yaz.7 diff --git a/debian/libyaz.postinst b/debian/libyaz.postinst new file mode 100755 index 0000000..ee8321c --- /dev/null +++ b/debian/libyaz.postinst @@ -0,0 +1,45 @@ +#! /bin/sh +# postinst script for tklite +# +# see: dh_installdeb(1) + +set -e + +# summary of how this script can be called: +# * `configure' +# * `abort-upgrade' +# * `abort-remove' `in-favour' +# +# * `abort-deconfigure' `in-favour' +# `removing' +# +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package +# +# quoting from the policy: +# Any necessary prompting should almost always be confined to the +# post-installation script, and should be protected with a conditional +# so that unnecessary prompting doesn't happen if a package's +# installation fails and the `postinst' is called with `abort-upgrade', +# `abort-remove' or `abort-deconfigure'. + +case "$1" in + configure) + ldconfig + exit 0 + ;; + + abort-upgrade|abort-remove|abort-deconfigure) + exit 0 + ;; + + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 1 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# diff --git a/debian/libyaz2.install b/debian/libyaz2.install deleted file mode 100644 index 4da001b..0000000 --- a/debian/libyaz2.install +++ /dev/null @@ -1,2 +0,0 @@ -debian/tmp/usr/lib/lib*.so.* -debian/tmp/usr/share/man/man7/yaz.7 diff --git a/debian/libyaz2.postinst b/debian/libyaz2.postinst deleted file mode 100755 index ee8321c..0000000 --- a/debian/libyaz2.postinst +++ /dev/null @@ -1,45 +0,0 @@ -#! /bin/sh -# postinst script for tklite -# -# see: dh_installdeb(1) - -set -e - -# summary of how this script can be called: -# * `configure' -# * `abort-upgrade' -# * `abort-remove' `in-favour' -# -# * `abort-deconfigure' `in-favour' -# `removing' -# -# for details, see http://www.debian.org/doc/debian-policy/ or -# the debian-policy package -# -# quoting from the policy: -# Any necessary prompting should almost always be confined to the -# post-installation script, and should be protected with a conditional -# so that unnecessary prompting doesn't happen if a package's -# installation fails and the `postinst' is called with `abort-upgrade', -# `abort-remove' or `abort-deconfigure'. - -case "$1" in - configure) - ldconfig - exit 0 - ;; - - abort-upgrade|abort-remove|abort-deconfigure) - exit 0 - ;; - - *) - echo "postinst called with unknown argument \`$1'" >&2 - exit 1 - ;; -esac - -# dh_installdeb will replace this with shell code automatically -# generated by other debhelper scripts. - -#DEBHELPER# diff --git a/debian/rules b/debian/rules index 3b8c2c6..6f00984 100755 --- a/debian/rules +++ b/debian/rules @@ -98,7 +98,7 @@ binary-arch: build install dh_fixperms # dh_perl # dh_python - dh_makeshlibs -V 'libyaz2 (>= 2.1.18)' + dh_makeshlibs -V 'libyaz (>= 2.1.18)' dh_installdeb dh_shlibdeps -l debian/libyaz/usr/lib dh_gencontrol -- 1.7.10.4