~ubuntu-branches/ubuntu/oneiric/libspin-java/oneiric

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): gregor herrmann
  • Date: 2007-12-16 15:15:47 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20071216151547-0xwxaqstui65ozpd
Tags: 1.5-1
* New upstream release:
  - doesn't use ant anymore but maven; using a workaround with
    maven-ant-helper and our own build.xml
  - doesn't need the patch against build.xml anymore; therefore removing
    ths patch and the dpatch framework
  - depends on libcglib2.1-java; adding the package to Build-Depends-Indep
    and moving libspin-java to contrib because of the dependency
  - the jar now has the version number in the filename; adding a symlink
* Fix debian/watch.
* Clean up debian/rules.
* Move upstream URL from the description to the new Homepage field.
* Change XS-Vcs-* fields to Vcs-*.
* Set Standards-Version to 3.7.3 (no further changes required).
* Add get-orig-source target in debian/rules.

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
# Uncomment this to turn on verbose mode.
10
10
#export DH_VERBOSE=1
11
11
 
12
 
include /usr/share/dpatch/dpatch.make
13
 
 
14
 
configure: configure-stamp
15
 
 
16
 
configure-stamp:
17
 
        dh_testdir
18
 
        # Add here commands to configure the package.
19
 
        touch configure-stamp
20
 
 
 
12
ANT = ant -buildfile $(CURDIR)/debian/build.xml
 
13
TMPDIR := $(shell mktemp -t -d spin.XXXXXX)
 
14
PKG = $(shell dh_listpackages)
 
15
 
 
16
get-orig-source:
 
17
        uscan --force-download --verbose --destdir $(TMPDIR)
 
18
        unzip $(TMPDIR)/*.zip -d $(TMPDIR)
 
19
        rm $(TMPDIR)/*.zip
 
20
        tar -czf spin.tar.gz -C $(TMPDIR) .
 
21
        rm -r $(TMPDIR)
21
22
 
22
23
build: build-stamp
23
 
 
24
 
build-stamp: configure-stamp patch
 
24
build-stamp:
25
25
        dh_testdir
26
 
 
27
 
        # Add here commands to compile the package.
28
 
        ant dist
29
 
 
 
26
        $(ANT) package javadoc
30
27
        touch $@
31
28
 
32
 
clean: unpatch
 
29
clean:
33
30
        dh_testdir
34
31
        dh_testroot
35
 
        rm -f build-stamp configure-stamp
36
 
 
37
 
        # Add here commands to clean up after the build process.
38
 
        ant clean
39
 
 
 
32
        rm -f build-stamp install-stamp
 
33
        $(ANT) clean
40
34
        dh_clean 
41
35
 
42
 
install: build
 
36
install-stamp: build-stamp
 
37
install: install-stamp
43
38
        dh_testdir
44
39
        dh_testroot
45
40
        dh_clean -k 
46
41
        dh_installdirs
47
 
 
 
42
        touch $@
48
43
 
49
44
# Build architecture-independent files here.
50
45
binary-indep: build install
52
47
        dh_testroot
53
48
        dh_installchangelogs 
54
49
        dh_installdocs
55
 
#       dh_installexamples
56
50
        dh_install
57
 
#       dh_installmenu
58
 
#       dh_installdebconf       
59
 
#       dh_installlogrotate
60
 
#       dh_installemacsen
61
 
#       dh_installpam
62
 
#       dh_installmime
63
 
#       dh_python
64
 
#       dh_installinit
65
 
#       dh_installcron
66
 
#       dh_installinfo
67
 
        dh_installman
68
51
        dh_link
69
 
        dh_strip
70
 
        dh_compress -X.sxi
 
52
        dh_compress
71
53
        dh_fixperms
72
 
#       dh_perl
73
 
#       dh_makeshlibs
74
54
        dh_installdeb
75
55
        dh_shlibdeps
76
56
        dh_gencontrol