--- libspe2-2.2.80-95.orig/make.defines +++ libspe2-2.2.80-95/make.defines @@ -23,7 +23,7 @@ CROSS_COMPILE = $(shell if ! grep Broadband /proc/cpuinfo ; then echo 1 ; fi) ifeq "$(X86)" "1" - CROSS ?= /opt/cell/bin/ppu- + CROSS ?= /usr/lib/cell/toolchain/bin/ppu- EXTRA_CFLAGS = -m32 -mabi=altivec # RPM defined default flags may not work with this cross-compiler override OPTFLAGS = --- libspe2-2.2.80-95.orig/debian/elfspe2.prerm +++ libspe2-2.2.80-95/debian/elfspe2.prerm @@ -0,0 +1,11 @@ +#! /bin/sh + +set -e + +if [ -x /usr/sbin/update-binfmts ]; then + # FIXME: fails in a chroot + /usr/sbin/update-binfmts --package elfspe --remove elfspe /usr/bin/elfspe \ + || true +fi + +#DEBHELPER# --- libspe2-2.2.80-95.orig/debian/copyright +++ libspe2-2.2.80-95/debian/copyright @@ -0,0 +1,40 @@ +This package was debianized by Matthias Klose +on Mon, 14 May 2007 17:51:30 +0200. + +It was downloaded from +http://sourceforge.net/projects/libspe + +libspe2 is now maintained in Debian by: +Arthur Loiret +Aurélien GÉRÔME + +Copyright (C) 2006 Sony Computer Entertainment Inc. +Copyright (C) 2005 IBM Corp. + +License: + 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. + + You should have received a copy of the GNU Lesser General Public License + along with this library; if not, write to the Free Software Foundation, + Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + + +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., 2006 Sony 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'. + +latex_pdf/refman.tex is Copyright International Business Machines Corporation, +Sony Computer Entertainment Incorporated, Toshiba Corporation 2003, 2004, +2005, 2006. --- libspe2-2.2.80-95.orig/debian/changelog +++ libspe2-2.2.80-95/debian/changelog @@ -0,0 +1,151 @@ +libspe2 (2.2.80-95-3.1ubuntu7) saucy; urgency=low + + * Define \clearemptydoublepage, the doxygen style file doesn't + define it anymore. + + -- Matthias Klose Tue, 24 Sep 2013 19:56:09 +0200 + +libspe2 (2.2.80-95-3.1ubuntu6) oneiric; urgency=low + + * Build-depend on texlive-fonts-recommended. + + -- Matthias Klose Fri, 02 Sep 2011 07:53:48 +0200 + +libspe2 (2.2.80-95-3.1ubuntu5) oneiric; urgency=low + + * Build-depend on doxygen-latex. LP: #766043, #749187. + * Call the dh_* commands on other architectures than powerpc too. + + -- Matthias Klose Thu, 25 Aug 2011 19:14:13 +0200 + +libspe2 (2.2.80-95-3.1ubuntu4) lucid; urgency=low + + * Build-depend on texlive-font-utils, not texlive-extra-utils, to fix + FTBFS. + * doc/img/Makefile: don't call epstopdf with "-f -o" options, we have to use + shell redirection when passing -f. + + -- Steve Langasek Fri, 19 Mar 2010 23:01:41 +0000 + +libspe2 (2.2.80-95-3.1ubuntu3) lucid; urgency=low + + * Make libspe2-doc architecture: any, otherwise it will never be built in + Ubuntu since this package is powerpc-only. + + -- Steve Langasek Wed, 17 Mar 2010 06:59:41 +0000 + +libspe2 (2.2.80-95-3.1ubuntu2) lucid; urgency=low + + * Fix FTBFS: + - doc/LatexHeader: Change \usepackage from ../doc/doxygen + to doxygen (LP: #489802) + + -- Alfonso Cepeda Caballos Sun, 29 Nov 2009 01:41:43 +0000 + +libspe2 (2.2.80-95-3.1ubuntu1) jaunty; urgency=low + + * Merge with Debian unstable, which has this package now, too. + Remaining Ubuntu changes: + - make.defines: Change cross compiler path from /opt/cell/bin + to /usr/lib/cell/toolchain/bin. + - debian/control: Drop spu-gcc from Recommends: to Suggests:, + since it is in universe. + + -- Martin Pitt Tue, 16 Dec 2008 10:55:58 +0100 + +libspe2 (2.2.80-95-3.1) unstable; urgency=high + + * Non-maintainer upload. + * Fix FTBFS for non-powerpc arches in debian/rules (closes: #483278). + * Add missing build-depends on graphviz. + * Install doxy/html documentation + * Install missing pkgconfig files (closes: #503009). + * RC bugfix, high upload urgency. + + -- Sean Finney Tue, 21 Oct 2008 18:00:42 -0400 + +libspe2 (2.2.80-95-3) unstable; urgency=low + + * debian/rules: Only build the doc package on !powerpc !ppc64. + Closes: #474825 + + -- Arthur Loiret Mon, 14 Apr 2008 09:32:12 +0000 + +libspe2 (2.2.80-95-2) unstable; urgency=low + + * Add ppc64 to Architecture, Build-Depends on gcc-multilib on ppc64 as well. + * Make libspe2-doc arch indep. + + -- Arthur Loiret Tue, 1 Apr 2008 22:56:20 +0000 + +libspe2 (2.2.80-95-1) unstable; urgency=low + + [ Arthur Loiret ] + * Upload to unstable. + * New upstream release. + * Repack orig tarball to remove spu-tools, already built from spu-tools + source package. + * Packaging update, based on Matthias Klose's work. + * debian/control: + + Bump compat to 6 and Standards-Version to 3.7.3. + + Drop Depends on initscripts, until spufs support is added in it. + + Use Homepage field. + * debian/copyright: Update. + + [ Pierre Habouzit ] + * debian/control: + + XS-DM-Upload-Allowed: yes. + + -- Arthur Loiret Thu, 28 Feb 2008 22:59:37 +0000 + +libspe2 (2.2.0-0ubuntu4) gutsy; urgency=low + + * Build-depend on gcc-multilib. + + -- Matthias Klose Sat, 29 Sep 2007 07:07:31 +0000 + +libspe2 (2.2.0-0ubuntu3) gutsy; urgency=low + + * Revert the changes from the last upload. + + -- Matthias Klose Fri, 28 Sep 2007 10:30:27 +0000 + +libspe2 (2.2.0-0ubuntu2) gutsy; urgency=low + + * Cross-build packages for amd64 and i386. + + -- Matthias Klose Wed, 26 Sep 2007 09:52:21 +0200 + +libspe2 (2.2.0-0ubuntu1) gutsy; urgency=low + + * Update to SDK 3.0 earlyRel. + * elfspe: Replace elfspe register/unregister scripts with update-binfmts. + * Build lib64spe2, lib64spe2-dev, libspe2-doc packages. + + -- Matthias Klose Tue, 25 Sep 2007 12:06:31 +0200 + +libspe2 (2.1.0-1ubuntu2) gutsy; urgency=low + + * Add note about copyright for latex_pdf/refman.tex. + * libspe2-dev: Add conflict with libspe1-dev. + + -- Matthias Klose Wed, 13 Jun 2007 22:30:35 +0200 + +libspe2 (2.1.0-1ubuntu1) gutsy; urgency=low + + * Upload to gutsy. + + -- Matthias Klose Wed, 13 Jun 2007 19:57:53 +0000 + +libspe2 (2.1.0-0ubuntu2) feisty-proposed; urgency=low + + * libspe2: Depend on recent initscripts package. + + -- Matthias Klose Wed, 13 Jun 2007 16:20:47 +0200 + +libspe2 (2.1.0-0ubuntu1) feisty-proposed; urgency=low + + * Initial release. + + -- Matthias Klose Mon, 14 May 2007 17:51:30 +0200 + --- libspe2-2.2.80-95.orig/debian/elfspe2.postinst +++ libspe2-2.2.80-95/debian/elfspe2.postinst @@ -0,0 +1,10 @@ +#! /bin/sh + +set -e + +if [ -x /usr/sbin/update-binfmts ]; then + # FIXME: fails in a chroot + /usr/sbin/update-binfmts --import elfspe || true +fi + +#DEBHELPER# --- libspe2-2.2.80-95.orig/debian/elfspe.binfmt +++ libspe2-2.2.80-95/debian/elfspe.binfmt @@ -0,0 +1,3 @@ +package elfspe +interpreter /usr/bin/elfspe +magic \x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x17 --- libspe2-2.2.80-95.orig/debian/compat +++ libspe2-2.2.80-95/debian/compat @@ -0,0 +1 @@ +6 --- libspe2-2.2.80-95.orig/debian/control +++ libspe2-2.2.80-95/debian/control @@ -0,0 +1,55 @@ +Source: libspe2 +Section: libs +Priority: extra +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Arthur Loiret +Uploaders: Aurélien GÉRÔME +Build-Depends: debhelper (>= 6), quilt (>= 0.40), gcc-multilib [powerpc ppc64], doxygen-latex, xsltproc, texlive-font-utils, texlive-fonts-recommended, ghostscript, graphviz +Standards-Version: 3.7.3 +Homepage: http://sourceforge.net/projects/libspe +XS-DM-Upload-Allowed: yes + +Package: libspe2-2 +Architecture: powerpc ppc64 +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: SPE Runtime Management Library + SPE Runtime Management Library for the Cell Broadband Engine Architecture. + +Package: libspe2-dev +Section: libdevel +Architecture: powerpc ppc64 +Depends: libspe2-2 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} +Suggests: spu-gcc +Conflicts: libspe1-dev +Description: SPE Runtime Management Library + Header and object files for the SPE Runtime Management Library. + +Package: lib64spe2-2 +Architecture: powerpc ppc64 +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: SPE Runtime Management Library (64bit) + SPE Runtime Management Library for the Cell Broadband Engine Architecture. + +Package: lib64spe2-dev +Section: libdevel +Architecture: powerpc ppc64 +Depends: libspe2-dev (= ${binary:Version}), lib64spe2-2 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} +Suggests: spu-gcc +Description: SPE Runtime Management Library + Header and object files for the SPE Runtime Management Library. + +Package: elfspe2 +Section: misc +Architecture: powerpc ppc64 +Depends: libspe2-2 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends} +Recommends: binfmt-support +Description: Helper for standalone SPE applications + This tool acts as a standalone loader for spe binaries. + +Package: libspe2-doc +Section: doc +Architecture: any +Depends: ${misc:Depends} +Suggests: libspe2-dev [powerpc ppc64], lib64spe2-dev [powerpc ppc64] +Description: SPE Runtime Management Library (documentation) + Documentation for the SPE Runtime Management Library. --- libspe2-2.2.80-95.orig/debian/rules +++ libspe2-2.2.80-95/debian/rules @@ -0,0 +1,182 @@ +#!/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)) + sysroot = /usr/lib/cell/sysroot + set_optflags = OPTFLAGS="$(CFLAGS)" +else + on_powerpc = yes +endif + +prefix = usr +libdir = usr/lib +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: +# 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: build64-stamp build-stamp +build-doc: build-doc-stamp + +build64-stamp: patch-stamp +ifneq (,$(on_powerpc)) + $(MAKE) SHELL=/bin/bash clean +# EXTRA_CFLAGS includes -m32 for i386/amd64 ... + $(MAKE) $(set_optflags) \ + CC="gcc -m64" \ + $(if $(on_powerpc),,EXTRA_CFLAGS="-mabi=altivec") \ + SHELL=/bin/bash \ + SYSROOT=$(if $(on_powerpc),,$(sysroot)) \ + prefix=/$(prefix) libdir=/usr/lib64 + +# don't set SYSROOT for the install, move things after calling +# dh_install (which cannot handle variables or macros). + $(MAKE) $(set_optflags) \ + CC="gcc -m64" \ + $(if $(on_powerpc),,EXTRA_CFLAGS="-mabi=altivec") \ + SHELL=/bin/bash \ + SYSROOT=$(if $(on_powerpc),,$(sysroot)) \ + prefix=/$(prefix) libdir=/usr/lib64 \ + DESTDIR=$(CURDIR)/debian/tmp64 \ + install +endif + touch $@ + +build-stamp: patch-stamp build64-stamp +ifneq (,$(on_powerpc)) + $(MAKE) SHELL=/bin/bash clean + $(MAKE) $(set_optflags) \ + CC="gcc -m32" \ + SHELL=/bin/bash \ + SYSROOT=$(if $(on_powerpc),,$(sysroot)) \ + prefix=/$(prefix) libdir=/$(libdir) + +ifeq ($(DEB_BUILD_ARCH),powerpc) + $(MAKE) $(set_optflags) \ + SHELL=/bin/bash \ + SYSROOT=$(if $(on_powerpc),,$(sysroot)) \ + prefix=/$(prefix) libdir=/$(libdir) \ + elfspe-all +endif +endif + touch $@ + +build-doc-stamp: patch-stamp + $(MAKE) doc + touch $@ + +clean: unpatch + dh_testdir + dh_testroot + $(MAKE) SHELL=/bin/bash clean + $(MAKE) -C tests SHELL=/bin/bash clean + rm -f doc/img/*.pdf + rm -f libspe12/libspe.so* + rm -f elfspe/elfspe-register + rm -rf build-* .pc + rm -rf debian/tmp64 + rm -f *-stamp + dh_clean + +install: build-stamp + dh_testdir + dh_testroot + dh_clean -k + dh_installdirs + +ifneq (,$(on_powerpc)) +# don't set SYSROOT for the install, move things after calling +# dh_install (which cannot handle variables or macros). + $(MAKE) $(set_optflags) \ + SHELL=/bin/bash \ + SYSROOT=$(if $(on_powerpc),,$(sysroot)) \ + prefix=/$(prefix) libdir=/$(libdir) \ + DESTDIR=$(CURDIR)/debian/tmp \ + install + + $(MAKE) $(set_optflags) \ + SHELL=/bin/bash \ + SYSROOT= \ + prefix=/$(prefix) libdir=/$(libdir) \ + DESTDIR=$(CURDIR)/debian/tmp \ + elfspe-install + + dh_install -plibspe2-2 --sourcedir=debian/tmp \ + '$(sysroot)/usr/lib/*2.so.*' $(sysroot)/usr/lib + + dh_install -plibspe2-dev --sourcedir=debian/tmp \ + '$(sysroot)/usr/lib/*2.so' '$(sysroot)/usr/lib/*2.a' $(sysroot)/usr/lib + dh_install -plibspe2-dev --sourcedir=debian/tmp \ + '$(sysroot)/usr/include/*2*.h' '$(sysroot)/usr/include/cbea_map.h' $(sysroot)/usr/include + dh_install -plibspe2-dev --sourcedir=debian/tmp \ + '$(sysroot)/usr/spu/include/*.h' usr/spu/include + + dh_install -plibspe2-dev --sourcedir=debian/tmp \ + '$(sysroot)/usr/lib/pkgconfig/libspe2.pc' usr/lib/pkgconfig + + dh_install -plib64spe2-2 --sourcedir=debian/tmp64 \ + '$(sysroot)/usr/lib64/*2.so.*' $(sysroot)/usr/lib64 + + dh_install -plib64spe2-dev --sourcedir=debian/tmp64 \ + '$(sysroot)/usr/lib64/*2.so' '$(sysroot)/usr/lib64/*2.a' $(sysroot)/usr/lib64 +endif + +ifneq (,$(on_powerpc)) + dh_install -pelfspe2 --sourcedir=debian/tmp \ + 'usr/bin/elfspe' usr/bin + mkdir -p debian/elfspe2/usr/share/binfmts + cp -p debian/elfspe.binfmt debian/elfspe2/usr/share/binfmts/elfspe +endif + + -find debian/{libspe2-2,libspe2-dev,elfspe2,lib64spe2-2,lib64spe2-dev} -type d -empty -delete + +# Build architecture dependant packages using the common target. +binary-arch: install build-doc + dh_testdir + dh_testroot + dh_installchangelogs -s + dh_installdocs -s + dh_installdocs -plibspe2-doc doc/*.pdf html + dh_strip -s + dh_compress -s -X.pdf -X.html + dh_fixperms -s + dh_makeshlibs -s + dh_shlibdeps -s + dh_installdeb -s + dh_gencontrol -s + dh_md5sums -s + dh_builddeb -s + +binary: binary-arch +.PHONY: build clean binary-arch binary-arch-ppc binary install configure --- libspe2-2.2.80-95.orig/doc/LatexHeader +++ libspe2-2.2.80-95/doc/LatexHeader @@ -22,7 +22,8 @@ linkcolor=blue ]{hyperref} \fi -\usepackage{../doc/doxygen} +\usepackage{doxygen} +\newcommand{\clearemptydoublepage}{\newpage{\pagestyle{empty}\cleardoublepage}} \makeindex \setcounter{tocdepth}{1} \renewcommand{\footrulewidth}{0.4pt} --- libspe2-2.2.80-95.orig/doc/img/Makefile +++ libspe2-2.2.80-95/doc/img/Makefile @@ -5,8 +5,8 @@ $(images): %.pdf: %.dot - dot -Tps $< | epstopdf -f -o $@ + dot -Tps $< | epstopdf -f > $@ clean: - rm $(images) \ No newline at end of file + rm $(images)