# 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: python2-devel BuildRequires: python-pbr BuildRequires: python-setuptools BuildRequires: python-sphinx %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 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 %py2_build # generate html docs sphinx-build doc/source html # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} %install %py2_install %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.