# Created by pyp2rpm-3.1.2 %global pypi_name irc %global desc This library provides a low-level implementation of the IRC \ protocol for Python. It provides an event-driven IRC client framework. \ It has a fairly thorough support for the basic IRC protocol, CTCP, and DCC \ connections. %global sum IRC (Internet Relay Chat) protocol library for Python Name: python-%{pypi_name} Version: 14.2.2 Release: 1%{?dist} Summary: %{sum} License: MIT URL: https://github.com/jaraco/%{pypi_name} Source0: https://files.pythonhosted.org/packages/source/i/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python-backports-unittest-mock BuildRequires: python-pytest >= 2.8 BuildRequires: python-setuptools BuildRequires: python-setuptools-scm >= 1.9 BuildRequires: python2-devel BuildRequires: python-sphinx BuildRequires: python3-backports-unittest-mock BuildRequires: python3-pytest >= 2.8 BuildRequires: python3-setuptools BuildRequires: python3-setuptools-scm >= 1.9 BuildRequires: python3-devel %description %{desc} %package -n python2-%{pypi_name} Summary: %{sum} %{?python_provide:%python_provide python2-%{pypi_name}} Requires: python-six Requires: python-jaraco-collections Requires: python-jaraco-text Requires: python-jaraco-itertools Requires: python-jaraco-logging Requires: python-jaraco-functools >= 1.5 Requires: python-jaraco-stream Requires: python-pytz %description -n python2-%{pypi_name} %{desc} %package -n python3-%{pypi_name} Summary: %{sum} %{?python_provide:%python_provide python3-%{pypi_name}} Requires: python3-six Requires: python3-jaraco-collections Requires: python3-jaraco-text Requires: python3-jaraco-itertools Requires: python3-jaraco-logging Requires: python3-jaraco-functools >= 1.5 Requires: python3-jaraco-stream Requires: python3-pytz %description -n python3-%{pypi_name} %{desc} %package -n python-%{pypi_name}-doc Summary: Documentation for %{pypi_name} %description -n python-%{pypi_name}-doc This package provides the documentation for python-%{pypi_name}. %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py2_build %py3_build # generate html docs sphinx-build docs html # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} %install # Must do the subpackages' install first because the scripts in /usr/bin are # overwritten with every setup.py install. %py3_install %py2_install %files -n python2-%{pypi_name} %doc README.rst %{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %files -n python3-%{pypi_name} %doc README.rst %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %files -n python-%{pypi_name}-doc %doc html %changelog * Tue Jun 28 2016 Lumir Balhar - 14.2.2-1 - Initial package.