[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

dpkg-buildpackage misunderstanding my instructions ...



Dear specialists:

I am preparing two packages:
   liblmmin3
   liblmmin-dev
from upstream project lmfit (http://www.messen-und-deuten.de/lmfit).

I am using the following control files:
$ cat changelog
lmfit (3.2-1) UNRELEASED; urgency=low

  * Initial release. (Closes: #573584: ITP: lmfit -- Levenberg-Marquardt
    least-squares minimization and curve fitting)

 -- Joachim Wuttke <j.wuttke@fz-juelich.de>  Sun, 28 Mar 2010 10:44:44 +0200
$ cat control
Source: lmfit
Priority: extra
Maintainer: Joachim Wuttke <j.wuttke@fz-juelich.de>
Build-Depends: debhelper (>= 7), autotools-dev
Standards-Version: 3.8.4
Section: libs
Homepage: http://messen-und-deuten.de/lmfit/lmfit.html

Package: liblmmin-dev
Section: libdevel
Architecture: any
Depends: liblmmin3 (= ${binary:Version}), ${misc:Depends}
Description: Development files for Levenberg-Marquardt minimization.
 A self-contained implementation of the Levenberg-Marquardt algorithm.
 Routine lmmin determines a parameter vector p that minimizes the Euclidean
 norm of a vectorial function v(p). The most important application is curve
 fitting: to approximate data y(t) by a function f(t;p), routine lmcurve_fit
 minimizes the norm of the residual vector v = y(t) - f(t;p).
 .
 This package contains the include file lmmin.h, the man page, the static
 library, and some application examples.

Package: liblmmin3
Section: libs
Architecture: any
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Least-squares minimization and curve fitting
 A self-contained implementation of the Levenberg-Marquardt algorithm.
 Routine lmmin determines a parameter vector p that minimizes the Euclidean
 norm of a vectorial function v(p). The most important application is curve
 fitting: to approximate data y(t) by a function f(t;p), routine lmcurve_fit
 minimizes the norm of the residual vector v = y(t) - f(t;p).
 .
 This package contains the shared library.
$ cat liblmmin3.dirs
usr/lib
$ cat liblmmin3.install
usr/lib/lib*.so.*
$ cat liblmmin-dev.dirs
usr/lib
usr/include
$ cat liblmmin-dev.install
usr/include/*
usr/lib/lib*.a
usr/lib/*.la
$ cat liblmmin-dev.examples
demo/curve1.c
demo/fourexp.c
demo/hat.c
demo/morobropro.c
demo/powell.c
demo/surface1.c
$ cat liblmmin-dev.manpages
doc/lmmin.3
doc/lmcurve_fit.3

Then I run
$ dpkg-buildpackage -rfakeroot
$ cd ..
$ dpkg --contents liblmmin3_3.2-1_i386.deb
drwxr-xr-x root/root         0 2010-03-28 12:06 ./
drwxr-xr-x root/root         0 2010-03-28 12:06 ./usr/
drwxr-xr-x root/root         0 2010-03-28 12:06 ./usr/lib/
drwxr-xr-x root/root         0 2010-03-28 12:06 ./usr/share/
drwxr-xr-x root/root         0 2010-03-28 12:06 ./usr/share/doc/
drwxr-xr-x root/root         0 2010-03-28 12:06 ./usr/share/doc/liblmmin3/
-rw-r--r-- root/root       439 2010-03-02 21:04 ./usr/share/doc/liblmmin3/copyright
-rw-r--r-- root/root       221 2010-03-28 10:56 ./usr/share/doc/liblmmin3/changelog.Debian.gz
$ dpkg --contents liblmmin-dev_3.2-1_i386.deb
drwxr-xr-x root/root         0 2010-03-28 12:06 ./
drwxr-xr-x root/root         0 2010-03-28 12:06 ./usr/
drwxr-xr-x root/root         0 2010-03-28 12:06 ./usr/lib/
-rw-r--r-- root/root     14232 2010-03-28 12:06 ./usr/lib/liblmmin.so.3.0.2
-rw-r--r-- root/root       937 2010-03-28 12:06 ./usr/lib/liblmmin.la
-rw-r--r-- root/root     13654 2010-03-28 12:06 ./usr/lib/liblmmin.a
drwxr-xr-x root/root         0 2010-03-28 12:06 ./usr/include/
-rw-r--r-- root/root      3300 2010-03-28 12:06 ./usr/include/lmmin.h
drwxr-xr-x root/root         0 2010-03-28 12:06 ./usr/bin/
-rwxr-xr-x root/root      4268 2010-03-28 12:06 ./usr/bin/curve1
-rwxr-xr-x root/root      4328 2010-03-28 12:06 ./usr/bin/surface1
-rwxr-xr-x root/root      4212 2010-03-28 12:06 ./usr/bin/morobropro
-rwxr-xr-x root/root      3856 2010-03-28 12:06 ./usr/bin/powell
-rwxr-xr-x root/root      4196 2010-03-28 12:06 ./usr/bin/hat
-rwxr-xr-x root/root      4068 2010-03-28 12:06 ./usr/bin/fourexp
drwxr-xr-x root/root         0 2010-03-28 12:06 ./usr/share/
drwxr-xr-x root/root         0 2010-03-28 12:06 ./usr/share/man/
drwxr-xr-x root/root         0 2010-03-28 12:06 ./usr/share/man/man3/
-rw-r--r-- root/root      6018 2010-03-28 12:06 ./usr/share/man/man3/lmcurve_fit.3.gz
-rw-r--r-- root/root      6016 2010-03-28 12:06 ./usr/share/man/man3/lmfit.3.gz
-rw-r--r-- root/root      6016 2010-03-28 12:06 ./usr/share/man/man3/lmmin.3.gz
drwxr-xr-x root/root         0 2010-03-28 12:06 ./usr/share/doc/
drwxr-xr-x root/root         0 2010-03-28 12:06 ./usr/share/doc/liblmmin-dev/
-rw-r--r-- root/root       439 2010-03-02 21:04 ./usr/share/doc/liblmmin-dev/copyright
drwxr-xr-x root/root         0 2010-03-28 12:06 ./usr/share/doc/liblmmin-dev/examples/
-rw-r--r-- root/root      1787 2010-03-02 21:04 ./usr/share/doc/liblmmin-dev/examples/curve1.c
-rw-r--r-- root/root      2557 2010-03-02 21:04 ./usr/share/doc/liblmmin-dev/examples/fourexp.c
-rw-r--r-- root/root      2294 2010-03-02 21:04 ./usr/share/doc/liblmmin-dev/examples/hat.c
-rw-r--r-- root/root      2189 2010-03-02 21:04 ./usr/share/doc/liblmmin-dev/examples/morobropro.c
-rw-r--r-- root/root      2005 2010-03-02 21:04 ./usr/share/doc/liblmmin-dev/examples/powell.c
-rw-r--r-- root/root      2511 2010-03-02 21:04 ./usr/share/doc/liblmmin-dev/examples/surface1.c
-rw-r--r-- root/root       221 2010-03-28 10:56 ./usr/share/doc/liblmmin-dev/changelog.Debian.gz
lrwxrwxrwx root/root         0 2010-03-28 12:06 ./usr/lib/liblmmin.so.3 -> liblmmin.so.3.0.2
lrwxrwxrwx root/root         0 2010-03-28 12:06 ./usr/lib/liblmmin.so -> liblmmin.so.3.0.2

Problems:
- The shared library liblmmin.so.3.0.2 went into the package liblmmin-dev, though I thought
I clearly instructed the system to send it to package liblmmin3.
- Why the hell liblmmin-dev contains the examples not only in form of *.c sources, but
also as binaries (/usr/bin/*) ? I said nothing about that.

Thanks in advance - Joachim

------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzende des Aufsichtsrats: MinDir'in Baerbel Brumme-Bothe
Geschaeftsfuehrung: Prof. Dr. Achim Bachem (Vorsitzender),
Dr. Ulrich Krafft (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------


Reply to: