--- libspe-1.2.2.orig/debian/elfspe.init +++ libspe-1.2.2/debian/elfspe.init @@ -0,0 +1,49 @@ +#!/bin/bash +# +# /etc/rc.d/init.d/elfspe +# +# registers elfspe handler +# +# chkconfig: 345 1 1 +# description: executes elfspe-register + +# Source function library. +. /etc/init.d/functions + + +start() { + echo -n "Starting elfspe: " + sh /usr/bin/elfspe-register + return 0 +} + +stop() { + echo -n "Shutting down elfspe: " + sh /usr/bin/elfspe-unregister + return 0 +} + +case "$1" in + start) + start + ;; + stop) + stop + ;; + status) + ;; + restart) + stop + start + ;; + reload) + ;; + condrestart) + [ -f /var/lock/subsys/elfspe ] && restart || : + ;; + *) + echo "Usage: elfspe {start|stop|status|reload|restart}" + exit 1 + ;; +esac +exit $? --- libspe-1.2.2.orig/debian/elfspe.postinst +++ libspe-1.2.2/debian/elfspe.postinst @@ -0,0 +1,9 @@ +#! /bin/sh + +set -e + +if [ -x /usr/bin/elfspe-register ]; then + /usr/bin/elfspe-register +fi + +#DEBHELPER# --- libspe-1.2.2.orig/debian/rules +++ libspe-1.2.2/debian/rules @@ -0,0 +1,110 @@ +#!/usr/bin/make -f +# -*- makefile -*- + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +export SHELL = /bin/bash + +CFLAGS = -Wall -g +ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS))) + CFLAGS += -O0 +else + CFLAGS += -O2 +endif + +DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +DEB_HOST_ARCH ?= $(shell dpkg-architecture -qDEB_HOST_ARCH) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) + +ifeq (,$(filter $(DEB_BUILD_ARCH), powerpc ppc64)) + set_optflags = OPTFLAGS="$(CFLAGS)" +endif + +prefix = usr +ifeq ($(DEB_BUILD_ARCH),powerpc) + libdir = usr/lib +endif +ifeq ($(DEB_BUILD_ARCH),ppc64) + libdir = usr/lib64 +endif +includedir2 = /usr/spu/include + +# FIXME initdir = etc/init.d + +patch: patch-stamp +patch-stamp: unpack-stamp + QUILT_PATCHES=debian/patches quilt push -a || test $$? = 2 + touch patch-stamp + +unpatch: + QUILT_PATCHES=debian/patches quilt pop -a || test $$? = 2 + rm -f patch-stamp + +build: build-stamp +build-stamp: + $(MAKE) $(set_optflags) \ + SHELL=/bin/bash \ + SYSROOT= prefix=/$(prefix) libdir=/$(libdir) + touch $@ + +clean: + dh_testdir + dh_testroot + $(MAKE) SHELL=/bin/bash clean + rm -rf build-* .pc + rm -f *-stamp + dh_clean + +install: + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + + $(MAKE) $(set_optflags) \ + SHELL=/bin/bash \ + SYSROOT= prefix=/$(prefix) libdir=/$(libdir) \ + DESTDIR=$(CURDIR)/debian/tmp \ + install + + dh_install --sourcedir=debian/tmp + + -find debian/{libspe1,libspe1-dev} -type d -empty -delete + +binary-indep: build install + dh_testdir + dh_testroot + dh_installchangelogs -a + dh_installdocs -a + dh_installinit -a + dh_compress -a + dh_fixperms -a + dh_installdeb -a + dh_gencontrol -a + dh_md5sums -a + dh_builddeb -a + +# Build architecture dependant packages using the common target. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs -s + dh_installdocs -s +# dh_installinfo +# dh_installman + dh_link -s + : # Don't strip as the host binutils may be unable to handle SPU objects. + #dh_strip -s + dh_compress -s + dh_fixperms -s + dh_makeshlibs -s + dh_installdeb -s + dh_shlibdeps -s + dh_gencontrol -s + dh_md5sums -s + dh_builddeb -s + +binary: binary-arch binary-indep +.PHONY: build clean binary-indep binary-arch binary install configure --- libspe-1.2.2.orig/debian/libspe1.install +++ libspe-1.2.2/debian/libspe1.install @@ -0,0 +1 @@ +usr/lib/*.so.* --- libspe-1.2.2.orig/debian/changelog +++ libspe-1.2.2/debian/changelog @@ -0,0 +1,12 @@ +libspe (1.2.2-1ubuntu1) gutsy; urgency=low + + * Upload to gutsy. + + -- Matthias Klose Wed, 13 Jun 2007 19:42:26 +0000 + +libspe (1.2.2-0ubuntu1) feisty-proposed; urgency=low + + * Initial release, based on the SDK 2.1 rpm packages. + + -- Matthias Klose Mon, 14 May 2007 17:51:30 +0200 + --- libspe-1.2.2.orig/debian/copyright +++ libspe-1.2.2/debian/copyright @@ -0,0 +1,14 @@ +This package was debianized by Matthias Klose +on Mon, 14 May 2007 17:51:30 +0200. + +It was downloaded from + + http://www.bsc.es/plantillaH.php?cat_id=304 + +The Debian packaging is (C) 2007, Canonical Ltd, done by +Matthias Klose and is licensed under the GPL, +see `/usr/share/common-licenses/GPL'. + +libspe is copyright (C) 2005 IBM Corp., and is licensed under the +GNU Lesser General Public License which on Debian GNU/Linux systems can be +found as `/usr/share/common-licenses/LGPL'. --- libspe-1.2.2.orig/debian/control.elfspe +++ libspe-1.2.2/debian/control.elfspe @@ -0,0 +1,26 @@ +Source: libspe +Section: libs +Priority: extra +Maintainer: Matthias Klose +Build-Depends: debhelper (>= 5) +Standards-Version: 3.7.2 + +Package: libspe1 +Architecture: powerpc +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: SPE Runtime Management Library + SPE Runtime Management Library for the Cell Broadband Engine Architecture. + +Package: libspe1-dev +Section: libdevel +Architecture: powerpc +Depends: libspe1 (= ${Source-Version}), ${shlibs:Depends}, ${misc:Depends} +Description: SPE Runtime Management Library + Header and object files for SPE Runtime Management Library. + +Package: elfspe +Section: libdevel +Architecture: i386 powerpc +Depends: ${misc:Depends} +Description: Helper for standalong SPE applications + This tool acts as a standalone loader for spe binaries. --- libspe-1.2.2.orig/debian/control +++ libspe-1.2.2/debian/control @@ -0,0 +1,19 @@ +Source: libspe +Section: libs +Priority: extra +Maintainer: Matthias Klose +Build-Depends: debhelper (>= 5) +Standards-Version: 3.7.2 + +Package: libspe1 +Architecture: powerpc +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: SPE Runtime Management Library + SPE Runtime Management Library for the Cell Broadband Engine Architecture. + +Package: libspe1-dev +Section: libdevel +Architecture: powerpc +Depends: libspe1 (= ${Source-Version}), ${shlibs:Depends}, ${misc:Depends} +Description: SPE Runtime Management Library + Header and object files for SPE Runtime Management Library. --- libspe-1.2.2.orig/debian/compat +++ libspe-1.2.2/debian/compat @@ -0,0 +1 @@ +5 --- libspe-1.2.2.orig/debian/libspe1-dev.install +++ libspe-1.2.2/debian/libspe1-dev.install @@ -0,0 +1,4 @@ +usr/lib/*.so +usr/lib/*.a +usr/include/*.h +usr/spu/include/*.h