%global pypi_name Pillow %global package_name %(echo "%{pypi_name}" | tr '-' '_' | tr '[:upper:]' '[:lower:]') %{?scl:%global python3_pkgversion %{nil}} %{?scl:%scl_package python-%{package_name}} %{!?scl:%global pkg_name %{name}} Name: %{?scl_prefix}python%{python3_pkgversion}-%{package_name} Version: 5.3.0 Release: 1%{?dist} Summary: Python Imaging Library (Fork) Group: Development/Libraries License: MIT URL: https://pypi.io/project/%{pypi_name} Source0: https://pypi.io/packages/source/%(echo "%{pypi_name}" | cut -c 1)/%{pypi_name}/%{pypi_name}-%{version}.tar.gz BuildRequires: freetype-devel BuildRequires: lcms2-devel BuildRequires: libimagequant-devel BuildRequires: libjpeg-devel BuildRequires: libraqm-devel BuildRequires: libtiff-devel BuildRequires: libwebp-devel BuildRequires: openjpeg-devel BuildRequires: tcl-devel BuildRequires: tk-devel BuildRequires: turbojpeg-devel BuildRequires: zlib-devel BuildRequires: %{?scl_prefix_python}python%{python3_pkgversion}-devel BuildRequires: %{?scl_prefix_python}python%{python3_pkgversion}-setuptools %{?scl:BuildRequires: %{scl}-build %{scl}-runtime} %{?scl:Requires: %{scl}-runtime} %description Pillow is the friendly PIL fork by Alex Clark and Contributors. PIL is the Python Imaging Library by Fredrik Lundh and Contributors. %prep %setup -q -n %{pypi_name}-%{version} rm -rf %{pypi_name}.egg-info %build %{?scl:scl enable %{scl} "} %{__python3} setup.py build %{?scl:"} %install %{?scl:scl enable %{scl} "} %{__python3} \ setup.py \ install \ -O1 \ --skip-build \ --root %{buildroot} \ --install-platlib %{python3_sitearch} %{?scl:"} %files %license LICENSE %doc CHANGES.rst %doc README.rst %doc RELEASING.md %{python3_sitearch}/PIL %{python3_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info %changelog * Tue Dec 11 2018 Daniel Uvehag - 5.3.0-1 - Initial package.