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.6 14 %use pil = python-imaging.spec 15 16 Name: SUNWpython26-imaging 17 Summary: %{pil.summary} 18 URL: %{pil.url} 19 Version: %{pil.version} 20 Release: 1 21 SUNW_BaseDir: %{_basedir} 22 SUNW_Copyright: SUNWpython-imaging.copyright 23 BuildRoot: %{_tmppath}/%{name}-%{version}-build 24 BuildRequires: SUNWPython26-devel 25 BuildRequires: SUNWzlib 26 BuildRequires: SUNWjpg-devel 27 BuildRequires: SUNWpng-devel 28 BuildRequires: SUNWfreetype2 29 BuildRequires: SUNWpython26-setuptools 30 Requires: SUNWzlibr 31 Requires: SUNWfreetype2 32 Requires: SUNWPython26 33 Requires: SUNWjpg 34 35 %include default-depend.inc 36 37 %description 38 The Python Imaging Library (PIL) adds image processing capabilities 39 to your Python interpreter. 40 41 This library provides extensive file format support, an efficient 42 internal representation, and powerful image processing capabilities. 43 44 %prep 45 rm -rf %{name}-%{version} 46 mkdir -p %{name}-%{version} 47 %pil.prep -d %{name}-%{version} 48 49 %build 50 %pil.build -d %{name}-%{version} 51 52 %install 53 rm -rf $RPM_BUILD_ROOT 54 %pil.install -d %{name}-%{version} 55 56 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT} 57 58 %clean 59 rm -rf $RPM_BUILD_ROOT 60 61 %files 62 %defattr (-, root, bin) 63 %dir %attr (0755, root, bin) %{_bindir} 64 %{_bindir}/* 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 Feb 12 2009 - brian.cameron@sun.com 77 - created 2.6 version based on SUNWpython-imaging.spec 78 * Tue Sep 16 2008 - matt.keenn@sun.com 79 - Update copyright 80 * Wed May 14 2008 - darren.kenny@sun.com 81 - Add SUWNjpg dependency. 82 * Fri Feb 15 2008 - dermot.mccluskey@sun.com 83 - remove *.pyo 84 * Tue Feb 12 2008 - dermot.mccluskey@sun.com 85 - initial version 86 87