--- bglibs-1.106.orig/debian/changelog +++ bglibs-1.106/debian/changelog @@ -0,0 +1,348 @@ +bglibs (1.106-1.1) unstable; urgency=medium + + * Non-maintainer upload. + * Build-depend on libtool-bin. Closes: #761734. + + -- Matthias Klose Thu, 09 Oct 2014 10:15:11 +0000 + +bglibs (1.106-1) unstable; urgency=low + + * new upstream release. + * debian/rules: package libbg-docs: properly install documentation + into /usr/share/doc/libbg$(SO)-doc/. + + -- Gerrit Pape Tue, 06 Oct 2009 03:05:13 +0000 + +bglibs (1.104-2) unstable; urgency=low + + * debian/rules: typo (fixes FTBFS on autobuilders). + + -- Gerrit Pape Mon, 12 May 2008 08:54:49 +0000 + +bglibs (1.104-1) unstable; urgency=low + + * new upstream version. + * debian/diff/ibuf_openreadclose.diff: remove; applied upstream. + * debian/rules: mostly redo; build, install new packages; drop diet + libraries for now. + * debian/control: binary packages change to libbg1, libbg1-dev, + libbg1-doc, providing shared and static libraries; no longer + Build-Depends: dietlibc-dev; Build-Depends: libtool; + Standards-Version: 3.7.3.0. + * bglibs-dev.postinst, bglibs-dev.README.Debian, bglibs-doc.docs: + rename to libbg1.*, -dev.*, -doc.* respectively. + * debian/libbg1-dev.postinst: drop support for upgrade from << + 1.015-0; run ldconfig on configure. + * debian/libbg1.postrm: new; run ldconfig on remove. + * debian/libbg1-doc.docs: adapt paths. + * debian/implicit: update to revision a09db2e. + + -- Gerrit Pape Tue, 29 Apr 2008 21:52:52 +0000 + +bglibs (1.041-2) unstable; urgency=low + + * debian/diff/ibuf_openreadclose.diff: ibuf_openreadclose() returns 0 if + it it fails to open the file (#376244). + + -- Gerrit Pape Tue, 11 Jul 2006 21:04:49 +0000 + +bglibs (1.041-1) unstable; urgency=low + + * new upstream version. + * debian/rules: remove workaround for #327229; strip binaries only; install + man page into /usr/share/man/ hierarchy and gzip -9. + * debian/diff/signed-char.diff: remove; applied upstream. + + -- Gerrit Pape Sun, 16 Apr 2006 16:22:53 +0000 + +bglibs (1.031-1) unstable; urgency=low + + * new upstream version. + * debian/diff/signed-char.diff: adapt. + * debian/copyright: adapt; license now is LGPL-2.1. + + -- Gerrit Pape Tue, 6 Dec 2005 16:49:38 +0000 + +bglibs (1.027-3) unstable; urgency=low + + * debian/diff/signed-char.diff; new; asc2bin: char->signed char (closes: + #332321). + + -- Gerrit Pape Tue, 18 Oct 2005 18:23:36 +0000 + +bglibs (1.027-2) unstable; urgency=medium + + * debian/rules: use -O1 in CFLAGS on arm, hppa for build against glibc, + don't use -Os switch to diet on arm for build against diet libc (works + around: #327229). + + -- Gerrit Pape Mon, 26 Sep 2005 10:00:22 +0000 + +bglibs (1.027-1) unstable; urgency=low + + * new upstream version. + * debian/rules: use -O0 in CFLAGS on arm, hppa to work around gcc-4 + optimization problem. + + -- Gerrit Pape Wed, 7 Sep 2005 11:20:51 +0000 + +bglibs (1.026-1) unstable; urgency=low + + * new upstream version. + * debian/diff/findprev-in-empty.diff, debian/diff/findprev-in-empty.diff: + remove; fixed upstream. + + -- Gerrit Pape Mon, 22 Aug 2005 18:22:34 +0000 + +bglibs (1.024-2) unstable; urgency=low + + * debian/diff/findprev-in-empty.diff, debian/diff/findprev-in-empty.diff: + new (fixes mailfront testing failures on alpha, ia64). + * debian/rules: unpack: apply diffs in debian/diff/. + * debian/bglibs-dev.postinst: minor. + + -- Gerrit Pape Sun, 31 Jul 2005 09:13:08 +0000 + +bglibs (1.024-1) unstable; urgency=low + + * new upstream version. + + -- Gerrit Pape Thu, 14 Jul 2005 08:01:03 +0000 + +bglibs (1.023-1) unstable; urgency=low + + * new upstream version. + * debian/control: Standards-Version: 3.6.2.0. + + -- Gerrit Pape Sun, 10 Jul 2005 11:14:18 +0000 + +bglibs (1.022-1) unstable; urgency=low + + * new upstream version. + - fixes build failure on amd64 (thx Kurt Roeckx, closes: #313064). + * debian/control: Depends: ${shlibs:Depends}. + * debian/rules: don't install target directories, make install now does; + binary-arch: run dpkg-shlibdeps. + * debian/copyright: 2005. + + -- Gerrit Pape Wed, 15 Jun 2005 18:45:19 +0000 + +bglibs (1.021-1) unstable; urgency=low + + * new upstream version. + * debian/control: Description: BG Libraries Collection. + * debian/rules: don't apply diff; utilize upstream's conf-lib, + conf-include, install target and install_prefix. + * debian/diff/va_foo.diff: remove; fixed upstream. + + -- Gerrit Pape Wed, 8 Jun 2005 18:48:27 +0000 + +bglibs (1.020-3) unstable; urgency=low + + * debian/diff/va_foo.diff: new (fixes build failure on ia64, ppc). + * debian/rules: apply diff. + + -- Gerrit Pape Sat, 4 Jun 2005 12:31:39 +0000 + +bglibs (1.020-2) unstable; urgency=low + + * debian/rules: typo: use diet, not diet-dyn (fixes build failure). + * debian/control: remove version restrictions from Build-Depends: + dietlibc-dev. + + -- Gerrit Pape Fri, 3 Jun 2005 09:47:16 +0000 + +bglibs (1.020-1) unstable; urgency=low + + * debian/control: add Build-Depends: dietlibc-dev [ppc64]. + * debian/rules: add ppc64 to DIET_ARCHS (thx Andreas Jochens, closes: + #299303); use -nostdinc option with diet libc. + * new upstream version (closes: #300605). + + -- Gerrit Pape Mon, 30 May 2005 19:23:19 +0000 + +bglibs (1.019-1) unstable; urgency=low + + * new upstream version. + * debian/control: bglibs-dev package Recommends: bglibs-doc. + + -- Gerrit Pape Wed, 17 Nov 2004 13:16:14 +0000 + +bglibs (1.018-1) unstable; urgency=low + + * new upstream version. + * debian/rules: minor cleanup. + * debian/implicit: update to revision 1.10. + + -- Gerrit Pape Sat, 30 Oct 2004 12:37:40 +0000 + +bglibs (1.017-3) unstable; urgency=low + + * debian/rules: use dietlibc-dev on amd64 (thx Andreas Jochens); minor. + * debian/control: Build-Depends: dietlibc-dev +[amd64]. + + -- Gerrit Pape Fri, 30 Apr 2004 19:26:56 +0000 + +bglibs (1.017-2) unstable; urgency=low + + * debian/control: Build-Depends: dietlibc-dev (>> 0.25-0) (fixes + build/testing failures on archs !i386, !sparc, closes: #240492). + + -- Gerrit Pape Sun, 28 Mar 2004 14:37:51 +0000 + +bglibs (1.017-1) unstable; urgency=low + + * new upstream version. + * debian/rules: split target unpack-stamp into unpack-gnu-stamp and + unpack-diet-stamp; add -Os to CFLAGS (fixes build failure on m68k); + remove workaround to suppress gcc-3.3 warnings (fixes build failure + with gcc-2.95). + * debian/implicit: update to revision 1.8. + * debian/control: Build-Depends: dietlibc-dev (>> 0.24-5). + + -- Gerrit Pape Fri, 26 Mar 2004 11:55:56 +0000 + +bglibs (1.016-1) unstable; urgency=low + + * new upstream version. + + -- Gerrit Pape Mon, 8 Mar 2004 08:09:33 +0000 + +bglibs (1.015-1) unstable; urgency=low + + * new upstream version. + * include upstream tar.gz archive in orig.tar.gz. + * debian/rules: stop using debhelper, use implicit rules; build and + install libraries linked against dietlibc, additionally to glibc. + * debian/implicit: new; implicit Makefile rules. + * debian/control: no longer Build-Depends: debhelper; Build-Depends: + dietlibc-dev [...]; bglibs-dev Suggests: dietlibc-dev. + * debian/bglibs-doc.docs: adapt. + * debian/copyright: include explicit copyright statement. + * debian/README.Debian: rename to debian/bglibs-dev.README.Debian; adapt. + * debian/bglibs-dev.postinst: new; make sure /usr/lib/bglibs/lib is a + symlink after upgrade. + * debian/bglibs-dev.files: remove; obsolete. + + -- Gerrit Pape Sat, 28 Feb 2004 09:44:06 +0000 + +bglibs (1.011-1) unstable; urgency=low + + * new upstream version. + * diff/bad-long.diff, diff/crc-64bit.diff, diff/selfpipe-test.diff: + remove; fixed upstream. + * debian/rules: disable target patch-stamp. + * debian/control: Standards-Version: 3.6.1.0. + + -- Gerrit Pape Tue, 2 Dec 2003 09:36:10 +0000 + +bglibs (1.010-2) unstable; urgency=low + + * debian/diff/crc-64bit.diff: new; from upstream: fix buglet in + crc-gentab.c not accounting for unsigned long being 64-bits long. + + -- Gerrit Pape Tue, 18 Nov 2003 20:44:24 +0000 + +bglibs (1.010-1) unstable; urgency=low + + * new upstream version. + * debian/diff/sfy-gcc-3.3.diff: remove; fixed upstream. + * debian/diff/bad-long.diff: new; taken from upstream svn: typo fix. + * debian/diff/selfpipe-test.diff: new; taken from upstream svn: don't + rely on selfpipe fds to be 3 and 4. + + -- Gerrit Pape Tue, 18 Nov 2003 09:44:01 +0000 + +bglibs (1.009-2) unstable; urgency=low + + * debian/diff/sfy-gcc-3.3.diff: new; taken from upstream; fixes build + failure and warnings with gcc-3.3 (closes: #194862). + * debian/rules: enable target patch. + + -- Gerrit Pape Thu, 29 May 2003 17:12:15 +0200 + +bglibs (1.009-1) unstable; urgency=low + + * new upstream version: rewrite of sha256 and sha512 algorithms to + make them work on both 64-bit and MSB platforms (closes: #187668). + * debian/diff/sha64bit.diff: remove; fixed upstream. + * debian/rules: disable patch target; show compiler version. + + -- Gerrit Pape Mon, 7 Apr 2003 20:40:32 +0200 + +bglibs (1.008-2) unstable; urgency=low + + * debian/diff/sha64bit.diff: new; fixes build failure on 64bit + architectures (modified and approved by upstream). + + -- Gerrit Pape Fri, 4 Apr 2003 09:43:39 +0200 + +bglibs (1.008-1) unstable; urgency=low + + * new upstream version. + * debian/diff/const_int.diff: remove; fixed upstream. + * debian/control: Section: libdevel. + + -- Gerrit Pape Thu, 3 Apr 2003 14:09:16 +0200 + +bglibs (1.007-1) unstable; urgency=low + + * new upstream version. + * diff/const_int.diff: new; resolve conflicting type in selftest. + * debian/rules: add targets patch, patch-stamp: apply diffs from + debian/diff/; minor cleanup. + + -- Gerrit Pape Thu, 20 Mar 2003 14:30:05 +0100 + +bglibs (1.006-1) unstable; urgency=low + + * new upstream version. + * provide documentation in different package: bglibs-doc. + * debian/control: add package bglibs-doc; remove [arm] dependency on + gcc-3.2; Standards-Version: 3.5.8. + * debian/copyright: refer to common-licenses/GPL-2. + * debian/rules: remove force-gcc-3.2 workaround for arm, 3.2 is now + default; build bglibs-doc in target binary-indep. + + -- Gerrit Pape Thu, 6 Mar 2003 14:18:13 +0100 + +bglibs (1.005-1) unstable; urgency=low + + * new upstream version. + * debian/control: build-depends on gcc-3.2 [arm]; slightly improve + long description (closes: #151316). + * debian/rules: force gcc-3.2 on arm, see gcc bug #151675; add -n + option to dh_installdocs; minor cleanup. + + -- Gerrit Pape Wed, 18 Dec 2002 12:54:30 +0100 + +bglibs (1.003-1) unstable; urgency=low + + * new upstream version. + + -- Gerrit Pape Wed, 2 Oct 2002 14:22:19 +0200 + +bglibs (1.002-1) unstable; urgency=low + + * new upstream version. + + -- Gerrit Pape Mon, 19 Aug 2002 12:03:59 +0200 + +bglibs (1.001-3) unstable; urgency=low + + * debian/rules: workaround (imho) unexpected behavior of make (see + bug #153253): 'rm -f installer instcheck instshow' is not enough. + + -- Gerrit Pape Fri, 16 Aug 2002 10:43:44 +0200 + +bglibs (1.001-2) unstable; urgency=low + + * disable -O option to gcc on arm architecture to work around #151675. + + -- Gerrit Pape Wed, 3 Jul 2002 10:57:45 +0200 + +bglibs (1.001-1) unstable; urgency=low + + * Initial Release (closes: #148901). + + -- Gerrit Pape Wed, 19 Jun 2002 15:11:42 +0200 --- bglibs-1.106.orig/debian/control +++ bglibs-1.106/debian/control @@ -0,0 +1,47 @@ +Source: bglibs +Priority: optional +Maintainer: Gerrit Pape +Build-Depends: libtool, libtool-bin +Standards-Version: 3.7.3.0 + +Package: libbg1 +Section: libs +Architecture: any +Depends: ${shlibs:Depends} +Recommends: libbg1-doc +Suggests: libbg1-dev +Description: BG Libraries Collection + This package contains a collection of libraries written by myself + [Bruce Guenter] and put in use in various packages. + . + The library collection is mandatory to build most of Bruce Guenter's + software packages available at http://untroubled.org. + . + This package contains the shared libraries. + +Package: libbg1-dev +Section: libdevel +Architecture: any +Depends: libbg1 (= ${binary:Version}), ${shlibs:Depends} +Provides: libbg-dev, bglibs-dev +Conflicts: libbg-dev, bglibs-dev +Recommends: bglibs-doc +Description: BG Libraries Collection (development) + This package contains a collection of libraries written by myself + [Bruce Guenter] and put in use in various packages. + . + The library collection is mandatory to build most of Bruce Guenter's + software packages available at http://untroubled.org. + . + This package contains the development files. + +Package: libbg1-doc +Section: doc +Architecture: all +Suggests: libbg1-dev +Conflicts: bglibs-doc +Description: BG Libraries Collection (documentation) + The bglibs library collection is mandatory to build most of Bruce + Guenter's software packages available at http://untroubled.org. + . + This package contains the documentation for bglibs. --- bglibs-1.106.orig/debian/copyright +++ bglibs-1.106/debian/copyright @@ -0,0 +1,22 @@ +This package was debianized by Gerrit Pape on +Wed, 19 Jun 2002 15:11:42 +0200. + +It was downloaded from http://untroubled.org/bglibs/ + +Upstream Author: Bruce Guenter + +Copyright: + +Copyright(C) 2002-2005 Bruce Guenter + +This library is free software; you can redistribute it and/or +modify it under the terms of the GNU Lesser General Public +License as published by the Free Software Foundation; either +version 2.1 of the License, or (at your option) any later version. + +This library 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 +Lesser General Public License for more details. + +The full text can be found at /usr/share/common-licenses/LGPL-2.1. --- bglibs-1.106.orig/debian/implicit +++ bglibs-1.106/debian/implicit @@ -0,0 +1,93 @@ +# $Id: a09db2e42c8b6a2d820754d741558e5894944746 $ + +.PHONY: deb-checkdir deb-checkuid + +deb-checkdir: + @test -e debian/control || sh -cx '! : wrong directory' +deb-checkuid: + @test "`id -u`" -eq 0 || sh -cx '! : need root privileges' + +%.deb: %.deb-docs %.deb-DEBIAN + @rm -f $*.deb $*.deb-checkdir $*.deb-docs $*.deb-docs-base \ + $*.deb-docs-docs $*.deb-docs-examples $*.deb-DEBIAN \ + $*.deb-DEBIAN-dir $*.deb-DEBIAN-scripts $*.deb-DEBIAN-md5sums + +%.udeb: %.deb-DEBIAN + @rm -f $*.deb $*.deb-checkdir $*.deb-DEBIAN $*.deb-DEBIAN-dir \ + $*.deb-DEBIAN-scripts $*.deb-DEBIAN-md5sums + +%.deb-checkdir: install + @test -d debian/$* || sh -cx '! : directory debian/$* missing' + @test "`id -u`" -eq 0 || sh -cx '! : need root privileges' + +%.deb-docs-base: install + : implicit + @rm -f debian/$*/usr/share/doc/$*/* || : + @install -d -m0755 debian/$*/usr/share/doc/$* + : debian/$*/usr/share/doc/$*/ + @sh -cx 'install -m0644 debian/copyright debian/$*/usr/share/doc/$*/' + @sh -cx 'install -m0644 debian/changelog \ + debian/$*/usr/share/doc/$*/changelog.Debian' + @test ! -r changelog || \ + sh -cx 'install -m0644 changelog debian/$*/usr/share/doc/$*/' + @test -r debian/$*/usr/share/doc/$*/changelog || \ + sh -cx 'mv debian/$*/usr/share/doc/$*/changelog.Debian \ + debian/$*/usr/share/doc/$*/changelog' + @test -s debian/$*/usr/share/doc/$*/changelog || \ + sh -cx 'rm -f debian/$*/usr/share/doc/$*/changelog' + @gzip -9 debian/$*/usr/share/doc/$*/changelog* +%.deb-docs-docs: %.deb-docs-base + @for i in `cat debian/$*.docs 2>/dev/null || :`; do \ + if test -d $$i; then \ + sh -cx "install -d -m0755 debian/$*/usr/share/doc/$*/$${i##*/}" && \ + for j in $$i/*; do \ + sh -cx "install -m0644 $$j \ + debian/$*/usr/share/doc/$*/$${i##*/}/" || exit 1; \ + done || exit 1; \ + continue; \ + fi; \ + sh -cx "install -m0644 $$i debian/$*/usr/share/doc/$*/" || exit 1; \ + done + @test ! -r debian/$*.README.Debian || \ + sh -cx 'install -m0644 debian/$*.README.Debian \ + debian/$*/usr/share/doc/$*/README.Debian' + @if test -r debian/$*.NEWS.Debian; then \ + sh -cx 'install -m0644 debian/$*.NEWS.Debian \ + debian/$*/usr/share/doc/$*/NEWS.Debian && \ + gzip -9 debian/$*/usr/share/doc/$*/NEWS.Debian'; \ + fi +%.deb-docs-examples: %.deb-docs-docs + @rm -rf debian/$*/usr/share/doc/$*/examples + : debian/$*/usr/share/doc/$*/examples/ + @test ! -r debian/$*.examples || \ + install -d -m0755 debian/$*/usr/share/doc/$*/examples + @for i in `cat debian/$*.examples 2>/dev/null || :`; do \ + sh -cx "install -m0644 $$i debian/$*/usr/share/doc/$*/examples/" \ + || exit 1; \ + done +%.deb-docs: %.deb-checkdir %.deb-docs-base %.deb-docs-docs %.deb-docs-examples + : debian/$*/usr/share/doc/$*/ ok + +%.deb-DEBIAN-base: install + @rm -rf debian/$*/DEBIAN + : debian/$*/DEBIAN/ + @install -d -m0755 debian/$*/DEBIAN + @for i in conffiles shlibs templates; do \ + test ! -r debian/$*.$$i || \ + sh -cx "install -m0644 debian/$*.$$i debian/$*/DEBIAN/$$i" \ + || exit 1; \ + done +%.deb-DEBIAN-scripts: %.deb-DEBIAN-base + @for i in preinst prerm postinst postrm config; do \ + test ! -r debian/$*.$$i || \ + sh -cx "install -m0755 debian/$*.$$i debian/$*/DEBIAN/$$i" \ + || exit 1; \ + done +%.deb-DEBIAN-md5sums: %.deb-DEBIAN-base %.deb-docs + : debian/$*/DEBIAN/md5sums + @rm -f debian/$*/DEBIAN/md5sums + @cd debian/$* && find * -path 'DEBIAN' -prune -o \ + -type f -exec md5sum {} >>DEBIAN/md5sums \; +%.deb-DEBIAN: %.deb-checkdir %.deb-DEBIAN-base %.deb-DEBIAN-scripts \ + %.deb-DEBIAN-md5sums + : debian/$*/DEBIAN/ ok --- bglibs-1.106.orig/debian/libbg1-dev.README.Debian +++ bglibs-1.106/debian/libbg1-dev.README.Debian @@ -0,0 +1,21 @@ +bglibs for Debian +----------------- + +bglibs compiled against the glibc is installed in + /usr/lib/bglibs/ + /usr/include/bglibs/ +The libraries and header files are also accessible through + /usr/lib/bglibs/lib/ + /usr/lib/bglibs/include/ + +bglibs compiled against the diet libc (on architectures the dietlibc is +available for) is installed in + /usr/lib/diet/bglibs/ + /usr/include/diet/bglibs/ +The libraries iand header files are also accessible through + /usr/lib/diet/bglibs/lib/ + /usr/lib/diet/bglibs/include/ + +For the library documentation please install the bglibs-doc package. + + -- Gerrit Pape , Wed, 19 Jun 2002 15:11:42 +0200 --- bglibs-1.106.orig/debian/libbg1-doc.docs +++ bglibs-1.106/debian/libbg1-doc.docs @@ -0,0 +1,4 @@ +NEWS +README +TODO +ANNOUNCEMENT --- bglibs-1.106.orig/debian/libbg1.postinst +++ bglibs-1.106/debian/libbg1.postinst @@ -0,0 +1,5 @@ +#!/bin/sh +set -e + +test "$1" = 'configure' || exit 0 +exec ldconfig --- bglibs-1.106.orig/debian/libbg1.postrm +++ bglibs-1.106/debian/libbg1.postrm @@ -0,0 +1,5 @@ +#!/bin/sh +set -e + +test "$1" = 'remove' || exit 0 +exec ldconfig --- bglibs-1.106.orig/debian/rules +++ bglibs-1.106/debian/rules @@ -0,0 +1,108 @@ +#!/usr/bin/make -f + +CC =gcc +CFLAGS =-W -Wall -Wshadow -O2 -g +STRIP =strip +SO= $(shell IFS=: read v r a conf-bin + test -e conf-cc'{orig}' || cp conf-cc conf-cc'{orig}' + echo '$(CC) $(CFLAGS)' >conf-cc + test -e conf-include'{orig}' || cp conf-include conf-include'{orig}' + echo /usr/include/bglibs >conf-include + test -e conf-lib'{orig}' || cp conf-lib conf-lib'{orig}' + echo /usr/lib/bglibs >conf-lib + test -e conf-man'{orig}' || cp conf-man conf-man'{orig}' + echo /usr/share/man >conf-man + $(MAKE) + touch build-stamp + +clean: deb-checkdir deb-checkuid + $(MAKE) clean + rm -rf .libs */.libs + for i in conf-bin conf-cc conf-include conf-lib conf-man; do \ + test ! -r $$i'{orig}' || mv -f $$i'{orig}' $$i || exit 1; \ + done + test ! -e patch-stamp || \ + for i in `ls -1r debian/diff/*.diff || :`; do patch -p1 -R <$$i; done + rm -f patch-stamp build-stamp + rm -rf '$(DIR)' '$(DIR)'-dev '$(DIR)'-doc + rm -f debian/libbg'$(SO)'.shlibs debian/files debian/substvars changelog + +install: install-indep install-arch +install-indep: deb-checkdir deb-checkuid + rm -rf '$(DIR)'-doc + install -d -m0755 '$(DIR)'-doc/usr/share/doc/libbg'$(SO)'-doc/html + install -d -m0755 '$(DIR)'-doc/usr/share/doc/libbg'$(SO)'-doc/latex + install -m0644 doc/html/* \ + '$(DIR)'-doc/usr/share/doc/libbg'$(SO)'-doc/html/ + install -m0644 doc/latex/* \ + '$(DIR)'-doc/usr/share/doc/libbg'$(SO)'-doc/latex/ + test -r changelog || ln -s ChangeLog changelog +install-arch: deb-checkdir deb-checkuid build-stamp + # libbg-dev + rm -rf '$(DIR)' '$(DIR)'-dev + $(MAKE) install install_prefix='$(DIR)'-dev/ + gzip -f -9 '$(DIR)'-dev/usr/share/man/man1/*.1 + rm -f '$(DIR)'-dev/usr/lib/bglibs/*.la + ln -s . '$(DIR)'-dev/usr/lib/bglibs/lib + ln -s ../../include/bglibs '$(DIR)'-dev/usr/lib/bglibs/include + $(STRIP) --strip-debug '$(DIR)'-dev/usr/lib/bglibs/*.a + for i in '$(DIR)'-dev/usr/bin/*; do \ + test "`head -c2 $$i`" = '#!' || $(STRIP) -R .comment -R .note $$i; \ + done + for i in '$(DIR)'-dev/usr/lib/bglibs/*.so; do \ + mv $$i '$(DIR)'-dev/usr/lib/ && \ + ln -s ../$${i##*/} '$(DIR)'-dev/usr/lib/bglibs/ || exit 1; \ + done + # libbg + install -d -m0755 '$(DIR)'/usr/lib + for i in '$(DIR)'-dev/usr/lib/bglibs/*.so.*; do \ + mv $$i '$(DIR)'/usr/lib/ && \ + ln -s ../$${i##*/} '$(DIR)'-dev/usr/lib/bglibs/ || exit 1; \ + done + chmod 0644 '$(DIR)'/usr/lib/* + $(STRIP) -R .note -R .comment --strip-unneeded \ + '$(DIR)'/usr/lib/*.so.?.?.? + echo 'libbg $(SO) libbg$(SO)' >debian/libbg'$(SO)'.shlibs + echo 'libbg-sysdeps $(SO) libbg$(SO)' >>debian/libbg'$(SO)'.shlibs + # changelog + test -r changelog || ln -s ChangeLog changelog + +binary: binary-indep binary-arch +binary-indep: install-indep libbg'$(SO)'-doc.deb + dpkg-gencontrol -isp -plibbg'$(SO)'-doc -P'$(DIR)'-doc + dpkg -b '$(DIR)'-doc .. +binary-arch: install-arch libbg'$(SO)'-dev.deb libbg'$(SO)'.deb + # libbg-dev + rm -f debian/substvars + dpkg-shlibdeps '$(DIR)'-dev/usr/bin/* + dpkg-gencontrol -isp -plibbg'$(SO)'-dev -P'$(DIR)'-dev + dpkg -b '$(DIR)'-dev .. + # libbg + rm -f debian/substvars + dpkg-shlibdeps '$(DIR)'/usr/lib/*.so.?.?.? + dpkg-gencontrol -isp -plibbg'$(SO)' -P'$(DIR)' + dpkg -b '$(DIR)' .. + +.PHONY: patch build clean binary-indep binary-arch binary install-indep \ + install-arch install + +include debian/implicit