From 24f810c713bb86111d123135e7045a92c93fc5f3 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Apr 04 2018 06:47:19 +0000 Subject: Add missing Provides/Obsoletes for camelcase name Also makes Provides versioned. No good reason to use unversions Provides. Switch %__python to %__python2 and similar. --- diff --git a/python-PyGithub.spec b/python-PyGithub.spec index 0058970..890406b 100644 --- a/python-PyGithub.spec +++ b/python-PyGithub.spec @@ -3,7 +3,7 @@ Name: python-%{pypi_name} Version: 1.29 -Release: 7%{?dist} +Release: 8%{?dist} Summary: Python library to work with the Github API Group: Development/Languages @@ -27,8 +27,10 @@ A Python library implementing the full Github API v3. %package -n python2-pygithub Summary: %summary +Provides: python-github = %{version}-%{release} Obsoletes: python-github < 1.11.1-4 -Provides: python-github +Provides: python-PyGithub = %{version}-%{release} +Obsoletes: python-PyGithub < 1.11.1-4 %{?python_provide:%python_provide python2-pygithub} %description -n python2-pygithub %_description @@ -38,8 +40,8 @@ Provides: python-github Summary: Python library to work with the Github API Group: Development/Languages +Provides: python3-github = %{version}-%{release} Obsoletes: python3-github < 1.25.2-2 -Provides: python3-github %description -n python3-PyGithub A Python library implementing the full Github API v3. @@ -75,7 +77,7 @@ popd %py2_install %check -%{__python} setup.py test +%{__python2} setup.py test %if 0%{?with_python3} pushd %{py3dir} @@ -86,8 +88,8 @@ popd %files -n python2-pygithub %{license} COPYING COPYING.LESSER %doc README.md -%{python_sitelib}/* -%exclude %{python_sitelib}/github/tests +%{python2_sitelib}/* +%exclude %{python2_sitelib}/github/tests %if 0%{?with_python3} %files -n python3-PyGithub @@ -98,6 +100,9 @@ popd %endif %changelog +* Wed Apr 4 2018 Zbigniew Jędrzejewski-Szmek - 1.29-8 +- Add missing Provides/Obsoletes for camelcase name (#1559280) + * Fri Feb 09 2018 Iryna Shcherbina - 1.29-7 - Update Python 2 dependency declarations to new packaging standards (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)