From 7dace8e13f71ea97eb0f4056adebb37bb07f1d60 Mon Sep 17 00:00:00 2001 From: Marc Cromme Date: Mon, 24 Apr 2006 09:17:47 +0000 Subject: [PATCH] preparing new debian source package libyazpp version 1.0.0, which all changes needed for nameshift from libyaz++ --- Makefile.am | 3 +-- debian/changelog | 5 +++-- debian/compat | 1 - debian/control | 17 ++++++++-------- debian/libyazpp-dev.install | 10 ++++++++++ debian/libyazpp1-dev.install | 9 --------- debian/libyazpp1.postinst | 45 ++++++++++++++++++++++++++++++++++++++++++ debian/postinst | 3 --- debian/rules | 8 +++++--- debian/yazpp-doc.install | 1 + debian/yazpp1-doc.install | 1 - 11 files changed, 73 insertions(+), 30 deletions(-) delete mode 100644 debian/compat create mode 100644 debian/libyazpp-dev.install delete mode 100644 debian/libyazpp1-dev.install create mode 100755 debian/libyazpp1.postinst delete mode 100755 debian/postinst create mode 100644 debian/yazpp-doc.install delete mode 100644 debian/yazpp1-doc.install diff --git a/Makefile.am b/Makefile.am index b5b93c2..4884899 100644 --- a/Makefile.am +++ b/Makefile.am @@ -16,6 +16,5 @@ dist-hook: cp $(srcdir)/debian/control $(distdir)/debian cp $(srcdir)/debian/changelog $(distdir)/debian cp $(srcdir)/debian/rules $(distdir)/debian - cp $(srcdir)/debian/postinst $(distdir)/debian - cp $(srcdir)/debian/compat $(distdir)/debian + cp $(srcdir)/debian/*.postinst $(distdir)/debian cp $(srcdir)/debian/*.install $(distdir)/debian diff --git a/debian/changelog b/debian/changelog index 72ca269..ae5b6f4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,6 +1,7 @@ yazpp (1.0.0-1) unstable; urgency=low - * Upstream. + * Upstream + * Renaming from package name yaz++ to yazpp - -- Adam Dickmeiss Mon, 27 Mar 2006 16:50:06 +0200 + -- Marc Cromme Mon, 24 Apr 2006 09:55:07 +0200 diff --git a/debian/compat b/debian/compat deleted file mode 100644 index b8626c4..0000000 --- a/debian/compat +++ /dev/null @@ -1 +0,0 @@ -4 diff --git a/debian/control b/debian/control index 2483574..b62f98f 100644 --- a/debian/control +++ b/debian/control @@ -1,28 +1,27 @@ Source: yazpp +Section: devel Priority: optional Maintainer: Adam Dickmeiss -Standards-Version: 3.6.0 +Standards-Version: 3.6.2 Build-Depends: debhelper (>= 4.0.0), docbook-utils, docbook, docbook-xml, docbook-dsssl, jade, jadetex, libxml2-dev, libyaz-dev (>= 2.1.14) Package: libyazpp1 Section: libs Architecture: any Depends: ${shlibs:Depends}, libyaz (>= 2.1.14) -Description: YAZ++ and ZOOM library. +Description: YAZ++ and ZOOM library YAZ++ is a C++ library with an object oriented interface to YAZ and ZOOM. -Package: libyazpp1-dev +Package: libyazpp-dev Section: devel Architecture: any -Depends: libyazpp (= ${Source-Version}), libyaz-dev -Conflicts: libyaz++-dev -Description: Development libraries for YAZ++ and ZOOM. +Depends: libyazpp1 (= ${Source-Version}), libyaz-dev +Description: Development libraries for YAZ++ and ZOOM YAZ++ is a C++ library with an object oriented interface to YAZ and ZOOM. -Package: yazpp1-doc +Package: yazpp-doc Section: doc Architecture: all -Conflicts: yaz++-doc -Description: Documentation for YAZ++. +Description: Documentation for YAZ++ YAZ++ is a C++ library with an object oriented interface to YAZ and ZOOM. diff --git a/debian/libyazpp-dev.install b/debian/libyazpp-dev.install new file mode 100644 index 0000000..2736f25 --- /dev/null +++ b/debian/libyazpp-dev.install @@ -0,0 +1,10 @@ +debian/tmp/usr/include/yazpp/*.h +debian/tmp/usr/lib/libyazpp*.a +debian/tmp/usr/lib/libzoompp*.a +debian/tmp/usr/lib/libyazpp.so +debian/tmp/usr/lib/libzoompp.so +debian/tmp/usr/lib/libyazpp.la +debian/tmp/usr/lib/libzoompp.la +debian/tmp/usr/bin/yazpp-config +debian/tmp/usr/share/aclocal/yazpp.m4 +debian/tmp/usr/share/man/man8/yazpp-config.8 \ No newline at end of file diff --git a/debian/libyazpp1-dev.install b/debian/libyazpp1-dev.install deleted file mode 100644 index 14f3be2..0000000 --- a/debian/libyazpp1-dev.install +++ /dev/null @@ -1,9 +0,0 @@ -debian/tmp/usr/include/yazpp/*.h -debian/tmp/usr/lib/libyazpp*.a -debian/tmp/usr/lib/libzoompp*.a -debian/tmp/usr/lib/libyazpp.so -debian/tmp/usr/lib/libzoompp.so -debian/tmp/usr/lib/libyazpp.la -debian/tmp/usr/lib/libzoompp.la -debian/tmp/usr/bin/yazpp-config -debian/tmp/usr/share/aclocal/yazpp.m4 diff --git a/debian/libyazpp1.postinst b/debian/libyazpp1.postinst new file mode 100755 index 0000000..ee8321c --- /dev/null +++ b/debian/libyazpp1.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/postinst b/debian/postinst deleted file mode 100755 index 8a0d702..0000000 --- a/debian/postinst +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -# Postinst script for yaz++ -ldconfig diff --git a/debian/rules b/debian/rules index a33ed51..1cfe75d 100755 --- a/debian/rules +++ b/debian/rules @@ -6,6 +6,8 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 +# Force compat level four +export DH_COMPAT=4 # These are used for cross-compiling and for saving the configure script # from having to guess our platform (since we know it already) @@ -25,8 +27,8 @@ ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) endif # shared library versions, option 1 -version=2.0.5 -major=2 +version=1.0.0 +major=1 # option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so #version=`ls src/.libs/lib*.so.* | \ # awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'` @@ -88,7 +90,7 @@ binary-arch: build install dh_installchangelogs NEWS dh_installdocs dh_installexamples - mv debian/tmp/usr/share/doc/yazpp debian/tmp/usr/share/doc/yazpp1-doc + mv debian/tmp/usr/share/doc/yazpp debian/tmp/usr/share/doc/yazpp-doc dh_install # dh_installmenu # dh_installdebconf diff --git a/debian/yazpp-doc.install b/debian/yazpp-doc.install new file mode 100644 index 0000000..29fca0d --- /dev/null +++ b/debian/yazpp-doc.install @@ -0,0 +1 @@ +debian/tmp/usr/share/doc/yazpp-doc diff --git a/debian/yazpp1-doc.install b/debian/yazpp1-doc.install deleted file mode 100644 index d484b02..0000000 --- a/debian/yazpp1-doc.install +++ /dev/null @@ -1 +0,0 @@ -debian/tmp/usr/share/doc/yazpp1-doc -- 1.7.10.4