diff --git a/python-drat.spec b/python-drat.spec index 18db491350..71f79b725a 100644 --- a/python-drat.spec +++ b/python-drat.spec @@ -3,7 +3,7 @@ Name: python-%{module_name} Version: 0.4.2 -Release: 9%{?dist} +Release: 10%{?dist} Summary: A reading text analysis tool License: GPLv3+ @@ -16,13 +16,21 @@ BuildRequires: python-requests BuildRequires: python-click BuildRequires: python-setuptools -%description -Drat is a tool that analyzes reading texts and produces a brief report which -gives a readability score (according to the Dale-Chall readability formula) -and the number of uncommon words (based on the General Service List) in the -text. It also lists all of these uncommon words (if you choose the verbose +%global _description\ +Drat is a tool that analyzes reading texts and produces a brief report which\ +gives a readability score (according to the Dale-Chall readability formula)\ +and the number of uncommon words (based on the General Service List) in the\ +text. It also lists all of these uncommon words (if you choose the verbose\ option). +%description %_description + +%package -n python2-%{module_name} +Summary: %summary +%{?python_provide:%python_provide python2-%{module_name}} + +%description -n python2-%{module_name} %_description + %if 0%{with_python3} %package -n python3-%{module_name} Summary: A reading text analysis tool @@ -31,6 +39,8 @@ BuildRequires: python3-devel BuildRequires: python3-requests BuildRequires: python3-click BuildRequires: python3-setuptools + +%description -n python3-%{module_name} %_description %endif %package -n %{module_name}-tools @@ -40,16 +50,7 @@ License: GPLv3+ %if 0%{with_python3} Requires: python3-drat %else -Requires: python-drat -%endif - -%if 0%{with_python3} -%description -n python3-%{module_name} -Drat is a tool that analyzes reading texts and produces a brief report which -gives a readability score (according to the Dale-Chall readability formula) -and the number of uncommon words (based on the General Service List) in the -text. It also lists all of these uncommon words (if you choose the verbose -option). +Requires: python2-drat %endif %description -n %{module_name}-tools @@ -93,7 +94,7 @@ echo ${_python3} %doc README.rst %{_bindir}/* -%files -n python-%{module_name} +%files -n python2-%{module_name} %doc README.rst %{python2_sitelib}/%{module_name}/ %{python2_sitelib}/%{module_name}-%{version}-py2.7.egg-info @@ -107,6 +108,10 @@ echo ${_python3} %changelog +* Tue Aug 08 2017 Zbigniew Jędrzejewski-Szmek - 0.4.2-10 +- Python 2 binary package renamed to python2-drat + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Thu Jul 27 2017 Fedora Release Engineering - 0.4.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild