# Created by pyp2rpm-3.3.8 %global pypi_name pdf2image %global pypi_version 1.16.0 Name: python-%{pypi_name} Version: %{pypi_version} Release: 1%{?dist} Summary: A wrapper around the pdftoppm and pdftocairo command line tools to convert PDF to a PIL Image list License: MIT URL: https://github.com/Belval/pdf2image Source0: %{pypi_source} BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(setuptools) %description pdf2image [![TravisCI]( [![PyPI version]( [![codecov]( [![Downloads]( [![Documentation Status]( python (3.6+) module that wraps pdftoppm and pdftocairo to convert PDF to a PIL Image object %package -n python3-%{pypi_name} Summary: %{summary} %{?python_provide:%python_provide python3-%{pypi_name}} Requires: python3dist(pillow) %description -n python3-%{pypi_name} pdf2image [![TravisCI]( [![PyPI version]( [![codecov]( [![Downloads]( [![Documentation Status]( python (3.6+) module that wraps pdftoppm and pdftocairo to convert PDF to a PIL Image object %prep %autosetup -n %{pypi_name}-%{pypi_version} # Remove bundled egg-info rm -rf %{pypi_name}.egg-info %build %py3_build %install %py3_install %files -n python3-%{pypi_name} %license LICENSE %doc README.md %{python3_sitelib}/%{pypi_name} %{python3_sitelib}/%{pypi_name}-%{pypi_version}-py%{python3_version}.egg-info %changelog * Wed Jun 15 2022 mockbuilder - 1.16.0-1 - Initial package.