shedskin-packaging

Changeset

41:f338d7d89ecd
2011-08-11 Paul Boddie raw files shortlog changelog graph Made various changes suggested by Julian Taylor in connection with dh_python2 usage and recent policy.
debian/control (file) debian/copyright (file) debian/rules (file)
     1.1 --- a/debian/control	Thu Aug 11 11:28:40 2011 +0200
     1.2 +++ b/debian/control	Thu Aug 11 16:37:54 2011 +0200
     1.3 @@ -2,9 +2,7 @@
     1.4  Section: python
     1.5  Priority: optional
     1.6  Maintainer: Paul Boddie <paul@boddie.org.uk>
     1.7 -Build-Depends: debhelper (>= 5.0.38)
     1.8 -Build-Depends-Indep: python-all-dev (>= 2.3.5-11), python-central (>= 0.5.6), python-docutils
     1.9 -XS-Python-Version: all
    1.10 +Build-Depends: debhelper (>=7.0.50~), python-all (>= 2.6.6-3~), python-docutils
    1.11  Standards-Version: 3.9.2
    1.12  Homepage:http://code.google.com/p/shedskin/
    1.13  Vcs-Git: git://gitorious.org/shedskin/mainline.git
    1.14 @@ -12,8 +10,8 @@
    1.15  
    1.16  Package: shedskin
    1.17  Architecture: all
    1.18 -Depends: ${misc:Depends}, ${python:Depends}, libgc-dev (>= 6.8), libpcre3-dev (>= 7.6), g++, make, python-dev
    1.19 -XB-Python-Version: ${python:Versions}
    1.20 +Depends: ${misc:Depends}, ${python:Depends}
    1.21 +Recommends: g++, make, python-dev, libgc-dev (>= 6.8), libpcre3-dev (>= 7.6)
    1.22  Description: Python-to-C++ compiler designed to speed up Python programs
    1.23   Shed Skin converts programs written in a static subset of Python to C++.
    1.24   The C++ code can be compiled to executable code, which can be run either
     2.1 --- a/debian/copyright	Thu Aug 11 11:28:40 2011 +0200
     2.2 +++ b/debian/copyright	Thu Aug 11 16:37:54 2011 +0200
     2.3 @@ -1,131 +1,103 @@
     2.4 -This package was debianized by Paul Boddie <paul@boddie.org.uk>.
     2.5 -
     2.6 -It was downloaded from http://shedskin.googlecode.com/
     2.7 -
     2.8 -Upstream Authors:
     2.9 -
    2.10 -    Mark Dufour <mark.dufour@gmail.com>
    2.11 -    Jérémie Roquet <arkanosis@gmail.com>
    2.12 -
    2.13 -Copyright:
    2.14 -
    2.15 -    Copyright (c) 2005-2010 Mark Dufour
    2.16 -    Copyright (c) 2009 Jérémie Roquet <arkanosis@gmail.com>
    2.17 -
    2.18 -Licenses:
    2.19 -
    2.20 -Concerning the Shed Skin compiler, plus testing framework (shedskin/*.py, unit.py):
    2.21 -
    2.22 -Copyright (c) 2005-2010 Mark Dufour
    2.23 -
    2.24 -This program is free software; you can redistribute it and/or modify it under
    2.25 -the terms of the GNU General Public License as published by the Free Software
    2.26 -Foundation; either version 3 of the License, or (at your option) any later
    2.27 -version.
    2.28 -
    2.29 -This program is distributed in the hope that it will be useful, but WITHOUT
    2.30 -ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
    2.31 -FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
    2.32 -details.
    2.33 -
    2.34 -You should have received a copy of the GNU General Public License along with
    2.35 -this program.  If not, see <http://www.gnu.org/licenses/>.
    2.36 +Format: http://dep.debian.net/deps/dep5/
    2.37 +Upstream-Name: shedskin
    2.38 +Upstream-Contact: Mark Dufour <mark.dufour@gmail.com>
    2.39 +                  Jérémie Roquet <arkanosis@gmail.com>
    2.40 +Source: http://shedskin.googlecode.com/
    2.41 +Comment: This package was debianized by Paul Boddie <paul@boddie.org.uk>.
    2.42  
    2.43 ---------
    2.44 -
    2.45 -Concerning the C++ implementation of Python builtins and libraries
    2.46 -(shedskin/lib/*.?pp, shedskin/lib/os/*.?pp), except as otherwise mentioned
    2.47 -below:
    2.48 -
    2.49 -Copyright (c) 2005-2010 M. Dufour
    2.50 -
    2.51 -Permission is hereby granted, free of charge, to any person obtaining a copy
    2.52 -of this software and associated documentation files (the "Software"), to deal
    2.53 -in the Software without restriction, including without limitation the rights
    2.54 -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    2.55 -copies of the Software, and to permit persons to whom the Software is
    2.56 -furnished to do so, subject to the following conditions:
    2.57 +Files: *
    2.58 +Copyright: Copyright 2005-2010 Mark Dufour
    2.59 +License: GPL-3+
    2.60 + This program is free software; you can redistribute it and/or modify it under
    2.61 + the terms of the GNU General Public License as published by the Free Software
    2.62 + Foundation; either version 3 of the License, or (at your option) any later
    2.63 + version.
    2.64 + .
    2.65 + This program is distributed in the hope that it will be useful, but WITHOUT
    2.66 + ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
    2.67 + FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
    2.68 + details.
    2.69 + .
    2.70 + You should have received a copy of the GNU General Public License along with
    2.71 + this program.  If not, see <http://www.gnu.org/licenses/>.
    2.72 +Comment: Shed Skin compiler, plus testing framework
    2.73  
    2.74 -The above copyright notice and this permission notice shall be included in all
    2.75 -copies or substantial portions of the Software.
    2.76 -
    2.77 -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
    2.78 -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
    2.79 -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
    2.80 -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
    2.81 -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
    2.82 -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
    2.83 -SOFTWARE.
    2.84 -
    2.85 ---------
    2.86 -
    2.87 -Concerning the C++ implementation of Python itertools and heapq libraries
    2.88 -(shedskin/lib/(itertools|heapq).?pp):
    2.89 -
    2.90 -Copyright (c) 2009 Jérémie Roquet <arkanosis@gmail.com>
    2.91 +Files: shedskin/lib/*.?pp shedskin/lib/os/*.?pp
    2.92 +Copyright: Copyright 2005-2010 Mark Dufour
    2.93 +License: Expat
    2.94 + Permission is hereby granted, free of charge, to any person obtaining a copy
    2.95 + of this software and associated documentation files (the "Software"), to deal
    2.96 + in the Software without restriction, including without limitation the rights
    2.97 + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
    2.98 + copies of the Software, and to permit persons to whom the Software is
    2.99 + furnished to do so, subject to the following conditions:
   2.100 + .
   2.101 + The above copyright notice and this permission notice shall be included in all
   2.102 + copies or substantial portions of the Software.
   2.103 + .
   2.104 + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   2.105 + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   2.106 + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   2.107 + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   2.108 + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   2.109 + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
   2.110 + SOFTWARE.
   2.111 +Comment: C++ implementation of Python builtins and libraries
   2.112 + (except as otherwise mentioned below)
   2.113  
   2.114 -Permission is hereby granted, free of charge, to any person obtaining a copy
   2.115 -of this software and associated documentation files (the "Software"), to deal
   2.116 -in the Software without restriction, including without limitation the rights
   2.117 -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
   2.118 -copies of the Software, and to permit persons to whom the Software is
   2.119 -furnished to do so, subject to the following conditions:
   2.120 -
   2.121 -The above copyright notice and this permission notice shall be included in all
   2.122 -copies or substantial portions of the Software.
   2.123 -
   2.124 -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   2.125 -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   2.126 -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   2.127 -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   2.128 -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   2.129 -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
   2.130 -SOFTWARE.
   2.131 -
   2.132 ---------
   2.133 -
   2.134 -Concerning the shedskin/lib/random.cpp file:
   2.135 -
   2.136 -Copyright (C) 1997 - 2002, Makoto Matsumoto and Takuji Nishimura,
   2.137 -All rights reserved.
   2.138 -
   2.139 -Redistribution and use in source and binary forms, with or without
   2.140 -modification, are permitted provided that the following conditions
   2.141 -are met:
   2.142 -
   2.143 - 1. Redistributions of source code must retain the above copyright
   2.144 -    notice, this list of conditions and the following disclaimer.
   2.145 +Files: shedskin/lib/(itertools|heapq).?pp
   2.146 +Copyright: Copyright 2009 Jérémie Roquet <arkanosis@gmail.com>
   2.147 +License: Expat
   2.148 + Permission is hereby granted, free of charge, to any person obtaining a copy
   2.149 + of this software and associated documentation files (the "Software"), to deal
   2.150 + in the Software without restriction, including without limitation the rights
   2.151 + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
   2.152 + copies of the Software, and to permit persons to whom the Software is
   2.153 + furnished to do so, subject to the following conditions:
   2.154 + .
   2.155 + The above copyright notice and this permission notice shall be included in all
   2.156 + copies or substantial portions of the Software.
   2.157 + .
   2.158 + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
   2.159 + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
   2.160 + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
   2.161 + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
   2.162 + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
   2.163 + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
   2.164 + SOFTWARE.
   2.165 +Comment: C++ implementation of Python itertools and heapq libraries
   2.166  
   2.167 - 2. Redistributions in binary form must reproduce the above copyright
   2.168 -    notice, this list of conditions and the following disclaimer in the
   2.169 -    documentation and/or other materials provided with the distribution.
   2.170 -
   2.171 - 3. The names of its contributors may not be used to endorse or promote
   2.172 -    products derived from this software without specific prior written
   2.173 -    permission.
   2.174 -
   2.175 -THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
   2.176 -AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   2.177 -IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   2.178 -ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
   2.179 -LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   2.180 -CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   2.181 -SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   2.182 -INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   2.183 -CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   2.184 -ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   2.185 -POSSIBILITY OF SUCH DAMAGE.
   2.186 -
   2.187 -
   2.188 -Any feedback is very welcome.
   2.189 -http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html
   2.190 -email: m-mat @ math.sci.hiroshima-u.ac.jp (remove space)
   2.191 -
   2.192 ---------
   2.193 -
   2.194 -On Debian GNU/Linux systems, the complete text of the GNU General Public
   2.195 -License can be found in `/usr/share/common-licenses/GPL', with version 3 of
   2.196 -this license in `/usr/share/common-licenses/GPL-3'.
   2.197 -
   2.198 -The Debian packaging is (C) 2010, Paul Boddie <paul@boddie.org.uk> and
   2.199 -is licensed under the GPL version 3 or later, see above.
   2.200 +Files: shedskin/lib/random.cpp
   2.201 +Copyright: Copyright 1997-2002 Makoto Matsumoto, Takuji Nishimura
   2.202 +License: BSD-3-clause
   2.203 + All rights reserved.
   2.204 + .
   2.205 + Redistribution and use in source and binary forms, with or without
   2.206 + modification, are permitted provided that the following conditions
   2.207 + are met:
   2.208 + .
   2.209 +  1. Redistributions of source code must retain the above copyright
   2.210 +     notice, this list of conditions and the following disclaimer.
   2.211 + .
   2.212 +  2. Redistributions in binary form must reproduce the above copyright
   2.213 +     notice, this list of conditions and the following disclaimer in the
   2.214 +     documentation and/or other materials provided with the distribution.
   2.215 + .
   2.216 +  3. The names of its contributors may not be used to endorse or promote
   2.217 +     products derived from this software without specific prior written
   2.218 +     permission.
   2.219 + .
   2.220 + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
   2.221 + AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
   2.222 + IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
   2.223 + ARE DISCLAIMED.  IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
   2.224 + LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
   2.225 + CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
   2.226 + SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
   2.227 + INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
   2.228 + CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
   2.229 + ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
   2.230 + POSSIBILITY OF SUCH DAMAGE.
   2.231 +Comment: Any feedback is very welcome.
   2.232 + http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/emt.html
   2.233 + email: m-mat@math.sci.hiroshima-u.ac.jp
     3.1 --- a/debian/rules	Thu Aug 11 11:28:40 2011 +0200
     3.2 +++ b/debian/rules	Thu Aug 11 16:37:54 2011 +0200
     3.3 @@ -3,68 +3,9 @@
     3.4  # Uncomment this to turn on verbose mode.
     3.5  #export DH_VERBOSE=1
     3.6  
     3.7 -PYVERS=$(shell pyversions -vr)
     3.8 -
     3.9 -build: build-stamp
    3.10 -
    3.11 -build-stamp: $(PYVERS:%=build-python%) build-python-scripts build-manpages
    3.12 -	touch $@
    3.13 -
    3.14 -build-python%:
    3.15 -	python$* setup.py build_py
    3.16 -	touch $@
    3.17 -
    3.18 -build-python-scripts:
    3.19 -	python setup.py build_scripts
    3.20 -	touch $@
    3.21 -
    3.22 -build-manpages:
    3.23 -	python scripts/rst2man.py doc/shedskin.rst debian/shedskin.1
    3.24 -
    3.25 -clean:
    3.26 -	dh_testdir
    3.27 -	dh_testroot
    3.28 -	rm -f *-stamp
    3.29 -	rm -rf build*
    3.30 -	rm -f debian/shedskin.1
    3.31 -	find . -name '*.py[co]' | xargs rm -f
    3.32 -	dh_clean
    3.33 -
    3.34 -install: build install-prereq $(PYVERS:%=install-python%) install-python-scripts
    3.35 -	# Script fixing would appear here.
    3.36 +%:
    3.37 +	dh $@ --with python2
    3.38  
    3.39 -install-prereq:
    3.40 -	dh_testdir
    3.41 -	dh_testroot
    3.42 -	dh_clean -k
    3.43 -
    3.44 -install-python%:
    3.45 -	python$* setup.py install_lib --install-dir $(CURDIR)/debian/shedskin/usr/lib/python$*/site-packages
    3.46 -
    3.47 -install-python-scripts:
    3.48 -	python setup.py install_scripts --install-dir $(CURDIR)/debian/shedskin/usr/bin
    3.49 -
    3.50 -# Build architecture-independent files here.
    3.51 -
    3.52 -binary-indep: install
    3.53 -	dh_testdir -i
    3.54 -	dh_testroot -i
    3.55 -	dh_pycentral -i
    3.56 -	dh_install -i
    3.57 -	dh_installdocs -i
    3.58 -	dh_installchangelogs -i
    3.59 -	dh_installman -i debian/shedskin.1
    3.60 -	dh_compress -i
    3.61 -	dh_fixperms -i
    3.62 -	dh_installdeb -i
    3.63 -	dh_gencontrol -i
    3.64 -	dh_md5sums -i
    3.65 -	dh_builddeb -i
    3.66 -
    3.67 -# Build architecture-dependent files here.
    3.68 -
    3.69 -binary-arch:
    3.70 -	# Empty rule for this package.
    3.71 -
    3.72 -binary: binary-indep binary-arch
    3.73 -.PHONY: build clean binary-arch binary-indep binary install
    3.74 +override_dh_auto_build:
    3.75 +	dh_auto_build
    3.76 +	rst2man doc/shedskin.rst debian/shedskin.1