~vibhavp/ubuntu/raring/libfann/add-autopkgtest

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Christian Kastner
  • Date: 2010-07-14 22:12:27 UTC
  • Revision ID: james.westby@ubuntu.com-20100714221227-4i4pp9io3fjgwgxa
Tags: 2.1.0~beta~dfsg-2
* debian/control:
  - Bump Standards-Version to 3.9.0 (no changes needed)
  - Description fixes
  - Added libfann-dbg and python-pyfann-dbg packages
  - Changed Section of source package to libs
* debian/libfann-dev.dirs:
  - Removed because redundant to dh_install
* debian/rules:
  - Don't handle nostrip, dh_strip handles it for us
  - Build libfann-dbg and python-pyfann-dbg with the help of dh_strip
* debian/libfann2.symbols:
  - Initial creation
* debian/copyright:
  - Convert to DEP5 format
  - Relicense patches to BSD
* debian/patches:
  - Added 0004-Portable-handling-for-va_list
    Makes the use of va_list portable, fixing a FTBFS on alpha/armel/sh4.
    Closes: #588887
* Upload sponsored by Yaroslav Halchenko <debian@onerussian.com>

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
else
14
14
        CFLAGS += -O2
15
15
endif
16
 
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
17
 
        INSTALL_PROGRAM += -s
18
 
endif
19
16
 
20
17
PYVERS = $(shell pyversions -r -v)
21
18
 
22
19
 
23
20
%:
24
 
        dh --with autotools_dev $@
 
21
        dh $@ --with autotools_dev
25
22
 
26
23
override_dh_auto_build:
27
24
        # Perform regular build process
58
55
        # Continue with regular installation process
59
56
        dh_auto_install
60
57
 
 
58
override_dh_strip:
 
59
        # Can't use --dbg-package because we have multiple debug packages
 
60
        dh_strip -k
 
61
        mv debian/libfann2/usr/lib/debug debian/libfann-dbg/usr/lib
 
62
        mv debian/python-pyfann/usr/lib/debug debian/python-pyfann-dbg/usr/lib
 
63
        cd debian/python-pyfann-dbg/usr/lib/debug/usr/lib && mv pyshared pymodules
 
64
 
61
65
override_dh_installexamples:
62
66
        # Perform regular examples install process
63
67
        dh_installexamples
83
87
        cp debian/README-pyfann-examples-data \
84
88
                debian/python-pyfann/usr/share/doc/python-pyfann/examples/README
85
89
 
 
90
override_dh_link:
 
91
        rm -rf debian/libfann-dbg/usr/share/doc/libfann-dbg
 
92
        rm -rf debian/python-pyfann-dbg/usr/share/doc/python-pyfann-dbg
 
93
        dh_link
 
94
 
86
95
override_dh_compress:
87
96
        # Don't compress example files and datasets; documentation .js
88
97
        dh_compress -Xexamples -Xjavascript