diff --git a/python-docx.spec b/python-docx.spec index baa3be3..23f0249 100644 --- a/python-docx.spec +++ b/python-docx.spec @@ -4,7 +4,7 @@ Name: python-docx Version: 0.8.5 -Release: 9%{?dist} +Release: 10%{?dist} Summary: Create and update Microsoft Word .docx files License: MIT @@ -15,7 +15,6 @@ BuildArch: noarch BuildRequires: python-devel BuildRequires: python-lxml -Requires: python-lxml # test requirements BuildRequires: python-behave >= 1.2.3 BuildRequires: pyparsing >= 2.0.1 @@ -35,7 +34,6 @@ Summary: Create and update Microsoft Word .docx files BuildRequires: python3-devel BuildRequires: python3-lxml -Requires: python3-lxml #Testing requirements # python-behave Not available for python3 @@ -52,9 +50,19 @@ Python library for creating and updating Microsoft Word (.docx) files. %endif -%description +%global _description\ Python library for creating and updating Microsoft Word (.docx) files. +%description %_description + +%package -n python2-%{pname} +Summary: %summary +Requires: python-lxml +Requires: python3-lxml +%{?python_provide:%python_provide python2-%{pname}} + +%description -n python2-%{pname} %_description + %prep %setup -qn %{name}-%{version} # Remove bundled egg-info @@ -82,7 +90,7 @@ behave --stop %{__python3} -m pytest %endif -%files +%files -n python2-%{pname} %doc README.rst %license LICENSE %{python2_sitelib}/%{pname} @@ -97,6 +105,10 @@ behave --stop %endif %changelog +* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek - 0.8.5-10 +- Python 2 binary package renamed to python2-docx + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Thu Jul 27 2017 Fedora Release Engineering - 0.8.5-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild