!7 feat: modify support python3
From: @ll3366 Reviewed-by: Signed-off-by:
This commit is contained in:
commit
f8d3822abd
@ -3,13 +3,14 @@
|
||||
|
||||
Name: python-cherrypy
|
||||
Version: 3.5.0
|
||||
Release: 12
|
||||
Release: 13
|
||||
Summary: Pythonic, object-oriented web development framework
|
||||
License: BSD
|
||||
URL: https://cherrypy.org
|
||||
Source0: http://www.gitbuilder.ceph.com/pypi/packages/source/C/CherryPy/CherryPy-3.5.0.tar.gz
|
||||
BuildArch: noarch
|
||||
BuildRequires: python2-devel python2-setuptools python2-nose
|
||||
BuildRequires: python3-devel python3-setuptools python3-nose
|
||||
|
||||
%description
|
||||
CherryPy allows developers to build web applications in much the same way
|
||||
@ -26,16 +27,32 @@ CherryPy allows developers to build web applications in much the same way
|
||||
they would build any other object-oriented Python program. This usually
|
||||
results in smaller source code developed in less time.
|
||||
|
||||
%package -n python3-cherrypy
|
||||
Summary: Pythonic, object-oriented web development framework
|
||||
%python_provide python3-cherrypy
|
||||
Provides: python-cherrypy = %{version}-%{release}
|
||||
|
||||
%description -n python3-cherrypy
|
||||
CherryPy allows developers to build web applications in much the same way
|
||||
they would build any other object-oriented Python program. This usually
|
||||
results in smaller source code developed in less time.
|
||||
|
||||
%prep
|
||||
%autosetup -n CherryPy-%{version}
|
||||
sed -i 's/\r//' cherrypy/tutorial/tutorial.conf
|
||||
install -d %{_builddir}/python3-cherrypy
|
||||
%{__cp} -r %{_builddir}/CherryPy-%{version}/* %{_builddir}/python3-cherrypy
|
||||
|
||||
%build
|
||||
%{__python} setup.py build
|
||||
cd %{_builddir}/python3-cherrypy
|
||||
%py3_build
|
||||
|
||||
%install
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
||||
cd %{_builddir}/python3-cherrypy
|
||||
%py3_install
|
||||
|
||||
%check
|
||||
%if 0%{?with_check}
|
||||
@ -50,7 +67,16 @@ PYTHONPATH='../../' nosetests -s ./ -e 'test_SIGTERM' -e 'test_SIGHUP_tty' \
|
||||
%{_bindir}/cherryd
|
||||
%{python_sitelib}/*
|
||||
|
||||
%files -n python3-cherrypy
|
||||
%defattr(-,root,root,-)
|
||||
%doc README.txt cherrypy/tutorial
|
||||
%{_bindir}/cherryd
|
||||
%{python3_sitelib}/*
|
||||
|
||||
%changelog
|
||||
* Mon Dec 06 2021 liweigang <liweiganga@uniontech.com> - 3.5.0-13
|
||||
- modify support python3
|
||||
|
||||
* Tue Mar 17 2020 zoushuangshuang <zoushuangshuang@huawei.com> - 3.5.0-12
|
||||
- modify provide: python-cherrypy
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user