[python-pep8] rename py3 version of pep8 to python3-pep8

Matthias Runge mrunge at fedoraproject.org
Wed Feb 26 14:16:57 UTC 2014


commit 5a1f07c54129956ef9df978105275ae6f0765987
Author: Matthias Runge <mrunge at redhat.com>
Date:   Wed Feb 26 15:17:32 2014 +0100

    rename py3 version of pep8 to python3-pep8

 python-pep8.spec |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)
---
diff --git a/python-pep8.spec b/python-pep8.spec
index cc062b9..aa758cd 100644
--- a/python-pep8.spec
+++ b/python-pep8.spec
@@ -1,4 +1,4 @@
-%if 0%{?fedora} > 12 || 0%{?rhel} > 6
+%if 0%{?fedora} > 12
 %bcond_without python3
 %else
 %bcond_with python3
@@ -10,7 +10,7 @@
 
 Name:           python-%{module_name}
 Version:        1.4.6
-Release:        1%{?dist}
+Release:        2%{?dist}
 Summary:        Python style guide checker
 
 Group:          Development/Languages
@@ -76,6 +76,7 @@ rm -rf %{buildroot}
 %if %{with python3}
 pushd %{py3dir}
 %{__python3} setup.py install -O1 --skip-build --root %{buildroot}
+mv %{buildroot}%{_bindir}/pep8 %{buildroot}%{_bindir}/python3-pep8
 popd
 %endif
 
@@ -104,12 +105,16 @@ popd
 %if %{with python3}
 %files -n python3-pep8
 %doc README.rst CHANGES.txt build/sphinx/html/*
+%{_bindir}/python3-pep8
 %{python3_sitelib}/%{module_name}.py*
 %{python3_sitelib}/%{module_name}-%{version}-*.egg-info/
 %{python3_sitelib}/__pycache__/%{module_name}*
 %endif
 
 %changelog
+* Wed Feb 26 2014 Matthias Runge <mrunge at redhat.com> -1.4.6-2
+- rename py3 version of pep8 to python3-pep8 (rhbz#1060408)
+
 * Tue Aug 13 2013 Ian Weller <iweller at redhat.com> - 1.4.6-1
 - update to 1.4.6
 


More information about the scm-commits mailing list