# Created by pyp2rpm-3.2.2 %global pypi_name daiquiri Name: python-%{pypi_name} Version: 1.2.2 Release: 1%{?dist} Summary: Library to configure Python logging easily License: None URL: https://github.com/jd/daiquiri Source0: https://files.pythonhosted.org/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3-pbr BuildRequires: python3-setuptools BuildRequires: python3-sphinx BuildRequires: python2-devel BuildRequires: python-pbr BuildRequires: python-setuptools %description daiquiri Python logging setup helper The daiquiri library provides an easy way to configure logging. It also provides some custom formatters and handlers.You can read the whole documentation at Free software: Apache license * Source: %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} %description -n python3-%{pypi_name} daiquiri Python logging setup helper The daiquiri library provides an easy way to configure logging. It also provides some custom formatters and handlers.You can read the whole documentation at Free software: Apache license * Source: %package -n python2-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python2-%{pypi_name}} %description -n python2-%{pypi_name} daiquiri Python logging setup helper The daiquiri library provides an easy way to configure logging. It also provides some custom formatters and handlers.You can read the whole documentation at Free software: Apache license * Source: %package -n python-%{pypi_name}-doc Summary: daiquiri documentation %description -n python-%{pypi_name}-doc Documentation for daiquiri %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py3_build %py2_build # generate html docs sphinx-build-3 doc/source 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. %py2_install %py3_install %files -n python3-%{pypi_name} %license LICENSE %doc README.rst %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %files -n python2-%{pypi_name} %license LICENSE %doc README.rst %{python2_sitelib}/%{pypi_name} %{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %files -n python-%{pypi_name}-doc %doc html %changelog * Thu Aug 31 2017 Copr dist git - 1.2.2-1 - Initial package.