Compare commits
10 Commits
59c4dc7a5a
...
f8d3822abd
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f8d3822abd | ||
|
|
88574ee249 | ||
|
|
b09029b2bb | ||
|
|
2321acf28c | ||
|
|
66b288584c | ||
|
|
efa78d3530 | ||
|
|
ff9891c58d | ||
|
|
fb44df4d1a | ||
|
|
3062dfa510 | ||
|
|
b621d64ddb |
BIN
CherryPy-3.5.0.tar.gz
Normal file
BIN
CherryPy-3.5.0.tar.gz
Normal file
Binary file not shown.
87
python-cherrypy.spec
Normal file
87
python-cherrypy.spec
Normal file
@ -0,0 +1,87 @@
|
|||||||
|
%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