Difference between revisions of "Debian Packaging"
Jump to navigation
Jump to search
Line 27: | Line 27: | ||
git checkout v0.0.18 | git checkout v0.0.18 | ||
git submodule update --init --recursive | git submodule update --init --recursive | ||
+ | make update-dependencies | ||
+ | cd dependencies | ||
+ | ./install --download-only all | ||
+ | cd .. | ||
Now edit the changelog file to add a new section (you might do this step *before* the tag so it can be part of the "original" tgz). Make sure that the email address in the signature is identical to your Launchpad address: | Now edit the changelog file to add a new section (you might do this step *before* the tag so it can be part of the "original" tgz). Make sure that the email address in the signature is identical to your Launchpad address: |
Revision as of 19:48, 30 January 2012
Prerequisites
- Create a PGP key (required) and import into Launchpad (optional): https://help.launchpad.net/YourAccount/ImportingYourPGPKey
- Install debian packaging tools:
sudo apt-get install pbuilder debootstrap devscripts
- Set your /etc/pbuilderrc to something like this:
MIRRORSITE=http://us.archive.ubuntu.com/ubuntu/ BUILDUSERID=12345 BUILDUSERNAME=fakeuser DISTRIBUTION=oneiric COMPONENTS="main restricted universe multiverse" EXTRAPACKAGES="nano ssh" TIMEOUT_TIME=24h
- After setting up /etc/pbuilderrc, run:
sudo pbuilder --create
Creating Release
Create a directory to be used for packaging. The rest of the commands assume you are in that directory.
mkdir packaging cd packaging
Clone the repository, switch to the release tag, and check out submodules:
git clone git://github.com/sirikata/sirikata.git sirikata-0.0.18 cd sirikata-0.0.18 git checkout v0.0.18 git submodule update --init --recursive make update-dependencies cd dependencies ./install --download-only all cd ..
Now edit the changelog file to add a new section (you might do this step *before* the tag so it can be part of the "original" tgz). Make sure that the email address in the signature is identical to your Launchpad address:
dch --newversion 0.0.18-0ubuntu1
Now go back up a directory and create the "orig" tar file that debian requires (note _ instead of -, it matters):
tar -cvzf sirikata_0.0.18.orig.tar.gz sirikata-0.0.18
Go back into the directory and create the build:
cd sirikata-0.0.18 debuild -S
Go back up and run pbuilder to test if the build works:
cd .. sudo pbuilder --build sirikata_0.0.18-0ubuntu1.dsc
To upload to launchpad:
dput ppa:sirikata/sirikata sirikata_0.0.18-0ubuntu1_source.changes