python-enchant-vl.spec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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.6
  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 May 09 2015 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.6.6-1
  50. - new upstream release
  51. - deleted Patch1,2
  52. - fixed %%files
  53. * Sat Aug 31 2013 Toshiharu Kudoh <toshi.kd2@gmail.com> - 1.6.5-1
  54. - initial build for VineSeed
  55. * Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-5
  56. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  57. * Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-4
  58. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  59. * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.3.1-3
  60. - Rebuild for Python 2.6
  61. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.3.1-2
  62. - Autorebuild for GCC 4.3
  63. * Tue Dec 11 2007 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.3.1-1
  64. - Update to 1.3.1
  65. - Change license tag to LGPLv2+
  66. * Sat Jan 13 2007 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.3.0-1
  67. - Update to 1.3.0
  68. - Add ChangeLog and TODO.txt as documentation
  69. * Sat Dec 09 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.2.0-2
  70. - Rebuild for Python 2.5
  71. * Tue Nov 7 2006 José Matos <jamatos[AT]fc.up.pt> - 1.2.0-1
  72. - New upstream release
  73. * Thu Oct 05 2006 Christian Iseli <Christian.Iseli@licr.org> 1.1.5-5
  74. - rebuilt for unwind info generation, broken in gcc-4.1.1-21
  75. * Wed Sep 20 2006 José Matos <jamatos[AT]fc.up.pt> - 1.1.5-4
  76. - Rebuild for FC-6.
  77. - Unghost .pyo files.
  78. * Tue Feb 14 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.1.5-3
  79. - Rebuild for Fedora Extras 5
  80. * Tue Feb 07 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.1.5-2
  81. - Rebuild
  82. * Sat Feb 04 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.1.5-1
  83. - Update to 1.1.5
  84. * Wed Feb 01 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.1.3-3
  85. - Use %%{python_sitearch} instead of %%{python_sitelib} (for x86_64)
  86. * Wed Feb 01 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.1.3-2
  87. - Remove %%{enchant_dir} macro
  88. - Add %%dir for architecture-specific directory
  89. - Add "Provides:" for PyEnchant
  90. - Remove "Requires:" on enchant (Brian Pepple)
  91. * Mon Jan 09 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.1.3-1
  92. - Initial packaging