Update debian package configuration
darcs-hash:20071113181137-86b55-80a8c5c5bce363657e947a7e3777a2edd4135cc6.gz
This commit is contained in:
120
debian/rules
vendored
120
debian/rules
vendored
@@ -1,76 +1,76 @@
|
||||
#!/usr/bin/make -f
|
||||
# jmc debian/rules file
|
||||
# Uncomment this to turn on verbose mode.
|
||||
#export DH_VERBOSE=1
|
||||
|
||||
configure: configure-stamp
|
||||
configure-stamp:
|
||||
dh_testdir
|
||||
touch configure-stamp
|
||||
# This file was automatically generated by stdeb 0.2.a1 at
|
||||
# Tue, 13 Nov 2007 19:00:04 +0100
|
||||
|
||||
PACKAGE_NAME=python-jmc
|
||||
MODULE_NAME=jmc
|
||||
DEB_UPSTREAM_VERSION=0.3
|
||||
|
||||
PYVERS=$(shell pyversions -vr)
|
||||
|
||||
build: build-stamp
|
||||
|
||||
build-stamp: configure-stamp
|
||||
dh_testdir
|
||||
touch build-stamp
|
||||
|
||||
build-stamp: $(PYVERS:%=build-python%)
|
||||
touch $@
|
||||
build-python%:
|
||||
# Force setuptools, but reset sys.argv[0] to 'setup.py' because setup.py files expect that.
|
||||
python$* -c "import setuptools,sys;f='setup.py';sys.argv[0]=f;execfile(f,{'__file__':f,'__name__':'__main__'})" build
|
||||
touch $@
|
||||
clean:
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
rm -f build-stamp configure-stamp
|
||||
rm -f *-stamp
|
||||
rm -rf dist build
|
||||
-find -name '*.py[co]' | xargs rm -f
|
||||
# find . -name *.pyc -exec rm {} \;
|
||||
dh_clean
|
||||
|
||||
# Clean up package tree
|
||||
rm -f -R $(CURDIR)/debian/jmc
|
||||
|
||||
dh_clean
|
||||
|
||||
install: build
|
||||
install: build install-prereq $(PYVERS:%=install-python%)
|
||||
install-prereq:
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_clean -k
|
||||
dh_installdirs
|
||||
dh_clean -k
|
||||
|
||||
# Create directory tree for package
|
||||
install-python%:
|
||||
# Force setuptools, but reset sys.argv[0] to 'setup.py' because setup.py files expect that.
|
||||
python$* -c "import setuptools,sys;f='setup.py';sys.argv[0]=f;execfile(f,{'__file__':f,'__name__':'__main__'})" install --no-compile --single-version-externally-managed --root $(CURDIR)/debian/${PACKAGE_NAME}
|
||||
mv debian/${PACKAGE_NAME}/usr/lib/python$*/site-packages/${MODULE_NAME}-${DEB_UPSTREAM_VERSION}-py$*.egg-info debian/${PACKAGE_NAME}/usr/lib/python$*/site-packages/${MODULE_NAME}.egg-info
|
||||
|
||||
binary-arch:
|
||||
|
||||
cp -R $(CURDIR)/debian/jmc.conf $(CURDIR)/debian/jmc/etc/jabber/jmc.conf
|
||||
cp -R $(CURDIR)/debian/jmc-default $(CURDIR)/debian/jmc/etc/default/jmc
|
||||
cp -R $(CURDIR)/debian/jmc.sh $(CURDIR)/debian/jmc/usr/bin/jmc
|
||||
cp -R $(CURDIR)/src/* $(CURDIR)/debian/jmc/usr/share/jmc
|
||||
|
||||
# Build architecture-independent files here.
|
||||
binary-indep: build install
|
||||
dh_testdir
|
||||
dh_testroot
|
||||
dh_installchangelogs
|
||||
dh_installdocs
|
||||
# dh_installexamples
|
||||
dh_install
|
||||
# dh_installmenu
|
||||
# dh_installdebconf
|
||||
dh_installlogrotate
|
||||
# dh_installemacsen
|
||||
# dh_installpam
|
||||
# dh_installmime
|
||||
dh_installinit
|
||||
# dh_installcron
|
||||
# dh_installinfo
|
||||
# dh_installman
|
||||
dh_link
|
||||
# dh_strip
|
||||
# dh_compress
|
||||
dh_fixperms
|
||||
# dh_perl
|
||||
dh_python /usr/share/jmc
|
||||
# dh_makeshlibs
|
||||
dh_installdeb
|
||||
# dh_shlibdeps
|
||||
dh_gencontrol
|
||||
dh_md5sums
|
||||
dh_builddeb
|
||||
|
||||
# Build architecture-dependent files here.
|
||||
binary-arch: build install
|
||||
# We have nothing to do by default.
|
||||
dh_testdir -i
|
||||
dh_testroot -i
|
||||
dh_pycentral -i
|
||||
dh_installdocs -i
|
||||
dh_installdirs -i
|
||||
dh_installexamples -i
|
||||
dh_strip -i
|
||||
dh_compress -i -X.py
|
||||
dh_fixperms -i
|
||||
: # Replace all '#!' calls to python with $(PYTHON)
|
||||
: # and make them executable
|
||||
for i in \
|
||||
`find debian/python-jmc/usr/bin -type f` \
|
||||
`find debian/python-jmc/usr/lib -type f`; \
|
||||
do \
|
||||
case "$$i" in *-[0-9].[0-9]) continue; esac; \
|
||||
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_installdeb -i
|
||||
dh_gencontrol -i
|
||||
dh_md5sums -i
|
||||
dh_builddeb -i
|
||||
|
||||
binary: binary-indep binary-arch
|
||||
|
||||
|
||||
.PHONY: build clean binary-indep binary-arch binary install configure
|
||||
|
||||
Reference in New Issue
Block a user