From eb74bb2cd162f8030288f5c67fededac289df3a8 Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Jul 30 2017 19:37:32 +0000 Subject: Fix missing Python 3 version executables --- diff --git a/python-docutils.spec b/python-docutils.spec index 865a0d7..053ed63 100644 --- a/python-docutils.spec +++ b/python-docutils.spec @@ -6,7 +6,7 @@ Name: python-%{srcname} Version: 0.13.1 -Release: 5%{?dist} +Release: 6%{?dist} Summary: System for processing plaintext documentation Group: Development/Languages @@ -115,11 +115,14 @@ pushd %{py3dir} # docutils setup.py runs 2to3 on a copy of the tests and puts it in sitelib. rm -rf %{buildroot}%{python3_sitelib}/test +for file in %{buildroot}/%{_bindir}/*.py; do + mv $file `dirname $file`/`basename $file .py`-3 +done + # Flash file is used for testing docutils but shouldn't be in the installed package. mv docs/user/rst/images/biohazard.swf ./biohazard.swf popd -rm -rf %{buildroot}%{_bindir}/* %endif # with_python3 %py2_install @@ -151,7 +154,7 @@ popd %license COPYING.txt licenses/* %doc BUGS.txt COPYING.txt FAQ.txt HISTORY.txt README.txt RELEASE-NOTES.txt %doc THANKS.txt docs tools/editors -%{_bindir}/* +%{_bindir}/*[!'-3'] %{python2_sitelib}/* %if 0%{?with_python3} @@ -159,10 +162,14 @@ popd %license COPYING.txt licenses/* %doc BUGS.txt FAQ.txt HISTORY.txt README.txt RELEASE-NOTES.txt %doc THANKS.txt docs tools/editors +%{_bindir}/*-3 %{python3_sitelib}/* %endif %changelog +* Sun Jul 30 2017 Jan Beran - 0.13.1-6 +- Fix missing Python 3 version executables + * Thu Jul 27 2017 Fedora Release Engineering - 0.13.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild @@ -398,3 +405,4 @@ popd * Sat Jan 10 2004 Michel Alexandre Salim 0:0.3-0.fdr.1 - Initial RPM release. +