[pysparse] 04/09: Clean d/rules. (Closes: #822018)
Anton Gladky
gladk at moszumanska.debian.org
Sat Sep 3 21:37:05 UTC 2016
This is an automated email from the git hooks/post-receive script.
gladk pushed a commit to branch master
in repository pysparse.
commit c6640148d611540cee5072e7832be947cc449907
Author: Anton Gladky <gladk at debian.org>
Date: Sat Sep 3 23:24:52 2016 +0200
Clean d/rules. (Closes: #822018)
---
debian/rules | 138 +++--------------------------------------------------------
1 file changed, 5 insertions(+), 133 deletions(-)
diff --git a/debian/rules b/debian/rules
index 2fa2af5..bdb14c9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,136 +1,8 @@
#!/usr/bin/make -f
-# -*- mode: makefile -*-
-# Made with the aid of debmake, by Christoph Lameter,
-# based on the sample debian/rules file for GNU hello by Ian Jackson.
-export SHELL = /bin/bash
+%:
+ dh $@ --with python2
-# all versions
-PYVERS := $(filter-out 2.3, $(shell pyversions -vs))
-PYVERS := $(shell pyversions -vs)
-PYVER := $(shell python -c 'import sys; print sys.version[:3]')
-
-PYSITE = usr/lib/python$(PYVER)/site-packages
-
-p_sps = python-sparse
-p_exa = python-sparse-examples
-
-d_sps = debian/$(p_sps)
-
-d_exa = debian/$(p_exa)
-
-QUILT := quilt --quiltrc debian/patches/quiltrc
-
-DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
-
-build: stamp-patch stamp-build
-stamp-build: $(PYVERS:%=stamp-build-%)
- touch $@
-
-stamp-build-%:
- dh_testdir
- python$* ./setup.py build
- touch $@
-
-stamp-patch:
- dh_testdir
- $(QUILT) push -a || test $$? = 2
- touch $@
-
-unpatch:
- dh_testdir
- if [ -e .pc ]; then \
- $(QUILT) pop -a -R || test $$? = 2; \
- rm -f patch-stamp; \
- fi
-
-clean: unpatch
- dh_testdir
- dh_testroot
- rm -f stamp-*
- -rm -rf `find -name build -type d`
-
- dh_clean
-
-install: build pre-install $(PYVERS:%=stamp-install-%)
-pre-install:
- dh_testdir
- dh_testroot
- dh_clean -k
- dh_installdirs
-
-stamp-install-%: stamp-build-%
- python$* setup.py install --prefix=`pwd`/debian/python-sparse/usr --install-layout=deb
-
- -find debian/python-sparse -name '*.py[co]' | xargs rm -f
-
- : # Replace all '#!' calls to python with python
- : # and make them executable
- for i in `find debian/python-sparse -type f`; do \
- sed '1s,#!.*python[^ ]*\(.*\),#! /usr/bin/python\1,' \
- $$i > $$i.temp; \
- if cmp --quiet $$i $$i.temp; then \
- rm -f $$i.temp; \
- else \
- mv -f $$i.temp $$i; \
- chmod 755 $$i; \
- echo "fixed interpreter: $$i"; \
- fi; \
- done
-
-binary-indep: build install
- dh_testdir
- dh_testroot
-
- dh_installdirs -p$(p_exa) $(PYSITE) usr/share/doc/$(p_exa)
-
- dh_installdocs -p$(p_sps) README
- dh_installdocs -i -X$(p_sps)
- dh_installchangelogs -i CHANGES
-
- install -d $(d_exa)/$(PYSITE)/SparsExamples
- cp -a Examples/* $(d_exa)/$(PYSITE)/SparsExamples
- install -m 644 Doc/spmatrix_manual.pdf $(d_exa)/usr/share/doc/$(p_exa)/
-
- : # Replace all '#!' calls to python with python
- : # and make them executable
- for i in `find $(d_exa) -type f`; do \
- sed '1s,#!.*python[^ ]*\(.*\),#! /usr/bin/python\1,' \
- $$i > $$i.temp; \
- if cmp --quiet $$i $$i.temp; then \
- rm -f $$i.temp; \
- else \
- mv -f $$i.temp $$i; \
- chmod 755 $$i; \
- echo "fixed interpreter: $$i"; \
- fi; \
- done
-
- dh_compress -i -X.py -X.pik -X.pdf -X.css
- dh_python2 -i
- dh_fixperms -i
- dh_installdeb -i
- dh_gencontrol -i
- dh_md5sums -i
- dh_builddeb -i
-
-binary-arch: build install
- dh_testdir
- dh_testroot
-
- dh_installdocs -p$(p_sps) README
-
- dh_installchangelogs -a CHANGES
- dh_strip -a
- dh_compress -a -X.py
- dh_python2 -a
- dh_fixperms -a
- dh_installdeb -a
- dh_shlibdeps -a
- dh_gencontrol -a
- dh_md5sums -a
- dh_builddeb -a
-
-binary: binary-arch binary-indep
-
-.PHONY: binary binary-arch binary-indep clean
+override_dh_auto_install:
+ dh_auto_install
+ dh_numpy
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/pysparse.git
More information about the debian-science-commits
mailing list