%define python_sitearch %(%{__python} -c 'from distutils import sysconfig; print sysconfig.get_python_lib(1)') %define pyver %(%{__python} -c 'import sys; print sys.version[:3]' || echo 2.0) Summary: Python's own image processing library Name: python-imaging Version: 1.1.5 Release: 1 License: Distributable Group: Development/Libraries URL: http://www.pythonware.com/products/pil/ Packager: Dag Wieers Vendor: Dag Apt Repository, http://dag.wieers.com/apt/ Source: http://effbot.org/downloads/Imaging-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildRequires: python, python-devel, gtk+-devel BuildRequires: libjpeg-devel, libpng-devel, freetype-devel, zlib-devel Requires: python >= %{pyver} Obsoletes: PIL <= %{version} Provides: PIL = %{version}-%{release} %description The Python Imaging Library (PIL) adds image processing capabilities to your Python interpreter. This library provides extensive file format support, an efficient internal representation, and powerful image processing capabilities. %prep %setup -n Imaging-%{version} %build CFLAGS="%{optflags}" %{__python} setup.py build %install %{__rm} -rf %{buildroot} %{__python} setup.py install -O1 --skip-build --root="%{buildroot}" --prefix="%{_prefix}" %clean %{__rm} -rf %{buildroot} %files %defattr(-, root, root, 0755) %doc CHANGES* CONTENTS Images/ README Sane/ Scripts/ %{_bindir}/pilconvert.py %{_bindir}/pildriver.py %{_bindir}/pilfile.py %{_bindir}/pilfont.py %{_bindir}/pilprint.py %{python_sitearch}/PIL.pth %{python_sitearch}/PIL/ %changelog * Mon Aug 14 2006 Dag Wieers - 1.1.5-1 - 4303+/dries - Updated to release 1.1.5. * Thu Oct 21 2004 Matthias Saou 1.1.4-2 - Further spec file updates. - Build without tcl/tk... which shouldn't harm for a python/gtk module! * Mon Oct 18 2004 Thomas Vander Stichele - 1.1.4-2.fdr.1: adapted for Fedora * Sat Oct 16 2004 Johan Dahlin - 1.1.4-2 - stole dags spec - remove includes - install in PIL/ with .pth - install freetype bindings - don't depend on doc package * Mon Dec 08 2003 Dag Wieers - 1.1.4-1 - Fixed python location for RHFC1. (Ian Burrell) * Mon Jun 30 2003 Dag Wieers - 1.1.4-0 - Updated to release 1.1.4. * Sat Jan 04 2003 Dag Wieers - 1.1.3-0 - Initial package. (using DAR)