[Python-modules-commits] r29623 - in packages/trunk/pymunk (13 files)

miriam at users.alioth.debian.org miriam at users.alioth.debian.org
Fri Jul 4 16:21:49 UTC 2014


    Date: Friday, July 4, 2014 @ 16:21:48
  Author: miriam
Revision: 29623

[svn-inject] Applying Debian modifications (4.0.0-1) to trunk

Added:
  packages/trunk/pymunk/debian/
  packages/trunk/pymunk/debian/README.source
  packages/trunk/pymunk/debian/changelog
  packages/trunk/pymunk/debian/compat
  packages/trunk/pymunk/debian/control
  packages/trunk/pymunk/debian/copyright
  packages/trunk/pymunk/debian/patches/
  packages/trunk/pymunk/debian/patches/series
  packages/trunk/pymunk/debian/patches/setup.py
  packages/trunk/pymunk/debian/rules
  packages/trunk/pymunk/debian/source/
  packages/trunk/pymunk/debian/source/format
  packages/trunk/pymunk/debian/source/options


Property changes on: packages/trunk/pymunk/debian
___________________________________________________________________
Added: mergeWithUpstream
   + 1

Added: packages/trunk/pymunk/debian/README.source
===================================================================
--- packages/trunk/pymunk/debian/README.source	                        (rev 0)
+++ packages/trunk/pymunk/debian/README.source	2014-07-04 16:21:48 UTC (rev 29623)
@@ -0,0 +1 @@
+See /usr/share/doc/quilt/README.source

Added: packages/trunk/pymunk/debian/changelog
===================================================================
--- packages/trunk/pymunk/debian/changelog	                        (rev 0)
+++ packages/trunk/pymunk/debian/changelog	2014-07-04 16:21:48 UTC (rev 29623)
@@ -0,0 +1,6 @@
+pymunk (4.0.0-1) UNRELEASED; urgency=low
+
+  [ Miriam Ruiz ]
+  * Initial release. Closes: #676923
+
+ -- Miriam Ruiz <miriam at debian.org>  Fri, 04 Jul 2014 02:23:59 +0200

Added: packages/trunk/pymunk/debian/compat
===================================================================
--- packages/trunk/pymunk/debian/compat	                        (rev 0)
+++ packages/trunk/pymunk/debian/compat	2014-07-04 16:21:48 UTC (rev 29623)
@@ -0,0 +1 @@
+9

Added: packages/trunk/pymunk/debian/control
===================================================================
--- packages/trunk/pymunk/debian/control	                        (rev 0)
+++ packages/trunk/pymunk/debian/control	2014-07-04 16:21:48 UTC (rev 29623)
@@ -0,0 +1,32 @@
+Source: pymunk
+Section: python
+Priority: optional
+Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
+Uploaders: Miriam Ruiz <miriam at debian.org>
+Build-Depends: debhelper (>= 9), dh-buildinfo, quilt,
+ python-all-dev (>= 2.6.6-3~), python-setuptools, chipmunk-dev
+Standards-Version: 3.9.5
+Homepage: http://www.pymunk.org/
+Vcs-Svn: svn://svn.debian.org/python-modules/packages/pymunk/trunk/
+Vcs-Browser: http://svn.debian.org/viewsvn/python-modules/packages/pymunk/trunk/
+
+Package: python-pymunk
+Architecture: any
+Depends: ${shlibs:Depends}, ${python:Depends}, ${misc:Depends}
+Provides: ${python:Provides}
+Conflicts: python-pymunk-debug
+Description: description
+ Pymunk is a easy-to-use pythonic 2d physics library that can be used
+ whenever you need 2d rigid body physics from Python. It is built on
+ top of the very nice 2d physics library Chipmunk.
+
+Package: python-pymunk-debug
+Architecture: any
+Depends: ${shlibs:Depends}, ${python:Depends}, ${misc:Depends}
+Provides: python-pymunk, ${python:Provides}
+Conflicts: python-pymunk
+Replaces: python-pymunk
+Description: description
+ Pymunk is a easy-to-use pythonic 2d physics library that can be used
+ whenever you need 2d rigid body physics from Python. It is built on
+ top of the very nice 2d physics library Chipmunk.

Added: packages/trunk/pymunk/debian/copyright
===================================================================
--- packages/trunk/pymunk/debian/copyright	                        (rev 0)
+++ packages/trunk/pymunk/debian/copyright	2014-07-04 16:21:48 UTC (rev 29623)
@@ -0,0 +1,33 @@
+Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/
+Upstream-Name: pymunk
+Upstream-Contact: Victor Blomqvist <vb at viblo.se>
+Source: https://github.com/viblo/pymunk
+Debianized-By: Miriam Ruiz <miriam at debian.org>
+Debianized-Date: Fri, 04 Jul 2014 02:23:59 +0200
+
+Files: *
+Copyright: Copyright (C) YYYY OWNER 1 OF COPYRIGHT
+License: MIT
+
+Files: debian/*
+Copyright: Copyright (C) 2014, Miriam Ruiz <miriam at debian.org>
+License: MIT
+
+License: MIT
+ Permission is hereby granted, free of charge, to any person obtaining a copy
+ of this software and associated documentation files (the "Software"), to deal
+ in the Software without restriction, including without limitation the rights
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ copies of the Software, and to permit persons to whom the Software is
+ furnished to do so, subject to the following conditions:
+ .
+ The above copyright notice and this permission notice shall be included in
+ all copies or substantial portions of the Software.
+ .
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ THE SOFTWARE.

Added: packages/trunk/pymunk/debian/patches/series
===================================================================
--- packages/trunk/pymunk/debian/patches/series	                        (rev 0)
+++ packages/trunk/pymunk/debian/patches/series	2014-07-04 16:21:48 UTC (rev 29623)
@@ -0,0 +1 @@
+setup.py

Added: packages/trunk/pymunk/debian/patches/setup.py
===================================================================
--- packages/trunk/pymunk/debian/patches/setup.py	                        (rev 0)
+++ packages/trunk/pymunk/debian/patches/setup.py	2014-07-04 16:21:48 UTC (rev 29623)
@@ -0,0 +1,38 @@
+Index: pymunk-pymunk-4.0.0/setup.py
+===================================================================
+--- pymunk-pymunk-4.0.0.orig/setup.py
++++ pymunk-pymunk-4.0.0/setup.py
+@@ -56,9 +56,11 @@ class build_chipmunk(distutils.cmd.Comma
+         arch = ctypes.sizeof(ctypes.c_voidp) * 8
+         
+         if arch == 64 and platform.system() == 'Linux':
+-            compiler_preargs += ['-m64', '-O3']
++            compiler_preargs += ['-m64']
++            compiler_preargs += filter(None, os.getenv('CFLAGS', "").split(' '))
+         elif arch == 32 and platform.system() == 'Linux':
+-            compiler_preargs += ['-m32', '-O3']
++            compiler_preargs += ['-m32']
++            compiler_preargs += filter(None, os.getenv('CFLAGS', "").split(' '))
+         elif platform.system() == 'Darwin':
+             #No -O3 on OSX. There's a bug in the clang compiler when using O3.
+             compiler_preargs += ['-arch', 'i386', '-arch', 'x86_64']
+@@ -95,6 +97,7 @@ class build_chipmunk(distutils.cmd.Comma
+         else:
+             libname = compiler.library_filename(libname, lib_type='shared')
+         linker_preargs = []
++        linker_postargs = []
+         if platform.system() == 'Linux' and platform.machine() == 'x86_64':
+             linker_preargs += ['-fPIC']
+         if platform.system() in ('Windows', 'Microsoft'):
+@@ -102,7 +105,10 @@ class build_chipmunk(distutils.cmd.Comma
+             linker_preargs += ['-mrtd'] 
+             # remove link against msvcr*. this is a bit ugly maybe.. :)
+             compiler.dll_libraries = [lib for lib in compiler.dll_libraries if not lib.startswith("msvcr")]
+-        compiler.link(cc.CCompiler.SHARED_LIBRARY, objs, libname, output_dir = 'pymunk', extra_preargs=linker_preargs)
++        if platform.system() == 'Linux':
++            linker_preargs += filter(None, os.getenv('LDFLAGS', "").split(' '))
++            linker_postargs += ['-lm']
++        compiler.link(cc.CCompiler.SHARED_LIBRARY, objs, libname, output_dir = 'pymunk', extra_preargs=linker_preargs, extra_postargs=linker_postargs)
+         
+     def run(self):
+         self.compile_chipmunk()

Added: packages/trunk/pymunk/debian/rules
===================================================================
--- packages/trunk/pymunk/debian/rules	                        (rev 0)
+++ packages/trunk/pymunk/debian/rules	2014-07-04 16:21:48 UTC (rev 29623)
@@ -0,0 +1,116 @@
+#!/usr/bin/make -f
+
+CPPFLAGS:=$(shell dpkg-buildflags --get CPPFLAGS)
+CFLAGS:=$(shell dpkg-buildflags --get CFLAGS)
+CXXFLAGS:=$(shell dpkg-buildflags --get CXXFLAGS)
+LDFLAGS:=$(shell dpkg-buildflags --get LDFLAGS)
+LDFLAGS2:=-Wl,-z,defs  -Wl,-as-needed -Wl,--no-undefined
+
+include /usr/share/quilt/quilt.make
+
+PYVERS=$(shell pyversions -vs)
+
+config: config-stamp
+config-stamp: 
+	dh_testdir
+	[ ! -d debian/patches ] || $(MAKE) -f /usr/share/quilt/quilt.make patch
+	touch $@
+
+build-arch: build
+build-indep: build
+build: $(PYVERS:%=build-python%)
+
+build-python%: config-stamp
+	dh_testdir
+	CFLAGS="$(CFLAGS) $(CXXFLAGS)" \
+	LDFLAGS="$(LDFLAGS) $(LDFLAGS2)" \
+		python$* setup.py build_chipmunk --release
+	touch $@
+
+build-python-debug%: config-stamp
+	dh_testdir
+	CFLAGS="$(CFLAGS) $(CXXFLAGS)" \
+	LDFLAGS="$(LDFLAGS) $(LDFLAGS2)" \
+		python$* setup.py build_chipmunk
+	touch $@
+
+clean: unpatch
+	dh_testdir
+	dh_testroot
+	rm -f config-stamp build-python?.* build-python-debug?.* install-python?.*
+	rm -fv `find . -name "*.pyc"`
+	rm -fv `find . -name "*.so"`
+	rm -fv `find . -name "*.dll"`
+	rm -fv `find . -name "*.o"`
+	rm -fv `find . -name "*.a"`
+	rm -fv `find . -name "*.lib"`
+	rm -rf build
+	[ ! -d debian/patches ] || $(MAKE) -f /usr/share/quilt/quilt.make unpatch
+	dh_clean
+
+install: $(PYVERS:%=install-python%)  $(PYVERS:%=install-python-debug%)
+
+install-python%: build-python%
+	dh_testdir
+	dh_testroot
+	python$* setup.py install \
+		--no-compile \
+		--root=$(CURDIR)/debian/python-pymunk
+	rm -fv `find chipmunk_src -name "*.so"`
+	rm -fv `find chipmunk_src -name "*.o"`
+	touch $@
+
+install-python-debug%: build-python-debug%
+	dh_testdir
+	dh_testroot
+	python$* setup.py install \
+		--no-compile \
+		--root=$(CURDIR)/debian/python-pymunk-debug
+	rm -fv `find chipmunk_src -name "*.so"`
+	rm -fv `find chipmunk_src -name "*.o"`
+	touch $@
+
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs -i
+	dh_installdocs -i
+	dh_installexamples -i
+	dh_install -i
+#	dh_installmenu -i
+	dh_installman -i
+	dh_link -i
+	dh_compress -i --exclude=.js --exclude=.pdf --exclude=.py
+	dh_fixperms -i
+	dh_python2 -i
+	[ ! -e /usr/bin/dh_buildinfo ] || dh_buildinfo -i
+	dh_installdeb -i
+	dh_shlibdeps -i
+	dh_gencontrol -i
+	dh_md5sums -i
+	dh_builddeb -i
+
+binary-arch: build install
+	dh_testdir
+	dh_testroot
+	dh_installchangelogs -a
+	dh_installdocs -a
+	dh_installexamples -a
+	dh_install -a
+#	dh_installmenu -a
+	dh_installman -a
+	dh_link -a
+	dh_python2 -a
+	dh_strip -a -ppython-pymunk
+	dh_strip -a -ppython-pymunk-debug --dbg-package=python-pymunk-debug
+	dh_compress -a
+	dh_fixperms -a
+	[ ! -e /usr/bin/dh_buildinfo ] || dh_buildinfo -a
+	dh_installdeb -a
+	dh_shlibdeps -a
+	dh_gencontrol -a
+	dh_md5sums -a
+	dh_builddeb -a
+
+binary: binary-indep binary-arch
+.PHONY: config build clean binary-indep binary-arch binary install


Property changes on: packages/trunk/pymunk/debian/rules
___________________________________________________________________
Added: svn:executable
   + *

Added: packages/trunk/pymunk/debian/source/format
===================================================================
--- packages/trunk/pymunk/debian/source/format	                        (rev 0)
+++ packages/trunk/pymunk/debian/source/format	2014-07-04 16:21:48 UTC (rev 29623)
@@ -0,0 +1 @@
+3.0 (quilt)

Added: packages/trunk/pymunk/debian/source/options
===================================================================
--- packages/trunk/pymunk/debian/source/options	                        (rev 0)
+++ packages/trunk/pymunk/debian/source/options	2014-07-04 16:21:48 UTC (rev 29623)
@@ -0,0 +1,5 @@
+# Bzip2 compression for debian.tar
+compression = "bzip2"
+compression-level = 7
+# Do not generate diff for changes in config.(sub|guess)
+extend-diff-ignore = "(^|/)config.(sub|guess)$"




More information about the Python-modules-commits mailing list