mirror of
https://github.com/jordansissel/fpm
synced 2025-08-26 03:34:35 +02:00
30 lines
1.0 KiB
Plaintext
30 lines
1.0 KiB
Plaintext
Package: <%= name %>
|
|
Version: <%= "#{epoch}:" if epoch %><%= version %><%= iteration && '-'+iteration.to_s %>
|
|
Architecture: <%= architecture %>
|
|
Maintainer: <%= maintainer or "<unknown>" %>
|
|
<% if !dependencies.empty? -%>
|
|
<% properdeps = dependencies.collect { |d| fix_dependency(d) }.flatten -%>
|
|
Depends: <%= properdeps.flatten.join(", ") %>
|
|
<% end -%>
|
|
<% if !conflicts.empty? -%>
|
|
Conflicts: <%= conflicts.join(", ") %>
|
|
<% end -%>
|
|
<% if !provides.empty? -%>
|
|
Provides: <%= provides.join(", ") %>
|
|
<% end -%>
|
|
<% if !replaces.empty? -%>
|
|
<% properrepl = replaces.collect { |d| fix_dependency(d) }.flatten -%>
|
|
Replaces: <%= properrepl.flatten.join(", ") %>
|
|
<% end -%>
|
|
Standards-Version: 3.9.1
|
|
Section: <%= category or "unknown" %>
|
|
Priority: extra
|
|
Homepage: <%= url or "http://nourlgiven.example.com/" %>
|
|
<% lines = (description or "no description given").split("\n") -%>
|
|
<% firstline = lines.first -%>
|
|
<% remainder = lines[1..-1] -%>
|
|
Description: <%= firstline %>
|
|
<% if !remainder.nil? -%>
|
|
<%= remainder.collect { |l| l =~ /^ *$/ ? " ." : " #{l}" }.join("\n") %>
|
|
<% end -%>
|