2011-10-12 12:15:59 +00:00
|
|
|
%global with_python3 1
|
|
|
|
|
2006-02-01 14:50:42 +00:00
|
|
|
Name: python-enchant
|
2011-09-23 12:55:21 +00:00
|
|
|
Version: 1.6.5
|
2012-11-01 10:17:23 +00:00
|
|
|
Release: 9%{?dist}
|
2006-02-01 14:50:42 +00:00
|
|
|
Summary: Python bindings for Enchant spellchecking library
|
|
|
|
|
|
|
|
Group: Development/Languages
|
2007-12-11 13:16:23 +00:00
|
|
|
License: LGPLv2+
|
2012-10-31 13:16:02 +00:00
|
|
|
URL: http://packages.python.org/pyenchant/
|
|
|
|
Source0: http://pypi.python.org/packages/source/p/pyenchant/pyenchant-%{version}.tar.gz
|
2006-02-01 14:50:42 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
|
2012-11-01 10:17:23 +00:00
|
|
|
Patch0: python-enchant-1.6.5-fix-tests-without-X.patch
|
|
|
|
Patch1: python-enchant-1.6.5-fix-docstring-test.patch
|
|
|
|
|
2011-09-23 13:29:50 +00:00
|
|
|
BuildArch: noarch
|
2011-10-12 12:15:59 +00:00
|
|
|
BuildRequires: enchant-devel
|
|
|
|
|
|
|
|
# Python 2 build requirements:
|
|
|
|
BuildRequires: python2-devel
|
2006-02-07 08:29:15 +00:00
|
|
|
BuildRequires: python-setuptools >= 0:0.6a9
|
2012-11-01 10:17:23 +00:00
|
|
|
# For running tests
|
|
|
|
BuildRequires: python-nose
|
2011-10-12 12:15:59 +00:00
|
|
|
|
|
|
|
# Python 3 build requirements:
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools >= 0:0.6a9
|
2012-11-01 10:17:23 +00:00
|
|
|
# For running tests
|
|
|
|
BuildRequires: python3-nose
|
2011-10-12 12:15:59 +00:00
|
|
|
%endif # if with_python3
|
|
|
|
|
2010-02-01 16:39:31 +00:00
|
|
|
# Work around a problem with libenchant versioning
|
|
|
|
# (python-enchant-1.3.1 failed to work with enchant-1.4.2-2.fc10)
|
2011-09-23 13:29:50 +00:00
|
|
|
Requires: enchant >= 1.5.0
|
2006-02-01 15:20:34 +00:00
|
|
|
|
2011-09-23 14:07:00 +00:00
|
|
|
# Package was arch specific before
|
2011-09-23 14:01:38 +00:00
|
|
|
Obsoletes: python-enchant < 1.6.5
|
|
|
|
|
2006-02-01 15:20:34 +00:00
|
|
|
Provides: PyEnchant
|
2006-02-01 14:50:42 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
PyEnchant is a spellchecking library for Python, based on the Enchant
|
|
|
|
library by Dom Lachowicz.
|
|
|
|
|
2011-10-12 12:15:59 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
%package -n python3-enchant
|
|
|
|
Summary: Python 3 bindings for Enchant spellchecking library
|
|
|
|
Group: Development/Languages
|
|
|
|
|
|
|
|
%description -n python3-enchant
|
|
|
|
PyEnchant is a spellchecking library for Python 3, based on the Enchant
|
|
|
|
library by Dom Lachowicz.
|
|
|
|
%endif # with_python3
|
2006-02-01 14:50:42 +00:00
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n pyenchant-%{version}
|
2012-11-01 10:17:23 +00:00
|
|
|
%patch0 -p1 -b .fix-tests-without-X
|
|
|
|
%patch1 -p1 -b .fix-docstring-test
|
2006-02-01 14:50:42 +00:00
|
|
|
|
2011-10-12 12:15:59 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
rm -rf %{py3dir}
|
|
|
|
cp -a . %{py3dir}
|
|
|
|
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
|
|
|
|
%endif # with_python3
|
|
|
|
|
2006-02-01 14:50:42 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
|
|
|
|
|
2011-10-12 12:15:59 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
|
|
|
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py build
|
|
|
|
popd
|
|
|
|
%endif # with_python3
|
2006-02-01 14:50:42 +00:00
|
|
|
|
|
|
|
%install
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2011-10-12 12:15:59 +00:00
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd %{py3dir}
|
|
|
|
%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT --single-version-externally-managed
|
|
|
|
rm -rf $RPM_BUILD_ROOT/%{python3_sitelib}/*.egg-info
|
|
|
|
# Directories used in windows build
|
|
|
|
rm -rf $RPM_BUILD_ROOT/%{python3_sitelib}/enchant/lib
|
|
|
|
rm -rf $RPM_BUILD_ROOT/%{python3_sitelib}/enchant/share
|
|
|
|
popd
|
|
|
|
%endif # with_python3
|
2006-02-07 08:29:15 +00:00
|
|
|
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT --single-version-externally-managed
|
2011-09-23 13:29:50 +00:00
|
|
|
rm -rf $RPM_BUILD_ROOT/%{python_sitelib}/*.egg-info
|
|
|
|
# Directories used in windows build
|
|
|
|
rm -rf $RPM_BUILD_ROOT/%{python_sitelib}/enchant/lib
|
|
|
|
rm -rf $RPM_BUILD_ROOT/%{python_sitelib}/enchant/share
|
|
|
|
|
2012-11-01 10:17:23 +00:00
|
|
|
%check
|
|
|
|
pushd $RPM_BUILD_ROOT/%{python_sitelib}
|
|
|
|
# There is no dictionary for language C, need to use en_US
|
|
|
|
LANG=en_US.UTF-8 /usr/bin/nosetests
|
|
|
|
popd
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
|
|
pushd $RPM_BUILD_ROOT/%{python3_sitelib}
|
|
|
|
# There is no dictionary for language C, need to use en_US
|
|
|
|
LANG=en_US.UTF-8 /usr/bin/nosetests-3*
|
|
|
|
popd
|
|
|
|
%endif # with python3
|
2006-02-01 14:50:42 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2011-09-23 13:29:50 +00:00
|
|
|
%doc LICENSE.txt README.txt TODO.txt
|
|
|
|
%dir %{python_sitelib}/enchant
|
|
|
|
%dir %{python_sitelib}/enchant/checker
|
|
|
|
%dir %{python_sitelib}/enchant/tokenize
|
|
|
|
%{python_sitelib}/enchant/*.py
|
|
|
|
%{python_sitelib}/enchant/*.py[co]
|
|
|
|
%{python_sitelib}/enchant/*/*.py
|
|
|
|
%{python_sitelib}/enchant/*/*.py[co]
|
2006-02-01 15:20:34 +00:00
|
|
|
|
2011-10-12 12:15:59 +00:00
|
|
|
%if 0%{?with_python3}
|
|
|
|
%files -n python3-enchant
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE.txt README.txt TODO.txt
|
|
|
|
%dir %{python3_sitelib}/enchant
|
|
|
|
%dir %{python3_sitelib}/enchant/__pycache__
|
|
|
|
%dir %{python3_sitelib}/enchant/checker
|
|
|
|
%dir %{python3_sitelib}/enchant/checker/__pycache__
|
|
|
|
%dir %{python3_sitelib}/enchant/tokenize
|
|
|
|
%dir %{python3_sitelib}/enchant/tokenize/__pycache__
|
|
|
|
%{python3_sitelib}/enchant/*.py
|
|
|
|
%{python3_sitelib}/enchant/__pycache__/*.py[co]
|
|
|
|
%{python3_sitelib}/enchant/checker/*.py
|
|
|
|
%{python3_sitelib}/enchant/checker/__pycache__/*.py[co]
|
|
|
|
%{python3_sitelib}/enchant/tokenize/*.py
|
|
|
|
%{python3_sitelib}/enchant/tokenize/__pycache__/*.py[co]
|
|
|
|
%endif # with_python3
|
|
|
|
|
2006-02-01 14:50:42 +00:00
|
|
|
|
|
|
|
%changelog
|
2012-11-01 10:17:23 +00:00
|
|
|
* Thu Nov 01 2012 Radek Novacek <rnovacek@redhat.com> 1.6.5-9
|
|
|
|
- Enable tests in %check
|
|
|
|
|
2012-10-31 13:16:02 +00:00
|
|
|
* Wed Oct 31 2012 Radek Novacek <rnovacek@redhat.com> 1.6.5-8
|
|
|
|
- Fix upstream url and source url
|
|
|
|
|
2012-08-04 08:36:30 +00:00
|
|
|
* Sat Aug 04 2012 David Malcolm <dmalcolm@redhat.com> - 1.6.5-7
|
|
|
|
- rebuild for https://fedoraproject.org/wiki/Features/Python_3.3
|
|
|
|
|
2012-07-21 06:07:54 +00:00
|
|
|
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.5-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-01-14 01:42:17 +00:00
|
|
|
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.5-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-12-12 10:25:21 +00:00
|
|
|
* Mon Dec 12 2011 Radek Novacek <rnovacek@redhat.com> 1.6.5-4
|
|
|
|
- Release bump to ensure upgrade path from F16
|
|
|
|
|
2011-10-12 12:15:59 +00:00
|
|
|
* Mon Oct 10 2011 David Malcolm <dmalcolm@redhat.com> - 1.6.5-3
|
|
|
|
- add python3 subpackage
|
|
|
|
|
2011-09-23 14:07:00 +00:00
|
|
|
* Fri Sep 23 2011 Radek Novacek <rnovacek@redhat.com> 1.6.5-2
|
|
|
|
- Obsolete old arch-specific version
|
|
|
|
|
2011-09-23 12:55:21 +00:00
|
|
|
* Fri Sep 23 2011 Radek Novacek <rnovacek@redhat.com> 1.6.5-1
|
|
|
|
- Update to version 1.6.5
|
2011-09-23 13:29:50 +00:00
|
|
|
- Change architecture to noarch
|
|
|
|
- Change python_sitearch to python_sitelib
|
|
|
|
- Changelog in no longer in source tarball
|
|
|
|
- Remove nonpacked files
|
2011-09-23 12:55:21 +00:00
|
|
|
|
2011-02-09 03:45:59 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-8
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-07-22 04:12:11 +00:00
|
|
|
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.3.1-7
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
|
|
|
|
|
2010-02-01 16:39:31 +00:00
|
|
|
* Mon Feb 1 2010 Stepan Kasal <skasal@redhat.com> - 1.3.1-6
|
|
|
|
- add a require to work around a problem with libenchant versioning
|
|
|
|
|
2009-07-26 20:21:01 +00:00
|
|
|
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-5
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
|
|
2009-02-26 21:21:07 +00:00
|
|
|
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3.1-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
|
|
|
|
|
2008-11-29 15:27:25 +00:00
|
|
|
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.3.1-3
|
|
|
|
- Rebuild for Python 2.6
|
|
|
|
|
2008-02-19 22:29:26 +00:00
|
|
|
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.3.1-2
|
|
|
|
- Autorebuild for GCC 4.3
|
|
|
|
|
2007-12-11 13:16:23 +00:00
|
|
|
* Tue Dec 11 2007 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.3.1-1
|
|
|
|
- Update to 1.3.1
|
|
|
|
- Change license tag to LGPLv2+
|
|
|
|
|
2007-01-13 13:53:30 +00:00
|
|
|
* Sat Jan 13 2007 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.3.0-1
|
|
|
|
- Update to 1.3.0
|
|
|
|
- Add ChangeLog and TODO.txt as documentation
|
|
|
|
|
2006-12-09 15:58:33 +00:00
|
|
|
* Sat Dec 09 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.2.0-2
|
|
|
|
- Rebuild for Python 2.5
|
|
|
|
|
2006-11-07 11:41:49 +00:00
|
|
|
* Tue Nov 7 2006 José Matos <jamatos[AT]fc.up.pt> - 1.2.0-1
|
|
|
|
- New upstream release
|
|
|
|
|
2006-10-04 22:40:43 +00:00
|
|
|
* 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
|
|
|
|
|
2006-09-20 00:10:35 +00:00
|
|
|
* Wed Sep 20 2006 José Matos <jamatos[AT]fc.up.pt> - 1.1.5-4
|
|
|
|
- Rebuild for FC-6.
|
|
|
|
- Unghost .pyo files.
|
|
|
|
|
2006-02-14 09:55:37 +00:00
|
|
|
* Tue Feb 14 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.1.5-3
|
|
|
|
- Rebuild for Fedora Extras 5
|
|
|
|
|
2006-02-07 08:45:37 +00:00
|
|
|
* Tue Feb 07 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.1.5-2
|
|
|
|
- Rebuild
|
|
|
|
|
2006-02-07 08:29:15 +00:00
|
|
|
* Sat Feb 04 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.1.5-1
|
|
|
|
- Update to 1.1.5
|
|
|
|
|
2006-02-01 16:07:44 +00:00
|
|
|
* Wed Feb 01 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.1.3-3
|
|
|
|
- Use %%{python_sitearch} instead of %%{python_sitelib} (for x86_64)
|
|
|
|
|
2006-02-01 15:20:34 +00:00
|
|
|
* 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)
|
|
|
|
|
2006-02-01 14:50:42 +00:00
|
|
|
* Mon Jan 09 2006 Roozbeh Pournader <roozbeh@farsiweb.info> - 1.1.3-1
|
|
|
|
- Initial packaging
|