Merge lp:~smartboyhw/ubuntu-packaging-guide/update-packaging-new-software-pages into lp:ubuntu-packaging-guide

Proposed by Howard Chan
Status: Merged
Merged at revision: 445
Proposed branch: lp:~smartboyhw/ubuntu-packaging-guide/update-packaging-new-software-pages
Merge into: lp:ubuntu-packaging-guide
Diff against target: 98 lines (+14/-14)
1 file modified
ubuntu-packaging-guide/packaging-new-software.rst (+14/-14)
To merge this branch: bzr merge lp:~smartboyhw/ubuntu-packaging-guide/update-packaging-new-software-pages
Reviewer Review Type Date Requested Status
Daniel Holbach (community) Approve
Review via email: mp+191193@code.launchpad.net

Description of the change

1. hello's newest version is 2.9, so we will want to update it.
2. debhelper's latest version is 9. I propose to update it since we will want to enable multiarch, which is best supported in dh 9.
3. The "current" development version is saucy (as dated 15/10/2013).

To post a comment you must log in.
Revision history for this message
Daniel Holbach (dholbach) wrote :

Looks good. Thanks.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'ubuntu-packaging-guide/packaging-new-software.rst'
2--- ubuntu-packaging-guide/packaging-new-software.rst 2013-01-22 13:50:06 +0000
3+++ ubuntu-packaging-guide/packaging-new-software.rst 2013-10-15 14:11:28 +0000
4@@ -29,12 +29,12 @@
5
6 Download main package::
7
8- $ wget -O hello-2.7.tar.gz "http://ftp.gnu.org/gnu/hello/hello-2.7.tar.gz"
9+ $ wget -O hello-2.9.tar.gz "http://ftp.gnu.org/gnu/hello/hello-2.9.tar.gz"
10
11 Now uncompress main package::
12
13- $ tar xf hello-2.7.tar.gz
14- $ cd hello-2.7
15+ $ tar xf hello-2.9.tar.gz
16+ $ cd hello-2.9
17
18 This application uses the autoconf build system so we want to run ``./configure``
19 to prepare for compilation.
20@@ -66,7 +66,7 @@
21
22 $ sudo apt-get install dh-make
23 $ cd ..
24- $ bzr dh-make hello 2.7 hello-2.7.tar.gz
25+ $ bzr dh-make hello 2.9 hello-2.9.tar.gz
26
27 When it asks what type of package type ``s`` for single binary. This will import
28 the code into a branch and add the ``debian/`` packaging directory. Have a look
29@@ -80,15 +80,15 @@
30 You should now customise each of the files.
31
32 In ``debian/changelog`` change the
33-version number to an Ubuntu version: ``2.7-0ubuntu1`` (upstream version 2.7,
34+version number to an Ubuntu version: ``2.9-0ubuntu1`` (upstream version 2.9,
35 Debian version 0, Ubuntu version 1). Also change ``unstable`` to the current
36-development Ubuntu release such as ``precise``.
37+development Ubuntu release such as ``saucy``.
38
39 Much of the package building work is done by a series of scripts
40 called ``debhelper``. The exact behaviour of ``debhelper`` changes
41 with new major versions, the compat file instructs ``debhelper`` which
42 version to act as. You will generally want to set this to the most
43-recent version which is ``8``.
44+recent version which is ``9``.
45
46 ``control`` contains all the metadata of the package. The first paragraph
47 describes the source package. The second and following paragraphs describe
48@@ -96,7 +96,7 @@
49 compile the application to ``Build-Depends:``. For ``hello``, make sure that it
50 includes at least::
51
52- Build-Depends: debhelper (>= 8.0.0)
53+ Build-Depends: debhelper (>= 9)
54
55 You will also need to fill in a description of the program in the
56 ``Description:`` field.
57@@ -140,11 +140,11 @@
58
59 You can view the contents of the package with::
60
61- $ lesspipe hello_2.7-0ubuntu1_amd64.deb
62+ $ lesspipe hello_2.9-0ubuntu1_amd64.deb
63
64 Install the package and check it works::
65
66- $ sudo dpkg --install hello_2.7-0ubuntu1_amd64.deb
67+ $ sudo dpkg --install hello_2.9-0ubuntu1_amd64.deb
68
69 Next Steps
70 ----------
71@@ -154,8 +154,8 @@
72 ``lintian`` which can be run on both the source .dsc metadata file and
73 the .deb binary package::
74
75- $ lintian hello_2.7-0ubuntu1.dsc
76- $ lintian hello_2.7-0ubuntu1_amd64.deb
77+ $ lintian hello_2.9-0ubuntu1.dsc
78+ $ lintian hello_2.9-0ubuntu1_amd64.deb
79
80 A description of each of the problems it reports can be found on the
81 `lintian website`_.
82@@ -176,7 +176,7 @@
83
84 $ bzr builddeb -S
85 $ cd ../build-area
86- $ pbuilder-dist precise build hello_2.7-0ubuntu1.dsc
87+ $ pbuilder-dist precise build hello_2.9-0ubuntu1.dsc
88
89 When you are happy with your package you will want others to review it. You
90 can upload the branch to Launchpad for review::
91@@ -187,7 +187,7 @@
92 others to test the binary packages. You will need to set up a PPA in Launchpad
93 and then upload with ``dput``::
94
95- $ dput ppa:<lp-username> hello_2.7-0ubuntu1.changes
96+ $ dput ppa:<lp-username> hello_2.9-0ubuntu1.changes
97
98 See :doc:`uploading<./udd-uploading>` for more information.
99

Subscribers

People subscribed via source and target branches