delete python2 and build for doc
This commit is contained in:
parent
758aa53b24
commit
deba27b017
@ -1,34 +1,22 @@
|
|||||||
Name: python-kitchen
|
Name: python-kitchen
|
||||||
Version: 1.2.6
|
Version: 1.2.6
|
||||||
Release: 5
|
Release: 6
|
||||||
Summary: Useful snippets of python code
|
Summary: Useful snippets of python code
|
||||||
License: LGPLv2+
|
License: LGPLv2+
|
||||||
URL: https://pypi.python.org/pypi/kitchen/
|
URL: https://pypi.python.org/pypi/kitchen/
|
||||||
Source0: https://files.pythonhosted.org/packages/d9/ca/3365cb1160533be8c8b57dbfd6502f367d35e30935ee89a003c664740714/kitchen-1.2.6.tar.gz
|
Source0: https://files.pythonhosted.org/packages/d9/ca/3365cb1160533be8c8b57dbfd6502f367d35e30935ee89a003c664740714/kitchen-1.2.6.tar.gz
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
|
||||||
BuildRequires: python2-devel python2-nose python2-test python2-sphinx python2-chardet
|
|
||||||
BuildRequires: python3-devel python3-nose
|
BuildRequires: python3-devel python3-nose
|
||||||
BuildRequires: python3-test python3-chardet
|
BuildRequires: python3-test python3-chardet
|
||||||
BuildRequires: python3-sphinx
|
BuildRequires: python3-sphinx
|
||||||
|
|
||||||
Requires: python2-chardet
|
|
||||||
|
|
||||||
Patch0: 0001-replace-obsolete-pngmath-with-imgmath.patch
|
Patch0: 0001-replace-obsolete-pngmath-with-imgmath.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
kitchen comprising gettext easy to use, easy to unicode text processing functions, and for write
|
kitchen comprising gettext easy to use, easy to unicode text processing functions, and for write
|
||||||
code modules but requires python-2.7 running on python-2.3 compatibility module.
|
code modules but requires python-2.7 running on python-2.3 compatibility module.
|
||||||
|
|
||||||
|
|
||||||
%package -n python2-kitchen
|
|
||||||
Summary: Useful snippets of python2 code
|
|
||||||
%{?python_provide:%python_provide python2-kitchen}
|
|
||||||
|
|
||||||
%description -n python2-kitchen
|
|
||||||
This package is the python2 version of the kitchen module.
|
|
||||||
|
|
||||||
|
|
||||||
%package -n python3-kitchen
|
%package -n python3-kitchen
|
||||||
Summary: Useful snippets of python3 code
|
Summary: Useful snippets of python3 code
|
||||||
|
|
||||||
@ -51,51 +39,33 @@ of the kitchen library.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n kitchen-%{version} -p1
|
%autosetup -n kitchen-%{version} -p1
|
||||||
rm -rf *.egg* %{py3dir}
|
rm -rf *.egg*
|
||||||
cp -a . %{py3dir}
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%{py2_build}
|
|
||||||
pushd %{py3dir}
|
|
||||||
%{py3_build}
|
%{py3_build}
|
||||||
popd
|
|
||||||
sphinx-build-2 kitchen2/docs/ build/sphinx/html
|
|
||||||
cp -pr build/sphinx/html .
|
|
||||||
rm -rf html/.buildinfo
|
|
||||||
|
|
||||||
pushd %{py3dir}
|
|
||||||
sphinx-build-3 kitchen3/docs/ build/sphinx/html
|
|
||||||
cp -pr build/sphinx/html .
|
|
||||||
rm -rf html/.buildinfo
|
|
||||||
popd
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%{py2_install}
|
|
||||||
pushd %{py3dir}
|
|
||||||
%{py3_install}
|
%{py3_install}
|
||||||
popd
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
PATH=/bin:/usr/bin
|
PATH=/bin:/usr/bin
|
||||||
PYTHONPATH=.:kitchen2/ nosetests-%{python2_version} kitchen2/tests/
|
|
||||||
export LANG='en_US.UTF8'
|
export LANG='en_US.UTF8'
|
||||||
pushd kitchen3
|
pushd kitchen3
|
||||||
nosetests-%{python3_version} -e test_internal_generate_combining_table
|
nosetests-%{python3_version} -e test_internal_generate_combining_table
|
||||||
popd
|
popd
|
||||||
|
|
||||||
%files -n python2-kitchen
|
|
||||||
%doc README.rst NEWS.rst COPYING COPYING.LESSER
|
|
||||||
%{python2_sitelib}/kitchen*
|
|
||||||
|
|
||||||
%files -n python3-kitchen
|
%files -n python3-kitchen
|
||||||
%doc README.rst NEWS.rst COPYING COPYING.LESSER
|
%doc README.rst NEWS.rst COPYING COPYING.LESSER
|
||||||
%{python3_sitelib}/kitchen*
|
%{python3_sitelib}/kitchen*
|
||||||
|
|
||||||
|
|
||||||
%files help
|
%files help
|
||||||
%doc {kitchen2,kitchen3}/docs/* html COPYING COPYING.LESSER
|
%doc kitchen3/docs/* COPYING COPYING.LESSER
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sat Dec 04 2021 tianwei<tianwei12@huawei.com> - 1.2.6-6
|
||||||
|
- delete python2 and build for doc
|
||||||
|
|
||||||
* Wed Feb 10 2021 hanxinke <hanxinke@huawei.com> - 1.2.6-5
|
* Wed Feb 10 2021 hanxinke <hanxinke@huawei.com> - 1.2.6-5
|
||||||
- update release version
|
- update release version
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user