Debian page

How to build debian package

First of all I get the Tarball gajim-x.y.z.tar.gz

Then I extract the tarball archive (without the debian folder) nd add the debian folder:

tar xvzf gajim-x.y.z.tar.gz
mv gajim-x.y.z.tar.gz gajim_x.y.z.orig.tar.gz
cp -r path/to/debian gajim-0.7/

Then, before building the package, I run dch in the "debian" folder to update the changelog :

cd gajim-x.y.z
dch -v x.y.z

  • dch -i to build a new package of the same release if it's not a native Debian package, or to increment the version number if it is a native Debian package.
  • dch -v version to specify the versin number (dch -v 0.3 for example).

All the necessary informations to build the package are included in the subversion repository. So, to build it I only need to install the necessary packages (python-dev and libgtk2.0-dev), and then run :

dpkg-buildpackage -rfakeroot in the gajim folder.

I get the binary and the source packages in the parent folder.