deb-changelog.5 6.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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 "2015-06-01" "Debian Project" "Debian"
  26. .SH NAME
  27. deb\-changelog \- dpkg source packages' changelog file format
  28. .
  29. .SH SYNOPSIS
  30. changelog
  31. .
  32. .SH DESCRIPTION
  33. Changes in the packaged version of a project are explained in the
  34. changelog file \fIdebian/changelog\fP.
  35. This includes modifications made in the source package compared to the
  36. upstream one as well as other changes and updates to the package.
  37. .PP
  38. The format of the \fIdebian/changelog\fP allows the package building
  39. tools to discover which version of the package is being built and find
  40. out other release-specific information.
  41. .PP
  42. That format is a series of entries like this:
  43. .nf
  44. \fIpackage\fP (\fIversion\fP) \fIdistributions\fP; \fImetadata\fP
  45. [optional blank line(s), stripped]
  46. * \fIchange-details\fP
  47. \fImore-change-details\fP
  48. [blank line(s), included in output of \fBdpkg\-parsechangelog\fP(1)]
  49. * \fIeven-more-change-details\fP
  50. [optional blank line(s), stripped]
  51. \-\- \fImaintainer-name\fP <\fIemail-address\fP> \fIdate\fP
  52. .fi
  53. .PP
  54. \fIpackage\fP and \fIversion\fP are the source package name and version
  55. number.
  56. .PP
  57. \fIdistributions\fP lists one or more space-separated distributions where
  58. this version should be installed when it is uploaded; it is copied to the
  59. \fBDistribution\fP field in the \fI.changes\fP file.
  60. .PP
  61. \fImetadata\fP is a comma-separated list of \fIkeyword\fP=\fIvalue\fP items.
  62. The only \fIkeyword\fPs currently supported by \fBdpkg\fP are \fBurgency\fP
  63. and \fBbinary\-only\fP.
  64. \fBurgency\fP's value is used for the \fBUrgency\fP field in the
  65. \fI.changes\fP file for the upload.
  66. \fBbinary\-only\fP with a \fByes\fP value, is used to denote that this
  67. changelog entry is for a binary-only non-maintainer upload (an automatic
  68. binary rebuild with the only change being the changelog entry).
  69. .PP
  70. The change details may in fact be any series of lines starting with
  71. at least two spaces, but conventionally each change starts with an
  72. asterisk and a separating space and continuation lines are indented
  73. so as to bring them in line with the start of the text above.
  74. Blank lines may be used here to separate groups of changes, if desired.
  75. .PP
  76. If this upload resolves bugs recorded in the distribution bug tracking
  77. system, they may be automatically closed on the inclusion of this
  78. package into the distribution archive by including the string:
  79. .nf
  80. \fBCloses: Bug#\fP\fInnnnn\fP
  81. .fi
  82. in the change details (the exact Perl regular expression is
  83. \fB/closes:\\s*(?:bug)?\\#?\\s?\\d+(?:,\\s*(?:bug)?\\#?\\s?\\d+)*/i\fP).
  84. This information is conveyed via the \fBCloses\fP field in the \fI.changes\fP
  85. file.
  86. .PP
  87. The maintainer name and email address used in the changelog should be the
  88. details of the person who prepared this release of the package.
  89. They are \fBnot\fP necessarily those of the uploader or usual package
  90. maintainer.
  91. The information here will be copied to the \fBChanged\-By\fP field in the
  92. \fI.changes\fP file, and then later might be used to send an acknowledgement
  93. when the upload has been installed in the distribution archive.
  94. .PP
  95. The \fIdate\fP has the following format (compatible and with the same
  96. semantics of RFC2822 and RFC5322, or what «date \-R» generates):
  97. .IP
  98. \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
  99. .PP
  100. where:
  101. .TP
  102. .I day-of-week
  103. Is one of:
  104. .BR Mon ", " Tue ", " Wed ", " Thu ", " Fri ", " Sat ", " Sun .
  105. .TP
  106. .I dd
  107. Is a one- or two-digit day of the month (\fB01\fP-\fB31\fP).
  108. .TP
  109. .I month
  110. Is one of:
  111. .BR Jan ", " Feb ", " Mar ", " Apr ", " May ", " Jun ", " Jul ", " Aug ", "
  112. .BR Sep ", " Oct ", " Nov ", " Dec .
  113. .TP
  114. .I yyyy
  115. Is the four-digit year (e.g. 2010).
  116. .TP
  117. .I hh
  118. Is the two-digit hour (\fB00\fP-\fB23\fP).
  119. .TP
  120. .I mm
  121. Is the two-digit minutes (\fB00\fP-\fB59\fP).
  122. .TP
  123. .I ss
  124. Is the two-digit seconds (\fB00\fP-\fB60\fP).
  125. .TP
  126. .RI [\fB+-\fP] zzzz
  127. Is the the time zone offset from Coordinated Universal Time (UTC).
  128. \(oq\fB+\fP\(cq indicates that the time is ahead of (i.e., east of) UTC and
  129. \(oq\fB\-\fP\(cq indicates that the time is behind (i.e., west of) UTC.
  130. The first two digits indicate the hour difference from UTC and the last
  131. two digits indicate the number of additional minutes difference from UTC.
  132. The last two digits must be in the range \fB00\fP-\fB59\fP.
  133. .PP
  134. The first \(lqtitle\(rq line with the package name must start at the left
  135. hand margin.
  136. The \(lqtrailer\(rq line with the maintainer and date details must be
  137. preceded by exactly one space.
  138. The maintainer details and the date must be separated by exactly two
  139. spaces.
  140. .PP
  141. The entire changelog must be encoded in UTF-8.
  142. .SH FILES
  143. .TP
  144. .I debian/changelog
  145. .SH EXAMPLES
  146. .nf
  147. dpkg (1.17.18) unstable; urgency=low
  148. [ Guillem Jover ]
  149. * Handle empty minimum versions when initializing dependency versions,
  150. as the code is mapping the minimum version 0 to '' to avoid outputting
  151. useless versions. Regression introduced in dpkg 1.17.17. Closes: #764929
  152. [ Updated programs translations ]
  153. * Catalan (Guillem Jover).
  154. [ Updated dselect translations ]
  155. * Catalan (Guillem Jover).
  156. * German (Sven Joachim).
  157. \-\- Guillem Jover <guillem@debian.org> Sun, 12 Oct 2014 15:47:44 +0200
  158. .fi
  159. .
  160. .SH SEE ALSO
  161. .BR deb\-version (5),
  162. .BR deb\-changes (5),
  163. .BR dpkg\-parsechangelog (1).