--- libgtkdatabox-0.9.0.1.orig/debian/d-devlibdeps +++ libgtkdatabox-0.9.0.1/debian/d-devlibdeps @@ -0,0 +1,199 @@ +#!/bin/bash +# d-devlibdeps -- get list of build-time dependencies +# 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 May 3. Created. +# automatic depends line generator. + +set -e +set -o pipefail + +function getname () { + local SONAMELIBNAME + local SONAMEVERSION + local SONAME + SONAME="$1" + SONAMELIBNAME=$(echo $SONAME | sed 's/\.so\..*$//') + SONAMEVERSION=$(echo $SONAME | sed 's/^.*\.so\.//') + case "$SONAMELIBNAME" in + *[0-9]) + RETURN="$SONAMELIBNAME-$SONAMEVERSION" + ;; + *) + RETURN="$SONAMELIBNAME$SONAMEVERSION" + ;; + esac +} + +function overridedevlibdeps () { + # overrides necessary until the scheme is adopted. + sed \ + -e 's/libX11-6-dev/libx11-dev | xlibs-dev (<< 4.3.0)/' \ + -e 's/libXext6-dev/libxext-dev | xlibs-dev (<< 4.3.0)/' \ + -e 's/libXi6-dev/libxi-dev | xlibs-dev (<< 4.3.0)/' \ + -e 's/libXpm4-dev/libxpm-dev | xlibs-dev (<< 4.3.0)/' \ + -e 's/libICE6-dev/libice-dev | xlibs-dev (<< 4.3.0)/' \ + -e 's/libSM6-dev/libsm-dev | xlibs-dev (<< 4.3.0)/' \ + -e 's/libGL1-dev/xlibmesa-gl-dev | xlibs-dev (<< 4.3.0)/' \ + -e 's/libGLU1-dev/xlibmesa-glu-dev | xlibs-dev (<< 4.3.0)/' \ + -e 's/libcrypt1-dev//' \ + -e 's/libcrypt1\.1-dev//' \ + -e 's/libdl2-dev//' \ + -e 's/libdl2.1-dev//' \ + -e 's/libm6-dev//' \ + -e 's/libm6.1-dev//' \ + -e 's/libm1-dev//' \ + -e 's/libnsl1-dev//' \ + -e 's/libnsl1\.1-dev//' \ + -e 's/libpthread0-dev//' \ + -e 's/libpthread0\.3-dev//' \ + -e 's/libpthread.*-dev/libpthread-dev/' \ + -e 's/libresolv2-dev//' \ + -e 's/libglib-1.2-0-dev/libglib1.2-dev/' \ + -e 's/libgthread-1.2-0-dev/libglib1.2-dev/' \ + -e 's/libgmodule-1.2-0-dev/libglib1.2-dev/' \ + -e 's/libgtk-1.2-0-dev/libgtk1.2-dev/' \ + -e 's/libpam0-dev/libpam0g-dev/' \ + -e 's/libgdk-1.2-0-dev/libgtk1.2-dev/' \ + -e 's/libz1-dev/zlib1g-dev/' \ + -e 's/libgcc_s.*-dev//' \ + -e 's/libcrypto.*-dev/libssl-dev/' \ + -e 's/libssl.*-dev/libssl-dev/' \ + -e 's/libcomerr2//' \ + -e 's/libcom_err2-dev/comerr-dev/' \ + -e 's/libgssapi_krb5-2-dev/libkrb5-dev/' \ + -e 's/libk5crypto3-dev/libkrb5-dev/' \ + -e 's/libkrb5-3-dev/libkrb5-dev/' \ + -e 's/libparted-1.6-0-dev/libparted1.6-dev/' \ + -e 's/libSDL-1.2-0-dev/libsdl1.2-dev/' \ + -e 's/libvorbis0-dev/libvorbis-dev/' \ + -e 's/libcrack2-dev/cracklib2-dev/' \ + -e 's/libkrb1-dev/kerberos4kth-dev/' \ + -e 's/libtheora0-dev/libtheora-dev/' \ + -e 's/libvorbisenc2-dev/libvorbis-dev/' \ + -e 's/libogg0-dev/libogg-dev/' \ + -e 's/librt1-dev//' \ + -e 's/libspeex1-dev/libspeex-dev/' \ + -e 's/libX\(.*\)[0-9]-dev/libx\1-dev/' \ + -e 's/libgdk-x11-2.0-0-dev/libgtk2.0-dev/' \ + -e 's/libgdk-x11-2.0-0-dev/libgtk2.0-dev/' \ + -e 's/libgtk-x11-2.0-0-dev/libgtk2.0-dev/' \ + -e 's/libgdk_pixbuf-2.0-0-dev/libgtk2.0-dev/' \ + -e 's/libgd2-dev/libgd-dev/' \ + -e 's/libgmodule-2.0-0-dev/libglib2.0-dev/' \ + -e 's/libgobject-2.0-0-dev/libglib2.0-dev/' \ + -e 's/libglib-2.0-0-dev/libglib2.0-dev/' \ + -e 's/libpango-1.0-0-dev/libpango1.0-dev/' \ + -e 's/libpangocairo-1.0-0-dev/libpango1.0-dev/' \ + -e 's/libatk-1.0-0-dev/libatk1.0-dev/' \ + -e 's/libxml2-2-dev/libxml2-dev/' \ + -e 's/libgthread-2.0-0-dev/libglib2.0-dev/' \ + -e 's/libstdc++6-dev/libstdc++6-4.2-dev/' \ + "${OVERRIDE[@]/#/-e}" \ + + +} + + +function validate_package () { +# validate if package foo exists, this relies on apt. + if [ -z "$1" ]; then + # ignore empty. + return; + fi + if grep "^Package: $1\$" debian/control > /dev/null 2> /dev/null ; then + # ignore package that is going to be created. + echo " --> $1 package from same source package." >&2 + return + fi + case $(echo $(apt-cache show $1 2> /dev/null| wc -l ) ) in + 0) + case $(echo $(apt-cache showpkg $1 2> /dev/null | awk ' /^Reverse Provides: $/,/^$/ {if ($0 !~ /:/) {print $0}}' | wc -l) ) in + 0) + echo "devlibs error: There is no package matching [$1] and noone provides it, please report bug to d-shlibs maintainer" >&2 + return 1;; + *) echo " --> $1 is provided by a package." >&2 ;; + esac;; + *) echo " --> $1 package exists." >&2 ;; + esac + return 0; +} + +while true; do + case $1 in + --override=*) + OVERRIDE[${#OVERRIDE[@]}]="${1/--override=/}" + shift; + ;; + --override) + OVERRIDE[${#OVERRIDE[@]}]="$2" + shift; shift; + ;; + --*) + #error + ;; + --|*) + break; + ;; + esac +done + +if [ -z "$2" ]; then + echo "$0: Please read manpage for help, not enough options given" + exit 1 +fi + +OUTPUTFILE="$1" +shift; + +DEPENDS="" +for A in $*; do + # let shell do the delimiting of objdump output./ + DEPENDS="$DEPENDS $(set -o pipefail; objdump -p ${A} |sed -n 's/^.*NEEDED *//p')" +done + +outputtmp=$(tempfile) +( + set -e + if [ -f "$OUTPUTFILE" ] ; then + if grep -v "^devlibs:Depends=" "$OUTPUTFILE"; then + : + fi + fi + printf "devlibs:Depends=" + for A in $DEPENDS; do #DEPENDS is a space-delimited thing. + getname "$A" + echo $RETURN-dev | overridedevlibdeps + done | \ + sort | \ + uniq | \ + while read B; do + # abuse that only first part of multi-entry overrides is considered + if validate_package $B ; then + printf "%s " $B ; + else + echo "ERROR_DEVLIB " + fi + done | sed -e 's/\([a-z0-9)]\) \+\([a-z]\)/\1, \2/g' -e 's/ \+/ /g' -e 's/^ //' -e 's/ $//' + printf "\n" +) > "${outputtmp}" + +if grep "ERROR_DEVLIB" "$outputtmp" > /dev/null; then + exit 1 +fi + +mv "${outputtmp}" $OUTPUTFILE --- libgtkdatabox-0.9.0.1.orig/debian/Makefile.testdatabox +++ libgtkdatabox-0.9.0.1/debian/Makefile.testdatabox @@ -0,0 +1,11 @@ +# Makefile to compile the examples provided by libgtkdatabox-dev package +# Andreas Tille Wed, 9 Apr 2003 +# GPL + +CFLAGS=-g -O2 -Wall -DG_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED -DGDK_PIXBUF_DISABLE_DEPRECATED -DGTK_DISABLE_DEPRECATED `pkg-config gtk+-2.0 --cflags` +LDFLAGS=`pkg-config gtk+-2.0 --libs` -s -lgtkdatabox + +all: addremove basics colors enable_disable grid keycontrol lissajous signals + +clean: + rm -rf *.o *~ --- libgtkdatabox-0.9.0.1.orig/debian/changelog +++ libgtkdatabox-0.9.0.1/debian/changelog @@ -0,0 +1,316 @@ +libgtkdatabox (1:0.9.0.1-1ubuntu1) jaunty; urgency=low + + * Add overrides for libgio and libpangoft for d-devlibdeps to allow + the package to build. If Ubuntu bugs #300895 and #300896 are fixed + then it should be safe to drop these changes. + + -- James Westby Sat, 22 Nov 2008 04:46:43 +0000 + +libgtkdatabox (1:0.9.0.1-1) unstable; urgency=low + + * New upstream version + + -- Andreas Tille Wed, 10 Sep 2008 07:51:00 +0200 + +libgtkdatabox (1:0.9.0.0-1) unstable; urgency=low + + * New upstream version + * Group maintenance by Debian Science Team + - Maintainer set to Debian Science maintainer list + - Set former maintainers as Uploaders + - DM-Upload-Allowed: yes + - Vcs Fields + * Added Homepage field + * Standards-Version: 3.8.0 (no changes needed) + * Switch to cdbs because this enables very small rules files + and enable others quickly to work on the package + * Use d-shlibs to move files around which is a very good + idea for dynamic libraries + + -- Andreas Tille Tue, 01 Jul 2008 14:51:57 +0200 + +libgtkdatabox (1:0.8.2.2-1) unstable; urgency=low + + * New upstream release + + -- Ramakrishnan Muthukrishnan Mon, 21 Jan 2008 22:25:14 +0530 + +libgtkdatabox (1:0.8.2.1-2) unstable; urgency=low + + * debian/rules: First time when the package tries to do distclean, + it fails as Makefiles are not present. So added checks for presence + of the Makefile. + + -- Ramakrishnan Muthukrishnan Sat, 22 Dec 2007 08:22:14 +0530 + +libgtkdatabox (1:0.8.2.1-1) unstable; urgency=low + + * New upstream release + + -- Ramakrishnan Muthukrishnan Fri, 21 Dec 2007 21:43:03 +0530 + +libgtkdatabox (1:0.7.0.1-1) unstable; urgency=low + + * New upstream release. + * Updated maintainer email ID. + * Several misc changes in debian/control. + * Added shlibs file. + * made the package `lintian-clean'. + + -- Ramakrishnan Muthukrishnan Sun, 01 Jul 2007 23:29:40 +0530 + +libgtkdatabox (1:0.7.0.0-1) unstable; urgency=low + + [ Ramakrishnan Muthukrishnan ] + * New upstream release (closes: #411726). + * New Maintainer. + + [ Andreas Tille ] + * Upload + + -- Andreas Tille Mon, 5 Mar 2007 08:51:37 +0100 + +libgtkdatabox (1:0.6.0.0-2) unstable; urgency=low + + * Include gtkdatabox.pc (Thanks to Ramakrishnan Muthukrishnan + ) + Closes: #411724 + + -- Andreas Tille Tue, 20 Feb 2007 23:25:18 +0100 + +libgtkdatabox (1:0.6.0.0-1) unstable; urgency=low + + * New upstream version + * Removed general section libs in control file because it is + named in each package separately + * Standards-Version: 3.7.2 (no changes necessary) + * Debhelper >= 5 + * Make usage of d-shlibmove (thanks to Junichi Uekawa for the + --override hint) + + -- Andreas Tille Mon, 7 Aug 2006 06:20:44 +0200 + +libgtkdatabox (1:0.2.4.7-2) unstable; urgency=low + + * Added Depends libgtk2.0-dev to dev package + Closes: #314233 + + -- Andreas Tille Thu, 16 Jun 2005 08:11:41 +0200 + +libgtkdatabox (1:0.2.4.7-1) unstable; urgency=low + + * New upstream version + closes: #306927 + * Added watch file + * Fixed homepage in copyright file + * Bumped Standards-Version to 3.6.1.1 (no changes necessary) + + -- Andreas Tille Mon, 9 May 2005 13:22:46 +0200 + +libgtkdatabox (1:0.2.3.0-2) unstable; urgency=low + + * Rebuild with new automake, libtool which *hopefully* + closes: #190231 + * Versioned Build-Depends against libgtk2.0-dev (>= 2.2.1-5) which *hopefully* + closes: #190038 + according to a hint of Bill Allombert + + -- Andreas Tille Tue, 20 May 2003 14:36:05 +0200 + +libgtkdatabox (1:0.2.3.0-1) unstable; urgency=low + + * The "I'm against war" release + Mankind must put an end to war before war puts an end to mankind. + -- John F. Kennedy + * New upstream version. + * Moved libgtkdatabox-dev to libdevel according to + http://lists.debian.org/debian-devel-announce/2003/debian-devel-announce-200303/msg00028.html + * Standards-Version: 3.5.9 + * Build-Depends: libgtk2.0-dev + because Version 0.2.3.0 needs Gtk+2.0 + * debian/compat now stores debhelper compatibility version + * Compliant to developers reference "6.3.2. Upstream home page" + XBCS-URL: http://www.eudoxos.de/gtk/gtkdatabox/ + * New Makefile for examples. + * Replaced upstream config.{guess,sub} by the files from debian automake + + -- Andreas Tille Wed, 9 Apr 2003 09:02:28 +0200 + +libgtkdatabox (1:0.1.13.0-5woody) stable; urgency=low + + * Only change is upload to woody-proposed-updates regarding to the + hint from Anthony Towns at + http://lists.debian.org/debian-devel-announce/2002/ + debian-devel-announce-200206/msg00003.html + and in private mail to get this package ready for woody. + * Comment for users who might wonder why libgtkdatabox was not released + in Debian 3.0 (Woody): This package is as stable as the version from + Debian 2.2 (Potato) and was not really changed. The only reason for + keeping it out from Woody is that the name of the binary package has + to be changed near the freeze process which caused a delay in getting + it prepared right in time for technical reasons. + * It is assured that this version will be maintained over the life time + of woody in this shape. + + -- Andreas Tille Mon, 29 Jul 2002 14:44:32 +0200 + +libgtkdatabox (1:0.1.13.0-6) unstable; urgency=high + + * The 'I hope this is the last upload for Woody' - Release + * urgency=high because it really fixes a RC bug + Closes: #143908 + * This is *NOT A NEW PACKAGE*. It was just renamed to ensure + smooth upgrade from potato (see BTS #143908) + * Now renamed package regarding to the suggestion of + Junichi Uekawa properly + * Replaces: libgtkdatabox + * Make development package + Depends: libgtkdatabox-0.1.13-0 (= ${Source-Version}) + * Many thanks to Junichi Uekawa + + -- Andreas Tille Fri, 26 Apr 2002 23:10:19 +0200 + +libgtkdatabox (1:0.1.13-0-5) unstable; urgency=high + + * urgency=high because it fixes a RC bug + * Changed versioning according to SONAME issues following the suggestions of + http://www.netfort.gr.jp/~dancer/column/libpkg-guide/ + Replaces: libgtkdatabox + Thanks to Junichi Uekawa + Closes: #143908 + * Use epoch to make this package a higher version than the old one + in woody. + * Used dh_installchangelogs sanely. + * Fixed spelling bug in description. + * Added + dh_makeshlibs -V 'libgtkdatabox (>= 0.1.3)' + to get versioned dependencies in programs linked against libgtkdatabox. + + -- Andreas Tille Tue, 23 Apr 2002 20:51:59 +0200 + +libgtkdatabox (0.1.13.0-4) unstable; urgency=low + + * Fixes some Lintian bugs + * Standards-Version: 3.5.6 + + -- Andreas Tille Wed, 19 Dec 2001 07:29:46 +0100 + +libgtkdatabox (0.1.13.0-3) unstable; urgency=low + + * closes: #99371 + by replacing old libtoolized files of upstream version + + -- Andreas Tille Fri, 01 Jun 2001 14:41:00 +0200 + +libgtkdatabox (0.1.13.0-2) unstable; urgency=low + + * Changed section field to libs + + -- Andreas Tille Thu, 31 May 2001 14:12:25 +0200 + +libgtkdatabox (0.1.13.0-1) unstable; urgency=low + + * New upstream version + * New Maintainer key + * switched to debhelper + * added build-depends + + -- Andreas Tille Tue, 15 May 2001 16:01:12 +0200 + +libgtkdatabox (0.1.12.3-1) unstable; urgency=low + + * New upstream version (bugfixes only) + + -- Andreas Tille Fri, 29 Oct 1999 08:52:07 +0200 + +libgtkdatabox (0.1.12.2-1) unstable; urgency=low + + * New upstream version + * FHS + + -- Andreas Tille Mon, 19 Jul 1999 14:17:11 +0000 + +libgtkdatabox (0.1.12.0-1) unstable; urgency=low + + * New upstream version + + -- Andreas Tille Tue, 25 May 1999 17:21:16 +0100 + +libgtkdatabox (0.1.11.0-1) unstable; urgency=low + + * New upstream version + + -- Andreas Tille Mon, 29 Mar 1999 15:21:13 +0100 + +libgtkdatabox (0.1.10.4-1) unstable; urgency=low + + * New upstream version + + -- Andreas Tille Mon, 15 Mar 1999 8:33:13 +0100 + +libgtkdatabox (0.1.10.0-1) unstable; urgency=low + + * New upstream version + + -- Andreas Tille Tue, 9 Mar 1999 10:42:17 +0000 + +libgtkdatabox (0.1.7.6-3) unstable; urgency=low + + * corrected FTP source in copyright file + + -- Andreas Tille Fri, 24 Feb 1999 14:42:17 +0000 + +libgtkdatabox (0.1.7.6-2) unstable; urgency=low + + * Fixes Bug#33708 + + -- Andreas Tille Tue, 23 Feb 1999 14:42:17 +0000 + +libgtkdatabox (0.1.7.6-1) unstable; urgency=low + + * new upstream version + + -- Andreas Tille Thu, 11 Feb 1999 20:42:17 +0000 + +libgtkdatabox (0.1.7.0-1) unstable; urgency=low + + * new upstream version + * recompiled against GTK+1.1.13 + + -- Andreas Tille Thu, 27 Jan 1999 20:08:17 +0000 + +libgtkdatabox (0.1.6.74-2) unstable; urgency=low + + * recompiled against GTK+1.1.11 + + -- Andreas Tille Thu, 07 Jan 1999 10:42:17 +0000 + + +libgtkdatabox (0.1.6.74-1) unstable; urgency=low + + * view changes in Makefile.am to make libtool build testdatabox + + -- Andreas Tille Wed, 17 Dec 1998 13:42:13 +0000 + + +libgtkdatabox (0.1.6.74-1) unstable; urgency=low + + * view changes in Makefile.am to make libtool build testdatabox + + -- Andreas Tille Wed, 17 Dec 1998 13:42:13 +0000 + + +libgtkdatabox (0.1.6.73-2) unstable; urgency=low + + * recompiled against GTK+1.1.7 + + -- Andreas Tille Wed, 16 Dec 1998 18:42:13 +0000 + +libgtkdatabox (0.1.6.73-1) unstable; urgency=low + + * GtkDatabox widget from Roland Bock + I use it in paul and made public independently from it for + public use. + + -- Andreas Tille Tue, 15 Dec 1998 19:21:43 +0000 + --- libgtkdatabox-0.9.0.1.orig/debian/compat +++ libgtkdatabox-0.9.0.1/debian/compat @@ -0,0 +1 @@ +5 --- libgtkdatabox-0.9.0.1.orig/debian/control +++ libgtkdatabox-0.9.0.1/debian/control @@ -0,0 +1,57 @@ +Source: libgtkdatabox +Section: libs +Priority: extra +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Debian Science Maintainers +DM-Upload-Allowed: yes +Uploaders: Ramakrishnan Muthukrishnan , + Andreas Tille +Build-Depends: debhelper (>= 5), cdbs, autotools-dev, d-shlibs (>= 0.31), + libgtk2.0-dev (>= 2.12.2), libcairo2-dev, libpango1.0-dev +Standards-Version: 3.8.0 +Vcs-Browser: http://svn.debian.org/wsvn/debian-science/packages/libgtkdatabox/trunk/?rev=0&sc=0 +Vcs-Svn: svn://svn.debian.org/svn/debian-science/packages/libgtkdatabox/trunk/ +Homepage: http://www.eudoxos.de/gtk/gtkdatabox/ + +Package: libgtkdatabox-0.9.0-1-dev +Section: libdevel +Architecture: any +Provides: libgtkdatabox-dev +Conflicts: libgtkdatabox-dev +Depends: libgtkdatabox-0.9.0-1 (= ${binary:Version}), libgtk2.0-dev +Description: A Gtk+ library to display large amounts of numerical data + One or more data sets of thousands of data points (X and Y coordinate) may be + displayed and updated in split seconds. The widget is therfore used in many + scientific and private projects that need to show quickly changing data live. + GtkDatabox offers the ability to zoom into and out of the data and to navigate + through your data by scrolling. + . + In addition to rulers and a simple coordinate cross, GtkDatabox now also allows + you to add one (or even more) configurable grids like on an oscilloscope. + . + Data may be presented as dots, lines connecting the data, or vertical bars. + The widget allows you to easily transform pixel coordinates into data + coordinates, thus allowing you to easily create powerful applications for + data analysis. + . + Development package + +Package: libgtkdatabox-0.9.0-1 +Section: libs +Architecture: any +Replaces: libgtkdatabox +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: A Gtk+ library to display large amounts of numerical data + One or more data sets of thousands of data points (X and Y coordinate) may be + displayed and updated in split seconds. The widget is therfore used in many + scientific and private projects that need to show quickly changing data live. + GtkDatabox offers the ability to zoom into and out of the data and to navigate + through your data by scrolling. + . + In addition to rulers and a simple coordinate cross, GtkDatabox now also allows + you to add one (or even more) configurable grids like on an oscilloscope. + . + Data may be presented as dots, lines connecting the data, or vertical bars. + The widget allows you to easily transform pixel coordinates into data + coordinates, thus allowing you to easily create powerful applications for + data analysis. --- libgtkdatabox-0.9.0.1.orig/debian/copyright +++ libgtkdatabox-0.9.0.1/debian/copyright @@ -0,0 +1,21 @@ +This package was debianized by Ramakrishnan Muthukrishnan on +Fri, 21 Dec 2007 21:06:39 +0530. + +It was downloaded from http://www.eudoxos.de/gtk/gtkdatabox/ + +Upstream Author: + + Dr. Roland Bock + +Copyright: + + Copyright (C) 1998 - 2007 Dr. Roland Bock + +License: + + GNU Lesser General Public License version 2.1 or above. + See /usr/share/common-licenses/LGPL-2.1 + +The Debian packaging is (C) 2007, Ramakrishnan Muthukrishnan +and Andreas Tille and is licensed under the GPL, see +`/usr/share/common-licenses/GPL'. --- libgtkdatabox-0.9.0.1.orig/debian/rules +++ libgtkdatabox-0.9.0.1/debian/rules @@ -0,0 +1,40 @@ +#!/usr/bin/make -f +# rules file for gtkdatabox using cdbs +# Andreas Tille +# License: GPL + +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/class/autotools.mk + +pkg=$(shell grep -v -- "-dev" debian/control | sed -n 's/^Package: \+\([^-]\+\)-.*/\1/p' | head -n 1) +devpkg=$(shell grep -- "-dev" debian/control | sed -n 's/^Package: //p' | head -n 1) + +DEB_INSTALL_DOCS_ALL := AUTHORS README + +common-binary-post-install-arch:: + # Call d-shlibmove to comply with library packaging guide + d-devlibdeps \ + --override s/libpangoft2-1.0-0-dev/libpango1.0-dev/ \ + --override s/libgio-2.0-0-dev/libglib2.0-dev/ \ + debian/$(devpkg).substvars \ + debian/tmp/usr/lib/$(pkg).so + + # Do not use debian/$(devpkg).examples as debhelper input because + # you always have to adapt the file name when a new version pops up + mkdir -p debian/$(devpkg)/usr/share/doc/$(devpkg)/examples + cp -a examples/*.[ch] examples/*.glade debian/$(devpkg)/usr/share/doc/$(devpkg)/examples + cp -a debian/Makefile.testdatabox debian/$(devpkg)/usr/share/doc/$(devpkg)/examples/Makefile + + /bin/bash debian/d-shlibmove \ + --override s/libpangoft2-1.0-0-dev/libpango1.0-dev/ \ + --override s/libgio-2.0-0-dev/libglib2.0-dev/ \ + --commit \ + --movedev "debian/tmp/usr/include" usr \ + --movedev "debian/tmp/usr/lib/pkgconfig" usr/share \ + debian/tmp/usr/lib/$(pkg).so + +get-orig-source: + uscan + +clean:: + rm -f debian/$(devpkg).substvars debian/*.log --- libgtkdatabox-0.9.0.1.orig/debian/d-shlibmove +++ libgtkdatabox-0.9.0.1/debian/d-shlibmove @@ -0,0 +1,228 @@ +#!/bin/bash +# 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 + +function getname () { + local SONAMELIBNAME + local SONAMEVERSION + local SONAME + SONAME="$1" + SONAMELIBNAME=$(echo $SONAME | sed 's/\.so\..*$//') + SONAMEVERSION=$(echo $SONAME | sed 's/^.*\.so\.//') + case "$SONAMELIBNAME" in + *[0-9]) + RETURN="$SONAMELIBNAME-$SONAMEVERSION" + ;; + *) + RETURN="$SONAMELIBNAME$SONAMEVERSION" + ;; + esac +} + +function readlibnameinfo () { + 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; objdump -p ${LIBNAME} |sed -n 's/^.*SONAME *//p' ) + getname "$SONAME" + SONAMEPKGNAME=$(echo "$RETURN" | tr '[A-Z]' '[a-z]') + PK=$(basename "$1" | sed 's/\.so$//') + PK_LOWER=$(echo ${PK} | tr '[A-Z]' '[a-z]') + REALSO=$(readlink -f "${LIBNAME}") +} + +function check_line () { + # check line + local PKGNAME="$1" + local ENTRYLINE="$2" + + if ! awk '/^Package:.*'"$PKGNAME"'/,/^$/{print}' "$CONTROL" | \ + 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} <> "${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; + ;; + --extralib) + readlibnameinfo "$2" + DEVLIB_TO_CHECK="${DEVLIB_TO_CHECK} $2" + echo "$(dirname $2)/${PK}.a usr/lib" >> "${INSTALLFILE_DEVPKG}" + echo "$(dirname $2)/${PK}.la usr/lib || true" >> "${INSTALLFILE_DEVPKG}" + echo "$(dirname $2)/${PK}.so usr/lib" >> "${INSTALLFILE_DEVPKG}" + echo "$(dirname ${REALSO})/${SONAME} usr/lib" >> "${INSTALLFILE_SHLPKG}" + echo "${REALSO} usr/lib" >> "${INSTALLFILE_SHLPKG}" + + shift; shift; + ;; + --shlibs-local) + shift; + SHLIBSLOCALVER="$1"; + shift; + ;; + --suffix) + shift; + SUFFIX="$1"; + shift; + ;; + --devsuffix) + shift; + DEVSUFFIX="$1"; + shift; + ;; + --c102) + TRANSITIONSUFFIX="c102" + shift;; + --ldbl) + TRANSITIONSUFFIX="ldbl" + 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="${DEVLIB_TO_CHECK} $1" +readlibnameinfo "$1" +PKGDEV="${SONAMEPKGNAME}${DEVSUFFIX}-dev" +PKGSHL="${SONAMEPKGNAME}${SUFFIX}${TRANSITIONSUFFIX}" + +INSTALLDIR="install -d -m 755 " +echo "${INSTALLDIR} debian/${PKGDEV}/usr/lib" >> "$execscript" +echo "${INSTALLDIR} debian/${PKGSHL}/usr/lib" >> "$execscript" +echo "mv $(dirname $1)/${PK}.a debian/${PKGDEV}/usr/lib" >> "$execscript" +echo "mv $(dirname $1)/${PK}.la debian/${PKGDEV}/usr/lib || true" >> "$execscript" +echo "mv $(dirname $1)/${PK}.so debian/${PKGDEV}/usr/lib" >> "$execscript" +echo "mv $(dirname ${REALSO})/${SONAME} debian/${PKGSHL}/usr/lib" >> "$execscript" +echo "mv ${REALSO} debian/${PKGSHL}/usr/lib" >> "$execscript" + +if [ -n "${SHLIBSLOCALVER}" ]; then + echo "echo \"${SONAMELIBNAME} ${SONAMEVERSION} ${PKGSHL} (>= ${SHLIBSLOCALVER})\" >> debian/shlibs.local" >> "$execscript" +fi + +/bin/bash debian/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 +cat "${INSTALLFILE_SHLPKG}" | while read A B; do + echo "${INSTALLDIR} debian/${PKGSHL}/${B}" >> "${execscript}" + echo "mv ${A} debian/${PKGSHL}/${B}" >> "${execscript}" +done +cat "${INSTALLFILE_DEVPKG}" | while read A B; do + echo "${INSTALLDIR} debian/${PKGDEV}/${B}" >> "${execscript}" + echo "mv ${A} debian/${PKGDEV}/${B}" >> "${execscript}" +done + +cat "${execscript}" + +# check the syntax of the control file. +CHECK_ERROR=false + +check_line "${PKGDEV}" "Provides:.*${PK_LOWER}-dev" +check_line "${PKGDEV}" "Conflicts:.*${PK_LOWER}-dev" +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\)" +check_line "${PKGDEV}" "Depends:.*${PKGSHL}" +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 --- libgtkdatabox-0.9.0.1.orig/debian/watch +++ libgtkdatabox-0.9.0.1/debian/watch @@ -0,0 +1,14 @@ +# Example watch control file for uscan +# Rename this file to "watch" and then you can run the "uscan" command +# to check for upstream updates and more. +# See uscan(1) for format + +# Compulsory line, this is a version 3 file +version=3 + +# Homepage Pattern [Version [Action]] +http://www.eudoxos.de/gtk/gtkdatabox/ download/gtkdatabox-(.*).tar.gz + + + +