diff --git python-HTMLgen/python-HTMLgen.spec python-HTMLgen/python-HTMLgen.spec.tmp
index bffb81a4fe..f0b32999d7 100644
--- python-HTMLgen/python-HTMLgen.spec
+++ python-HTMLgen/python-HTMLgen.spec.tmp
@@ -3,7 +3,7 @@
Name: python-HTMLgen
Version: 2.2.2
-Release: 26%{?dist}
+Release: 27%{?dist}
Summary: A class library for the generation of HTML documents
Group: Development/Libraries
@@ -20,11 +20,19 @@ Patch2: htmlgen-whrandom-2.2.2.patch
BuildRequires: python-devel
BuildArch: noarch
-%description
-HTMLgen is a class library for the generation of HTML documents with Python
-scripts. It's used when you want to create HTML pages containing information
+%global _description\
+HTMLgen is a class library for the generation of HTML documents with Python\
+scripts. It's used when you want to create HTML pages containing information\
which changes from time to time.
+%description %_description
+
+%package -n python2-htmlgen
+Summary: %summary
+%{?python_provide:%python_provide python2-htmlgen}
+
+%description -n python2-htmlgen %_description
+
%prep
%setup -q -n HTMLgen
%patch -p1
@@ -49,13 +57,17 @@ done
%clean
rm -rf $RPM_BUILD_ROOT
-%files
+%files -n python2-htmlgen
%defattr(-,root,root,-)
%doc README html image data
%{python_sitelib}/*.py
%{python_sitelib}/*.py[co]
%changelog
+* Sat Aug 12 2017 Zbigniew Jędrzejewski-Szmek - 2.2.2-27
+- Python 2 binary package renamed to python2-htmlgen
+ See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
+
* Thu Jul 27 2017 Fedora Release Engineering - 2.2.2-26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild