Debian

From Gramps
Revision as of 18:53, 2 January 2013 by Patsyblefebre (Talk | contribs) (For version 3.4 and before: https://svn.code.sf.net/p/gramps/code/tags/gramps-2.2.9/)

Jump to: navigation, search

For version 4.0 and newer

TODO

For version 3.4 and before

Instructions on creating the Debian .deb package for Ubuntu:

  • Ensure you have a working build environment
  • For Ubuntu 7.04 or 7.10, install these tools:
sudo apt-get install devscripts dpkg-dev fakeroot debhelper libgconf2-dev
  • For Ubuntu 8.04, install these tools:
sudo apt-get install devscripts dpkg-dev fakeroot debhelper libgconf2-dev python-xml
  • For Ubuntu 12.04 install these tools:
sudo apt-get install devscripts dpkg-dev fakeroot debhelper libgconf2-dev
  • Check out the necessary version; for example, to build the .deb file for GRAMPS version 2.2.9, you'll want to run:
mkdir ~/gramps
cd ~/gramps
svn co https://svn.code.sf.net/p/gramps/code/tags/gramps-2.2.9/
  • Confirm that sudo apt-get install devscripts dpkg-dev fakeroot debhelper libgconf2-dev python-xmleverything builds:
./autogen.sh
make
  • Create the Changelog files:
svn2cl --reparagraph --include-rev --authors=src/data/authors.xml
cd po
svn2cl --reparagraph --include-rev --authors=../src/data/authors.xml
cd ..
  • Create the .deb package:
cd debian
export DEBEMAIL='stephanecharette@gmail.com'
export DEBFULLNAME='Stephane Charette'
dch -v 2.2.9-1 "New upstream release"
cd ..
dpkg-buildpackage -rfakeroot
Remember to modify DEBEMAIL and DEBFULLNAME to reflect your e-mail and name.
  • Release the .deb files:
cd ..
ls *.deb
Note the 2 files gramps_2.2.9-1_all.deb and gramps-help_2.2.9-1_all.deb, both of which need to be uploaded to ftp://upload.sourceforge.net/incoming/.
  • The details on how things are going to be packaged into deb files, what are the dependencies, the pre- and post- install and removal scripts etc are under debian/ directory. Please refer to the Debian New Maintainers' Guide for further details.