#2 Update python-svg.spec
Merged 5 years ago by limb. Opened 5 years ago by ferdnyc.
rpms/ ferdnyc/python-svg spec-fixes  into  master

file modified
+8 -15
@@ -16,7 +16,7 @@ 

  %global _description\

  pySVG is a pure Python library to create/load and manipulate SVG documents.\

  \

- It's main use is to "code" svg images.

+ Its main use is to "code" svg images.

  

  %description %_description

  
@@ -26,28 +26,21 @@ 

  

  %description -n python2-svg %_description

  

+ %package -n python3-svg

+ Summary: %summary

+ %{?python_provide:%python_provide python3-svg}

+ 

+ %description -n python3-svg %_description

+ 

  %package doc

  Summary: Documentation for python-syg

  Group: Development/Libraries

  Requires: python2-svg = %{version}-%{release}

  

- %description doc

- pySVG is a pure Python library to create/load and manipulate SVG documents.

- 

- It's main use is to "code" svg images. 

+ %description doc %_description

  

  These are the documentation files.

  

- %package -n python3-svg

- Summary:        %{sum}

- %{?python_provide:%python_provide python3-svg}

- 

- %description -n python3-svg

- pySVG is a pure Python library to create/load and manipulate SVG documents.

- 

- It's main use is to "code" svg images. 

- 

- 

  %prep

  %setup -qn pysvg-%{version}

  

Because this is not a defined macro:

Summary:     %{sum}

The summary field of python3-svg-0.2.2b-14.fc28.noarch.rpm currently reads "%{sum}".

These changes:

  • Fix the python3-svg subpackage summary field
  • Move the -doc subpackage definition below both python subs, to reuse %summary for python3-svg
  • Reuse %_description on each subpackage, instead of repeating
  • Tweak the description grammar (it's => its)

1 new commit added

  • Update python-svg.spec
5 years ago

Pull-Request has been merged by limb

5 years ago