# Created by pyp2rpm-3.3.0 %global pypi_name graphviz %global common_description %{expand: This package facilitates the creation and rendering of graph descriptions in the DOT language of the Graphviz graph drawing software (master repo) from Python. Create a graph object, assemble the graph by adding nodes and edges, and retrieve its DOT source code string. Save the source code to a file and render it with the Graphviz installation of your system.} Name: python-%{pypi_name} Version: 0.8.3 Release: 4%{?dist} # Set Epoch to avoid being obsoleted by graphviz-python Epoch: 1 Summary: Simple Python interface for Graphviz License: MIT URL: https://github.com/xflr6/graphviz Source0: https://files.pythonhosted.org/packages/source/g/%{pypi_name}/%{pypi_name}-%{version}.zip BuildArch: noarch %{?python_enable_dependency_generator} %description %{common_description} %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} BuildRequires: python3-devel BuildRequires: python3dist(mock) >= 2 BuildRequires: python3dist(setuptools) BuildRequires: python3dist(sphinx) BuildRequires: graphviz Requires: graphviz %description -n python3-%{pypi_name} %{common_description} %package -n python-%{pypi_name}-doc Summary: Documentation for %{name} %description -n python-%{pypi_name}-doc %{common_description} This is the documentation package. %prep %autosetup -n %{pypi_name}-%{version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info sed -i 's/\r//' docs/*.rst sed -i 's/\r//' README.rst %build %py3_build # generate html docs PYTHONPATH=${PWD} sphinx-build-3 docs html # remove the sphinx-build leftovers rm -rf html/.{doctrees,buildinfo} %install %py3_install %files -n python3-%{pypi_name} %license LICENSE.txt %doc README.rst %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info %files -n python-%{pypi_name}-doc %doc html %license LICENSE.txt %changelog * Mon Sep 24 2018 Miro Hrončok - 1:0.8.3-4 - Drop unneeded build dependencies - Run the tests * Sat Jul 14 2018 Fedora Release Engineering - 1:0.8.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Jun 19 2018 Miro Hrončok - 1:0.8.3-2 - Rebuilt for Python 3.7 * Thu May 10 2018 Robert-André Mauchin - 0.8.3-1 - Upstream release 0.8.3 * Fri Apr 13 2018 Robert-André Mauchin - 0.8.2-1 - Initial package.