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