wiki:DebianUbuntuPackaging

Version 10 (modified by martinl, 10 years ago) ( diff )

--

This page contains notes about Debian and Ubuntu packaging.

Debian

Launchpad

Requirement to upload packages:

Build package from tarball

### Based on notes by Ivan Mincik 
### http://lists.osgeo.org/pipermail/grass-dev/2015-January/073444.html

# 1. Download latest existing version of package from Launchpad
dget https://launchpad.net/~grass/+archive/ubuntu/grass-stable/+files/grass70_7.0.0RC1-3%7Eubuntu12.04.1.dsc

# 2. Prepare working directory with git enabled
mkdir pkg-grass
cd pkg-grass
git init

# 3. Import downloaded version of package from Launchpad
git-import-dsc ../grass70_7.0.0RC1-3%7Eubuntu12.04.1.dsc

# 4. Import new tarball we want to build
git-import-orig ../grass-7.0.0RC2.tar.gz

# 5. Optionally, merge Debian packaging (content of debian direcory:
# lp:~grass/grass/grass70_release_debian) here:

# Update Debian changelog
dch -i
git diff

# Update local Git
git add debian/changelog
git ci -m "Debian changelog update"

# Prepare source upload
$ git-buildpackage --git-debian-branch=master --git-builder="debuild -S -sa" --git-ignore-new

# Upload source package for build to Launchpad
$ dput ppa:grass/grass-stable ../grass70_7.0.0RC2-1_source.changes
Note: See TracWiki for help on using the wiki.