~ubuntu-branches/ubuntu/edgy/editline/edgy

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Sam Hocevar (Debian packages)
  • Date: 2004-01-31 22:32:35 UTC
  • Revision ID: james.westby@ubuntu.com-20040131223235-e2v568smvylkfp5p
Tags: 1.12-5
* New maintainer (Closes: #229962).
* debian/changelog:
  + Removed emacs helper variables.
* debian/control:
  + Set policy to 3.6.1.0.
  + Set debhelper build dependency to (>= 4.0).
  + Use the default dh_shlibs information, since the API is rock stable
    (Closes: #131139).
  + Removed the libc6-dev dependency in the -dev package.
  + Rephrased the short and long descriptions.
* debian/copyright:
  + Replaced "Author(s)" with "Author".
* debian/rules:
  + Removed obsolete call to dh_suidregister.
  + Use debian/compat instead of DH_COMPAT.
* include_editline.h:
  + Added a minimalist /usr/include/editline.h (Closes: #129544).
* Makefile:
  + Call libtool with the proper --mode flags.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
# Uncomment this to turn on verbose mode.
6
6
#export DH_VERBOSE=1
7
7
 
8
 
# This is the debhelper compatability version to use.
9
 
export DH_COMPAT=1
10
 
 
11
8
# shared library versions, option 1
12
9
version=0.0.0
13
10
major=0
14
 
#option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so
15
 
#version=`ls .libs/lib*.so.* | \
16
 
# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'`
17
 
#major=`ls .libs/lib*.so.* | \
18
 
# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'`
19
11
 
20
12
build: build-stamp
21
13
build-stamp:
22
14
        dh_testdir
23
 
        # Add here commands to compile the package.
24
15
        $(MAKE)
25
16
        touch build-stamp
26
17
 
28
19
        dh_testdir
29
20
        dh_testroot
30
21
        rm -f build-stamp
31
 
 
32
 
        # Add here commands to clean up after the build process.
33
22
        -$(MAKE) clean
34
 
 
35
23
        dh_clean
36
24
 
37
25
install: build
39
27
        dh_testroot
40
28
        dh_clean -k
41
29
        dh_installdirs
42
 
 
43
 
        # Add here commands to install the package into debian/tmp.
44
 
        $(MAKE) install DESTDIR=`pwd`/debian/tmp
45
 
 
46
 
 
47
 
# Build architecture-independent files here.
 
30
        $(MAKE) install DESTDIR=`pwd`/debian/libeditline-dev
 
31
        cp include_editline.h \
 
32
           `pwd`/debian/libeditline-dev/usr/include/editline.h
 
33
 
48
34
binary-indep: build install
49
 
# We have nothing to do by default.
50
35
 
51
 
# Build architecture-dependent files here.
52
36
binary-arch: build install
53
37
#       dh_testversion
54
38
        dh_testdir
55
39
        dh_testroot
56
40
 
57
 
        #
58
41
        # build libeditline${major} package by moving files from editline-dev
59
 
        #
60
 
        dh_movefiles -plibeditline$(major)             \
61
 
                usr/lib/libeditline.so.$(major)        \
62
 
                usr/lib/libeditline.so.$(version)
 
42
        dh_movefiles --sourcedir=debian/libeditline-dev \
 
43
                     -plibeditline$(major) \
 
44
                     usr/lib/libeditline.so.$(major) \
 
45
                     usr/lib/libeditline.so.$(version)
63
46
 
64
 
#       dh_installdebconf       
65
47
        dh_installdocs
66
48
        dh_installexamples
67
49
        dh_installmenu
68
50
        dh_installmanpages
69
51
        rm -r debian/libeditline0/usr/share/man/
70
 
#       dh_installemacsen
71
 
#       dh_installpam
72
 
#       dh_installinit
73
52
        dh_installcron
74
53
        dh_installinfo
75
 
#       dh_undocumented
76
54
        dh_installchangelogs 
77
55
        dh_link
78
56
        dh_strip
79
57
        dh_compress
80
58
        dh_fixperms
81
 
        # You may want to make some executables suid here.
82
 
        dh_suidregister
83
59
        dh_makeshlibs
84
60
        dh_installdeb
85
 
#       dh_perl
86
61
        dh_shlibdeps
87
62
        dh_gencontrol
88
63
        dh_md5sums