[maemo-developers] [maemo-developers] Problems packaging a shared library

From: Guillem Jover guillem.jover at nokia.com
Date: Mon Oct 2 18:09:35 EEST 2006
On Sun, 2006-10-01 at 21:06:05 +0300, ext Teemu Harju wrote:
> I'm struggling trying to make a .deb package out of libupnp
> (http://sourceforge.net/projects/upnp/). It compiles nicely in the
> scratchbox ARM target, but when I try to make a package out of it with
> dpkg-buildpackage the package contains basically only the directories.

Have you checked <http://packages.qa.debian.org/libupnp>?

> Here's what I've done...
> 1) run dh_make and select the library option
> 2) edit the debian/control file
> 3) run dpkg-buildpackage -rfakeroot

> The debian/tmp directory then contains the compiled library and dev
> files, but the created .deb package does not contain those.

You'd have to use "dh_install --sourcedir=$(CURDIR)/debian/tmp" and
add a proper .install file.

> Is there something I'm doing wrong? libupnp installs nicely with
> "./configure --prefix=/usr && make && make install" so I think that,
> e.g., the debian/rules file wouldn't need anything special. Am I
> right?

Also I suppose you have DESTDIR already on make install.


More information about the maemo-developers mailing list