diff --git a/.cvsignore b/.cvsignore index e69de29..61be176 100644 --- a/.cvsignore +++ b/.cvsignore @@ -0,0 +1 @@ +pyenchant-1.1.3.tar.gz diff --git a/python-enchant.spec b/python-enchant.spec new file mode 100644 index 0000000..90be05d --- /dev/null +++ b/python-enchant.spec @@ -0,0 +1,58 @@ +%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} + +Name: python-enchant +Version: 1.1.3 +Release: 1%{?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 +Requires: python-abi = %(%{__python} -c "import sys ; print sys.version[:3]") +Requires: enchant + +%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 + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%define enchant_dir %{python_sitearch}/enchant + +%files +%defattr(-,root,root,-) +%doc LICENSE.txt README.txt +%dir %{enchant_dir} +%dir %{enchant_dir}/checker +%dir %{enchant_dir}/tokenize +%{enchant_dir}/*.py +%{enchant_dir}/*.pyc +%ghost %{enchant_dir}/*.pyo +%{enchant_dir}/*/*.py +%{enchant_dir}/*/*.pyc +%ghost %{enchant_dir}/*/*.pyo +%{enchant_dir}/_enchant.so + +%changelog +* Mon Jan 09 2006 Roozbeh Pournader - 1.1.3-1 +- Initial packaging diff --git a/sources b/sources index e69de29..061b092 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +31bb75201ec0252793e2b5b57df683c0 pyenchant-1.1.3.tar.gz