Compare commits
No commits in common. "d86cf752326d2afd048d63fd764966b27cc33f18" and "b621d64ddbbcb436a5dbe3c4b980a7ec21afa23c" have entirely different histories.
d86cf75232
...
b621d64ddb
Binary file not shown.
BIN
CherryPy-3.5.0.tar.gz
Normal file
BIN
CherryPy-3.5.0.tar.gz
Normal file
Binary file not shown.
@ -1,114 +1,51 @@
|
|||||||
%global _empty_manifest_terminate_build 0
|
%global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")
|
||||||
Name: python-cherrypy
|
|
||||||
Version: 18.6.0
|
|
||||||
Release: 1
|
|
||||||
Summary: Object-Oriented HTTP framework
|
|
||||||
License: BSD
|
|
||||||
URL: https://www.cherrypy.org
|
|
||||||
Source0: https://files.pythonhosted.org/packages/f5/f0/72f632c9503f1ffd765561e0e18eba19de746bddebe615deb699c210be60/CherryPy-18.6.0.tar.gz
|
|
||||||
BuildArch: noarch
|
|
||||||
BuildRequires: python-setuptools_scm
|
|
||||||
Recommends: %{name}-help = %{version}-%{release}
|
|
||||||
|
|
||||||
Requires: python3-cheroot
|
Name: python-cherrypy
|
||||||
Requires: python3-portend
|
Version: 3.5.0
|
||||||
Requires: python3-more-itertools
|
Release: 10
|
||||||
Requires: python3-pywin32
|
Summary: Pythonic, object-oriented web development framework
|
||||||
Requires: python3-sphinx
|
License: BSD
|
||||||
Requires: python3-docutils
|
URL: https://cherrypy.org
|
||||||
Requires: python3-alabaster
|
Source0: http://www.gitbuilder.ceph.com/pypi/packages/source/C/CherryPy/CherryPy-3.5.0.tar.gz
|
||||||
Requires: python3-simplejson
|
BuildArch: noarch
|
||||||
Requires: python3-memcached
|
BuildRequires: python2-devel python2-setuptools python2-nose
|
||||||
Requires: python3-routes
|
|
||||||
Requires: python3-pyOpenSSL
|
|
||||||
Requires: python3-coverage
|
|
||||||
Requires: python3-codecov
|
|
||||||
Requires: python3-objgraph
|
|
||||||
Requires: python3-pytest
|
|
||||||
Requires: python3-pytest-cov
|
|
||||||
Requires: python3-pytest-sugar
|
|
||||||
Requires: python3-requests-toolbelt
|
|
||||||
Requires: python3-pytest-services
|
|
||||||
Requires: python3-flup
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
CherryPy is available as part of the Tidelift Subscription.
|
CherryPy allows developers to build web applications in much the same way
|
||||||
The CherryPy maintainers and the maintainers of thousands of other packages
|
they would build any other object-oriented Python program. This usually
|
||||||
are working with Tidelift to deliver one enterprise subscription that covers
|
results in smaller source code developed in less time.
|
||||||
all of the open source you use.
|
|
||||||
`Learn more <https://tidelift.com/subscription/pkg/pypi-cherrypy?utm_source=pypi-cherrypy&utm_medium=referral&utm_campaign=github>`_.
|
|
||||||
|
|
||||||
%package -n python3-cherrypy
|
%package -n python2-cherrypy
|
||||||
Summary: Object-Oriented HTTP framework
|
Summary: Pythonic, object-oriented web development framework
|
||||||
Provides: python-cherrypy
|
%python_provide python2-cherrypy
|
||||||
BuildRequires: python3-devel
|
|
||||||
BuildRequires: python3-setuptools
|
|
||||||
%description -n python3-cherrypy
|
|
||||||
CherryPy is available as part of the Tidelift Subscription.
|
|
||||||
The CherryPy maintainers and the maintainers of thousands of other packages
|
|
||||||
are working with Tidelift to deliver one enterprise subscription that covers
|
|
||||||
all of the open source you use.
|
|
||||||
`Learn more <https://tidelift.com/subscription/pkg/pypi-cherrypy?utm_source=pypi-cherrypy&utm_medium=referral&utm_campaign=github>`_.
|
|
||||||
|
|
||||||
%package help
|
%description -n python2-cherrypy
|
||||||
Summary: Development documents and examples for CherryPy
|
CherryPy allows developers to build web applications in much the same way
|
||||||
Provides: python3-cherrypy-doc
|
they would build any other object-oriented Python program. This usually
|
||||||
%description help
|
results in smaller source code developed in less time.
|
||||||
CherryPy is available as part of the Tidelift Subscription.
|
|
||||||
The CherryPy maintainers and the maintainers of thousands of other packages
|
|
||||||
are working with Tidelift to deliver one enterprise subscription that covers
|
|
||||||
all of the open source you use.
|
|
||||||
`Learn more <https://tidelift.com/subscription/pkg/pypi-cherrypy?utm_source=pypi-cherrypy&utm_medium=referral&utm_campaign=github>`_.
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n CherryPy-18.6.0
|
%autosetup -n CherryPy-%{version}
|
||||||
|
sed -i 's/\r//' cherrypy/tutorial/tutorial.conf
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py3_build
|
%{__python} setup.py build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py3_install
|
rm -rf $RPM_BUILD_ROOT
|
||||||
install -d -m755 %{buildroot}/%{_pkgdocdir}
|
%{__python} setup.py install --skip-build --root $RPM_BUILD_ROOT
|
||||||
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
|
|
||||||
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
|
|
||||||
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
|
|
||||||
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
|
|
||||||
pushd %{buildroot}
|
|
||||||
if [ -d usr/lib ]; then
|
|
||||||
find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
|
|
||||||
fi
|
|
||||||
if [ -d usr/lib64 ]; then
|
|
||||||
find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
|
|
||||||
fi
|
|
||||||
if [ -d usr/bin ]; then
|
|
||||||
find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
|
|
||||||
fi
|
|
||||||
if [ -d usr/sbin ]; then
|
|
||||||
find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
|
|
||||||
fi
|
|
||||||
touch doclist.lst
|
|
||||||
if [ -d usr/share/man ]; then
|
|
||||||
find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
|
|
||||||
fi
|
|
||||||
popd
|
|
||||||
mv %{buildroot}/filelist.lst .
|
|
||||||
mv %{buildroot}/doclist.lst .
|
|
||||||
|
|
||||||
%files -n python3-cherrypy -f filelist.lst
|
%check
|
||||||
%dir %{python3_sitelib}/*
|
cd cherrypy/test
|
||||||
|
PYTHONPATH='../../' nosetests -s ./ -e 'test_SIGTERM' -e 'test_SIGHUP_tty' \
|
||||||
|
-e 'test_file_stream' -e 'test_no_content_length'
|
||||||
|
|
||||||
%files help -f doclist.lst
|
%files -n python2-cherrypy
|
||||||
%{_docdir}/*
|
%defattr(-,root,root,-)
|
||||||
|
%doc README.txt cherrypy/tutorial
|
||||||
|
%{_bindir}/cherryd
|
||||||
|
%{python_sitelib}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Mon Nov 16 2020 caodongxia <caodongxia@huawei.com> - 18.6.0-1
|
|
||||||
- update to remove python2 subPackage
|
|
||||||
|
|
||||||
* 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
|
* Wed Mar 04 2020 zoushuangshuang <zoushuangshuang@huawei.com> - 3.5.0-10
|
||||||
- Package init
|
- Package init
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user