remove python2
This commit is contained in:
parent
e7588237e8
commit
427f5c99fa
@ -1,6 +1,6 @@
|
|||||||
Name: python-enchant
|
Name: python-enchant
|
||||||
Version: 2.0.0
|
Version: 2.0.0
|
||||||
Release: 7
|
Release: 8
|
||||||
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
|
||||||
@ -8,21 +8,12 @@ Source0: https://files.pythonhosted.org/packages/source/p/pyenchant/pyenchant-%{
|
|||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: enchant-devel python2-devel python2-setuptools python2-nose
|
BuildRequires: enchant-devel
|
||||||
BuildRequires: python3-devel python3-setuptools python3-nose
|
BuildRequires: python3-devel python3-setuptools python3-nose
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Cygwin python-enchant packaging.
|
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
|
%package -n python3-enchant
|
||||||
Summary: Cygwin python3-enchant packaging
|
Summary: Cygwin python3-enchant packaging
|
||||||
Requires: enchant >= 1.5.0
|
Requires: enchant >= 1.5.0
|
||||||
@ -43,20 +34,11 @@ find %{_builddir}/python3-%{name}-%{version}-%{release} -name '*.py' | \
|
|||||||
xargs sed -i '1s|^#!python|#!%{_bindir}/python3|'
|
xargs sed -i '1s|^#!python|#!%{_bindir}/python3|'
|
||||||
|
|
||||||
%build
|
%build
|
||||||
CFLAGS="$RPM_OPT_FLAGS" %py2_build
|
|
||||||
|
|
||||||
pushd %{_builddir}/python3-%{name}-%{version}-%{release}
|
pushd %{_builddir}/python3-%{name}-%{version}-%{release}
|
||||||
CFLAGS="$RPM_OPT_FLAGS" %py3_build
|
CFLAGS="$RPM_OPT_FLAGS" %py3_build
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%install
|
%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}
|
pushd %{_builddir}/python3-%{name}-%{version}-%{release}
|
||||||
%py3_install \
|
%py3_install \
|
||||||
--single-version-externally-managed
|
--single-version-externally-managed
|
||||||
@ -65,21 +47,10 @@ rm -rf %{buildroot}/%{python3_sitelib}/%{srcname}/share
|
|||||||
popd
|
popd
|
||||||
|
|
||||||
%check
|
%check
|
||||||
pushd %{buildroot}/%{python2_sitelib}
|
|
||||||
LANG=en_US.UTF-8 /usr/bin/nosetests-2.*
|
|
||||||
popd
|
|
||||||
|
|
||||||
pushd %{buildroot}/%{python3_sitelib}
|
pushd %{buildroot}/%{python3_sitelib}
|
||||||
LANG=en_US.UTF-8 /usr/bin/nosetests-3.*
|
LANG=en_US.UTF-8 /usr/bin/nosetests-3.*
|
||||||
popd
|
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
|
%files -n python3-enchant
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
@ -92,6 +63,9 @@ popd
|
|||||||
%doc README.txt TODO.txt
|
%doc README.txt TODO.txt
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* 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
|
* Wed Jun 24 2020 zhanghua <zhanghua40@huawei.com> - 2.0.0-7
|
||||||
- Fix python3.8 complied error
|
- Fix python3.8 complied error
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user