diff --git a/python-funcparserlib.spec b/python-funcparserlib.spec index d2de76aefc..c1105b7744 100644 --- a/python-funcparserlib.spec +++ b/python-funcparserlib.spec @@ -8,7 +8,7 @@ Name: python-%{srcname} Version: 0.3.6 -Release: 12%{?dist} +Release: 13%{?dist} Summary: Recursive descent parsing library based on functional combinators License: MIT @@ -24,19 +24,23 @@ BuildRequires: python2-devel python-setuptools python-nose BuildRequires: python3-devel python3-setuptools python3-nose %endif -%description +%global _description\ %(cat %{SOURCE1}) +%description %_description + +%package -n python2-%{srcname} +Summary: %summary +%{?python_provide:%python_provide python2-%{srcname}} + +%description -n python2-%{srcname} %_description %if %{has_py3} %package -n python3-%{srcname} Summary: %{summary} +%{?python_provide:%python_provide python3-%{srcname}} - -%description -n python3-%{srcname} -%(cat %{SOURCE1}) - -This package installs the %{srcname} module for Python 3. +%description -n python3-%{srcname} %_description %endif @@ -82,7 +86,7 @@ popd %endif -%files +%files -n python2-%{srcname} %doc PKG-INFO LICENSE README CHANGES %{python2_sitelib}/%{srcname}* %exclude %{python2_sitelib}/%{srcname}/tests @@ -90,13 +94,17 @@ popd %if %{has_py3} %files -n python3-%{srcname} -%{_pkgdocdir} +%doc PKG-INFO LICENSE README CHANGES %{python3_sitelib}/%{srcname}* %exclude %{python3_sitelib}/%{srcname}/tests %endif %changelog +* Thu Aug 10 2017 Zbigniew Jędrzejewski-Szmek - 0.3.6-13 +- Python 2 binary package renamed to python2-funcparserlib + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Thu Jul 27 2017 Fedora Release Engineering - 0.3.6-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild