diff --git python-mwlib/python-mwlib.spec python-mwlib/python-mwlib.spec.tmp index 760a0a45f7..29d02383f6 100644 --- python-mwlib/python-mwlib.spec +++ python-mwlib/python-mwlib.spec.tmp @@ -7,7 +7,7 @@ Name: python-%{module_name} Version: 0.15.14 -Release: 9%{?dist} +Release: 10%{?dist} Summary: MediaWiki parser and utility library License: BSD @@ -45,6 +45,17 @@ BuildRequires: python-simplejson >= 2.3 BuildRequires: python-sqlite3dbm BuildRequires: python-roman BuildRequires: pytest + +%global _description\ +mwlib provides a library for parsing MediaWiki articles and converting them to\ +different output formats. mwlib is used by Wikipedia's "Print/export" feature\ +in order to generate PDF documents from Wikipedia articles.\ + + +%description %_description + +%package -n python2-%{module_name} +Summary: %summary Requires: odfpy >= 0.9 Requires: pyPdf >= 1.12 Requires: pyparsing >= 1.4.11 @@ -61,12 +72,9 @@ Requires: python-setuptools Requires: python-simplejson >= 2.3 Requires: python-sqlite3dbm Requires: python-roman +%{?python_provide:%python_provide python2-%{module_name}} -%description -mwlib provides a library for parsing MediaWiki articles and converting them to -different output formats. mwlib is used by Wikipedia's "Print/export" feature -in order to generate PDF documents from Wikipedia articles. - +%description -n python2-%{module_name} %_description %prep %setup -qn %{module_name}-%{version} @@ -116,7 +124,7 @@ PATH=%{buildroot}%{_bindir}:$PATH \ rm %{buildroot}%{python2_sitearch}/mwlib/__init__.py -%files +%files -n python2-%{module_name} %doc changelog.rst README.rst README.fedora docs %{python_sitearch}/* %{_bindir}/mw-* @@ -124,6 +132,10 @@ rm %{buildroot}%{python2_sitearch}/mwlib/__init__.py %changelog +* Thu Aug 10 2017 Zbigniew Jędrzejewski-Szmek - 0.15.14-10 +- Python 2 binary package renamed to python2-mwlib + See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3 + * Thu Aug 03 2017 Fedora Release Engineering - 0.15.14-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild