Difference between revisions of "Debian"
m (→For version 3.4 and before) |
(→For version 3.4 and before) |
||
Line 13: | Line 13: | ||
* For Ubuntu 12.04 install these tools: | * For Ubuntu 12.04 install these tools: | ||
sudo apt-get install devscripts dpkg-dev fakeroot debhelper libgconf2-dev | sudo apt-get install devscripts dpkg-dev fakeroot debhelper libgconf2-dev | ||
− | * Check out the necessary version; for example, to build the <tt>.deb</tt> file for GRAMPS version | + | * Check out the necessary version; for example, to build the <tt>.deb</tt> file for GRAMPS version 3.4.3, you'll want to run: |
mkdir ~/gramps | mkdir ~/gramps | ||
cd ~/gramps | cd ~/gramps | ||
− | svn co https://svn.code.sf.net/p/gramps/code/tags/gramps- | + | svn co https://svn.code.sf.net/p/gramps/code/tags/gramps-3.4.3/ |
− | * Confirm that sudo apt-get install devscripts dpkg-dev fakeroot debhelper libgconf2-dev python- | + | * Confirm that sudo apt-get install devscripts dpkg-dev fakeroot debhelper libgconf2-dev python-xml everything builds: |
./autogen.sh | ./autogen.sh | ||
make | make | ||
Line 30: | Line 30: | ||
export DEBFULLNAME='Stephane Charette' | export DEBFULLNAME='Stephane Charette' | ||
cd .. | cd .. | ||
− | dch -v | + | dch -v 3.4.3-3 "New upstream release" |
dpkg-buildpackage -rfakeroot | dpkg-buildpackage -rfakeroot | ||
: Remember to modify '''<tt>DEBEMAIL</tt>''' and '''<tt>DEBFULLNAME</tt>''' to reflect your e-mail and name. | : Remember to modify '''<tt>DEBEMAIL</tt>''' and '''<tt>DEBFULLNAME</tt>''' to reflect your e-mail and name. | ||
Line 37: | Line 37: | ||
cd .. | cd .. | ||
ls *.deb | ls *.deb | ||
− | : Note the | + | : Note the '''<tt>gramps_3.4.3-3_all.deb</tt>''' file, which need to be uploaded to <tt>ftp://upload.sourceforge.net/incoming/</tt>. |
* 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 <tt>debian/</tt> directory. Please refer to the [http://www.debian.org/doc/maint-guide/ Debian New Maintainers' Guide] for further details. | * 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 <tt>debian/</tt> directory. Please refer to the [http://www.debian.org/doc/maint-guide/ Debian New Maintainers' Guide] for further details. | ||
[[Category:Developers/Packaging]] | [[Category:Developers/Packaging]] |
Revision as of 16:19, 24 March 2013
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 3.4.3, you'll want to run:
mkdir ~/gramps cd ~/gramps svn co https://svn.code.sf.net/p/gramps/code/tags/gramps-3.4.3/
- Confirm that sudo apt-get install devscripts dpkg-dev fakeroot debhelper libgconf2-dev python-xml everything 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='[email protected]' export DEBFULLNAME='Stephane Charette' cd .. dch -v 3.4.3-3 "New upstream release" 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 gramps_3.4.3-3_all.deb file, 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.