python-imaging-vl.spec 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144
  1. Summary: The Python Imaging Library
  2. Summary(ja): Python イメージ処理ライブラリ
  3. Name: python-imaging
  4. Version: 1.1.7
  5. Release: 3%{?_dist_release}
  6. License: Distributable
  7. Group: Development/Languages
  8. URL: http://www.pythonware.com/products/pil
  9. Source0: http://effbot.org/downloads/Imaging-%{version}.tar.gz
  10. Patch0: Imaging-1.1.7-setup.lib64.patch
  11. BuildRequires: python-devel >= 2.6
  12. BuildRequires: libjpeg-devel libpng-devel zlib-devel freetype2-devel
  13. BuildRequires: xorg-x11-devel
  14. BuildRequires: sane-devel
  15. Requires: python >= 2.6
  16. Requires: libjpeg >= 6a
  17. Requires: libpng >= 1.0.12
  18. Requires: zlib >= 1.1.4
  19. Requires: freetype2 >= 2.1.3
  20. Provides: Imaging, python-PIL
  21. Obsoletes: Imaging < %{version}
  22. Obsoletes: python-PIL < %{version}
  23. Obsoletes: python-Imaging <= %{version}
  24. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  25. Distribution: Vine Linux
  26. Vendor: Project Vine
  27. Packager: owa
  28. %description
  29. The Python Imaging Library (PIL) adds image processing capabilities
  30. to your Python environment. This library provides extensive file
  31. format support, an efficient internal representation, and fairly
  32. powerful image processing capabilities.
  33. %description -l ja
  34. Python Imaging Library (PIL) は Python 環境にイメージ処理能力を加えます.
  35. このライブラリには広範なファイル型式への対応, 効果的な内部表現, そして
  36. 真にパワフルなイメージ処理能力が備わっています.
  37. %prep
  38. %setup -q -n Imaging-%{version}
  39. %ifarch x86_64
  40. %patch0 -p1 -b .lib64~
  41. %endif
  42. %build
  43. python setup.py build_ext -i
  44. python selftest.py
  45. %install
  46. rm -rf $RPM_BUILD_ROOT
  47. python setup.py install --root=$RPM_BUILD_ROOT
  48. mkdir -p $RPM_BUILD_ROOT%{_includedir}/python%{pyver}/PIL
  49. cp -p libImaging/*.h $RPM_BUILD_ROOT%{_includedir}/python%{pyver}/PIL/
  50. mkdir -p $RPM_BUILD_ROOT%{python_sitearch}/Sane
  51. pushd Sane
  52. python setup.py install --root=$RPM_BUILD_ROOT --install-lib=%{python_sitearch}/Sane
  53. install -m644 demo_numarray.py $RPM_BUILD_ROOT%{python_sitearch}/Sane
  54. install -m644 CHANGES README sanedoc.txt $RPM_BUILD_ROOT%{python_sitearch}/Sane
  55. popd
  56. %clean
  57. rm -rf $RPM_BUILD_ROOT
  58. %files
  59. %defattr(-, root, root)
  60. %doc BUILDME CHANGES CONTENTS README
  61. %doc Docs
  62. %dir %{python_sitearch}/PIL
  63. %dir %{python_sitearch}/Sane
  64. %{_bindir}/pil*.py
  65. %{_includedir}/python%{pyver}/PIL/*.h
  66. %{python_sitearch}/PIL.pth
  67. %{python_sitearch}/PIL/*
  68. %{python_sitearch}/Sane/*
  69. %changelog
  70. * Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 1.1.7-3
  71. - rebuild with python-2.7.2
  72. * Sat May 07 2011 Shu KONNO <owa@bg.wakwak.com> 1.1.7-2
  73. - install PIL with setup.py
  74. - install Sane with setup.py
  75. - install %{_bindir}/pil*.py
  76. - added BR: sane-devel
  77. * Thu Feb 03 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 1.1.7-1
  78. - new upstream release
  79. - recreated Patch0
  80. * Wed Feb 03 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.1.6-3
  81. - rebuild for python-2.6
  82. * Sun Jul 20 2008 Shu KONNO <owa@bg.wakwak.com> python-imaging-1.1.6-2vl5
  83. - rebuilt with python-2.5.2
  84. * Sat Jun 14 2008 Shu KONNO <owa@bg.wakwak.com> python-imaging-1.1.6-1vl5
  85. - applied new versioning policy and spec in utf-8
  86. - added BuildRequires: xorg-x11-devel
  87. - fixed typo at Distribution
  88. * Sat Dec 01 2007 Shu KONNO <owa@bg.wakwak.com> python-imaging-1.1.6-0vl4
  89. - fixed prereq, buildrequires pkgs
  90. * Wed Mar 21 2007 Shu KONNO <owa@bg.wakwak.com> python-imaging-1.1.6-0vl2
  91. - updated Imaging to 1.1.6
  92. - added BuildRequires: XOrg-devel zlib-devel libjpeg-devel libpng-devel freetype2-devel
  93. * Sat Oct 14 2006 Shu KONNO <owa@bg.wakwak.com> python-imaging-1.1.5-0vl5
  94. - added Imaging-1.1.5-setup.lib64.patch
  95. - rebuilt for x86_64 architecture support
  96. * Wed May 10 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> python-imaging-1.1.5-0vl4
  97. - changed Group:
  98. * Fri Oct 07 2005 Shu KONNO <owa@bg.wakwak.com> python-imaging-1.1.5-0vl3
  99. - rebuilt
  100. * Sun May 22 2005 Shu KONNO <owa@bg.wakwak.com> python-imaging-1.1.5-0vl2
  101. - changed package name 'python-Imaging' to 'python-imaging'
  102. * Fri May 20 2005 Shu KONNO <owa@bg.wakwak.com> python-Imaging-1.1.5-0vl1
  103. - changed package name 'Imaging' to 'python-Imaging'
  104. - updated Python Imaging Library (PIL) to 1.1.5
  105. - rebuilt with python-2.4
  106. * Thu May 02 2002 Satoshi MACHINO <machino@vinelinux.org> 1.1.3-0vl1
  107. - updated 1.1.3
  108. * Thu Jul 26 2001 Satoshi MACHINO <machino@vinelinux.org> 1.1.2-0vl1
  109. - updated 1.1.2
  110. * Thu Aug 03 2000 MACHINO, Satoshi <mac@netfort.gr.jp>
  111. - Imaging-1.1-0vl1
  112. - build on VineSeed
  113. * Sun Mar 7 1999 MATSUMOTO Shoji <vine@flatout.org>
  114. - make spec