1 # 2 # spec file for package SUNWpython-imaging 3 # 4 # Copyright 2008 Sun Microsystems, Inc. 5 # This file and all modifications and additions to the pristine 6 # package are under the same license as the package itself. 7 # 8 %define owner liyuan 9 # 10 11 %include Solaris.inc 12 13 %define pythonver 2.4 14 %use pil = python-imaging.spec 15 16 Name: SUNWpython-imaging 17 Summary: %{pil.summary} 18 URL: %{pil.url} 19 Version: %{pil.version} 20 Release: 1 21 SUNW_BaseDir: %{_basedir} 22 SUNW_Copyright: %{name}.copyright 23 BuildRoot: %{_tmppath}/%{name}-%{version}-build 24 BuildRequires: SUNWPython-devel 25 BuildRequires: SUNWzlib 26 BuildRequires: SUNWjpg-devel 27 BuildRequires: SUNWpng-devel 28 BuildRequires: SUNWfreetype2 29 BuildRequires: SUNWpython-setuptools 30 Requires: SUNWfreetype2 31 Requires: SUNWPython 32 Requires: SUNWjpg 33 34 %include default-depend.inc 35 36 %description 37 The Python Imaging Library (PIL) adds image processing capabilities 38 to your Python interpreter. 39 40 This library provides extensive file format support, an efficient 41 internal representation, and powerful image processing capabilities. 42 43 %prep 44 rm -rf %{name}-%{version} 45 mkdir -p %{name}-%{version} 46 %pil.prep -d %{name}-%{version} 47 48 %build 49 %pil.build -d %{name}-%{version} 50 51 %install 52 rm -rf $RPM_BUILD_ROOT 53 %pil.install -d %{name}-%{version} 54 55 # remove /usr/bin/ files since they conflict with python 2.6 version. 56 rm -rf $RPM_BUILD_ROOT/%{_bindir} 57 58 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} 59 60 %clean 61 rm -rf $RPM_BUILD_ROOT 62 63 %files 64 %defattr (-, root, bin) 65 %dir %attr (0755, root, bin) %{_libdir} 66 %{_libdir}/python%{pythonver}/vendor-packages/PIL 67 %{_libdir}/python%{pythonver}/vendor-packages/PIL.pth 68 %doc -d Imaging-%{version} Sane/README 69 %doc(bzip2) -d Imaging-%{version} CHANGES README Sane/CHANGES Scripts/README 70 %dir %attr (0755, root, sys) %{_datadir} 71 %dir %attr (0755, root, other) %{_datadir}/doc 72 73 %changelog 74 * Mon Nov 16 2009 - li.yuan@sun.com 75 - Change owner to liyuan. 76 * Thu Nov 27 2008 - darren.kenny@sun.com 77 - Use a base spec file 78 - remove /usr/bin/ files since they conflict with python 2.5 version. 79 * Tue Sep 16 2008 - matt.keenn@sun.com 80 - Update copyright 81 * Wed May 14 2008 - darren.kenny@sun.com 82 - Add SUWNjpg dependency. 83 * Fri Feb 15 2008 - dermot.mccluskey@sun.com 84 - remove *.pyo 85 * Tue Feb 12 2008 - dermot.mccluskey@sun.com 86 - initial version 87 88