# HG changeset patch # User Paul Boddie # Date 1313073474 -7200 # Node ID f338d7d89ecd639177b206085ca07df0ea92a450 # Parent 2d68cee8aec4823e08266d8e9ff3da2536407422 Made various changes suggested by Julian Taylor in connection with dh_python2 usage and recent policy. diff -r 2d68cee8aec4 -r f338d7d89ecd debian/control --- a/debian/control Thu Aug 11 11:28:40 2011 +0200 +++ b/debian/control Thu Aug 11 16:37:54 2011 +0200 @@ -2,9 +2,7 @@ Section: python Priority: optional Maintainer: Paul Boddie -Build-Depends: debhelper (>= 5.0.38) -Build-Depends-Indep: python-all-dev (>= 2.3.5-11), python-central (>= 0.5.6), python-docutils -XS-Python-Version: all +Build-Depends: debhelper (>=7.0.50~), python-all (>= 2.6.6-3~), python-docutils Standards-Version: 3.9.2 Homepage:http://code.google.com/p/shedskin/ Vcs-Git: git://gitorious.org/shedskin/mainline.git @@ -12,8 +10,8 @@ Package: shedskin Architecture: all -Depends: ${misc:Depends}, ${python:Depends}, libgc-dev (>= 6.8), libpcre3-dev (>= 7.6), g++, make, python-dev -XB-Python-Version: ${python:Versions} +Depends: ${misc:Depends}, ${python:Depends} +Recommends: g++, make, python-dev, libgc-dev (>= 6.8), libpcre3-dev (>= 7.6) Description: Python-to-C++ compiler designed to speed up Python programs Shed Skin converts programs written in a static subset of Python to C++. The C++ code can be compiled to executable code, which can be run either diff -r 2d68cee8aec4 -r f338d7d89ecd debian/copyright --- a/debian/copyright Thu Aug 11 11:28:40 2011 +0200 +++ b/debian/copyright Thu Aug 11 16:37:54 2011 +0200 @@ -1,131 +1,103 @@ -This package was debianized by Paul Boddie . - -It was downloaded from http://shedskin.googlecode.com/ - -Upstream Authors: - - Mark Dufour - Jérémie Roquet - -Copyright: - - Copyright (c) 2005-2010 Mark Dufour - Copyright (c) 2009 Jérémie Roquet - -Licenses: - -Concerning the Shed Skin compiler, plus testing framework (shedskin/*.py, unit.py): - -Copyright (c) 2005-2010 Mark Dufour - -This program is free software; you can redistribute it and/or modify it under -the terms of the GNU 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 General Public License for more -details. - -You should have received a copy of the GNU General Public License along with -this program. If not, see . +Format: http://dep.debian.net/deps/dep5/ +Upstream-Name: shedskin +Upstream-Contact: Mark Dufour + Jérémie Roquet +Source: http://shedskin.googlecode.com/ +Comment: This package was debianized by Paul Boddie . --------- - -Concerning the C++ implementation of Python builtins and libraries -(shedskin/lib/*.?pp, shedskin/lib/os/*.?pp), except as otherwise mentioned -below: - -Copyright (c) 2005-2010 M. Dufour - -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: +Files: * +Copyright: Copyright 2005-2010 Mark Dufour +License: GPL-3+ + This program is free software; you can redistribute it and/or modify it under + the terms of the GNU 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 General Public License for more + details. + . + You should have received a copy of the GNU General Public License along with + this program. If not, see . +Comment: Shed Skin compiler, plus testing framework -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. - --------- - -Concerning the C++ implementation of Python itertools and heapq libraries -(shedskin/lib/(itertools|heapq).?pp): - -Copyright (c) 2009 Jérémie Roquet +Files: shedskin/lib/*.?pp shedskin/lib/os/*.?pp +Copyright: Copyright 2005-2010 Mark Dufour +License: Expat + 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. +Comment: C++ implementation of Python builtins and libraries + (except as otherwise mentioned below) -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. - --------- - -Concerning the shedskin/lib/random.cpp file: - -Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura, -All rights reserved. - -Redistribution and use in source and binary forms, with or without -modification, are permitted provided that the following conditions -are met: - - 1. Redistributions of source code must retain the above copyright - notice, this list of conditions and the following disclaimer. +Files: shedskin/lib/(itertools|heapq).?pp +Copyright: Copyright 2009 Jérémie Roquet +License: Expat + 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. +Comment: C++ implementation of Python itertools and heapq libraries - 2. Redistributions in binary form must reproduce the above copyright - notice, this list of conditions and the following disclaimer in the - documentation and/or other materials provided with the distribution. - - 3. The names of its contributors may not be used to endorse or promote - products derived from this software without specific prior written - permission. - -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE -ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE -LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR -CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF -SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS -INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN -CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) -ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE -POSSIBILITY OF SUCH DAMAGE. - - -Any feedback is very welcome. -http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html -email: m-mat @ math.sci.hiroshima-u.ac.jp (remove space) - --------- - -On Debian GNU/Linux systems, the complete text of the GNU General Public -License can be found in `/usr/share/common-licenses/GPL', with version 3 of -this license in `/usr/share/common-licenses/GPL-3'. - -The Debian packaging is (C) 2010, Paul Boddie and -is licensed under the GPL version 3 or later, see above. +Files: shedskin/lib/random.cpp +Copyright: Copyright 1997-2002 Makoto Matsumoto, Takuji Nishimura +License: BSD-3-clause + All rights reserved. + . + Redistribution and use in source and binary forms, with or without + modification, are permitted provided that the following conditions + are met: + . + 1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + . + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + . + 3. The names of its contributors may not be used to endorse or promote + products derived from this software without specific prior written + permission. + . + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE + ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE + POSSIBILITY OF SUCH DAMAGE. +Comment: Any feedback is very welcome. + http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html + email: m-mat@math.sci.hiroshima-u.ac.jp diff -r 2d68cee8aec4 -r f338d7d89ecd debian/rules --- a/debian/rules Thu Aug 11 11:28:40 2011 +0200 +++ b/debian/rules Thu Aug 11 16:37:54 2011 +0200 @@ -3,68 +3,9 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 -PYVERS=$(shell pyversions -vr) - -build: build-stamp - -build-stamp: $(PYVERS:%=build-python%) build-python-scripts build-manpages - touch $@ - -build-python%: - python$* setup.py build_py - touch $@ - -build-python-scripts: - python setup.py build_scripts - touch $@ - -build-manpages: - python scripts/rst2man.py doc/shedskin.rst debian/shedskin.1 - -clean: - dh_testdir - dh_testroot - rm -f *-stamp - rm -rf build* - rm -f debian/shedskin.1 - find . -name '*.py[co]' | xargs rm -f - dh_clean - -install: build install-prereq $(PYVERS:%=install-python%) install-python-scripts - # Script fixing would appear here. +%: + dh $@ --with python2 -install-prereq: - dh_testdir - dh_testroot - dh_clean -k - -install-python%: - python$* setup.py install_lib --install-dir $(CURDIR)/debian/shedskin/usr/lib/python$*/site-packages - -install-python-scripts: - python setup.py install_scripts --install-dir $(CURDIR)/debian/shedskin/usr/bin - -# Build architecture-independent files here. - -binary-indep: install - dh_testdir -i - dh_testroot -i - dh_pycentral -i - dh_install -i - dh_installdocs -i - dh_installchangelogs -i - dh_installman -i debian/shedskin.1 - dh_compress -i - dh_fixperms -i - dh_installdeb -i - dh_gencontrol -i - dh_md5sums -i - dh_builddeb -i - -# Build architecture-dependent files here. - -binary-arch: - # Empty rule for this package. - -binary: binary-indep binary-arch -.PHONY: build clean binary-arch binary-indep binary install +override_dh_auto_build: + dh_auto_build + rst2man doc/shedskin.rst debian/shedskin.1