~ubuntu-branches/ubuntu/saucy/libfilesys-smbclient-perl/saucy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Package Import Robot
  • Author(s): Xavier Guimard, gregor herrmann, Nathan Handler, Ansgar Burchardt, Xavier Guimard
  • Date: 2013-01-17 06:17:42 UTC
  • mfrom: (4.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20130117061742-8i0z4k5fhou06ce5
Tags: 3.2-1
[ gregor herrmann ]
* debian/control: Added: ${misc:Depends} to Depends: field.
* debian/control: update {versioned,alternative} (build) dependencies.

[ Nathan Handler ]
* debian/watch: Update to ignore development releases.

[ Ansgar Burchardt ]
* debian/control: Convert Vcs-* fields to Git.

[ Xavier Guimard ]
* Imported Upstream version 3.2
* Update source format to 3.0 (quilt)
* Bump Standards-Version to 3.9.4
* Use debhelper 9.20120312
* Update debian/copyright (years and format)
* Fix upstream license to Artistic or GPL-1+
* Update debian/rules to use "dh $@"
* Add description in 10_Makefile.PL.patch
* Add spelling and pod patch
* Force the use of perl_makemaker in dh
* override_dh_fixperms to change example files mode

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
 
# This debian/rules file is provided as a template for normal perl
3
 
# packages. It was created by Marc Brockschmidt <marc@dch-faq.de> for
4
 
# the Debian Perl Group (http://pkg-perl.alioth.debian.org/) but may
5
 
# be used freely wherever it is useful.
6
 
 
7
 
# Uncomment this to turn on verbose mode.
8
 
#export DH_VERBOSE=1
9
 
 
10
 
include /usr/share/quilt/quilt.make
11
 
 
12
 
# If set to a true value then MakeMaker's prompt function will
13
 
# always return the default without waiting for user input.
14
 
export PERL_MM_USE_DEFAULT=1
15
 
 
16
 
PERL   ?= /usr/bin/perl
 
2
 
17
3
PACKAGE = $(shell dh_listpackages)
18
4
TMP     = $(CURDIR)/debian/$(PACKAGE)
19
5
 
20
 
# Allow disabling build optimisation by setting noopt in
21
 
# $DEB_BUILD_OPTIONS
22
 
CFLAGS = -Wall -g
23
 
ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
24
 
        CFLAGS += -O0
25
 
else
26
 
        CFLAGS += -O2
27
 
endif
28
 
 
29
 
build: build-stamp
30
 
build-stamp: $(QUILT_STAMPFN)
31
 
        dh_testdir
32
 
        $(PERL) Makefile.PL INSTALLDIRS=vendor
33
 
        $(MAKE) OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""
34
 
        #$(MAKE) test # requires access to a samba server
35
 
        touch $@
36
 
 
37
 
clean: unpatch
38
 
        dh_testdir
39
 
        dh_testroot
40
 
        dh_clean build-stamp install-stamp
41
 
        [ ! -f Makefile ] || ( touch Makefile && $(MAKE) realclean )
42
 
 
43
 
install: install-stamp
44
 
install-stamp: build-stamp
45
 
        dh_testdir
46
 
        dh_testroot
47
 
        dh_clean -k
48
 
        $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
49
 
        [ ! -d $(TMP)/usr/share/perl5 ] || \
50
 
                rmdir --ignore-fail-on-non-empty --parents --verbose \
51
 
                $(TMP)/usr/share/perl5
52
 
        touch $@
53
 
 
54
 
# Build architecture-independent files here.
55
 
binary-indep: build install
56
 
# We have nothing to do here for an architecture-dependent package
57
 
 
58
 
# Build architecture-dependent files here.
59
 
binary-arch: build install
60
 
        dh_testdir
61
 
        dh_testroot
62
 
        dh_installexamples t smb2www-2.cgi smb2www.css
63
 
        chmod 0644 $(TMP)/usr/share/doc/$(PACKAGE)/examples/smb2www.css
64
 
        dh_installdocs
65
 
        dh_installchangelogs Changes
66
 
        dh_shlibdeps
67
 
        dh_strip
68
 
        dh_perl
69
 
        dh_compress
 
6
%:
 
7
        dh $@ --buildsystem=perl_makemaker
 
8
 
 
9
override_dh_fixperms:
70
10
        dh_fixperms
71
 
        dh_installdeb
72
 
        dh_gencontrol
73
 
        dh_md5sums
74
 
        dh_builddeb
 
11
        chmod 644 $(TMP)/usr/share/doc/libfilesys-smbclient-perl/examples/smb2www.css
75
12
 
76
 
binary: binary-indep binary-arch
77
 
.PHONY: build clean binary-indep binary-arch binary install