1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
#!/usr/bin/make -f
include /usr/share/quilt/quilt.make
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
PYVERS=$(shell pyversions -vr)
PKG_NAME=pytagsfs
PKG_VER=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^-]+).*,\1,p')
get-orig-source:
uscan --force-download --rename --download-version=$(PKG_VER) --destdir=.
build: patch build-stamp
build-stamp: $(QUILT_STAMPFN) $(PYVERS:%=build-python%)
touch $@
build-python%:
dh_testdir
# Currently failing tests that have been disabled
# fs, blackbox, sourcetreerep
python$* setup.py test --tests tests.common,tests.manager,tests.mutagen_meta_store,tests.optgroup,tests.pathstore,tests.pytagsfs_meta_store,tests.pytypes,tests.regex,tests.sourcetreemon,tests.sourcetree,tests.subspat,tests.test_lines_meta_store,tests.util,tests.values
python$* setup.py build
touch $@
clean: unpatch
dh_testdir
dh_testroot
python setup.py clean --all
rm -f build-stamp
rm -rf build
find . -name '*.py[co]' | xargs rm -f
rm -f modules/pytagsfs/version.py
dh_clean
install: $(PYVERS:%=install-python%)
touch $@
install-python%: build
dh_testdir
dh_testroot
dh_installdirs
python$* setup.py install --root=$(CURDIR)/debian/pytagsfs --prefix=/usr
# Build architecture-independent files here.
binary-indep: build install
dh_testdir
dh_testroot
dh_installchangelogs NEWS
dh_installdocs
dh_pysupport
dh_compress -X.py
dh_fixperms
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
# Build architecture-dependent files here.
binary-arch: build install
# We have nothing to do by default.
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install patch unpatch get-orig-source
|