Commit 27396c05 authored by Matthias Klose's avatar Matthias Klose Committed by Sebastian Ramacher

Imported Debian patch 0.7-svn20050721-5

parent f9d138c9
pylib for Debian
----------------
<possible notes regarding this package - if none, delete this file>
-- Guilherme Salgado <salgado@async.com.br>, Sat, 23 Jul 2005 10:48:20 -0300
codespeak-lib (0.7-svn20050721-5) unstable; urgency=low
* Convert to updated python policy. Closes: #373304.
* Add the upstream name 'pylib' in the short package description.
Closes: #361203.
-- Matthias Klose <doko@debian.org> Sat, 17 Jun 2006 13:43:51 +0200
codespeak-lib (0.7-svn20050721-4) unstable; urgency=low
* Fix debian/rules to not add #!python2.4 on the files for the 2.3 package.
......
......@@ -2,45 +2,20 @@ Source: codespeak-lib
Section: python
Priority: optional
Maintainer: Guilherme Salgado <salgado@async.com.br>
Build-Depends: python2.3-dev, python2.4-dev, python, debhelper (>= 4.2)
Standards-Version: 3.6.2
Build-Depends: python-all-dev (>= 2.3.5-10), python-central (>= 0.4.17), debhelper (>= 5.0.37.1)
XS-Python-Version: all
Standards-Version: 3.7.2
Package: python-codespeak-lib
Architecture: all
Depends: ${python:Depends}
Conflicts: python-pylib
Replaces: python-pylib
Description: A library containing py.test, greenlets and other niceties
It includes py.test, whose focues is to get a test environment that's easier
to use than the existing ones, py.xml ("a fast'n'easy way to generate
xml/html documents"), py.magic.greenlet ("Lightweight in-process concurrent
programming") and a lot more features. For a complete list, check
http://codespeak.net/py/
Package: python2.3-codespeak-lib
Architecture: any
Depends: ${python:Depends}, ${shlibs:Depends}
Conflicts: python2.3-pylib
Replaces: python2.3-pylib
Description: A library containing py.test, greenlets and other niceties
It includes py.test, whose focues is to get a test environment that's easier
to use than the existing ones, py.xml ("a fast'n'easy way to generate
xml/html documents"), py.magic.greenlet ("Lightweight in-process concurrent
programming") and a lot more features. For a complete list, check
http://codespeak.net/py/
.
This version works with python2.3
Package: python2.4-codespeak-lib
Architecture: any
Depends: ${python:Depends}, ${shlibs:Depends}
Conflicts: python2.4-pylib
Replaces: python2.4-pylib
Description: A library containing py.test, greenlets and other niceties
Conflicts: python-pylib, python2.3-codespeak-lib, python2.4-codespeak-lib
Replaces: python-pylib, python2.3-codespeak-lib, python2.4-codespeak-lib
Provides: ${python:Provides}
XB-Python-Version: ${python:Versions}
Description: The pylib library containing py.test, greenlets and other niceties
It includes py.test, whose focues is to get a test environment that's easier
to use than the existing ones, py.xml ("a fast'n'easy way to generate
xml/html documents"), py.magic.greenlet ("Lightweight in-process concurrent
programming") and a lot more features. For a complete list, check
http://codespeak.net/py/
.
This version works with python2.4
......@@ -5,11 +5,8 @@
DOC=usr/share/doc
PYVERS=$(subst -dev,,\
$(subst python,,\
$(filter python%-dev,\
$(shell sed -n '/^Build-Depends/s/,//gp' debian/control))))
PYVER := $(shell python -c 'import sys; print sys.version[:3]')
PYVERS := $(shell pyversions -vs)
PYVER := $(shell python -c 'import sys; print sys.version[:3]')
CURDIR := $(shell pwd)
......@@ -28,11 +25,6 @@ clean:
install: build install-prereq $(PYVERS:%=install-python%)
mkdir -p debian/python-codespeak-lib/usr/bin
for i in debian/python$(PYVER)-codespeak-lib/usr/bin/py.*; do \
iv=`basename $$i .python$(PYVER)`; \
ln -sf $${iv}.python$(PYVER) debian/python-codespeak-lib/usr/bin/$$iv; \
done
install-prereq:
dh_testdir
......@@ -40,39 +32,36 @@ install-prereq:
dh_clean -k
install-python%:
dh_installdirs -ppython$*-codespeak-lib \
usr/share/doc/python$*-codespeak-lib \
dh_installdirs -ppython-codespeak-lib \
usr/share/doc/python-codespeak-lib \
usr/bin
/usr/bin/python$* setup.py install --root debian/python$*-codespeak-lib
/usr/bin/python$* setup.py install --root debian/python-codespeak-lib
for f in debian/python$*-codespeak-lib/usr/bin/py.*; do \
b=`basename $$f`; \
t=debian/python$*-codespeak-lib/usr/bin/$${b}.python$*; \
sed "1s|.*|#!/usr/bin/python$*|" $$f > $$t; \
chmod 755 $$t; \
rm $$f; \
done
# for f in debian/python$*-codespeak-lib/usr/bin/py.*; do \
# b=`basename $$f`; \
# t=debian/python$*-codespeak-lib/usr/bin/$${b}.python$*; \
# sed "1s|.*|#!/usr/bin/python$*|" $$f > $$t; \
# chmod 755 $$t; \
# rm $$f; \
# done
rm -rf debian/python$*-codespeak-lib/usr/bin/_findpy.py
rm -rf debian/python$*-codespeak-lib/usr/bin/_makepyrelease.py
rm -rf debian/python$*-codespeak-lib/usr/bin/*.cmd
rm -rf debian/python-codespeak-lib/usr/bin/_findpy.py
rm -rf debian/python-codespeak-lib/usr/bin/_makepyrelease.py
rm -rf debian/python-codespeak-lib/usr/bin/*.cmd
chmod 644 debian/python$*-codespeak-lib/usr/lib/python$*/site-packages/py/execnet/script/shell.py
-find debian/python$*-codespeak-lib -name '*.png' -o -name '*.gif' | xargs chmod 644
mkdir -p debian/python$*-codespeak-lib/usr/share/lintian/overrides
echo "python$*-codespeak-lib: image-file-in-usr-lib" \
> debian/python$*-codespeak-lib/usr/share/lintian/overrides/python$*-codespeak-lib
chmod 644 debian/python-codespeak-lib/usr/lib/python$*/site-packages/py/execnet/script/shell.py
-find debian/python-codespeak-lib -name '*.png' -o -name '*.gif' | xargs chmod 644
rm -rf debian/python$*-codespeak-lib/usr/lib/python$*/site-packages/py/test/testing/data/syntax_error.py
rm -rf debian/python$*-codespeak-lib/usr/lib/python$*/site-packages/py/bin
rm -rf debian/python-codespeak-lib/usr/lib/python$*/site-packages/py/test/testing/data/syntax_error.py
rm -rf debian/python-codespeak-lib/usr/lib/python$*/site-packages/py/bin
-find . -name "*.py[co]" |xargs rm
: # Replace all '#!' calls to python with /usr/bin/python$*
: # Replace all '#!' calls to python with /usr/bin/python
: # and make them executable
for i in `find debian/python$*-codespeak-lib -type f`; do \
sed '1s,#!.*python[^ ]*\(.*\),#! /usr/bin/python$*\1,' \
for i in `find debian/python-codespeak-lib -type f`; do \
sed '1s,#!.*python[^ ]*\(.*\),#! /usr/bin/python\1,' \
$$i > $$i.temp; \
if cmp --quiet $$i $$i.temp; then \
rm -f $$i.temp; \
......@@ -83,30 +72,18 @@ install-python%:
fi; \
done
mv debian/python$*-codespeak-lib/usr/lib/python$*/site-packages/py/documentation/* \
debian/python$*-codespeak-lib/usr/share/doc/python$*-codespeak-lib/
rmdir debian/python$*-codespeak-lib/usr/lib/python$*/site-packages/py/documentation
dh_link -ppython$*-codespeak-lib \
/usr/share/doc/python$*-codespeak-lib \
rm -rf debian/python-codespeak-lib/usr/share/doc/python-codespeak-lib/*
mv debian/python-codespeak-lib/usr/lib/python$*/site-packages/py/documentation/* \
debian/python-codespeak-lib/usr/share/doc/python-codespeak-lib/
rmdir debian/python-codespeak-lib/usr/lib/python$*/site-packages/py/documentation
dh_link -ppython-codespeak-lib \
/usr/share/doc/python-codespeak-lib \
/usr/lib/python$*/site-packages/py/documentation
rm -rf debian/python$*-codespeak-lib/usr/lib/python$*/site-packages/py/LICENSE
rm -rf debian/python-codespeak-lib/usr/lib/python$*/site-packages/py/LICENSE
# Build architecture independant packages using the common target.
binary-indep: build install
dh_testdir
dh_testroot
dh_installchangelogs -i
dh_installdocs -i
rm -rf debian/python-codespeak-lib/usr/share/doc/python-codespeak-lib
ln -s python$(PYVER)-codespeak-lib debian/python-codespeak-lib/usr/share/doc/python-codespeak-lib
dh_compress -i -X.py
dh_fixperms -i
dh_python -i
dh_installdeb -i
dh_gencontrol -i
dh_md5sums -i
dh_builddeb -i
# Build architecture dependant packages using the common target.
binary-arch: build install
......@@ -118,6 +95,7 @@ binary-arch: build install
dh_strip -a
dh_compress -a -X.py
dh_fixperms -a
dh_pycentral -a
dh_python -a
dh_installdeb -a
dh_shlibdeps -a
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment