shedskin-packaging

README.txt

77:913f2292c470
2012-01-21 Paul Boddie Fixed e-mail address.
     1 Shed Skin Packaging for Debian
     2 ==============================
     3 
     4 Firstly, download the latest upstream source release. Although it might be
     5 desirable to get the latest code from the repository, Debian will eventually
     6 be using the actual source releases specified in the watch file. Here's how
     7 to download using the watch file:
     8 
     9 uscan --force-download --destdir=..
    10 
    11 The --force-download option is required when --download indicates that the
    12 package is up-to-date. This will make the necessary symbolic link for the
    13 shedskin_0.9.1.orig.tar.gz archive that must be present when building the
    14 package.
    15 
    16 Unpack the archive as follows:
    17 
    18 cd ..
    19 tar zxf shedskin-0.9.1.tgz
    20 
    21 Using the Upstream Repository
    22 -----------------------------
    23 
    24 One can also try and persuade Gitorious to yield a file by visiting the
    25 following address:
    26 
    27 http://gitorious.org/shedskin/mainline/archive-tarball/5834046
    28 
    29 The digest string can be replaced with a tag (if available):
    30 
    31 http://gitorious.org/shedskin/mainline/archive-tarball/0.9.1
    32 
    33 The idea is then to combine the snapshot with this packaging infrastructure.
    34 
    35 Unpack the archive:
    36 
    37 cd ..
    38 tar zxf shedskin-mainline-5834046.tar.gz
    39 mv shedskin-mainline shedskin_0.9.1
    40 
    41 Make a copy of the archive for Debian non-native packaging purposes:
    42 
    43 tar zcf shedskin_0.9.1.orig.tar.gz shedskin_0.9.1
    44 
    45 Building the Package
    46 --------------------
    47 
    48 Move into the sources directory:
    49 
    50 cd shedskin_0.9.1
    51 
    52 Now, copy the debian directory from this directory into the export directory:
    53 
    54 cp -R ../shedskin-packaging/debian/ .
    55 
    56 There are patches in debian/patches which should be applied when pbuilder is
    57 run. These should not need to be applied manually.
    58 
    59 Using pbuilder, try and build the package (this example is using my signing
    60 key):
    61 
    62 pdebuild --auto-debsign --debsign-k 9F308B3C
    63 
    64 Add extra options for the first packaging of a new release:
    65 
    66 pdebuild --auto-debsign --debsign-k 9F308B3C --debbuildopts -sa
    67 
    68 This makes sure that the original source archive is produced and referenced in
    69 the changes file (used by dput when uploading a package to a Debian package
    70 repository/archive).
    71 
    72 For a different distribution:
    73 
    74 pdebuild --auto-debsign --debsign-k 9F308B3C --debbuildopts -sa \
    75     -- --distribution squeeze
    76 
    77 Some files will appear in /var/cache/pbuilder/result/ (such as the binary
    78 package files), whereas others will appear in the parent directory.
    79 
    80 Uploading the Package
    81 ---------------------
    82 
    83 With an appropriate .dput.cf file, the following command can be used to upload
    84 package files to the Debian Mentors service:
    85 
    86 dput debexpo /var/cache/pbuilder/result/shedskin_0.9.1-1_i386.changes
    87 
    88 Maintenance Notes
    89 -----------------
    90 
    91 When packaging a new release, update the release history below along with the
    92 debian/changelog file:
    93 
    94 debchange -v 0.9.1-1 -D unstable
    95 
    96 The "-n" part of the version number causes a non-native Debian package to be
    97 produced.
    98 
    99 Shed Skin Release History
   100 =========================
   101 
   102 Release     Git Changeset
   103 -------     -------------
   104 0.9.1       5834046e821b8f2e6526815084220260e3db6420
   105 0.9-1       a3f8f54590d4099c4ec66669296d5169a7f652ff
   106 0.9         31b8214b451d87fae5ec7194a7b4430daa3f49ce
   107 0.8-1       d7cf784f5e12952a5630f6b78b3155995c825a38
   108 0.8         7f7388c3dfab40dc1776cfd6334dd41bdaa62beb
   109 0.7.1       d35a07c99c29618e0dad6d31a3cf01599c0d758a
   110 0.7         8fc85b49137a79ca9acc5e63fa9fdfbb50751907
   111 0.6         1e6708d49e9092a7949ed74b7e339c5245bb6661
   112 
   113 Release     Subversion Revision
   114 -------     -------------------
   115 0.5         1507
   116 0.4         1363
   117 0.3-2       1165
   118 0.3-1       1165