--- modglue-1.13.orig/debian/copyright +++ modglue-1.13/debian/copyright @@ -0,0 +1,24 @@ +This package was debianized by Kasper Peeters on +Thu, 7 Dec 2006 22:42:07 +0100. + +It was downloaded from http://www.aei.mpg.de/~peekas/modglue/ + +Copyright: + Copyright (C) 2000-2009 by Kasper Peeters + +License: + + 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; version 2. + + 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., + 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + +For full wording of above license, see '/usr/share/common-licenses/GPL-2 --- modglue-1.13.orig/debian/control +++ modglue-1.13/debian/control @@ -0,0 +1,33 @@ +Source: modglue +Section: libs +Priority: optional +Maintainer: Ubuntu MOTU Developers +XSBC-Original-Maintainer: Kasper Peeters +Homepage: http://www.aei.mpg.de/~peekas/modglue/ +Build-Depends: debhelper (>= 5), pkg-config, libsigc++-2.0-dev, libtool, dpatch +Standards-Version: 3.8.0 + +Package: libmodglue1-dev +Section: libdevel +Architecture: all +Depends: libmodglue1 +Description: development files for a C++ library for handling of multiple co-processes + Modglue is a C++ library with classes for forking external + processes and asynchronous reading from streams. It takes + away the burden of all subtleties involving the Unix fork + call. The asynchronous read facility enables one to read on + multiple input streams at the same time, without losing any + of the standard C++ stream facilities. + . + This package contains the development header files. + +Package: libmodglue1 +Architecture: any +Depends: ${shlibs:Depends} +Description: C++ library for handling of multiple co-processes + Modglue is a C++ library with classes for forking external + processes and asynchronous reading from streams. It takes + away the burden of all subtleties involving the Unix fork + call. The asynchronous read facility enables one to read on + multiple input streams at the same time, without losing any + of the standard C++ stream facilities. --- modglue-1.13.orig/debian/watch +++ modglue-1.13/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://www.aei.mpg.de/~peekas/cadabra/download.html modglue-([\d\.]+)\.tar\.gz --- modglue-1.13.orig/debian/rules +++ modglue-1.13/debian/rules @@ -0,0 +1,103 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +include /usr/share/dpatch/dpatch.make + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) + + +CFLAGS = -Wall -g + +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +# 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)}'` +major=`ls src/.libs/lib*.so.* | \ + awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'` + +config.status: configure + dh_testdir + # Add here commands to configure the package. + CFLAGS="$(CFLAGS) -Wl,-z,defs" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info + + +build: build-stamp +build-stamp: patch-stamp config.status + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + + touch build-stamp + +configure: + ifneq "$(wildcard /usr/share/misc/config.sub)" "" + cp -f /usr/share/misc/config.sub config.sub + endif + ifneq "$(wildcard /usr/share/misc/config.guess)" "" + cp -f /usr/share/misc/config.guess config.guess + endif + +clean: unpatch + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + [ ! -f Makefile ] || $(MAKE) distclean + + rm -f config.guess config.sub + + dh_clean + +install: build + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + # Add here commands to install the package into debian/tmp + $(MAKE) install DESTDIR=$(CURDIR)/debian/libmodglue1 DEVDESTDIR=$(CURDIR)/debian/libmodglue1-dev + + +# Build architecture-independent files here. +binary-indep: build install + dh_testdir -i + dh_testroot -i + dh_installchangelogs -i ChangeLog + dh_installdocs -i debian/copyright + dh_installexamples -i + dh_compress -i + dh_fixperms -i + dh_installdeb -i + dh_gencontrol -i + dh_md5sums -i + dh_builddeb -i + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir -a + dh_testroot -a + dh_installchangelogs -a ChangeLog + dh_installdocs -a + dh_installman -a + dh_strip -a + dh_compress -a + dh_fixperms -a + dh_makeshlibs -a + dh_installdeb -a + dh_shlibdeps -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- modglue-1.13.orig/debian/compat +++ modglue-1.13/debian/compat @@ -0,0 +1 @@ +5 --- modglue-1.13.orig/debian/changelog +++ modglue-1.13/debian/changelog @@ -0,0 +1,13 @@ +modglue (1.13-0ubuntu1) karmic; urgency=low + + * New upstream release. + * Add dpatch support. + * Add 01-gcc44_ftbfs.dpatch patch to fix FTBFS. + + -- Alessio Treglia Mon, 04 May 2009 21:28:42 +0200 + +modglue (1.12-0ubuntu1) jaunty; urgency=low + + * Initial release (LP: #247808) + + -- Kasper Peeters Sat, 17 Jan 2009 15:20:00 +0100 --- modglue-1.13.orig/debian/libmodglue1-dev.examples +++ modglue-1.13/debian/libmodglue1-dev.examples @@ -0,0 +1,2 @@ +examples/* + --- modglue-1.13.orig/debian/patches/01-gcc44_ftbfs.dpatch +++ modglue-1.13/debian/patches/01-gcc44_ftbfs.dpatch @@ -0,0 +1,18 @@ +#! /bin/sh /usr/share/dpatch/dpatch-run +## 01-gcc44_ftbfs.dpatch by Alessio Treglia +## +## All lines beginning with `## DP:' are a description of the patch. +## DP: Fix FTBFS with GCC 4.4 due to missing #include. + +@DPATCH@ +diff -urNad modglue-1.13~/include/modglue/pipe.hh modglue-1.13/include/modglue/pipe.hh +--- modglue-1.13~/include/modglue/pipe.hh 2009-03-10 12:22:42.000000000 +0100 ++++ modglue-1.13/include/modglue/pipe.hh 2009-05-04 21:38:24.000000000 +0200 +@@ -29,6 +29,7 @@ + #include + #include + #include ++#include + + namespace modglue { + --- modglue-1.13.orig/debian/patches/00list +++ modglue-1.13/debian/patches/00list @@ -0,0 +1 @@ +01-gcc44_ftbfs