--- haskell-stm-2.1.1.0.orig/debian/varfiles/varfile +++ haskell-stm-2.1.1.0/debian/varfiles/varfile @@ -0,0 +1,5 @@ +maintainer="Ian Lynagh (wibble) " +short_description="Haskell Software Transactional Memory library for GHC" +long_description=" Provides a Haskell Software Transactional Memory (STM) library.\n STM is a modular composable concurrency abstraction." +c_dev_libs="" +extra_build_deps="" --- haskell-stm-2.1.1.0.orig/debian/copyright +++ haskell-stm-2.1.1.0/debian/copyright @@ -0,0 +1,17 @@ +This package was debianised by Ian Lynagh on +Wed, 21 Nov 2007. All of the Debian packaging scripts are released +into the public domain. + +It was downloaded from +http://hackage.haskell.org/packages/archive/stm/2.1.1.0/stm-2.1.1.0.tar.gz + +----- + +Upstream Author: The Haskell community. + +Copyright (c) 2004, 2005, The University Court of the University of Glasgow. +All rights reserved. + +BSD licenced. The complete text of the BSD license can be found in +/usr/share/common-licenses/BSD on Debian systems. + --- haskell-stm-2.1.1.0.orig/debian/compat +++ haskell-stm-2.1.1.0/debian/compat @@ -0,0 +1 @@ +5 --- haskell-stm-2.1.1.0.orig/debian/changelog +++ haskell-stm-2.1.1.0/debian/changelog @@ -0,0 +1,24 @@ +haskell-stm (2.1.1.0-2~hardy1) hardy-backports; urgency=low + + * Automated backport upload; no source changes. + + -- StefanPotyra Mon, 01 Sep 2008 15:43:37 +0100 + +haskell-stm (2.1.1.0-2) unstable; urgency=low + + * Upgrade to "Generic Haskell cabal library packaging files v10": + * Versioned dependencies are now generated for the Cabal packages we + depend on. + * Use the new ${impl:ghc6:*_deps} variables in debian/control.in. + * Call canonicalise-comma-list on the depends and suggests fields in + control.in. This works around bugs in lintian, where it gets + confused and starts giving spurious warnings. + + -- Ian Lynagh (wibble) Thu, 28 Feb 2008 01:01:46 +0000 + +haskell-stm (2.1.1.0-1) unstable; urgency=low + + * Initial release (used to be part of GHC). + * Using "Generic Haskell cabal library packaging files v9". + + -- Ian Lynagh (wibble) Wed, 21 Nov 2007 01:17:55 +0000 --- haskell-stm-2.1.1.0.orig/debian/control.in +++ haskell-stm-2.1.1.0/debian/control.in @@ -0,0 +1,37 @@ +Source: ${this:source} +Section: libdevel +Priority: optional +Maintainer: ${maintainer} +Standards-Version: 3.7.3 +Build-Depends: &{canonicalise-comma-list:debhelper (>= 5), haddock (>= 0.8-2), hscolour, haskell-utils (>= 1.10), ${impl:ghc6:lib:build_deps}, ${cabal:deps:ghc6:dev}, ${cabal:deps:ghc6:prof}, ${cabal:deps:ghc6:doc}, ${c_dev_libs}, ${extra_build_deps}} + +Package: ${this:ghc6:dev} +Section: libdevel +Architecture: any +Depends: &{canonicalise-comma-list:${impl:ghc6:lib:dev_deps}, \${shlibs:Depends}, \${misc:Depends}, ${cabal:deps:ghc6:dev}, ${c_dev_libs}} +Suggests: &{canonicalise-comma-list:${this:ghc6:prof}, ${this:ghc6:doc}} +Description: ${short_description} +${dev_library_description_header} + . +${long_description} + +Package: ${this:ghc6:prof} +Section: libdevel +Architecture: any +Depends: &{canonicalise-comma-list:\${shlibs:Depends}, \${misc:Depends}, ${this:ghc6:dev}, ${impl:ghc6:lib:prof_deps}, ${cabal:deps:ghc6:prof}, ${c_dev_libs}} +Suggests: &{canonicalise-comma-list:${this:ghc6:doc}} +Description: ${short_description}; profiling libraries +${prof_library_description_header} + . +${long_description} + +Package: ${this:ghc6:doc} +Section: doc +Architecture: all +Depends: &{canonicalise-comma-list:\${shlibs:Depends}, \${misc:Depends}, ${impl:ghc6:lib:doc_deps}, ${cabal:deps:ghc6:doc}} +Suggests: &{canonicalise-comma-list:${this:ghc6:dev}, ${this:ghc6:prof}} +Description: ${short_description}; documentation +${doc_library_description_header} + . +${long_description} + --- haskell-stm-2.1.1.0.orig/debian/libghc6-stm-dev.postinst.in +++ haskell-stm-2.1.1.0/debian/libghc6-stm-dev.postinst.in @@ -0,0 +1,40 @@ +#! /bin/sh +# Generic postinst script for Haskell cabal libraries v9 by Ian Lynagh. +# +# SOURCE: @PACKAGE@.postinst.in +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 /usr/doc/packaging-manual/ +# +# 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|abort-upgrade|abort-remove|abort-deconfigure) + /usr/lib/@PACKAGE@/register.sh + ;; + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- haskell-stm-2.1.1.0.orig/debian/libghc6-stm-dev.prerm.in +++ haskell-stm-2.1.1.0/debian/libghc6-stm-dev.prerm.in @@ -0,0 +1,34 @@ +#! /bin/sh +# Generic prerm.in script for Haskell cabal libraries v9 by Ian Lynagh. +# +# SOURCE: @PACKAGE@.prerm.in + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see /usr/doc/packaging-manual/ + +case "$1" in + remove|upgrade|deconfigure|failed-upgrade) + /usr/lib/@PACKAGE@/unregister.sh + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- haskell-stm-2.1.1.0.orig/debian/libghc6-stm-doc.postinst +++ haskell-stm-2.1.1.0/debian/libghc6-stm-doc.postinst @@ -0,0 +1,39 @@ +#! /bin/sh +# Generic doc postinst script for Haskell cabal libraries v9 by Ian Lynagh. +# +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 /usr/doc/packaging-manual/ +# +# 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|abort-upgrade|abort-remove|abort-deconfigure) + cd /usr/share/doc/ghc6-doc/libraries + /usr/lib/ghc6-doc/gen_contents_index + ;; + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 --- haskell-stm-2.1.1.0.orig/debian/libghc6-stm-doc.postrm +++ haskell-stm-2.1.1.0/debian/libghc6-stm-doc.postrm @@ -0,0 +1,21 @@ +#! /bin/sh +# Generic doc postrm script for Haskell cabal libraries v9 by Ian Lynagh. + +set -e + +DIR=/usr/share/doc/ghc6-doc/libraries +GEN=/usr/lib/ghc6-doc/gen_contents_index + +case "$1" in + *) + [ -d $DIR ] && [ -e $GEN ] && cd $DIR && $GEN + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- haskell-stm-2.1.1.0.orig/debian/rules +++ haskell-stm-2.1.1.0/debian/rules @@ -0,0 +1,134 @@ +#!/usr/bin/make -f +# Generic Haskell cabal library debian/rules v9 by Ian Lynagh, +# based on the example by Joey Hess. +# This file is public domain software. + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# Get the Cabal package name, lower-cased. +# Assumes that the Debian package name is standard. +CABAL_PACKAGE = $(shell dpkg-parsechangelog | sed "1s/source: haskell-//i; q") + +GHC6_PACKAGE = libghc6-$(CABAL_PACKAGE)-dev +GHC6_PROF_PACKAGE = libghc6-$(CABAL_PACKAGE)-prof +GHC6_DOC_PACKAGE = libghc6-$(CABAL_PACKAGE)-doc + +# Find ghc. The ghc in the path might point to some other version of +# GHC, so use ghc6 if it exists (which it ought to when building for +# Debian) +GHC := $(firstword $(shell bash -c "type -p ghc6 ghc")) + +CONFIGURE_OPTS = --enable-library-vanilla \ + --enable-library-profiling \ + --enable-library-for-ghci +ifneq '$(findstring $(shell dpkg-architecture -qDEB_HOST_ARCH), i386 amd64)' '' +CONFIGURE_OPTS += --enable-split-objs +endif + +build: build-stamp +build-stamp: + dh_testdir + + update-haskell-control --check + $(GHC) --make Setup.*hs -o setup-ghc + ./setup-ghc configure --ghc --with-compiler=$(GHC) --prefix=/usr --docdir=/usr/share/doc/ghc6-doc/libraries/$(CABAL_PACKAGE) --htmldir=/usr/share/doc/ghc6-doc/libraries/$(CABAL_PACKAGE) $(CONFIGURE_OPTS) + ./setup-ghc build + ./setup-ghc haddock --hyperlink-source + + touch $@ + +FILES = -type f +PROF_FILE = \( -name "*.p_*" -o -name "lib*_p.a" \) + +install: install-stamp +install-stamp: build-stamp + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + ./setup-ghc copy --destdir=debian/tmp/ + # XXX The file isn't necessarily called LICENSE, and may not even + # exist at all + rm debian/tmp/usr/share/doc/ghc6-doc/libraries/$(CABAL_PACKAGE)/LICENSE + find debian/tmp/usr/lib -type f ! $(PROF_FILE) \ + > debian/$(GHC6_PACKAGE).install + find debian/tmp -type d -empty >> debian/$(GHC6_PACKAGE).install + find debian/tmp/usr/lib -type f $(PROF_FILE) \ + > debian/$(GHC6_PROF_PACKAGE).install + echo "debian/tmp/usr/share/doc" > debian/$(GHC6_DOC_PACKAGE).install + + ./setup-ghc register --gen-script + ./setup-ghc unregister --gen-script + mkdir -p debian/$(GHC6_PACKAGE)/usr/lib/$(GHC6_PACKAGE) + mv register.sh debian/$(GHC6_PACKAGE)/usr/lib/$(GHC6_PACKAGE) + mv unregister.sh debian/$(GHC6_PACKAGE)/usr/lib/$(GHC6_PACKAGE) + + touch $@ + +update-generated-files: + update-debian-haskell-files + update-haskell-control + sed "s/@PACKAGE@/$(GHC6_PACKAGE)/g" debian/$(GHC6_PACKAGE).prerm.in \ + > debian/$(GHC6_PACKAGE).prerm + sed "s/@PACKAGE@/$(GHC6_PACKAGE)/g" debian/$(GHC6_PACKAGE).postinst.in \ + > debian/$(GHC6_PACKAGE).postinst + +clean: + dh_testdir + dh_testroot + rm -f build-stamp install-stamp binary-common-stamp + + -./setup-ghc clean + rm -f Setup.o Setup.hi setup-ghc + rm -f debian/*.install + + dh_clean + +# Build architecture-dependent files here. +binary-common: binary-common-stamp +binary-common-stamp: install-stamp + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installexamples + dh_install --fail-missing +# dh_installmenu +# dh_installdebconf +# dh_installlogrotate +# dh_installemacsen +# dh_installcatalogs +# dh_installpam +# dh_installmime +# dh_installinit +# dh_installcron +# dh_installinfo +# dh_undocumented + dh_installman + dh_link + dh_strip + dh_compress -X.haddock + dh_fixperms +# dh_perl +# dh_python +# dh_makeshlibs + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +# binary-indep and binary-arch both build everything, as otherwise +# # "dh_install --fail-missing" falls over + +# Build architecture-independent files here. +binary-indep: binary-common-stamp +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: binary-common-stamp + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary-common binary install --- haskell-stm-2.1.1.0.orig/debian/control +++ haskell-stm-2.1.1.0/debian/control @@ -0,0 +1,45 @@ +Source: haskell-stm +Section: libdevel +Priority: optional +Maintainer: Ian Lynagh (wibble) +Standards-Version: 3.7.3 +Build-Depends: debhelper (>= 5), haddock (>= 0.8-2), hscolour, haskell-utils (>= 1.10), ghc6 (>= 6.8.2), ghc6 (<< 6.8.2+), ghc6-prof (>= 6.8.2), ghc6-prof (<< 6.8.2+), ghc6-doc (>= 6.8.2), ghc6-doc (<< 6.8.2+) + +Package: libghc6-stm-dev +Section: libdevel +Architecture: any +Depends: ghc6 (>= 6.8.2), ghc6 (<< 6.8.2+), ${shlibs:Depends}, ${misc:Depends} +Suggests: libghc6-stm-prof, libghc6-stm-doc +Description: Haskell Software Transactional Memory library for GHC + This package provides a library for the Haskell programming language. + See http://www.haskell.org/ for more information on Haskell. + . + Provides a Haskell Software Transactional Memory (STM) library. + STM is a modular composable concurrency abstraction. + +Package: libghc6-stm-prof +Section: libdevel +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends}, libghc6-stm-dev, ghc6-prof (>= 6.8.2), ghc6-prof (<< 6.8.2+) +Suggests: libghc6-stm-doc +Description: Haskell Software Transactional Memory library for GHC; profiling libraries + This package provides a library for the Haskell programming language, + compiled for profiling. + See http://www.haskell.org/ for more information on Haskell. + . + Provides a Haskell Software Transactional Memory (STM) library. + STM is a modular composable concurrency abstraction. + +Package: libghc6-stm-doc +Section: doc +Architecture: all +Depends: ${shlibs:Depends}, ${misc:Depends}, ghc6-doc (>= 6.8.2), ghc6-doc (<< 6.8.2+) +Suggests: libghc6-stm-dev, libghc6-stm-prof +Description: Haskell Software Transactional Memory library for GHC; documentation + This package provides the documentation for a library for the Haskell + programming language. + See http://www.haskell.org/ for more information on Haskell. + . + Provides a Haskell Software Transactional Memory (STM) library. + STM is a modular composable concurrency abstraction. + --- haskell-stm-2.1.1.0.orig/debian/libghc6-stm-dev.prerm +++ haskell-stm-2.1.1.0/debian/libghc6-stm-dev.prerm @@ -0,0 +1,34 @@ +#! /bin/sh +# Generic prerm.in script for Haskell cabal libraries v9 by Ian Lynagh. +# +# SOURCE: libghc6-stm-dev.prerm.in + +set -e + +# summary of how this script can be called: +# * `remove' +# * `upgrade' +# * `failed-upgrade' +# * `remove' `in-favour' +# * `deconfigure' `in-favour' +# `removing' +# +# for details, see /usr/doc/packaging-manual/ + +case "$1" in + remove|upgrade|deconfigure|failed-upgrade) + /usr/lib/libghc6-stm-dev/unregister.sh + ;; + *) + echo "prerm called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 + --- haskell-stm-2.1.1.0.orig/debian/libghc6-stm-dev.postinst +++ haskell-stm-2.1.1.0/debian/libghc6-stm-dev.postinst @@ -0,0 +1,40 @@ +#! /bin/sh +# Generic postinst script for Haskell cabal libraries v9 by Ian Lynagh. +# +# SOURCE: libghc6-stm-dev.postinst.in +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 /usr/doc/packaging-manual/ +# +# 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|abort-upgrade|abort-remove|abort-deconfigure) + /usr/lib/libghc6-stm-dev/register.sh + ;; + *) + echo "postinst called with unknown argument \`$1'" >&2 + exit 0 + ;; +esac + +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. + +#DEBHELPER# + +exit 0 +