python-enchant-vl.spec 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
  2. Name: python-enchant
  3. Version: 1.6.5
  4. Release: 1%{?_dist_release}
  5. Summary: Python bindings for Enchant spellchecking library
  6. Summary(ja): Enchant スペルチェックライブラリの Python バインディング
  7. Group: Development/Languages
  8. License: LGPLv2+
  9. URL: http://pyenchant.sourceforge.net/
  10. Source0: http://dl.sourceforge.net/sourceforge/pyenchant/pyenchant-%{version}.tar.gz
  11. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  12. Patch0: python-enchant-1.6.5-fix-tests-without-X.patch
  13. Patch1: python-enchant-1.6.5-fix-docstring-test.patch
  14. # python-distribute got merged into python-setuptools
  15. Patch2: python-enchant-1.6.5-disable-distribute-setup.patch
  16. BuildArch: noarch
  17. BuildRequires: python-devel enchant-devel
  18. BuildRequires: python-setuptools
  19. Provides: PyEnchant
  20. %description
  21. PyEnchant is a spellchecking library for Python, based on the Enchant
  22. library by Dom Lachowicz.
  23. %prep
  24. %setup -q -n pyenchant-%{version}
  25. %patch0 -p1 -b .fix-tests-without-X
  26. %patch1 -p1 -b .fix-docstring-test
  27. %patch2 -p1 -b .disable-distribute-setup
  28. %build
  29. CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
  30. %install
  31. rm -rf $RPM_BUILD_ROOT
  32. %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT --single-version-externally-managed
  33. rm -rf $RPM_BUILD_ROOT/%{python_sitearch}/*.egg-info
  34. %clean
  35. rm -rf $RPM_BUILD_ROOT
  36. %files
  37. %defattr(-,root,root,-)
  38. %doc LICENSE.txt README.txt TODO.txt
  39. %dir %{python_sitearch}/enchant
  40. %dir %{python_sitearch}/enchant/checker
  41. %dir %{python_sitearch}/enchant/tokenize
  42. %{python_sitearch}/enchant/lib
  43. %{python_sitearch}/enchant/share
  44. %{python_sitearch}/enchant/*.py
  45. %{python_sitearch}/enchant/*.py[co]
  46. %{python_sitearch}/enchant/*/*.py
  47. %{python_sitearch}/enchant/*/*.py[co]
  48. %changelog
  49. * Sat Aug 31 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.6.5-1
  50. - initial build for VineSeed
  51. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-5
  52. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  53. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-4
  54. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  55. * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.3.1-3
  56. - Rebuild for Python 2.6
  57. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.3.1-2
  58. - Autorebuild for GCC 4.3
  59. * Tue Dec 11 2007 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.3.1-1
  60. - Update to 1.3.1
  61. - Change license tag to LGPLv2+
  62. * Sat Jan 13 2007 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.3.0-1
  63. - Update to 1.3.0
  64. - Add ChangeLog and TODO.txt as documentation
  65. * Sat Dec 09 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.2.0-2
  66. - Rebuild for Python 2.5
  67. * Tue Nov 7 2006 José Matos <jamatos[AT]fc.up.pt> - 1.2.0-1
  68. - New upstream release
  69. * Thu Oct 05 2006 Christian Iseli <Christian.Iseli@licr.org> 1.1.5-5
  70. - rebuilt for unwind info generation, broken in gcc-4.1.1-21
  71. * Wed Sep 20 2006 José Matos <jamatos[AT]fc.up.pt> - 1.1.5-4
  72. - Rebuild for FC-6.
  73. - Unghost .pyo files.
  74. * Tue Feb 14 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.1.5-3
  75. - Rebuild for Fedora Extras 5
  76. * Tue Feb 07 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.1.5-2
  77. - Rebuild
  78. * Sat Feb 04 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.1.5-1
  79. - Update to 1.1.5
  80. * Wed Feb 01 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.1.3-3
  81. - Use %%{python_sitearch} instead of %%{python_sitelib} (for x86_64)
  82. * Wed Feb 01 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.1.3-2
  83. - Remove %%{enchant_dir} macro
  84. - Add %%dir for architecture-specific directory
  85. - Add "Provides:" for PyEnchant
  86. - Remove "Requires:" on enchant (Brian Pepple)
  87. * Mon Jan 09 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.1.3-1
  88. - Initial packaging