| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
PACKAGE = $(shell dh_listpackages) |
| 4 |
TMP = $(CURDIR)/debian/$(PACKAGE) |
| 5 |
|
| 6 |
# maybe we only need the patchlevel and not the subversion here? |
| 7 |
# better safe than sorry, and better consistent with other packages ... |
| 8 |
PERL_CURRENT := $(shell perl -MConfig -e 'print "$$Config{revision}.$$Config{patchlevel}.$$Config{subversion}"') |
| 9 |
PERL_NEXT := $(shell perl -MConfig -e 'print "$$Config{revision}.$$Config{patchlevel}." . ($$Config{subversion} + 1)') |
| 10 |
|
| 11 |
include /usr/share/dpkg/architecture.mk |
| 12 |
PERLVER := $(shell perl -MConfig -e 'print $$Config{version}') |
| 13 |
ARCHLIB := $(shell perl -I/usr/lib/$(DEB_HOST_MULTIARCH)/perl/cross-config-$(PERLVER) -MConfig -e 'print $$Config{vendorarch}') |
| 14 |
|
| 15 |
export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 16 |
|
| 17 |
%: |
| 18 |
dh $@ |
| 19 |
|
| 20 |
override_dh_auto_install: |
| 21 |
dh_auto_install |
| 22 |
chmod 0644 $(TMP)/usr/share/man/man3/common::sense.3pm |
| 23 |
pod2man --name "common::sense" --utf8 --section 3pm \ |
| 24 |
$(TMP)$(ARCHLIB)/common/sense.pod > \ |
| 25 |
$(TMP)/usr/share/man/man3/common::sense.3pm |
| 26 |
|
| 27 |
override_dh_gencontrol: |
| 28 |
dh_gencontrol -- -V'sameperl:Depends=perl (>= $(PERL_CURRENT)~), perl (<< $(PERL_NEXT)~)' |