#22 summary is like description, but not multiline
Merged 7 years ago by ignatenkobrain. Opened 7 years ago by ignatenkobrain.

file modified
+13 -1
@@ -71,7 +71,12 @@ 

  Name:           {{ name }}

  Version:        {{ md.version }}

  Release:        1%{?dist}

- Summary:        {{ md.description|default("# FIXME") }}

+ {% if md.description is none %}

+ Summary:        # FIXME

+ {% else %}

+ {% set description_lines = md.description.split("\n") %}

+ Summary:        {{ description_lines|join(" ")|trim }}

+ {% endif %}

  

  License:        {{ md.license|default("# FIXME") }}

  URL:            https://crates.io/crates/{{ md.name }}
@@ -118,7 +123,14 @@ 

  {% endif %}

  

  %description {{ name_devel }}

+ {% if md.description is none %}

  %{summary}.

+ {% else %}

+ {{ md.description|wordwrap|trim }}

+ {% endif %}

+ 

+ This package contains library source intended for building other packages

+ which use %{crate} from crates.io.

  

  {% endif %}

  %prep

rebased

7 years ago

Pull-Request has been merged by ignatenkobrain

7 years ago
Metadata