1
0
mirror of https://github.com/jordansissel/fpm synced 2025-08-28 03:51:42 +02:00
fpm/templates/deb/deb.changes.erb
Timo Boettcher 07b0be428e Generate .changes file for Debian
This will generate .changes file for Debian packages. Some Debian
repository management tools use .changes files for importing packages.
The command line option --(no-)deb-generate-changes allows to select to
generate the .changes file, the option --deb-dist allows to set a
distribution (like sid) for the package.
2018-05-12 21:05:27 -07:00

32 lines
1.2 KiB
Plaintext

Format: 1.8
Date: <%= (if attributes[:source_date_epoch].nil? then Time.now() else Time.at(attributes[:source_date_epoch].to_i) end).strftime("%a, %d %b %Y %T %z") %>
Source: <%= name %>
Binary: <%= name %>
Architecture: <%= architecture %>
Version: <%= "#{epoch}:" if epoch %><%= version %><%= "-" + iteration.to_s if iteration %>
Distribution: <%= distribution %>
Urgency: medium
Maintainer: <%= maintainer %>
<% lines = (description or "no description given").split("\n") -%>
<% firstline, *remainder = lines -%>
Description: <%= firstline %>
<% if remainder.any? -%>
<%= remainder.collect { |l| l =~ /^ *$/ ? " ." : " #{l}" }.join("\n") %>
<% end -%>
Changes:
<%= name %> (<%= "#{epoch}:" if epoch %><%= version %><%= "-" + iteration.to_s if iteration %>) whatever; urgency=medium
.
* Package created with FPM.
Checksums-Sha1:
<% changes_files.each do |file| -%>
<%= file[:sha1sum] %> <%= file[:size] %> <%= file[:name] %>
<% end -%>
Checksums-Sha256:
<% changes_files.each do |file| -%>
<%= file[:sha256sum] %> <%= file[:size] %> <%= file[:name] %>
<% end -%>
Files:
<% changes_files.each do |file| -%>
<%= file[:md5sum] %> <%= file[:size] %> default <%= attributes[:deb_priority] %> <%= file[:name] %>
<% end -%>