[Python-modules-commits] r3953 - in packages/numpy/trunk/debian (7 files)
kumanna-guest at users.alioth.debian.org
kumanna-guest at users.alioth.debian.org
Sat Dec 15 13:30:17 UTC 2007
Date: Saturday, December 15, 2007 @ 13:30:16
Author: kumanna-guest
Revision: 3953
* debian/rules:
+ Modify not to use CDBS.
+ Use quilt for patches.
* debian/control:
+ Don't Build-Depend on CDBS.
+ Build-Depend on quilt.
* debian/python-numpy.docs:
+ Install DEV_README.txt THANKS.txt using dh_installdocs.
Added:
packages/numpy/trunk/debian/patches/series
packages/numpy/trunk/debian/python-numpy.docs
Modified:
packages/numpy/trunk/debian/changelog
packages/numpy/trunk/debian/control
packages/numpy/trunk/debian/python-numpy.install
packages/numpy/trunk/debian/rules
Deleted:
packages/numpy/trunk/debian/dirs
Modified: packages/numpy/trunk/debian/changelog
===================================================================
--- packages/numpy/trunk/debian/changelog 2007-12-14 22:29:33 UTC (rev 3952)
+++ packages/numpy/trunk/debian/changelog 2007-12-15 13:30:16 UTC (rev 3953)
@@ -13,6 +13,16 @@
[ Ondrej Certik ]
* debian/pycompat removed
+ [ Kumar Appaiah ]
+ * debian/rules:
+ + Modify not to use CDBS.
+ + Use quilt for patches.
+ * debian/control:
+ + Don't Build-Depend on CDBS.
+ + Build-Depend on quilt.
+ * debian/python-numpy.docs:
+ + Install DEV_README.txt THANKS.txt using dh_installdocs.
+
-- Kumar Appaiah <akumar at ee.iitm.ac.in> Thu, 06 Dec 2007 09:10:41 +0530
python-numpy (1:1.0.4-2) unstable; urgency=low
Modified: packages/numpy/trunk/debian/control
===================================================================
--- packages/numpy/trunk/debian/control 2007-12-14 22:29:33 UTC (rev 3952)
+++ packages/numpy/trunk/debian/control 2007-12-15 13:30:16 UTC (rev 3953)
@@ -3,7 +3,7 @@
Priority: optional
Maintainer: Debian Python Modules Team <python-modules-team at lists.alioth.debian.org>
Uploaders: Marco Presi (Zufus) <zufus at debian.org>, Alexandre Fayolle <afayolle at debian.org>, José Fonseca <j_r_fonseca at yahoo.co.uk>, Matthias Klose <doko at debian.org>, Ondrej Certik <ondrej at certik.cz>, Kumar Appaiah <akumar at ee.iitm.ac.in>
-Build-Depends: cdbs (>= 0.4.43), python-all-dev, python-all-dbg, python-support, refblas3-dev [!arm !m68k], lapack3-dev [!arm !m68k], debhelper (>= 5.0.38), g77, patchutils, python-docutils, fftw3-dev
+Build-Depends: python-all-dev, python-all-dbg, python-support, refblas3-dev [!arm !m68k], lapack3-dev [!arm !m68k], debhelper (>= 5.0.38), g77, patchutils, python-docutils, fftw3-dev, quilt
Standards-Version: 3.7.3
Vcs-Svn: svn://svn.debian.org/svn/python-modules/packages/numpy/trunk
Vcs-Browser: http://svn.debian.org/wsvn/python-modules/packages/numpy/trunk/
Deleted: packages/numpy/trunk/debian/dirs
===================================================================
--- packages/numpy/trunk/debian/dirs 2007-12-14 22:29:33 UTC (rev 3952)
+++ packages/numpy/trunk/debian/dirs 2007-12-15 13:30:16 UTC (rev 3953)
@@ -1,2 +0,0 @@
-usr/bin
-usr/share/doc
Added: packages/numpy/trunk/debian/patches/series
===================================================================
--- packages/numpy/trunk/debian/patches/series (rev 0)
+++ packages/numpy/trunk/debian/patches/series 2007-12-15 13:30:16 UTC (rev 3953)
@@ -0,0 +1 @@
+01_fix_man_hyphens.patch
Added: packages/numpy/trunk/debian/python-numpy.docs
===================================================================
--- packages/numpy/trunk/debian/python-numpy.docs (rev 0)
+++ packages/numpy/trunk/debian/python-numpy.docs 2007-12-15 13:30:16 UTC (rev 3953)
@@ -0,0 +1,2 @@
+DEV_README.txt
+THANKS.txt
Modified: packages/numpy/trunk/debian/python-numpy.install
===================================================================
--- packages/numpy/trunk/debian/python-numpy.install 2007-12-14 22:29:33 UTC (rev 3952)
+++ packages/numpy/trunk/debian/python-numpy.install 2007-12-15 13:30:16 UTC (rev 3953)
@@ -11,3 +11,4 @@
usr/bin/f2py*
usr/lib/python*/site-packages/numpy/f2py/*.py
usr/lib/python*/site-packages/numpy/f2py/src
+usr/share/man/man1/f2py*
Modified: packages/numpy/trunk/debian/rules
===================================================================
--- packages/numpy/trunk/debian/rules 2007-12-14 22:29:33 UTC (rev 3952)
+++ packages/numpy/trunk/debian/rules 2007-12-15 13:30:16 UTC (rev 3953)
@@ -1,49 +1,55 @@
#!/usr/bin/make -f
-# Sample debian/rules that uses cdbs. Originaly written by Robert Millan.
-# This file is public domain.
-DEB_AUTO_CLEANUP_RCS := yes
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
-DEB_PYTHON_SYSTEM=pysupport
-PYVERS=$(shell pyversions -vr debian/control)
+include /usr/share/quilt/quilt.make
-DEB_MAKE_CLEAN_TARGET := clean
-DEB_DH_INSTALL_SOURCEDIR := debian/tmp
+# The versions of python currently supported
+PYVERS = $(shell pyversions -vr debian/control)
-DEB_DESTDIR=$(CURDIR)/debian/tmp
+build-common: build-common-stamp
+build-common-stamp:
+ dh_testdir
+ touch $@
-DEB_INSTALL_MANPAGES_python-f2py := numpy/f2py/f2py.1
-DEB_INSTALL_DOCS_python-numpy := DEV_README.txt THANKS.txt
+build: build-common build-stamp
+build-stamp: patch $(PYVERS:%=build-python%)
+ touch $@
-DEB_PYTHON_PACKAGES_EXCLUDE=python-numpy-dbg
+build-python%:
+ python$* setup.py build
-include /usr/share/cdbs/1/rules/debhelper.mk
-include /usr/share/cdbs/1/class/python-distutils.mk
-include /usr/share/cdbs/1/rules/simple-patchsys.mk
+clean: unpatch
+ dh_testdir
+ dh_testroot
+ rm -f *-stamp
+ rm -rf compile build
+ find -name '*.py[co]' -exec rm -f {} \;
+ dh_clean
-clean::
- -rm -rf `find -name build -type d`
- -rm -rf `find . -name "*.pyc" -type f`
+install: build install-prereq $(PYVERS:%=install-python%)
+ [ ! -f ./debian/tmp/usr/bin/f2py`pyversions -vd` ] || mv ./debian/tmp/usr/bin/f2py`pyversions -vd` ./debian/tmp/usr/bin/f2py
+ mv debian/tmp/usr/bin/f2py debian/tmp/f2py`pyversions -vd`
+ (cd debian/tmp/usr/bin;ln -s f2py`pyversions -vd` f2py)
-install/python-numpy::
- : # Adding documentation
- install -d $(CURDIR)/debian/python-numpy/usr/share/doc/python-numpy
- cp -r $(DEB_DESTDIR)/usr/lib/python$(cdbs_python_current_version)/site-packages/numpy/doc/* \
- $(CURDIR)/debian/python-numpy/usr/share/doc/python-numpy/
- cp $(DEB_DESTDIR)/usr/lib/python$(cdbs_python_current_version)/site-packages/numpy/doc/README.txt \
- $(CURDIR)/debian/python-numpy/usr/share/doc/python-numpy/README.doc.txt
+install-prereq:
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+
+install-python%:
+ python$* setup.py install --root `pwd`/debian/tmp
+ find debian/tmp -name '*.py[co]' -exec rm -f {} \;
+
: # Adding links to manpages
- mkdir -p debian/python-numpy/usr/share/man/man1
+ mkdir -p debian/tmp/usr/share/man/man1
for v in $(PYVERS); do \
- ln -sf f2py.1 debian/python-numpy/usr/share/man/man1/f2py$$v.1; \
- ln -sf f2py.1 debian/python-numpy/usr/share/man/man1/f2py$$v-dbg.1; \
+ ln -sf f2py.1 debian/tmp/usr/share/man/man1/f2py$$v.1; \
+ ln -sf f2py.1 debian/tmp/usr/share/man/man1/f2py$$v-dbg.1; \
done
- : # Add unversioned numpy script
- mv $(DEB_DESTDIR)/usr/bin/f2py $(DEB_DESTDIR)/usr/bin/f2py$(cdbs_python_current_version)
- ln -s f2py$(cdbs_python_current_version) debian/python-numpy/usr/bin/f2py
-
: # Make Python scripts executable
for i in `find debian/tmp -type f`; do \
sed '1s,#!.*python[^ ]*\(.*\),#! /usr/bin/python\1,' \
@@ -56,31 +62,34 @@
echo "fixed interpreter: $$i"; \
fi; \
done
-
-binary-install/python-numpy-doc::
- rst2html numpy/f2py/docs/usersguide/index.txt > $(CURDIR)/debian/$(cdbs_curpkg)/usr/share/doc/$(cdbs_curpkg)/index.html
- cp -r $(CURDIR)/numpy/f2py/docs/* $(CURDIR)/debian/$(cdbs_curpkg)/usr/share/doc/$(cdbs_curpkg)
- chmod -x $(CURDIR)/debian/$(cdbs_curpkg)/usr/share/doc/$(cdbs_curpkg)/usersguide/setup_example.py
-
-binary-fixup/python-numpy-ext::
- dh_pysupport -p$(cdbs_curpkg)
- dh_python -p$(cdbs_curpkg)
-
-build/python-numpy-dbg::
- set -e; \
- for i in $(cdbs_python_build_versions); do \
- python$$i-dbg ./setup.py build; \
+ mkdir -p debian/python-numpy/usr/share/man/man1
+ for v in $(PYVERS); do \
+ ln -sf f2py.1 debian/python-numpy/usr/share/man/man1/f2py$$v.1; \
+ ln -sf f2py.1 debian/python-numpy/usr/share/man/man1/f2py$$v-dbg.1; \
done
-install/python-numpy-dbg::
- for i in $(cdbs_python_build_versions); do \
- python$$i-dbg ./setup.py install --root $(CURDIR)/debian/python-numpy-dbg; \
- done
- find debian/python-numpy-dbg \
- ! -type d ! -name '*_d.so' | xargs rm -f
- find debian/python-numpy-dbg -depth -empty -exec rmdir {} \;
+binary-indep: build install
-binary-predeb/python-numpy-dbg::
- rm -rf debian/python-numpy-dbg/usr/share/doc/python-numpy-dbg
- ln -s python-numpy debian/python-numpy-dbg/usr/share/doc/python-numpy-dbg
+# Build architecture-dependent files here.
+# Pass -i to all debhelper commands in this target to reduce clutter.
+binary-arch: build install
+ dh_testdir -i -a
+ dh_testroot -i -a
+ dh_installdocs -i -a
+ dh_install --sourcedir=debian/tmp -i -a
+ dh_installman -a
+ dh_installexamples -i -a
+ dh_installchangelogs -i -a
+ dh_pysupport -i -a
+ dh_link -i -a
+ dh_strip -a --dbg-package=python-numpy-dbg
+ dh_compress -i -X.py -a
+ dh_fixperms -i -X.py -a
+ dh_makeshlibs -a
+ dh_installdeb -i -a
+ dh_gencontrol -i -a
+ dh_md5sums -i -a
+ dh_builddeb -i -a
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
More information about the Python-modules-commits
mailing list