debian/0000755000000000000000000000000012313576714007177 5ustar debian/python-sfml-doc.README.Debian0000644000000000000000000000244512251145053014254 0ustar The Debian documentation package ships some samples that won't run out of the box. This is because the data files aren't free (and for some of them it's questionable if it's even allowed to distribute them). To run these samples you might need to find replacements for the following files: examples/embedding/image.jpg examples/extending/image.jpg examples/opengl/resources/background.jpg examples/opengl/resources/sansation.ttf examples/opengl/resources/texture.jpg examples/pong/data/ball.wav examples/pong/data/sansation.ttf examples/pyqt4/data/head_kid.png examples/shader/data/background.jpg examples/shader/data/blink.frag examples/shader/data/blur.frag examples/shader/data/devices.png examples/shader/data/edge.frag examples/shader/data/pixelate.frag examples/shader/data/sansation.ttf examples/shader/data/sfml.png examples/shader/data/storm.vert examples/shader/data/text-background.png examples/shader/data/text.txt examples/shader/data/wave.vert examples/sound/data/canary.wav examples/sound/data/orchestral.ogg examples/spacial_music/data/head_kid.png examples/spacial_music/data/mario.flac examples/spacial_music/data/sansation.ttf examples/spacial_music/data/speaker.gif -- James Cowgill Tue, 29 Oct 2013 00:42:00 +0000 debian/copyright0000644000000000000000000000377412251145053011132 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: python-sfml Source: http://www.python-sfml.org/ Files: * Copyright: 2013 Jonathan De Wachter 2013 Edwin Marshall License: LGPL-3+ Files: debian/* Copyright: 2013 James Cowgill License: Zlib License: LGPL-3+ This program 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 3 of the License, or (at your option) any later version. . 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 Lesser General Public License for more details. . You should have received a copy of the GNU Lesser General Public License along with this program. If not, see . . On Debian systems, the full text of the GNU Lesser General Public License version 3 can be found in the file '/usr/share/common-licenses/LGPL-3' License: Zlib This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software. . Permission is granted to anyone to use this software for any purpose, including commercial applications, and to alter it and redistribute it freely, subject to the following restrictions: . 1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment in the product documentation would be appreciated but is not required. . 2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software. . 3. This notice may not be removed or altered from any source distribution. debian/python-sfml-doc.docs0000644000000000000000000000002012251145053013051 0ustar doc/build/html/ debian/changelog0000644000000000000000000000411612313576714011053 0ustar python-sfml (1.5.1.is.1.3+dfsg-1build2) trusty; urgency=medium * No-change rebuild to drop Python 3.3 support. -- Matthias Klose Sun, 23 Mar 2014 15:29:16 +0000 python-sfml (1.5.1.is.1.3+dfsg-1build1) trusty; urgency=medium * Rebuild for python3.4 as a supported python version. -- Matthias Klose Sat, 04 Jan 2014 19:32:44 +0000 python-sfml (1.5.1.is.1.3+dfsg-1) unstable; urgency=low * New upstream version 1.3 (from python-sfml.org) - This is a complete rewrite of the Python bindings for SFML2, and the new maintainer is using a different version numbering scheme. * Added myself to the list of uploaders * Change package priority from extra to optional * Bumped standards version (to 3.9.5) and debhelper compat (to 9) * Added Python 3 and documentation packages * Improve package description for debug packages -- James Cowgill Mon, 09 Dec 2013 17:50:52 +0000 python-sfml (1.5-2) unstable; urgency=low * Update for SFML 1.6 * Change my email address * Switch to source format 3.0 (quilt) * Bump debhelper compat from 6 to 7 * Bump standards version from .3 to .4 (no changes) -- Christoph Egger Sun, 09 May 2010 11:56:17 +0200 python-sfml (1.5-1) unstable; urgency=low * New upstream version * Bump standards version to 3.8.3 * Replace (C) by © in debian/copyright * Take patch from Ubuntu to build with Python 2.6 - Needs a minimum Python version for python.mk -- Christoph Egger Sun, 09 May 2010 11:29:39 +0200 python-sfml (1.4-1) unstable; urgency=low * New upstream version * Change my email address -- Christoph Egger Sun, 25 Jan 2009 15:48:10 +0100 python-sfml (1.3-1) unstable; urgency=low [ Christoph Egger ] * Initial release (Closes: #481667) * Adding README.source as there is now some work needed [ Gonéri Le Bouder ] * Avoid an useless linking on libpthread.so.0 by using LDFLAGS=-Wl,--as-needed -- Christoph Egger Tue, 08 Jul 2008 17:03:04 +0200 debian/python-sfml-doc.examples0000644000000000000000000000001312251145053013741 0ustar examples/* debian/clean0000644000000000000000000000004012251145053010163 0ustar include/pysfml/*.h src/sfml/*.h debian/python-sfml-doc.doc-base0000644000000000000000000000046612251145053013614 0ustar Document: python-sfml-doc Title: PySFML Documentation Author: Jonathan De Wachter, Edwin Marshal Abstract: Python bindings for SFML (Simple and Fast Multimedia Library) Section: Programming/Python Format: HTML Index: /usr/share/doc/python-sfml-doc/html/index.html Files: /usr/share/doc/python-sfml-doc/html/* debian/compat0000644000000000000000000000000212251145053010362 0ustar 9 debian/patches/0000755000000000000000000000000012251145053010613 5ustar debian/patches/spelling-length.patch0000644000000000000000000000166712251145053014742 0ustar Description: Fix a spelling error for lintian Author: James Cowgill Bug: https://github.com/Sonkun/python-sfml/pull/90 Applied-Upstream: https://github.com/Sonkun/python-sfml/commit/9184895efbc8a47ce51453ca8e3485dfa9ef659c Last-Update: 2013-10-28 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/src/sfml/audio.pyx +++ b/src/sfml/audio.pyx @@ -46,7 +46,7 @@ cdef class Listener: def __init__(self): - NotImplementedError("This class is not meant to be instanciated!") + NotImplementedError("This class is not meant to be instantiated!") @classmethod def get_global_volume(cls): @@ -107,7 +110,7 @@ cdef char* data = bdata if len(bdata) % 2: - raise ValueError("Chunk data lenght must be even as it represents a 16bit array") + raise ValueError("Chunk data length must be even as it represents a 16bit array") if self.delete_this: free(self.m_samples) debian/patches/disable-cython-headers.patch0000644000000000000000000000443212251145053016155 0ustar Description: Do not distribute Cython and C headers This is a temporary fix to prevent the installer spewing out the Cython and C header files which seem to cause lots of warnings and I don't really understand where they should go. Author: James Cowgill Last-Update: 2013-10-27 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/setup.py +++ b/setup.py @@ -115,46 +115,6 @@ [sources['network']], ['sfml-system', 'sfml-network']) - -major, minor, _, _ , _ = sys.version_info - -# Distribute Cython API (install cython headers) -# Path: {CYTHON_DIR}/Includes/libcpp/sfml.pxd -import cython -cython_path = os.path.join(os.path.dirname(cython.__file__),'Cython') - -cython_headers = [] - -pxd_files = glob(os.path.join('include', 'libcpp', '*')) -pxd_files.remove(os.path.join('include', 'libcpp', 'http')) -pxd_files.remove(os.path.join('include', 'libcpp', 'ftp')) -cython_headers.append((os.path.join(cython_path, 'Includes', 'libcpp'), pxd_files)) - -pxd_files = glob(os.path.join('include', 'libcpp', 'http', '*')) -cython_headers.append((os.path.join(cython_path, 'Includes', 'libcpp', 'http'), pxd_files)) - -pxd_files = glob(os.path.join('include', 'libcpp', 'ftp', '*')) -cython_headers.append((os.path.join(cython_path, 'Includes', 'libcpp', 'ftp'), pxd_files)) - -# Distribute C API (install C headers) - -if platform.system() == 'Windows': - # On Windows: C:\Python27\include\pysfml\*_api.h - c_api = [(sys.prefix +'\\include\\pysfml', glob('include/pysfml/*.h'))] -else: - # On Unix: /usr/include/pysfml/*_api.h - c_api = [('/usr/include/pysfml', glob('include/pysfml/*.h'))] - -# Install the Cython API -if platform.system() == 'Windows': - # On Windows: C:\Python27\Lib\pysfml\*.pxd - cython_api = [(sys.prefix + '\\Lib\\pysfml', glob('include/pysfml/*.pxd'))] -else: - # On Unix: /usr/lib/pythonX.Y/pysfml/*.pxd - cython_api = [('/usr/lib/python{0}.{1}/pysfml'.format(major, minor), glob('include/pysfml/*.pxd'))] - -files = cython_headers + c_api + cython_api - with open('README.rst', 'r') as f: long_description = f.read() @@ -165,7 +125,6 @@ ext_modules=ext_modules, package_dir={'': 'src'}, packages=['sfml'], - data_files=files, version='1.3.0', description='Python bindings for SFML', long_description=long_description, debian/patches/disable-intersphinx.patch0000644000000000000000000000174512251145053015617 0ustar Description: disable intersphinx This is disabled as it requires network access during the build Author: James Cowgill Last-Update: 2013-10-27 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -25,7 +25,7 @@ # Add any Sphinx extension module names here, as strings. They can be extensions # coming with Sphinx (named 'sphinx.ext.*') or your custom ones. -extensions = ['sphinx.ext.intersphinx'] +extensions = [] # Add any paths that contain templates here, relative to this directory. templates_path = ['_templates'] @@ -215,5 +215,5 @@ [u'Jonathan De Wachter'], 1) ] -intersphinx_mapping = {'sfemovie': ('http://sfemovie.python-sfml.org/1.0', None), - 'python': ('http://docs.python.org/3.3', None)} +#intersphinx_mapping = {'sfemovie': ('http://sfemovie.python-sfml.org/1.0', None), +# 'python': ('http://docs.python.org/3.3', None)} debian/patches/series0000644000000000000000000000011512251145053012025 0ustar spelling-length.patch disable-cython-headers.patch disable-intersphinx.patch debian/control0000644000000000000000000000715212251145053010574 0ustar Source: python-sfml Section: python Priority: optional Maintainer: Debian Games Team Uploaders: Christoph Egger , James Cowgill Build-Depends: debhelper (>= 9), libsfml-dev (>= 2.1), dh-python, python-sphinx, python-all-dev, python3-all-dev, python-all-dbg, python3-all-dbg, cython, cython-dbg, cython3, cython3-dbg, python-pytest, python3-pytest Standards-Version: 3.9.5 Vcs-Git: git://anonscm.debian.org/pkg-games/python-sfml.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-games/python-sfml.git Homepage: http://www.python-sfml.org/ X-Python-Version: >= 2.6 X-Python3-Version: >= 3.2 Package: python-sfml Architecture: any Depends: ${shlibs:Depends}, ${python:Depends}, ${misc:Depends} Provides: ${python:Provides} Description: Simple and Fast Multimedia Library - Python 2 Bindings SFML is an modern multimedia library offering a wide range of subsystems useful to produce an multimedia application. It offers OpenGL integration for hardware accelerated Graphics, Windowing and input support, audio and network facilities and supports besides GNU/Linux MS Windows and Mac OS X, too. . This package contains the Python 2 bindings for SFML. Package: python-sfml-dbg Section: debug Priority: extra Architecture: any Depends: ${shlibs:Depends}, ${python:Depends}, ${misc:Depends}, python-sfml (= ${binary:Version}) Description: Simple and Fast Multimedia Library - Python 2 Debug Bindings SFML is an modern multimedia library offering a wide range of subsystems useful to produce an multimedia application. It offers OpenGL integration for hardware accelerated Graphics, Windowing and input support, audio and network facilities and supports besides GNU/Linux MS Windows and Mac OS X, too. . This package contains the Python 2 bindings for SFML built against debug versions of Python. Package: python3-sfml Architecture: any Depends: ${shlibs:Depends}, ${python3:Depends}, ${misc:Depends} Provides: ${python3:Provides} Description: Simple and Fast Multimedia Library - Python 3 Bindings SFML is an modern multimedia library offering a wide range of subsystems useful to produce an multimedia application. It offers OpenGL integration for hardware accelerated Graphics, Windowing and input support, audio and network facilities and supports besides GNU/Linux MS Windows and Mac OS X, too. . This package contains the Python 3 bindings for SFML. Package: python3-sfml-dbg Section: debug Priority: extra Architecture: any Depends: ${shlibs:Depends}, ${python3:Depends}, ${misc:Depends}, python3-sfml (= ${binary:Version}) Description: Simple and Fast Multimedia Library - Python 3 Debug Bindings SFML is an modern multimedia library offering a wide range of subsystems useful to produce an multimedia application. It offers OpenGL integration for hardware accelerated Graphics, Windowing and input support, audio and network facilities and supports besides GNU/Linux MS Windows and Mac OS X, too. . This package contains the Python 3 bindings for SFML built against debug versions of Python. Package: python-sfml-doc Section: doc Architecture: all Depends: ${sphinxdoc:Depends}, ${misc:Depends} Description: Simple and Fast Multimedia Library - Documentation SFML is an modern multimedia library offering a wide range of subsystems useful to produce an multimedia application. It offers OpenGL integration for hardware accelerated Graphics, Windowing and input support, audio and network facilities and supports besides GNU/Linux MS Windows and Mac OS X, too. . This package contains documentation and examples for the Python bindings. debian/rules0000755000000000000000000000352412251145053010250 0ustar #!/usr/bin/make -f # -*- makefile -*- # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 export PYBUILD_NAME=sfml export PYBUILD_INSTALL_ARGS=--skip-build export PYBUILD_TEST_PYTEST=1 export PYBUILD_TEST_ARGS=$(CURDIR)/tests PKD = $(abspath $(dir $(MAKEFILE_LIST))) PKG = $(word 2,$(shell dpkg-parsechangelog -l$(PKD)/changelog | grep ^Source)) UVER = $(shell dpkg-parsechangelog -l$(PKD)/changelog | perl -ne 'print $$1 if m{^Version:\s+(?:\d+:)?(\d.*)(?:\-\d+.*)};') DTYPE = +dfsg VER ?= $(subst 1.5.is.,,$(subst $(DTYPE),,$(UVER))) %: dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild override_dh_sphinxdoc-arch: override_dh_auto_build-indep: $(MAKE) -C doc html override_dh_installchangelogs: dh_installchangelogs doc/source/changelog.rst override_dh_auto_clean: dh_auto_clean rm -rf doc/build # http://wiki.debian.org/onlyjob/get-orig-source .PHONY: get-orig-source get-orig-source: $(PKG)_$(VER)$(DTYPE).orig.tar.xz $(info I: $(PKG)_$(VER)$(DTYPE)) @ $(PKG)_$(VER)$(DTYPE).orig.tar.xz: @echo "# Downloading..." uscan --noconf --verbose --rename --destdir=$(CURDIR) --check-dirname-level=0 --force-download --download-version $(VER) $(PKD) $(if $(wildcard $(PKG)-$(VER)),$(error $(PKG)-$(VER) exist, aborting..)) @echo "# Extracting..." mkdir $(PKG)-$(VER) \ && tar -xf $(PKG)_$(VER).orig.tar.* --directory $(PKG)-$(VER) --strip-components 1 \ || $(RM) -r $(PKG)-$(VER) @echo "# Cleaning-up..." cd $(PKG)-$(VER) \ && $(RM) -r -v \ examples/embedding/image.jpg \ examples/extending/image.jpg \ examples/*/resources/ \ examples/*/data/ \ tests/runtests.py #$(RM) -v $(PKG)_$(VER).orig.tar.* @echo "# Packing..." find -L "$(PKG)-$(VER)" -xdev -type f -print | sort \ | XZ_OPT="-6v" tar -caf "$(PKG)_$(VER)$(DTYPE).orig.tar.xz" -T- --owner=root --group=root --mode=a+rX \ && $(RM) -r "$(PKG)-$(VER)" debian/source/0000755000000000000000000000000012251145053010464 5ustar debian/source/format0000644000000000000000000000001412251145053011672 0ustar 3.0 (quilt) debian/watch0000644000000000000000000000035212251145053010215 0ustar # See uscan(1) for format version=3 # From GitHub opts=filenamemangle=s/.+\/v?(\d\S*)\.tar\.gz/python-sfml-$1.tar.gz/,dversionmangle=s/1\.5\.is\.([^+]*)\+dfsg$/$1/ \ https://github.com/Sonkun/python-sfml/tags .*/v?(\d\S*)\.tar\.gz