Compare commits

...

10 Commits

Author SHA1 Message Date
openeuler-ci-bot
f8d3822abd !7 feat: modify support python3
From: @ll3366
Reviewed-by: 
Signed-off-by:
2021-12-10 06:24:34 +00:00
liwiegang
88574ee249 feat: modify support python3 2021-12-07 09:31:04 +08:00
openeuler-ci-bot
b09029b2bb !4 python-cherrypy: modify provide
Merge pull request !4 from yiyurain/yiyurain
2020-03-17 17:39:38 +08:00
yiyurain
2321acf28c modify provide 2020-03-17 17:23:39 +08:00
openeuler-ci-bot
66b288584c !3 python-cherrypy: modify release
Merge pull request !3 from yiyurain/yiyurain
2020-03-17 11:38:21 +08:00
yiyurain
efa78d3530 modify release 2020-03-17 10:22:45 +08:00
openeuler-ci-bot
ff9891c58d !2 python-cherrypy: add provide
Merge pull request !2 from yiyurain/yiyurain
2020-03-16 22:08:18 +08:00
yiyurain
fb44df4d1a add provide 2020-03-16 22:03:14 +08:00
openeuler-ci-bot
3062dfa510 !1 python-cherrypy: package init
Merge pull request !1 from yiyurain/yiyurain
2020-03-12 10:08:03 +08:00
yiyurain
b621d64ddb python-cherrypy: package init 2020-03-12 10:02:46 +08:00
2 changed files with 87 additions and 0 deletions

BIN
CherryPy-3.5.0.tar.gz Normal file

Binary file not shown.

87
python-cherrypy.spec Normal file
View 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