%global modname nbxmpp %global sum Python library for non-blocking use of Jabber/XMPP Name: python-%{modname} Version: 0.6.6 Release: 2%{?dist} Summary: %{sum} License: GPLv3 URL: https://dev.gajim.org/gajim/python-nbxmpp/ Source0: https://dev.gajim.org/gajim/python-nbxmpp/repository/archive.tar.bz2?ref=nbxmpp-%{version}#/%{name}-%{version}.tar.bz2 BuildArch: noarch BuildRequires: python2-devel python3-devel %global desc python-nbxmpp is a Python library that provides a way for Python applications\ to use Jabber/XMPP networks in a non-blocking way.\ \ Features:\ - Asynchronous\ - ANONYMOUS, EXTERNAL, GSSAPI, SCRAM-SHA-1, DIGEST-MD5, PLAIN, and\ X-MESSENGER-OAUTH2 authentication mechanisms.\ - Connection via proxies\ - TLS\ - BOSH (XEP-0124)\ - Stream Management (XEP-0198) %description %{desc} %package -n python2-%{modname} Summary: %{sum} Requires: pyOpenSSL Requires: pygobject2 Recommends: python2-kerberos %{?python_provide:%python_provide python2-%{modname}} %description -n python2-%{modname} %{desc} %package -n python3-%{modname} Summary: %{sum} Requires: python3-pyOpenSSL Requires: python3-gobject-base Recommends: python3-kerberos %{?python_provide:%python_provide python3-%{modname}} %description -n python3-%{modname} %{desc} %package doc Summary: Developer documentation for %{name} %description doc %{desc} This sub-package contains the developer documentation for python-nbxmpp. %prep # The upstream gitlab generates tarballs with path prefixes including the git # commit hash. Make the path predictable by stripping the leading component. %setup -T -c %{name}-%{version} tar -xo --strip-components=1 -f %{SOURCE0} %build # let's have no executable files in doc/ find doc/ -type f -perm /111 -exec chmod -x {} + %{py2_build} %{py3_build} %install %{py2_install} %{py3_install} %files -n python2-%{modname} %license COPYING %doc README ChangeLog %{python2_sitelib}/%{modname} %{python2_sitelib}/%{modname}-%{version}-*.egg-info %files -n python3-%{modname} %license COPYING %doc README ChangeLog %{python3_sitelib}/%{modname} %{python3_sitelib}/%{modname}-%{version}-*.egg-info %files doc %license COPYING %doc doc/* %changelog * Tue Jun 19 2018 Miro Hrončok - 0.6.6-2 - Rebuilt for Python 3.7 * Mon May 21 2018 Michal Schmidt - 0.6.6-1 - Upstream release 0.6.6. * Mon Mar 19 2018 Michal Schmidt - 0.6.4-1 - Upstream release 0.6.4. * Wed Mar 07 2018 Michal Schmidt - 0.6.3-1 - Upstream release 0.6.3. * Fri Feb 09 2018 Fedora Release Engineering - 0.6.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Mon Jan 15 2018 Michal Schmidt - 0.6.2-1 - Upstream release 0.6.2. * Mon Dec 04 2017 Michal Schmidt - 0.6.1-1 - Upstream release 0.6.1. * Thu Jul 27 2017 Fedora Release Engineering - 0.5.6-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Thu Jun 08 2017 Michal Schmidt - 0.5.6-1 - Upstream release 0.5.6. * Mon Feb 06 2017 Michal Schmidt - 0.5.5-1 - Upstream release 0.5.5. - New upstream location and tarball format. - Refer to python2-kerberos using its actual package name. * Mon Dec 19 2016 Miro Hrončok - 0.5.3-5 - Rebuild for Python 3.6 * Tue Jul 19 2016 Fedora Release Engineering - 0.5.3-4 - https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages * Thu Feb 18 2016 Michal Schmidt - 0.5.3-3 - Build as both python2-nbxmpp and python3-nbxmpp. (#1309621) * Thu Feb 04 2016 Fedora Release Engineering - 0.5.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Mon Jul 27 2015 Matej Cepl - 0.5.3-1 - Upstream release 0.5.3. * Thu Jun 18 2015 Fedora Release Engineering - 0.5.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Mon Mar 02 2015 Michal Schmidt - 0.5.2-1 - Upstream bugfix release 0.5.2. * Thu Oct 16 2014 Michal Schmidt - 0.5.1-1 - New upstream release, required by Gajim 0.16. * Mon Aug 11 2014 Michal Schmidt - 0.5-1 - New upstream release. * Sat Jun 07 2014 Fedora Release Engineering - 0.4-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Wed Mar 19 2014 Michal Schmidt - 0.4-1 - Initial Fedora packaging.