python-cheroot/python-cheroot.spec

120 lines
3.4 KiB
RPMSpec
Raw Normal View History

2020-12-14 17:13:04 +08:00
%global _empty_manifest_terminate_build 0
Name: python-cheroot
2023-06-30 15:18:23 +08:00
Version: 10.0.0
Release: 1
2020-12-14 17:13:04 +08:00
Summary: Highly-optimized, pure-python HTTP server
2022-05-11 15:41:01 +08:00
License: BSD-3-Clause
2020-12-14 17:13:04 +08:00
URL: https://cheroot.cherrypy.org
2023-06-30 15:18:23 +08:00
Source0: https://files.pythonhosted.org/packages/08/7c/95c154177b16077de0fec1b821b0d8b3df2b59c5c7b3575a9c1bf52a437e/cheroot-10.0.0.tar.gz
2020-12-14 17:13:04 +08:00
BuildArch: noarch
Requires: python3-six
Requires: python3-more-itertools
Requires: python3-selectors2
Requires: python3-sphinx
Requires: python3-sphinx-tabs
Requires: python3-docutils
Requires: python3-alabaster
Requires: python3-dateutil
Requires: python3-sphinxcontrib-spelling
Requires: python3-pytest
Requires: python3-pytest-mock
Requires: python3-pytest-sugar
Requires: python3-pytest-testmon
Requires: python3-pytest-watch
Requires: python3-pytest-xdist
Requires: python3-codecov
Requires: python3-trustme
Requires: python3-pyopenssl
Requires: python3-requests-unixsocket
Requires: python3-portend
Requires: python3-requests-toolbelt
Requires: python3-coverage
Requires: python3-pytest-cov
Requires: python3-urllib3
Requires: python3-futures
Requires: python3-colorama
Requires: python3-pytest-forked
%description
The test suite currently relies on pytest. It's being run via Travis CI.
%package -n python3-cheroot
Summary: Highly-optimized, pure-python HTTP server
2022-12-15 16:58:47 +08:00
Provides: python-cheroot = %{version}-%{release}
2020-12-14 17:13:04 +08:00
BuildRequires: python3-devel
2022-12-15 16:58:47 +08:00
BuildRequires: python3-pip
2020-12-14 17:13:04 +08:00
BuildRequires: python3-setuptools
2021-01-21 14:34:59 +08:00
BuildRequires: python3-setuptools_scm
2020-12-14 17:13:04 +08:00
%description -n python3-cheroot
The test suite currently relies on pytest. It's being run via Travis CI.
%package help
Summary: Development documents and examples for cheroot
Provides: python3-cheroot-doc
%description help
Documentation for cheroot
%prep
2022-12-15 16:58:47 +08:00
%autosetup -n cheroot-%{version}
2023-01-31 16:55:54 +08:00
sed -i '/setuptools_scm_git_archive/d' setup.cfg
2020-12-14 17:13:04 +08:00
%build
%py3_build
%install
%py3_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
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-cheroot -f filelist.lst
%dir %{python3_sitelib}/*
%files help -f doclist.lst
%{_docdir}/*
%changelog
2023-06-30 15:18:23 +08:00
* Fri Jun 30 2023 niuyaru <niuyaru@kylinos.cn> - 10.0.0-1
- Update package to version 10.0.0
2023-01-31 16:55:54 +08:00
* Tue Jan 31 2023 wulei <wulei80@h-partners.com> - 9.0.0-2
- Remove setuptools_scm_git_archive
2022-12-15 16:58:47 +08:00
* Thu Dec 15 2022 liqiuyu <liqiuyu@kylinos.cn> - 9.0.0-1
- Update package to version 9.0.0
2022-09-14 14:39:05 +08:00
* Wed Sep 14 2022 Qiao Jijun <qiaojijun@kylinos.cn> - 8.6.0-1
- Update to 8.6.0
2022-05-11 15:41:01 +08:00
* Wed May 11 2022 houyingchao <houyingchao@h-partners.com> - 8.4.5-3
- License compliance rectification
2021-01-21 14:34:59 +08:00
* Thu Jan 21 2021 lingsheng <lingsheng@huawei.com> - 8.4.5-2
- Modify buildrequires to fix build
* Fri Nov 13 2020 Python_Bot <Python_Bot@openeuler.org> - 8.4.5-1
2022-12-15 16:58:47 +08:00
- Package init