From 65d35d10e7ee54b5ddc702e3779e2536612aac22 Mon Sep 17 00:00:00 2001 From: Roozbeh Pournader Date: Wed, 1 Feb 2006 15:20:34 +0000 Subject: [PATCH] - Remove %{enchant_dir} macro - Add %dir for architecture-specific directory - Add "Provides:" for PyEnchant - Remove "Requires:" on enchant (Brian Pepple) --- python-enchant.spec | 38 ++++++++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/python-enchant.spec b/python-enchant.spec index 90be05d..2b35ba1 100644 --- a/python-enchant.spec +++ b/python-enchant.spec @@ -1,8 +1,9 @@ +%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %{!?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} +Release: 2%{?dist} Summary: Python bindings for Enchant spellchecking library Group: Development/Languages @@ -13,7 +14,8 @@ 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 + +Provides: PyEnchant %description PyEnchant is a spellchecking library for Python, based on the Enchant @@ -37,22 +39,30 @@ rm -rf $RPM_BUILD_ROOT 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 +# First the architecture-independent files +%dir %{python_sitelib}/enchant +%dir %{python_sitelib}/enchant/checker +%dir %{python_sitelib}/enchant/tokenize +%{python_sitelib}/enchant/*.py +%{python_sitelib}/enchant/*.pyc +%ghost %{python_sitelib}/enchant/*.pyo +%{python_sitelib}/enchant/*/*.py +%{python_sitelib}/enchant/*/*.pyc +%ghost %{python_sitelib}/enchant/*/*.pyo +# Now the architecture-specific files +%dir %{python_sitearch}/enchant +%{python_sitearch}/enchant/_enchant.so + %changelog +* Wed Feb 01 2006 Roozbeh Pournader - 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 - 1.1.3-1 - Initial packaging