Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
6f819bcf09
!12 Update enchant to enchant2
From: @starlet-dx 
Reviewed-by: @lyn1001 
Signed-off-by: @lyn1001
2024-01-26 08:06:26 +00:00
starlet-dx
54aef00b08 Update enchant to enchant2 2024-01-26 15:48:13 +08:00
openeuler-ci-bot
c849ff23c2
!10 update to version 3.2.2
From: @wang--ge 
Reviewed-by: @licihua 
Signed-off-by: @licihua
2022-10-21 09:13:39 +00:00
wang--ge
63d1c3cd7d update to version 3.2.2 2022-10-21 10:16:35 +08:00
openeuler-ci-bot
f146c88776
!7 Drop the python-nose dependency
Merge pull request !7 from xu_ping/openEuler-22.03-LTS-Next
2022-01-07 11:35:30 +00:00
cherry530
4a84763be2 Drop the python-nose dependency
Signed-off-by: cherry530 <xuping33@huawei.com>
2022-01-05 19:36:47 +08:00
openeuler-ci-bot
e42bfa0a93 !4 remove python2
From: @zhangtao2020
Reviewed-by: @small_leek
Signed-off-by: @small_leek
2020-10-31 11:03:18 +08:00
zhangtao2020
427f5c99fa remove python2 2020-10-30 10:33:09 +08:00
openeuler-ci-bot
e7588237e8 !3 Fix python3.8 complied error
Merge pull request !3 from zhanghua/test
2020-06-24 22:56:25 +08:00
zhanghua1831
1c7f6591a9 Fix python3.8 complied error 2020-06-24 15:46:16 +08:00
3 changed files with 37 additions and 46 deletions

Binary file not shown.

BIN
pyenchant-3.2.2.tar.gz Normal file

Binary file not shown.

View File

@ -1,31 +1,22 @@
Name: python-enchant
Version: 2.0.0
Release: 6
Version: 3.2.2
Release: 2
Summary: Cygwin python-enchant packaging
License: LGPLv2+
URL: https://github.com/cygwinports/python-enchant
URL: https://pyenchant.github.io/pyenchant/
Source0: https://files.pythonhosted.org/packages/source/p/pyenchant/pyenchant-%{version}.tar.gz
BuildArch: noarch
BuildRequires: enchant-devel python2-devel python2-setuptools python2-nose
BuildRequires: python3-devel python3-setuptools python3-nose
BuildRequires: enchant2-devel
BuildRequires: python3-devel python3-setuptools
%description
Cygwin python-enchant packaging.
%package -n python2-enchant
Summary: python2 package for enchant
Requires: enchant >= 1.5.0
Provides: PyEnchant
%{?python_provide:%python_provide python2-%{srcname}}
%description -n python2-enchant
python2 package for enchant
%package -n python3-enchant
Summary: Cygwin python3-enchant packaging
Requires: enchant >= 1.5.0
Requires: enchant2
%{?python_provide:%python_provide python3-enchant}
%description -n python3-enchant
@ -40,58 +31,58 @@ rm -rf pyenchant.egg-info
rm -rf %{_builddir}/python3-%{name}-%{version}-%{release}
cp -a . %{_builddir}/python3-%{name}-%{version}-%{release}
find %{_builddir}/python3-%{name}-%{version}-%{release} -name '*.py' | \
xargs sed -i '1s|^#!python|#!%{_bindir}/python3|'
xargs sed -i '1s|^#!python|#!%{__python3}|'
%build
CFLAGS="$RPM_OPT_FLAGS" %py2_build
pushd %{_builddir}/python3-%{name}-%{version}-%{release}
CFLAGS="$RPM_OPT_FLAGS" %py3_build
popd
%install
%py2_install \
--single-version-externally-managed
rm -rf %{buildroot}/%{python2_sitelib}/%{srcname}/lib
rm -rf %{buildroot}/%{python2_sitelib}/%{srcname}/share
pushd %{_builddir}/python3-%{name}-%{version}-%{release}
%py3_install \
--single-version-externally-managed
rm -rf %{buildroot}/%{_libdir}/python3.7/site-packages/enchant/lib
rm -rf %{buildroot}/%{_libdir}/python3.7/site-packages/enchant/share
rm -rf %{buildroot}/%{python3_sitelib}/%{srcname}/lib
rm -rf %{buildroot}/%{python3_sitelib}/%{srcname}/share
popd
%check
pushd %{buildroot}/%{python2_sitelib}
LANG=en_US.UTF-8 /usr/bin/nosetests-2.*
popd
pushd %{buildroot}/usr/lib/python3.7/site-packages
LANG=en_US.UTF-8 /usr/bin/nosetests-3.*
popd
%files -n python2-enchant
%defattr(-,root,root)
%license LICENSE.txt
%dir %{python2_sitelib}/enchant
%{python2_sitelib}/enchant
%{python2_sitelib}/pyenchant-%{version}-py?.?.egg-info
%files -n python3-enchant
%defattr(-,root,root)
%license LICENSE.txt
%dir %{python3_sitelib}/enchant
%{python3_sitelib}/enchant
%{python3_sitelib}/pyenchant-%{version}-py?.?.egg-info
%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]
%{python3_sitelib}/pyenchant-%{version}-py%{python3_version}.egg-info
%files help
%defattr(-,root,root)
%doc README.txt TODO.txt
%doc README.rst
%changelog
* Fri Jan 26 2024 yaoxin <yao_xin001@hoperun.com> - 3.2.2-2
- Update enchant to enchant2
* Thu Oct 20 2022 Ge Wang <wangge20@h-partners.com> - 3.2.2-1
- Upgrade to 3.2.2
* Wed Jan 05 2022 xu_ping <xuping33@huawei.com> - 2.0.0-9
- Drop the python-nose dependency
* Thu Oct 22 2020 huanghaitao <huanghaitao8@huawei.com> - 2.0.0-8
- Disable python2 module
* Wed Jun 24 2020 zhanghua <zhanghua40@huawei.com> - 2.0.0-7
- Fix python3.8 complied error
* Fri Dec 13 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.0.0-6
- Package init