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

Re: Help with sonames for Staden's io_lib package.



On Fri, May 29, 2009 at 02:25:26PM +0900, Charles Plessy wrote:
> I almost finished to package Staden's io_lib. In contrary to Upstream's
> defaults, the Debian package builds a dynamic library. Could somebody help me
> to figure out the Right Thing to do with the sonames?

Well, I successfully used d-shlibs which is intended to implement the
rules which are layed out in he library packaging guide.  For instance
you might look into libgenome.  It somehow works like this:

  1. make install INSTALLDIR=`pwd`/debian/tmp
  2. use d-shlibmove to move files from debian/tmp to the package
     directories.  The code should look somehow like this:

pkg=libstaden-read
name=libstaden-read
version=1.11
# series=1.11.6 

common-binary-post-install-arch::
	# Call d-shlibmove to comply with library packaging guide
	d-devlibdeps debian/$(pkg)1-dev.substvars \ 
		debian/tmp/usr/lib/$(name)-$(version).so
	mv debian/tmp/usr/include/*/* debian/tmp/usr/include/
	d-shlibmove --commit \ 
                    --movedev "debian/tmp/usr/include/$(name)" usr/include/$(name)-$(version) \ 
                    --movedev "$(name)-$(version).pc" usr/share/pkgconfig \ 
                    debian/tmp/usr/lib/$(name)-$(version).so

This is an *untested* copy of libgenome but should explain the principle
which turned out to be successful for me.
 
Kind regards

           Andreas. 

-- 
http://fam-tille.de


Reply to: