diff --git a/python-taskw.spec b/python-taskw.spec index 6c42e3a455..cf698cae31 100644 --- a/python-taskw.spec +++ b/python-taskw.spec @@ -12,7 +12,7 @@ Name: python-taskw Version: 1.2.0 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Python bindings for your taskwarrior database Group: Development/Libraries @@ -32,21 +32,13 @@ BuildRequires: pytz BuildREquires: python-kitchen BuildRequires: python-unittest2 -Requires: python-six -Requires: python-dateutil -Requires: pytz -Requires: python-kitchen - %if 0%{?rhel} && 0%{?rhel} <= 6 -# The integration with task CLI doesn't work for older versions. %else BuildRequires: task -Requires: task %endif %if 0%{?rhel} && 0%{?rhel} <= 6 BuildRequires: python-ordereddict -Requires: python-ordereddict %endif %if 0%{?with_python3} @@ -59,10 +51,30 @@ BuildRequires: python3-pytz BuildRequires: python3-kitchen %endif -%description -This is a python API for the `taskwarrior `_ +%global _description\ +This is a python API for the `taskwarrior `_\ command line tool. +%description %_description + +%package -n python2-taskw +Summary: %summary +Requires: python-six +Requires: python-dateutil +Requires: pytz +Requires: python-kitchen +%if 0%{?rhel} && 0%{?rhel} <= 6 +# The integration with task CLI doesn't work for older versions. +%else +Requires: task +%endif +%if 0%{?rhel} && 0%{?rhel} <= 6 +Requires: python-ordereddict +%endif +%{?python_provide:%python_provide python2-taskw} + +%description -n python2-taskw %_description + %if 0%{?with_python3} %package -n python3-taskw Summary: Python bindings for your taskwarrior database @@ -116,7 +128,7 @@ popd # Remove the tests after we've run them. No reason to ship them. %{__rm} -r %{buildroot}%{python2_sitelib}/%{modname}/test -%files +%files -n python2-taskw %doc README.rst LICENSE.txt %{python2_sitelib}/%{modname} %{python2_sitelib}/%{modname}-%{version}* @@ -131,6 +143,10 @@ popd %changelog +* Sun Dec 17 2017 Zbigniew Jędrzejewski-Szmek - 1.2.0-5 +- Python 2 binary package renamed to python2-taskw + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Thu Jul 27 2017 Fedora Release Engineering - 1.2.0-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild