Compare commits
No commits in common. "b9c981bd7f92da227f3977debcb9db7708cfa7e4" and "bdd8b819eeb8628db8ebc0af9c48ac57f17336e2" have entirely different histories.
b9c981bd7f
...
bdd8b819ee
BIN
pyenchant-2.0.0.tar.gz
Normal file
BIN
pyenchant-2.0.0.tar.gz
Normal file
Binary file not shown.
Binary file not shown.
@ -1,93 +1,97 @@
|
|||||||
%global srcname enchant
|
|
||||||
|
|
||||||
Name: python-enchant
|
Name: python-enchant
|
||||||
Version: 3.2.2
|
Version: 2.0.0
|
||||||
Release: 2
|
Release: 6
|
||||||
Summary: Cygwin python-enchant packaging
|
Summary: Cygwin python-enchant packaging
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: https://pyenchant.github.io/pyenchant/
|
URL: https://github.com/cygwinports/python-enchant
|
||||||
Source0: https://files.pythonhosted.org/packages/source/p/pyenchant/pyenchant-%{version}.tar.gz
|
Source0: https://files.pythonhosted.org/packages/source/p/pyenchant/pyenchant-%{version}.tar.gz
|
||||||
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: enchant2-devel
|
BuildRequires: enchant-devel python2-devel python2-setuptools python2-nose
|
||||||
BuildRequires: python3-devel python3-setuptools
|
BuildRequires: python3-devel python3-setuptools python3-nose
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Cygwin python-enchant packaging.
|
Cygwin python-enchant packaging.
|
||||||
|
|
||||||
%package -n python3-%{srcname}
|
%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
|
Summary: Cygwin python3-enchant packaging
|
||||||
Requires: enchant2
|
Requires: enchant >= 1.5.0
|
||||||
%{?python_provide:%python_provide python3-enchant}
|
%{?python_provide:%python_provide python3-enchant}
|
||||||
|
|
||||||
%description -n python3-%{srcname}
|
%description -n python3-enchant
|
||||||
Cygwin python3-enchant packaging.
|
Cygwin python3-enchant packaging.
|
||||||
|
|
||||||
%package_help
|
%package_help
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n py%{srcname}-%{version} -p1
|
%autosetup -n pyenchant-%{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|#!%{__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
|
||||||
rm -rf %{buildroot}/%{python3_sitelib}/%{srcname}/lib
|
rm -rf %{buildroot}/%{_libdir}/python3.7/site-packages/enchant/lib
|
||||||
rm -rf %{buildroot}/%{python3_sitelib}/%{srcname}/share
|
rm -rf %{buildroot}/%{_libdir}/python3.7/site-packages/enchant/share
|
||||||
popd
|
popd
|
||||||
|
|
||||||
# Tests are not included in the upstream tarball
|
%check
|
||||||
##%check
|
pushd %{buildroot}/%{python2_sitelib}
|
||||||
|
LANG=en_US.UTF-8 /usr/bin/nosetests-2.*
|
||||||
|
popd
|
||||||
|
|
||||||
%files -n python3-%{srcname}
|
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)
|
%defattr(-,root,root)
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%dir %{python3_sitelib}/%{srcname}
|
%dir %{python2_sitelib}/enchant
|
||||||
%dir %{python3_sitelib}/%{srcname}/__pycache__
|
%{python2_sitelib}/enchant
|
||||||
%dir %{python3_sitelib}/%{srcname}/checker
|
%{python2_sitelib}/pyenchant-%{version}-py?.?.egg-info
|
||||||
%dir %{python3_sitelib}/%{srcname}/checker/__pycache__
|
|
||||||
%dir %{python3_sitelib}/%{srcname}/tokenize
|
%files -n python3-enchant
|
||||||
%dir %{python3_sitelib}/%{srcname}/tokenize/__pycache__
|
%defattr(-,root,root)
|
||||||
%{python3_sitelib}/%{srcname}/*.py
|
%license LICENSE.txt
|
||||||
%{python3_sitelib}/%{srcname}/__pycache__/*.py[co]
|
%dir %{python3_sitelib}/enchant
|
||||||
%{python3_sitelib}/%{srcname}/checker/*.py
|
%{python3_sitelib}/enchant
|
||||||
%{python3_sitelib}/%{srcname}/checker/__pycache__/*.py[co]
|
%{python3_sitelib}/pyenchant-%{version}-py?.?.egg-info
|
||||||
%{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.rst
|
%doc README.txt TODO.txt
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Jan 26 2024 yaoxin <yao_xin001@hoperun.com> - 3.2.2-2
|
|
||||||
- Update enchant to enchant2
|
|
||||||
|
|
||||||
* 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
|
|
||||||
- fix build fail
|
|
||||||
|
|
||||||
* 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
|
* Fri Dec 13 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.0.0-6
|
||||||
- Package init
|
- Package init
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user