Version: 1.1.6 Release: alt1.1 %setup_python_module imaging Summary: Python\'s own image processing library Name: %packagename Source0: http://www.pythonware.com/downloads/%modulename-%version.tar.gz # wget -r -np -nH http://effbot.org/imagingbook/index.html Source1: imaging-doc.tar Packager: Fr. Br. George License: Distributable Group: Development/Python Url: http://www.pythonware.com/products/pil/ Icon: linux-python-paint-icon.xpm Patch0: python-imaging-tk.patch Patch1: python-imaging-1.1.4-ft.patch Requires: libjpeg >= 6b, zlib >= 1.1.2, libpng >= 1.0.1 BuildPreReq: libjpeg-devel >= 6b, zlib-devel >= 1.1.2, libpng-devel >= 1.0.1 BuildRequires: python%__python_package_version-modules-tkinter BuildRequires: freetype2-devel BuildRequires: xorg-x11-devel db1 libjpeg-devel tcl tk zlib-devel tk-devel tcl-devel Provides: python-imaging Obsoletes: python-imaging <= 1.1.4-alt6 %description Python Imaging Library version %version 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. %package devel Summary: Developers files for python-imaging Group: Development/Python %description devel Python Imaging Library version %version 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. Developers files for python-imaging %package doc Summary: Documentation and examples for python-imaging AutoReqProv: nopython Group: Development/Python %description doc Python Imaging Library version %version 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. Documentation and examples for python-imaging %prep %setup -q -n %modulename-%version -a1 # %patch -p0 # %patch1 -p1 find -type f |xargs fgrep -l /usr/local | xargs -r perl -pi -e 's|/usr/local|/usr|g' rm PIL/ImageGL.py %build python setup.py build_ext -i python selftest.py #python setup.py build %install python setup.py install --root=$RPM_BUILD_ROOT --optimize=2 --record=INSTALLED_FILES mkdir -p $RPM_BUILD_ROOT%_sysconfdir/buildreqs/files/ignore.d \ $RPM_BUILD_ROOT%_includedir/python%__python_version install -p libImaging/Im*.h $RPM_BUILD_ROOT%_includedir/python%__python_version install -p -m644 PIL.pth $RPM_BUILD_ROOT%_libdir/python%__python_version/site-packages cat > $RPM_BUILD_ROOT%_sysconfdir/buildreqs/files/ignore.d/%name << EOF ^/usr/lib/python[^/]*/site-packages/PIL$ EOF %add_python_lib_path %_libdir/python%__python_version/site-packages/PIL %files -f INSTALLED_FILES %doc CHANGES CONTENTS %config %_sysconfdir/buildreqs/files/ignore.d/%name %exclude %_libdir/python%__python_version/site-packages/PIL.pth %files devel %_includedir/python%__python_version/Im*.h %_libdir/python%__python_version/site-packages/PIL.pth %files doc %doc imagingbook Scripts Images Sane Docs %changelog * Fri Jun 27 2008 Andrey V. Khavryuchenko 1.1.6-alt1.1 - removed gl support * Sun May 25 2008 Fr. Br. George 1.1.6-alt1 - Version up - Handbook updated * Thu Jan 24 2008 Grigory Batalov 1.1.4-alt11.1 - Rebuilt with python-2.5. * Sat Mar 12 2005 Andrey Orlov 1.1.4-alt11 - Rebuild with python2.4 * Thu Dec 09 2004 Andrey Orlov 1.1.4-alt10 - Provide python-imaging added * Tue Nov 16 2004 Andrey Orlov 1.1.4-alt9 - Some problem with new freetype library fixed * Fri Jun 18 2004 Andrey Orlov 1.1.4-alt8 - Add PIL directory in search path (because of PIL.pth) * Tue May 18 2004 Andrey Orlov 1.1.4-alt7 - Rebuild with new python policy * Wed Apr 14 2004 Gennady Kovalev 1.1.4-alt6 - Fix installing _imagingft.so library * Sun Nov 30 2003 Andrey Orlov 1.1.4-alt5 - Try to build on py23 * Thu Nov 20 2003 Andrey Orlov 1.1.4-alt4 - Fix build requires and test on python223 * Tue Oct 07 2003 Andrey Orlov 1.1.4-alt3 - Fix build requires: add tcl & tk devel * Mon May 19 2003 Andrey Orlov 1.1.4-alt2 - Add some fixes of spec-file * Sun May 18 2003 Andrey Orlov 1.1.4-alt1 - Rebuild package for new version * Tue Feb 12 2002 Stanislav Ievlev 1.1.2-alt4 - Added buildreq filter * Mon Jan 28 2002 Stanislav Ievlev 1.1.2-alt3 - rebuild with new python * Wed Jun 27 2001 AEN 1.1.2-alt2 - some header-files added * Wed Jun 27 2001 Stanislav Ievlev 1.1.2-alt1 - 1.1.2. Rebuilt with python-2.1 * Sun Dec 10 2000 Dmitry V. Levin 1.1-ipl4mdk - Fix out /usr/local. - Fix building for python version != 1.5. - Fix Requires. - Automatically added BuildRequires. * Wed Nov 29 2000 AEN 1.1-ipl3mdk - rebuild for RE - patch to find-req * Tue Sep 19 2000 David BAUDENS 1.1-2mdk - Fix FredL's typo * Wed Sep 13 2000 Frederic Lepied 1.1-1mdk - 1.1 * Thu Mar 30 2000 Frederic Lepied 1.0b1-3mdk - group fix. * Mon Jan 10 2000 Lenny Cartier - build for oxygen - deactivate provinding of tkinter lib since Chmouel one's works perfectly * Mon Dec 27 1999 Lenny Cartier - new in contribs - bz2 archive * Mon Jan 11 1999 Oliver Andrich - upgraded to Imaging 1.0b1 * Sun Dec 27 1998 Oliver Andrich - changed Setup file so that the tkinter module is compiled with Tix and BLT support * Mon Jul 20 1998 Oliver Andrich - had to recompile and update the package to support the uptodate graphics libs * Sat Jun 07 1998 Oliver Andrich - updated package to version 0.3a4