From d50cb6b9a9afff6c025293050a725d364960bcfb Mon Sep 17 00:00:00 2001 From: Miro Hrončok Date: Jan 15 2019 11:31:20 +0000 Subject: Subpackage python2-jabberpy has been removed --- diff --git a/jabberpy.spec b/jabberpy.spec index 03f5fd2..10c5cf5 100644 --- a/jabberpy.spec +++ b/jabberpy.spec @@ -1,14 +1,8 @@ -%if 0%{?fedora} -%global with_python3 1 -%else -%global with_python3 0 -%endif -%{!?python_sitelib: %define python_sitelib %(%{__python2} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")} %global srcname jabberpy Name: %{srcname} Version: 0.5 # Used like this because upstream releases like 0.5-0 -Release: 0.41%{?dist} +Release: 0.42%{?dist} Summary: Python xmlstream and jabber IM protocol libs License: LGPLv2+ @@ -28,26 +22,9 @@ protocol. jabber.py deals with the xml parsing and socket code, leaving the programmer to concentrate on developing quality jabber based applications with Python. -%package -n python2-%{srcname} -Summary: Python xmlstream and jabber IM protocol libs -BuildRequires: python2-devel -Requires: python2 -Provides: jabberpy = %{version}-%{release} -Obsoletes: jabberpy < 0.5-0.31 - -%description -n python2-%{srcname} -jabber.py is a Python module for the jabber instant messaging -protocol. jabber.py deals with the xml parsing and socket code, -leaving the programmer to concentrate on developing quality jabber -based applications with Python. - -This module contains python2 bindings. - -%if 0%{?with_python3} %package -n python3-%{srcname} Summary: Python xmlstream and jabber IM protocol libs BuildRequires: python3-devel -Requires: python3 %description -n python3-%{srcname} jabber.py is a Python module for the jabber instant messaging @@ -56,7 +33,6 @@ leaving the programmer to concentrate on developing quality jabber based applications with Python. This module contains python3 bindings. -%endif %prep %setup -q -n %{srcname}-%{version}-0 @@ -69,24 +45,20 @@ chmod -x examples/*.py %patch5 -p1 -b .python3 %build -%py2_build %py3_build %install -%py2_install %py3_install -%files -n python2-%{srcname} -%doc examples README -%{python2_sitelib}/* - -%if 0%{?with_python3} %files -n python3-%{srcname} %doc examples README -%{python3_sitelib}/* -%endif +%{python3_sitelib}/jabber* %changelog +* Tue Jan 15 2019 Miro Hrončok - 0.5-0.42 +- Subpackage python2-jabberpy has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + * Tue Jul 17 2018 Miro Hrončok - 0.5-0.41 - Update Python macros to new packaging standards (See https://fedoraproject.org/wiki/Changes/Move_usr_bin_python_into_separate_package)