!8 Upgrade to 3.2.2

From: @starlet-dx 
Reviewed-by: @small_leek 
Signed-off-by: @small_leek
This commit is contained in:
openeuler-ci-bot 2022-04-29 06:19:34 +00:00 committed by Gitee
commit c9fdc41bec
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
3 changed files with 29 additions and 16 deletions

Binary file not shown.

BIN
pyenchant-3.2.2.tar.gz Normal file

Binary file not shown.

View File

@ -1,6 +1,8 @@
%global srcname enchant
Name: python-enchant Name: python-enchant
Version: 2.0.0 Version: 3.2.2
Release: 9 Release: 1
Summary: Cygwin python-enchant packaging Summary: Cygwin python-enchant packaging
License: LGPLv2+ License: LGPLv2+
URL: https://github.com/cygwinports/python-enchant URL: https://github.com/cygwinports/python-enchant
@ -9,29 +11,29 @@ Source0: https://files.pythonhosted.org/packages/source/p/pyenchant/pyenchant-%{
BuildArch: noarch BuildArch: noarch
BuildRequires: enchant-devel BuildRequires: enchant-devel
BuildRequires: python3-devel python3-setuptools python3-nose BuildRequires: python3-devel python3-setuptools
%description %description
Cygwin python-enchant packaging. Cygwin python-enchant packaging.
%package -n python3-enchant %package -n python3-%{srcname}
Summary: Cygwin python3-enchant packaging Summary: Cygwin python3-enchant packaging
Requires: enchant >= 1.5.0 Requires: enchant >= 1.5.0
%{?python_provide:%python_provide python3-enchant} %{?python_provide:%python_provide python3-enchant}
%description -n python3-enchant %description -n python3-%{srcname}
Cygwin python3-enchant packaging. Cygwin python3-enchant packaging.
%package_help %package_help
%prep %prep
%autosetup -n pyenchant-%{version} -p1 %autosetup -n py%{srcname}-%{version} -p1
rm -rf pyenchant.egg-info rm -rf pyenchant.egg-info
rm -rf %{_builddir}/python3-%{name}-%{version}-%{release} rm -rf %{_builddir}/python3-%{name}-%{version}-%{release}
cp -a . %{_builddir}/python3-%{name}-%{version}-%{release} cp -a . %{_builddir}/python3-%{name}-%{version}-%{release}
find %{_builddir}/python3-%{name}-%{version}-%{release} -name '*.py' | \ find %{_builddir}/python3-%{name}-%{version}-%{release} -name '*.py' | \
xargs sed -i '1s|^#!python|#!%{_bindir}/python3|' xargs sed -i '1s|^#!python|#!%{__python3}|'
%build %build
pushd %{_builddir}/python3-%{name}-%{version}-%{release} pushd %{_builddir}/python3-%{name}-%{version}-%{release}
@ -46,23 +48,34 @@ rm -rf %{buildroot}/%{python3_sitelib}/%{srcname}/lib
rm -rf %{buildroot}/%{python3_sitelib}/%{srcname}/share rm -rf %{buildroot}/%{python3_sitelib}/%{srcname}/share
popd popd
%check # Tests are not included in the upstream tarball
pushd %{buildroot}/%{python3_sitelib} ##%check
LANG=en_US.UTF-8 /usr/bin/nosetests-3.*
popd
%files -n python3-enchant %files -n python3-%{srcname}
%defattr(-,root,root) %defattr(-,root,root)
%license LICENSE.txt %license LICENSE.txt
%dir %{python3_sitelib}/enchant %dir %{python3_sitelib}/%{srcname}
%{python3_sitelib}/enchant %dir %{python3_sitelib}/%{srcname}/__pycache__
%{python3_sitelib}/pyenchant-%{version}-py?.??.egg-info %dir %{python3_sitelib}/%{srcname}/checker
%dir %{python3_sitelib}/%{srcname}/checker/__pycache__
%dir %{python3_sitelib}/%{srcname}/tokenize
%dir %{python3_sitelib}/%{srcname}/tokenize/__pycache__
%{python3_sitelib}/%{srcname}/*.py
%{python3_sitelib}/%{srcname}/__pycache__/*.py[co]
%{python3_sitelib}/%{srcname}/checker/*.py
%{python3_sitelib}/%{srcname}/checker/__pycache__/*.py[co]
%{python3_sitelib}/%{srcname}/tokenize/*.py
%{python3_sitelib}/%{srcname}/tokenize/__pycache__/*.py[co]
%{python3_sitelib}/py%{srcname}-%{version}-py%{python3_version}.egg-info
%files help %files help
%defattr(-,root,root) %defattr(-,root,root)
%doc README.txt TODO.txt %doc README.rst
%changelog %changelog
* Fri Apr 29 2022 yaoxin <yaoxin30@h-partners.com> - 3.2.2-1
- Upgrade to 3.2.2
* Sat Dec 18 2021 shixuantong <shixuantong@huawei.com> - 2.0.0-9 * Sat Dec 18 2021 shixuantong <shixuantong@huawei.com> - 2.0.0-9
- fix build fail - fix build fail