Compare commits
No commits in common. "f8d3822abd40c0ece93dccec53dd22c1ab5c47de" and "59c4dc7a5a206f50d49b613bda61aa49455c3879" have entirely different histories.
f8d3822abd
...
59c4dc7a5a
Binary file not shown.
@ -1,87 +0,0 @@
|
|||||||
%define with_check 0
|
|
||||||
%global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
|
|
||||||
|
|
||||||
Name: python-cherrypy
|
|
||||||
Version: 3.5.0
|
|
||||||
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
|
|
||||||
they would build any other object-oriented Python program. This usually
|
|
||||||
results in smaller source code developed in less time.
|
|
||||||
|
|
||||||
%package -n python2-cherrypy
|
|
||||||
Summary: Pythonic, object-oriented web development framework
|
|
||||||
%python_provide python2-cherrypy
|
|
||||||
Provides: python-cherrypy = %{version}-%{release}
|
|
||||||
|
|
||||||
%description -n python2-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.
|
|
||||||
|
|
||||||
%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}
|
|
||||||
cd cherrypy/test
|
|
||||||
PYTHONPATH='../../' nosetests -s ./ -e 'test_SIGTERM' -e 'test_SIGHUP_tty' \
|
|
||||||
-e 'test_file_stream' -e 'test_no_content_length'
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%files -n python2-cherrypy
|
|
||||||
%defattr(-,root,root,-)
|
|
||||||
%doc README.txt cherrypy/tutorial
|
|
||||||
%{_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
|
|
||||||
|
|
||||||
* Tue Mar 17 2020 zoushuangshuang <zoushuangshuang@huawei.com> - 3.5.0-11
|
|
||||||
- add provide: python-cherrypy
|
|
||||||
|
|
||||||
* Wed Mar 04 2020 zoushuangshuang <zoushuangshuang@huawei.com> - 3.5.0-10
|
|
||||||
- Package init
|
|
||||||
Loading…
x
Reference in New Issue
Block a user