From 59f4a818c2a6b615b73356fe9c3da2be492c158f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= Date: Fri, 15 Jul 2022 11:30:39 +0200 Subject: [PATCH] Reorder %package stanzas so %_summary is not necessary --- pyparsing.spec | 39 ++++++++++++++++++--------------------- 1 file changed, 18 insertions(+), 21 deletions(-) diff --git a/pyparsing.spec b/pyparsing.spec index b5420c7..730f5e0 100644 --- a/pyparsing.spec +++ b/pyparsing.spec @@ -1,5 +1,4 @@ %global srcname pyparsing -%global _summary Python package with an object-oriented approach to text processing # when bootstrapping Python 3, pyparsing needs to be rebuilt before depndency generator is available %bcond_with bootstrap @@ -9,7 +8,7 @@ %endif -Summary: %{_summary} +Summary: Python package with an object-oriented approach to text processing Name: pyparsing Version: 2.4.7 Release: %autorelease @@ -42,25 +41,8 @@ pyparsing is a module that can be used to easily and directly configure syntax definitions for any number of text parsing applications. -%if %{without bootstrap} -%package doc -Summary: Documentation for pyparsing python package - -# Most examples are under the project's license, MIT -# pymicko.py is under GPLv3+ -# snmp_api.h is under CMU-UC (MIT) -# sparser.py is under GPLv2+ -# searchparser.py is under BSD (3-clause, with advertising) -# btpyparse.py is under "Simplified BSD license" -License: MIT and GPLv2+ and GPLv3+ and BSD - -%description doc -The package contains documentation for pyparsing. -%endif - - %package -n python%{python3_pkgversion}-pyparsing -Summary: %{_summary} +Summary: %{summary} %if %{with bootstrap} Provides: python%{python3_pkgversion}dist(pyparsing) = %{version} Provides: python%{python3_version}dist(pyparsing) = %{version} @@ -73,7 +55,22 @@ Requires: python(abi) = %{python3_version} pyparsing is a module that can be used to easily and directly configure syntax definitions for any number of text parsing applications. -This is the Python 3 version. + +%if %{without bootstrap} +%package doc +Summary: Documentation for %{name} + +# Most examples are under the project's license, MIT +# pymicko.py is under GPLv3+ +# snmp_api.h is under CMU-UC (MIT) +# sparser.py is under GPLv2+ +# searchparser.py is under BSD (3-clause, with advertising) +# btpyparse.py is under "Simplified BSD license" +License: MIT and GPLv2+ and GPLv3+ and BSD + +%description doc +The package contains documentation for pyparsing. +%endif %prep