- 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:
parent
01538c5df6
commit
65d35d10e7
@ -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)")}
|
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
|
||||||
|
|
||||||
Name: python-enchant
|
Name: python-enchant
|
||||||
Version: 1.1.3
|
Version: 1.1.3
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
Summary: Python bindings for Enchant spellchecking library
|
Summary: Python bindings for Enchant spellchecking library
|
||||||
|
|
||||||
Group: Development/Languages
|
Group: Development/Languages
|
||||||
@ -13,7 +14,8 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|||||||
|
|
||||||
BuildRequires: python-devel enchant-devel
|
BuildRequires: python-devel enchant-devel
|
||||||
Requires: python-abi = %(%{__python} -c "import sys ; print sys.version[:3]")
|
Requires: python-abi = %(%{__python} -c "import sys ; print sys.version[:3]")
|
||||||
Requires: enchant
|
|
||||||
|
Provides: PyEnchant
|
||||||
|
|
||||||
%description
|
%description
|
||||||
PyEnchant is a spellchecking library for Python, based on the Enchant
|
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
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
|
||||||
%define enchant_dir %{python_sitearch}/enchant
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc LICENSE.txt README.txt
|
%doc LICENSE.txt README.txt
|
||||||
%dir %{enchant_dir}
|
# First the architecture-independent files
|
||||||
%dir %{enchant_dir}/checker
|
%dir %{python_sitelib}/enchant
|
||||||
%dir %{enchant_dir}/tokenize
|
%dir %{python_sitelib}/enchant/checker
|
||||||
%{enchant_dir}/*.py
|
%dir %{python_sitelib}/enchant/tokenize
|
||||||
%{enchant_dir}/*.pyc
|
%{python_sitelib}/enchant/*.py
|
||||||
%ghost %{enchant_dir}/*.pyo
|
%{python_sitelib}/enchant/*.pyc
|
||||||
%{enchant_dir}/*/*.py
|
%ghost %{python_sitelib}/enchant/*.pyo
|
||||||
%{enchant_dir}/*/*.pyc
|
%{python_sitelib}/enchant/*/*.py
|
||||||
%ghost %{enchant_dir}/*/*.pyo
|
%{python_sitelib}/enchant/*/*.pyc
|
||||||
%{enchant_dir}/_enchant.so
|
%ghost %{python_sitelib}/enchant/*/*.pyo
|
||||||
|
# Now the architecture-specific files
|
||||||
|
%dir %{python_sitearch}/enchant
|
||||||
|
%{python_sitearch}/enchant/_enchant.so
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%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
|
* Mon Jan 09 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.1.3-1
|
||||||
- Initial packaging
|
- Initial packaging
|
||||||
|
Loading…
Reference in New Issue
Block a user