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,9 +41,24 @@ pyparsing is a module that can be used to easily and directly configure syntax definitions for any number of text parsing applications. +%package -n python%{python3_pkgversion}-pyparsing +Summary: %{summary} +%if %{with bootstrap} +Provides: python%{python3_pkgversion}dist(pyparsing) = %{version} +Provides: python%{python3_version}dist(pyparsing) = %{version} +Requires: python(abi) = %{python3_version} +%endif + +%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} + +%description -n python%{python3_pkgversion}-pyparsing +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 +Summary: Documentation for %{name} # Most examples are under the project's license, MIT # pymicko.py is under GPLv3+ @@ -59,23 +73,6 @@ The package contains documentation for pyparsing. %endif -%package -n python%{python3_pkgversion}-pyparsing -Summary: %{_summary} -%if %{with bootstrap} -Provides: python%{python3_pkgversion}dist(pyparsing) = %{version} -Provides: python%{python3_version}dist(pyparsing) = %{version} -Requires: python(abi) = %{python3_version} -%endif - -%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}} - -%description -n python%{python3_pkgversion}-pyparsing -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. - - %prep %autosetup -p1 -n %{name}-%{name}_%{version}