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 |
4 |
Version: 1.3.1 |
5 |
Release: 6%{?dist} |
6 |
Summary: Python bindings for Enchant spellchecking library |
7 |
|
8 |
Group: Development/Languages |
9 |
License: LGPLv2+ |
10 |
URL: http://pyenchant.sourceforge.net/ |
11 |
Source0: http://dl.sourceforge.net/sourceforge/pyenchant/pyenchant-%{version}.tar.gz |
12 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
13 |
|
14 |
BuildRequires: python-devel enchant-devel |
15 |
BuildRequires: python-setuptools >= 0:0.6a9 |
16 |
# Work around a problem with libenchant versioning |
17 |
# (python-enchant-1.3.1 failed to work with enchant-1.4.2-2.fc10) |
18 |
Requires: enchant >= 1.5.0 |
19 |
|
20 |
Provides: PyEnchant |
21 |
|
22 |
%description |
23 |
PyEnchant is a spellchecking library for Python, based on the Enchant |
24 |
library by Dom Lachowicz. |
25 |
|
26 |
|
27 |
%prep |
28 |
%setup -q -n pyenchant-%{version} |
29 |
|
30 |
|
31 |
%build |
32 |
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build |
33 |
|
34 |
|
35 |
%install |
36 |
rm -rf $RPM_BUILD_ROOT |
37 |
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT --single-version-externally-managed |
38 |
rm -rf $RPM_BUILD_ROOT/%{python_sitearch}/*.egg-info |
39 |
|
40 |
|
41 |
%clean |
42 |
rm -rf $RPM_BUILD_ROOT |
43 |
|
44 |
|
45 |
%files |
46 |
%defattr(-,root,root,-) |
47 |
%doc ChangeLog LICENSE.txt README.txt TODO.txt |
48 |
%dir %{python_sitearch}/enchant |
49 |
%dir %{python_sitearch}/enchant/checker |
50 |
%dir %{python_sitearch}/enchant/tokenize |
51 |
%{python_sitearch}/enchant/*.py |
52 |
%{python_sitearch}/enchant/*.py[co] |
53 |
%{python_sitearch}/enchant/*/*.py |
54 |
%{python_sitearch}/enchant/*/*.py[co] |
55 |
%{python_sitearch}/enchant/_enchant.so |
56 |
|
57 |
|
58 |
%changelog |
59 |
* Mon Feb 1 2010 Stepan Kasal <skasal@redhat.com> - 1.3.1-6 |
60 |
- add a require to work around a problem with libenchant versioning |
61 |
|
62 |
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-5 |
63 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
64 |
|
65 |
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-4 |
66 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
67 |
|
68 |
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.3.1-3 |
69 |
- Rebuild for Python 2.6 |
70 |
|
71 |
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.3.1-2 |
72 |
- Autorebuild for GCC 4.3 |
73 |
|
74 |
* Tue Dec 11 2007 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.3.1-1 |
75 |
- Update to 1.3.1 |
76 |
- Change license tag to LGPLv2+ |
77 |
|
78 |
* Sat Jan 13 2007 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.3.0-1 |
79 |
- Update to 1.3.0 |
80 |
- Add ChangeLog and TODO.txt as documentation |
81 |
|
82 |
* Sat Dec 09 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.2.0-2 |
83 |
- Rebuild for Python 2.5 |
84 |
|
85 |
* Tue Nov 7 2006 José Matos <jamatos[AT]fc.up.pt> - 1.2.0-1 |
86 |
- New upstream release |
87 |
|
88 |
* Thu Oct 05 2006 Christian Iseli <Christian.Iseli@licr.org> 1.1.5-5 |
89 |
- rebuilt for unwind info generation, broken in gcc-4.1.1-21 |
90 |
|
91 |
* Wed Sep 20 2006 José Matos <jamatos[AT]fc.up.pt> - 1.1.5-4 |
92 |
- Rebuild for FC-6. |
93 |
- Unghost .pyo files. |
94 |
|
95 |
* Tue Feb 14 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.1.5-3 |
96 |
- Rebuild for Fedora Extras 5 |
97 |
|
98 |
* Tue Feb 07 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.1.5-2 |
99 |
- Rebuild |
100 |
|
101 |
* Sat Feb 04 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.1.5-1 |
102 |
- Update to 1.1.5 |
103 |
|
104 |
* Wed Feb 01 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.1.3-3 |
105 |
- Use %%{python_sitearch} instead of %%{python_sitelib} (for x86_64) |
106 |
|
107 |
* Wed Feb 01 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.1.3-2 |
108 |
- Remove %%{enchant_dir} macro |
109 |
- Add %%dir for architecture-specific directory |
110 |
- Add "Provides:" for PyEnchant |
111 |
- Remove "Requires:" on enchant (Brian Pepple) |
112 |
|
113 |
* Mon Jan 09 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.1.3-1 |
114 |
- Initial packaging |