89 lines
2.6 KiB
RPMSpec
89 lines
2.6 KiB
RPMSpec
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
|
|
|
Name: python-enchant
|
|
Version: 1.2.0
|
|
Release: 2%{?dist}
|
|
Summary: Python bindings for Enchant spellchecking library
|
|
|
|
Group: Development/Languages
|
|
License: LGPL
|
|
URL: http://pyenchant.sourceforge.net/
|
|
Source0: http://dl.sourceforge.net/sourceforge/pyenchant/pyenchant-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
BuildRequires: python-devel enchant-devel
|
|
BuildRequires: python-setuptools >= 0:0.6a9
|
|
|
|
Provides: PyEnchant
|
|
|
|
%description
|
|
PyEnchant is a spellchecking library for Python, based on the Enchant
|
|
library by Dom Lachowicz.
|
|
|
|
|
|
%prep
|
|
%setup -q -n pyenchant-%{version}
|
|
|
|
|
|
%build
|
|
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
|
|
|
|
|
|
%install
|
|
rm -rf $RPM_BUILD_ROOT
|
|
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT --single-version-externally-managed
|
|
rm -rf $RPM_BUILD_ROOT/%{python_sitearch}/*.egg-info
|
|
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%doc LICENSE.txt README.txt
|
|
%dir %{python_sitearch}/enchant
|
|
%dir %{python_sitearch}/enchant/checker
|
|
%dir %{python_sitearch}/enchant/tokenize
|
|
%{python_sitearch}/enchant/*.py
|
|
%{python_sitearch}/enchant/*.py[co]
|
|
%{python_sitearch}/enchant/*/*.py
|
|
%{python_sitearch}/enchant/*/*.py[co]
|
|
%{python_sitearch}/enchant/_enchant.so
|
|
|
|
|
|
%changelog
|
|
* Sat Dec 09 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.2.0-2
|
|
- Rebuild for Python 2.5
|
|
|
|
* Tue Nov 7 2006 José Matos <jamatos[AT]fc.up.pt> - 1.2.0-1
|
|
- New upstream release
|
|
|
|
* Thu Oct 05 2006 Christian Iseli <Christian.Iseli@licr.org> 1.1.5-5
|
|
- rebuilt for unwind info generation, broken in gcc-4.1.1-21
|
|
|
|
* Wed Sep 20 2006 José Matos <jamatos[AT]fc.up.pt> - 1.1.5-4
|
|
- Rebuild for FC-6.
|
|
- Unghost .pyo files.
|
|
|
|
* Tue Feb 14 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.1.5-3
|
|
- Rebuild for Fedora Extras 5
|
|
|
|
* Tue Feb 07 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.1.5-2
|
|
- Rebuild
|
|
|
|
* Sat Feb 04 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.1.5-1
|
|
- Update to 1.1.5
|
|
|
|
* Wed Feb 01 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.1.3-3
|
|
- Use %%{python_sitearch} instead of %%{python_sitelib} (for x86_64)
|
|
|
|
* Wed Feb 01 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.1.3-2
|
|
- Remove %%{enchant_dir} macro
|
|
- Add %%dir for architecture-specific directory
|
|
- Add "Provides:" for PyEnchant
|
|
- Remove "Requires:" on enchant (Brian Pepple)
|
|
|
|
* Mon Jan 09 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.1.3-1
|
|
- Initial packaging
|