From 4259e22b0e5a1b720ac08312c59baa18d0a4631e Mon Sep 17 00:00:00 2001 From: Iryna Shcherbina Date: Apr 06 2018 08:08:40 +0000 Subject: Package the executable in python3 package Fixes python3 dependendency from python2-gear. --- diff --git a/python-gear.spec b/python-gear.spec index d44c23d..2e12862 100644 --- a/python-gear.spec +++ b/python-gear.spec @@ -3,7 +3,7 @@ Name: python-%{srcname} Version: 0.11.0 -Release: 3%{?dist} +Release: 4%{?dist} Summary: Pure Python Async Gear Protocol Library Group: Applications/Productivity @@ -72,6 +72,9 @@ rm -rf {test-,}requirements.txt %install %py2_install +# Delete the Python 2 executable(s) so that the Python 3 +# version(s) can take their place afterwards. +rm %{buildroot}%{_bindir}/* %py3_install @@ -82,19 +85,22 @@ rm -rf {test-,}requirements.txt %files -n python2-%{srcname} %doc README.rst CONTRIBUTING.rst doc %license LICENSE -%{_bindir}/* %{python2_sitelib}/%{srcname} %{python2_sitelib}/%{srcname}-*egg-info %files -n python3-%{srcname} %doc README.rst CONTRIBUTING.rst doc %license LICENSE +%{_bindir}/* %{python3_sitelib}/%{srcname} %{python3_sitelib}/%{srcname}-*egg-info %changelog +* Fri Apr 6 2018 Iryna Shcherbina - 0.11.0-4 +- Package the executable in python3 package + * Fri Feb 09 2018 Fedora Release Engineering - 0.11.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild