1 # This is called from the build with the following variables set
2 # (see build/Makefile and target_debian)
9 #PYVERSION=$(shell python -c "from sfa.util.version import version_tag; print version_tag" | sed -e s,-,.,)
10 DEBVERSION=$(RPMVERSION).$(RPMRELEASE)
11 DEBTARBALL=../$(PROJECT)_$(DEBVERSION).orig.tar.bz2
13 DATE=$(shell date -u +"%a, %d %b %Y %T")
15 debian: debian/changelog debian.source debian.package
19 debian/changelog: debian/changelog.in
20 sed -e "s|@VERSION@|$(DEBVERSION)|" -e "s|@DATE@|$(DATE)|" debian/changelog.in > debian/changelog
22 # TARBALL is passed from the main build (/build/Makefile) to the 'make debian' call
24 rsync -a $(RPMTARBALL) $(DEBTARBALL)
30 $(MAKE) -f debian/rules clean
31 rm -rf build/ MANIFEST ../*.tar.gz ../*.dsc ../*.build
32 find . -name '*.pyc' -delete