deb-changelog.man 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. .\" dpkg manual page - deb-changelog(5)
  2. .\"
  3. .\" Copyright © 1996-1998 Ian Jackson and Christian Schwarz
  4. .\" Copyright © 1998, 2001 Manoj Srivastava <srivasta@debian.org>
  5. .\" Copyright © 2001 Julian Gilbey <jdg@debian.org>
  6. .\" Copyright © 2003 Josip Rodin <joy@debian.org>
  7. .\" Copyright © 2008, 2010 Russ Allbery <rra@debian.org>
  8. .\" Copyright © 2010 Charles Plessy <plessy@debian.org>
  9. .\" Copyright © 2014 Bill Allombert <ballombe@debian.org>
  10. .\" Copyright © 2015 Guillem Jover <guillem@debian.org>
  11. .\"
  12. .\" This is free software; you can redistribute it and/or modify
  13. .\" it under the terms of the GNU General Public License as published by
  14. .\" the Free Software Foundation; either version 2 of the License, or
  15. .\" (at your option) any later version.
  16. .\"
  17. .\" This is distributed in the hope that it will be useful,
  18. .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. .\" GNU General Public License for more details.
  21. .\"
  22. .\" You should have received a copy of the GNU General Public License
  23. .\" along with this program. If not, see <https://www.gnu.org/licenses/>.
  24. .
  25. .TH deb-changelog 5 "%RELEASE_DATE%" "%VERSION%" "dpkg suite"
  26. .nh
  27. .SH NAME
  28. deb\-changelog \- dpkg source packages' changelog file format
  29. .
  30. .SH SYNOPSIS
  31. changelog
  32. .
  33. .SH DESCRIPTION
  34. Changes in the packaged version of a project are explained in the
  35. changelog file \fIdebian/changelog\fP.
  36. This includes modifications made in the source package compared to the
  37. upstream one as well as other changes and updates to the package.
  38. .PP
  39. The format of the \fIdebian/changelog\fP allows the package building
  40. tools to discover which version of the package is being built and find
  41. out other release-specific information.
  42. .PP
  43. That format is a series of entries like this:
  44. .nf
  45. \fIpackage\fP (\fIversion\fP) \fIdistributions\fP; \fImetadata\fP
  46. [optional blank line(s), stripped]
  47. * \fIchange-details\fP
  48. \fImore-change-details\fP
  49. [blank line(s), included in output of \fBdpkg\-parsechangelog\fP(1)]
  50. * \fIeven-more-change-details\fP
  51. [optional blank line(s), stripped]
  52. \-\- \fImaintainer-name\fP <\fIemail-address\fP> \fIdate\fP
  53. .fi
  54. .PP
  55. \fIpackage\fP and \fIversion\fP are the source package name and version
  56. number.
  57. .PP
  58. \fIdistributions\fP lists one or more space-separated distributions where
  59. this version should be installed when it is uploaded; it is copied to the
  60. \fBDistribution\fP field in the \fI.changes\fP file.
  61. .PP
  62. \fImetadata\fP is a comma-separated list of \fIkeyword\fP=\fIvalue\fP items.
  63. The only \fIkeyword\fPs currently supported by \fBdpkg\fP are \fBurgency\fP
  64. and \fBbinary\-only\fP.
  65. \fBurgency\fP's value is used for the \fBUrgency\fP field in the
  66. \fI.changes\fP file for the upload.
  67. \fBbinary\-only\fP with a \fByes\fP value, is used to denote that this
  68. changelog entry is for a binary-only non-maintainer upload (an automatic
  69. binary rebuild with the only change being the changelog entry).
  70. .PP
  71. The change details may in fact be any series of lines starting with
  72. at least two spaces, but conventionally each change starts with an
  73. asterisk and a separating space and continuation lines are indented
  74. so as to bring them in line with the start of the text above.
  75. Blank lines may be used here to separate groups of changes, if desired.
  76. .PP
  77. If this upload resolves bugs recorded in the distribution bug tracking
  78. system, they may be automatically closed on the inclusion of this
  79. package into the distribution archive by including the string:
  80. .nf
  81. \fBCloses: Bug#\fP\fInnnnn\fP
  82. .fi
  83. in the change details (the exact Perl regular expression is
  84. \fB/closes:\\s*(?:bug)?\\#?\\s?\\d+(?:,\\s*(?:bug)?\\#?\\s?\\d+)*/i\fP).
  85. This information is conveyed via the \fBCloses\fP field in the \fI.changes\fP
  86. file.
  87. .PP
  88. The maintainer name and email address used in the changelog should be the
  89. details of the person who prepared this release of the package.
  90. They are \fBnot\fP necessarily those of the uploader or usual package
  91. maintainer.
  92. The information here will be copied to the \fBChanged\-By\fP field in the
  93. \fI.changes\fP file, and then later might be used to send an acknowledgement
  94. when the upload has been installed in the distribution archive.
  95. .PP
  96. The \fIdate\fP has the following format (compatible and with the same
  97. semantics of RFC2822 and RFC5322, or what «date \-R» generates):
  98. .IP
  99. \fIday-of-week\fP\fB,\fP \fIdd\fP \fImonth\fP \fIyyyy\fP \fIhh\fP\fB:\fP\fImm\fP\fB:\fP\fIss\fP \fB+\fP\fIzzzz\fP
  100. .PP
  101. where:
  102. .TP
  103. .I day-of-week
  104. Is one of:
  105. .BR Mon ", " Tue ", " Wed ", " Thu ", " Fri ", " Sat ", " Sun .
  106. .TP
  107. .I dd
  108. Is a one- or two-digit day of the month (\fB01\fP-\fB31\fP).
  109. .TP
  110. .I month
  111. Is one of:
  112. .BR Jan ", " Feb ", " Mar ", " Apr ", " May ", " Jun ", " Jul ", " Aug ", "
  113. .BR Sep ", " Oct ", " Nov ", " Dec .
  114. .TP
  115. .I yyyy
  116. Is the four-digit year (e.g. 2010).
  117. .TP
  118. .I hh
  119. Is the two-digit hour (\fB00\fP-\fB23\fP).
  120. .TP
  121. .I mm
  122. Is the two-digit minutes (\fB00\fP-\fB59\fP).
  123. .TP
  124. .I ss
  125. Is the two-digit seconds (\fB00\fP-\fB60\fP).
  126. .TP
  127. .RI [\fB+-\fP] zzzz
  128. Is the time zone offset from Coordinated Universal Time (UTC).
  129. ‘\fB+\fP’ indicates that the time is ahead of (i.e., east of) UTC and
  130. ‘\fB\-\fP’ indicates that the time is behind (i.e., west of) UTC.
  131. The first two digits indicate the hour difference from UTC and the last
  132. two digits indicate the number of additional minutes difference from UTC.
  133. The last two digits must be in the range \fB00\fP-\fB59\fP.
  134. .PP
  135. The first “title” line with the package name must start at the left
  136. hand margin.
  137. The “trailer” line with the maintainer and date details must be
  138. preceded by exactly one space.
  139. The maintainer details and the date must be separated by exactly two
  140. spaces.
  141. .PP
  142. The entire changelog must be encoded in UTF-8.
  143. .SH FILES
  144. .TP
  145. .I debian/changelog
  146. .SH EXAMPLES
  147. .nf
  148. dpkg (1.17.18) unstable; urgency=low
  149. [ Guillem Jover ]
  150. * Handle empty minimum versions when initializing dependency versions,
  151. as the code is mapping the minimum version 0 to '' to avoid outputting
  152. useless versions. Regression introduced in dpkg 1.17.17. Closes: #764929
  153. [ Updated programs translations ]
  154. * Catalan (Guillem Jover).
  155. [ Updated dselect translations ]
  156. * Catalan (Guillem Jover).
  157. * German (Sven Joachim).
  158. \-\- Guillem Jover <guillem@debian.org> Sun, 12 Oct 2014 15:47:44 +0200
  159. .fi
  160. .
  161. .SH SEE ALSO
  162. .BR deb\-version (5),
  163. .BR deb\-changes (5),
  164. .BR dpkg\-parsechangelog (1).