From fc8a1b7473cdb3cb8cfaf8d453588ad04c1eb870 Mon Sep 17 00:00:00 2001 From: Iryna Shcherbina Date: Sep 13 2017 16:14:16 +0000 Subject: Fix Python 3 dependency from python2-graphitesend --- diff --git a/python-graphitesend.spec b/python-graphitesend.spec index 952bf1a..8dce42c 100644 --- a/python-graphitesend.spec +++ b/python-graphitesend.spec @@ -10,7 +10,7 @@ Easy python bindings to write to Carbon (Re-write of carbonclient). Name: python-%{srcname} Version: 0.10.0 -Release: 1%{?dist} +Release: 2%{?dist} Summary: %{sum} License: ASL 2.0 @@ -73,6 +73,9 @@ This is the package with python%{python3_pkgversion} support. %py2_install %if %{with python3} +# Delete the Python 2 executable(s) so that the Python 3 +# version(s) can take their place afterwards. +rm %{buildroot}%{_bindir}/* %py3_install %endif @@ -80,7 +83,9 @@ This is the package with python%{python3_pkgversion} support. %files -n python2-%{srcname} %license LICENSE.txt %doc CHANGELOG README.md +%if %{without python3} %{_bindir}/graphitesend +%endif %{python2_sitelib}/* %if %{with python3} @@ -93,5 +98,8 @@ This is the package with python%{python3_pkgversion} support. %changelog +* Wed Sep 13 2017 Iryna Shcherbina - 0.10.0-2 +- Fix Python 3 dependency from python2-graphitesend + * Fri Sep 8 2017 Jakub Jedelsky - 0.10.0-1 - Initial package