diff -u python-ipcalc-0.3/debian/rules python-ipcalc-0.3/debian/rules --- python-ipcalc-0.3/debian/rules +++ python-ipcalc-0.3/debian/rules @@ -2,74 +2,2 @@ -# -*- makefile -*- -# Sample debian/rules that uses debhelper. -# This file was originally written by Joey Hess and Craig Small. -# As a special exception, when this file is copied by dh-make into a -# dh-make output file, you may use that output file without restriction. -# This special exception was added by Craig Small in version 0.37 of dh-make. - -# Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 - -PYVERS := $(shell pyversions -vs) - - -configure: configure-stamp -configure-stamp: - dh_testdir - touch configure-stamp - - -build: build-stamp - -build-stamp: configure-stamp - dh_testdir - - touch $@ - -clean: - dh_testdir - dh_testroot - rm -f build-stamp configure-stamp - for py in $(PYVERS); do \ - python$$py setup.py clean; \ - done - - rm -f $(CURDIR)/debian/python-ipcalc/usr/lib/python*/site-packages/ipcalc.py* - rm -f $(CURDIR)/debian/python-ipcalc/usr/lib/python*/site-packages/ipcalc-0.3.egg-info - rm -rf build - find . -name \*.pyc -exec rm {} \; - - dh_clean - -install: build - dh_testdir - dh_testroot - dh_prep - dh_installdirs - - python setup.py install --root=$(CURDIR)/debian/python-ipcalc - rm -f $(CURDIR)/debian/python-ipcalc/usr/lib/python*/site-packages/ipcalc.pyc - #$(MAKE) DESTDIR=$(CURDIR)/debian/python-ipcalc install - - - -binary-arch: install - -binary-indep: install - dh_testdir - dh_testroot - dh_installchangelogs - dh_installdocs - dh_installexamples - dh_installman - dh_link - dh_strip - dh_compress - dh_fixperms - dh_installdeb - dh_shlibdeps - dh_gencontrol - dh_md5sums - dh_builddeb - -binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary install configure +%: + dh $@ diff -u python-ipcalc-0.3/debian/control python-ipcalc-0.3/debian/control --- python-ipcalc-0.3/debian/control +++ python-ipcalc-0.3/debian/control @@ -12,6 +12,7 @@ -Depends: python-support, ${python:Depends} -Description: perform IP subnet calculations - returns the network address, netmask, network address in hexa and CIDR notation, - min/max IP addresses, broadcast address and the number of subnets. +Depends: ${python:Depends}, ${misc:Depends} +Provides: ${python:Provides} +Description: perform IP subnet calculations + returns the network address, netmask, network address in hexadecimal + and CIDR notation, min/max IP addresses, broadcast address and + the number of subnets. There is support for both IPv4 and IPv6. -