Skip to content
This repository has been archived by the owner on Jun 28, 2022. It is now read-only.

Allow for summary to be different from description #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion epm.erl
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
buildhost = "localhost",
url,
description = "no description",
summary = "no summary",
maintainer,
post_install,
pre_uninstall,
Expand Down Expand Up @@ -174,6 +175,9 @@ parse_args(["-m", Desc|Args], #fpm{} = State) ->
parse_args(["--maintainer", Desc|Args], #fpm{} = State) ->
parse_args(Args, State#fpm{maintainer = Desc});

parse_args(["--summary", Summary|Args], #fpm{} = State) ->
parse_args(Args, State#fpm{summary = Summary});

parse_args(["--description", Desc|Args], #fpm{} = State) ->
parse_args(Args, State#fpm{description = Desc});

Expand Down Expand Up @@ -466,7 +470,7 @@ rpm(#fpm{paths = Dirs0, output = OutPath, force = Force, name = Name0, version =
CPIO = zlib:gzip(cpio(Files)),

Info1 = [
{summary, FPM#fpm.description},
{summary, FPM#fpm.summary},
{description, FPM#fpm.description},
{buildhost, BHost},
{vendor, FPM#fpm.vendor},
Expand Down Expand Up @@ -1087,6 +1091,7 @@ Options:
--config-files CONFIG_FILES Mark a file in the package as being a config file. This uses 'conffiles' in debs and %config in rpm. If you have multiple files to mark as configuration files, specify this flag multiple times.
-a, --architecture ARCHITECTURE The architecture name. Usually matches 'uname -m'. For automatic values, you can use '-a all' or '-a native'. These two strings will be translated into the correct value for your platform and target package type.
-m, --maintainer MAINTAINER The maintainer of this package. (default: \"<[email protected]>\")
--summary SUMMARY One line summary of package. (default: \"no summary\")
--description DESCRIPTION Add a description for this package. You can include '
' sequences to indicate newline breaks. (default: \"no description\")
--url URI Add a url for this package. (default: \"http://example.com/no-uri-given\")
Expand Down