paul@5 | 1 | Shed Skin Packaging for Debian
|
paul@5 | 2 | ==============================
|
paul@5 | 3 |
|
paul@31 | 4 | Firstly, download the latest upstream source release. For example, try and
|
paul@31 | 5 | persuade Gitorious to yield a file by visiting the following address:
|
paul@5 | 6 |
|
paul@36 | 7 | http://gitorious.org/shedskin/mainline/archive-tarball/7f7388c
|
paul@19 | 8 |
|
paul@19 | 9 | The idea is then to combine the snapshot with this packaging infrastructure.
|
paul@5 | 10 |
|
paul@38 | 11 | Unpack the archive:
|
paul@5 | 12 |
|
paul@25 | 13 | cd ..
|
paul@36 | 14 | tar zxf shedskin-mainline-7f7388c.tar.gz
|
paul@38 | 15 | mv shedskin-mainline shedskin_0.8
|
paul@38 | 16 |
|
paul@38 | 17 | Make a copy of the archive for Debian non-native packaging purposes:
|
paul@38 | 18 |
|
paul@38 | 19 | tar zcf shedskin_0.8.orig.tar.gz shedskin_0.8
|
paul@38 | 20 |
|
paul@38 | 21 | Move into the sources directory:
|
paul@38 | 22 |
|
paul@38 | 23 | cd shedskin_0.8
|
paul@5 | 24 |
|
paul@5 | 25 | Now, copy the debian directory from this directory into the export directory:
|
paul@5 | 26 |
|
paul@5 | 27 | cp -R ../shedskin-packaging/debian/ .
|
paul@5 | 28 |
|
paul@40 | 29 | There are patches in debian/patches which should be applied when pbuilder is
|
paul@40 | 30 | run. These should not need to be applied manually.
|
paul@21 | 31 |
|
paul@5 | 32 | Using pbuilder, try and build the package (this example is using my signing
|
paul@5 | 33 | key):
|
paul@5 | 34 |
|
paul@5 | 35 | pdebuild --auto-debsign --debsign-k 9F308B3C
|
paul@5 | 36 |
|
paul@38 | 37 | Add extra options for the first packaging of a new release:
|
paul@38 | 38 |
|
paul@38 | 39 | pdebuild --auto-debsign --debsign-k 9F308B3C --debbuildopts -sa
|
paul@38 | 40 |
|
paul@38 | 41 | This makes sure that the original source archive is produced and referenced in
|
paul@38 | 42 | the changes file (used by dput when uploading a package to a Debian package
|
paul@38 | 43 | repository/archive).
|
paul@38 | 44 |
|
paul@40 | 45 | For a different distribution:
|
paul@40 | 46 |
|
paul@40 | 47 | pdebuild --auto-debsign --debsign-k 9F308B3C --debbuildopts -sa \
|
paul@40 | 48 | -- --distribution squeeze
|
paul@40 | 49 |
|
paul@5 | 50 | Some files will appear in /var/cache/pbuilder/result/ (such as the binary
|
paul@5 | 51 | package files), whereas others will appear in the parent directory.
|
paul@10 | 52 |
|
paul@21 | 53 | Maintenance Notes
|
paul@21 | 54 | -----------------
|
paul@21 | 55 |
|
paul@21 | 56 | When packaging a new release, update the release history below along with the
|
paul@21 | 57 | debian/changelog file:
|
paul@21 | 58 |
|
paul@38 | 59 | debchange -v 0.8-1 -D unstable
|
paul@38 | 60 |
|
paul@38 | 61 | The "-n" part of the version number causes a non-native Debian package to be
|
paul@38 | 62 | produced.
|
paul@21 | 63 |
|
paul@21 | 64 | Shed Skin Release History
|
paul@21 | 65 | =========================
|
paul@10 | 66 |
|
paul@25 | 67 | Release Git Changeset
|
paul@25 | 68 | ------- -------------
|
paul@36 | 69 | 0.8 7f7388c3dfab40dc1776cfd6334dd41bdaa62beb
|
paul@34 | 70 | 0.7.1 d35a07c99c29618e0dad6d31a3cf01599c0d758a
|
paul@31 | 71 | 0.7 8fc85b49137a79ca9acc5e63fa9fdfbb50751907
|
paul@25 | 72 | 0.6 1e6708d49e9092a7949ed74b7e339c5245bb6661
|
paul@25 | 73 |
|
paul@10 | 74 | Release Subversion Revision
|
paul@10 | 75 | ------- -------------------
|
paul@21 | 76 | 0.5 1507
|
paul@19 | 77 | 0.4 1363
|
paul@14 | 78 | 0.3-2 1165
|
paul@10 | 79 | 0.3-1 1165
|