diff --git a/python-webcolors.spec b/python-webcolors.spec index 28395ced1e..c3540d6013 100644 --- a/python-webcolors.spec +++ b/python-webcolors.spec @@ -8,7 +8,7 @@ Name: python-%{srcname} Version: 1.7 -Release: 3%{?dist} +Release: 4%{?dist} Summary: A library for working with HTML and CSS color names and value formats License: BSD @@ -37,19 +37,23 @@ BuildRequires: python-sphinx_rtd_theme %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} -%description -n python3-%{srcname} -%(cat %{SOURCE1}) - -This package installs the %{srcname} module for Python 3. +%description -n python3-%{srcname} %_description %endif @@ -96,20 +100,24 @@ popd %endif -%files +%files -n python2-%{srcname} %doc PKG-INFO LICENSE README.rst docs/_build/* %{python2_sitelib}/%{srcname}* %if %{has_py3} %files -n python3-%{srcname} -%{_pkgdocdir} +%doc PKG-INFO LICENSE README.rst %{python3_sitelib}/__pycache__/* %{python3_sitelib}/%{srcname}* %endif %changelog +* Thu Aug 10 2017 Zbigniew Jędrzejewski-Szmek - 1.7-4 +- Python 2 binary package renamed to python2-webcolors + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Thu Jul 27 2017 Fedora Release Engineering - 1.7-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild