Fix python3.8 complied error

This commit is contained in:
zhanghua1831 2020-06-24 15:46:16 +08:00
parent bdd8b819ee
commit 1c7f6591a9

View File

@ -1,6 +1,6 @@
Name: python-enchant Name: python-enchant
Version: 2.0.0 Version: 2.0.0
Release: 6 Release: 7
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
@ -60,8 +60,8 @@ rm -rf %{buildroot}/%{python2_sitelib}/%{srcname}/share
pushd %{_builddir}/python3-%{name}-%{version}-%{release} pushd %{_builddir}/python3-%{name}-%{version}-%{release}
%py3_install \ %py3_install \
--single-version-externally-managed --single-version-externally-managed
rm -rf %{buildroot}/%{_libdir}/python3.7/site-packages/enchant/lib rm -rf %{buildroot}/%{python3_sitelib}/%{srcname}/lib
rm -rf %{buildroot}/%{_libdir}/python3.7/site-packages/enchant/share rm -rf %{buildroot}/%{python3_sitelib}/%{srcname}/share
popd popd
%check %check
@ -69,7 +69,7 @@ pushd %{buildroot}/%{python2_sitelib}
LANG=en_US.UTF-8 /usr/bin/nosetests-2.* LANG=en_US.UTF-8 /usr/bin/nosetests-2.*
popd popd
pushd %{buildroot}/usr/lib/python3.7/site-packages pushd %{buildroot}/%{python3_sitelib}
LANG=en_US.UTF-8 /usr/bin/nosetests-3.* LANG=en_US.UTF-8 /usr/bin/nosetests-3.*
popd popd
@ -92,6 +92,9 @@ popd
%doc README.txt TODO.txt %doc README.txt TODO.txt
%changelog %changelog
* 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 * Fri Dec 13 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.0.0-6
- Package init - Package init