- Remove %{enchant_dir} macro

- Add %dir for architecture-specific directory
- Add "Provides:" for PyEnchant
- Remove "Requires:" on enchant (Brian Pepple)
This commit is contained in:
Roozbeh Pournader 2006-02-01 15:20:34 +00:00
parent 01538c5df6
commit 65d35d10e7

View File

@ -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 <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