diff --git a/python-tornado.spec b/python-tornado.spec index eb425486884c3e248d7faac41892e509fe581fdd..3347da1eb192a64102a6ddf4a193a54bcd006d91 100644 --- a/python-tornado.spec +++ b/python-tornado.spec @@ -1,106 +1,34 @@ -%global _empty_manifest_terminate_build 0 -Name: python-tornado -Version: 6.4.1 -Release: 2 -Summary: Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed. -License: Apache-2.0 -URL: http://www.tornadoweb.org/ -Source0: https://files.pythonhosted.org/packages/source/t/tornado/tornado-%{version}.tar.gz +Name: python-tornado +Version: 6.4.1 +Release: 1%{?dist} +Summary: A Python web framework and asynchronous networking library -Patch3000: CVE-2024-52804.patch +License: Apache-2.0 +URL: https://www.tornadoweb.org/ +Source0: https://files.pythonhosted.org/packages/source/t/tornado/tornado-%{version}.tar.gz -%description -Tornado is an open source version of the scalable, non-blocking web server and tools. - -%package -n python3-tornado -Summary: Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed. -Provides: python-tornado -BuildRequires: python3-devel -BuildRequires: python3-setuptools -BuildRequires: python3-cffi +BuildRequires: python3-devel +BuildRequires: python3-setuptools BuildRequires: python3-pycurl -BuildRequires: gcc -BuildRequires: gdb - -%description -n python3-tornado -Tornado is an open source version of the scalable, non-blocking web server and tools. - -%package help -Summary: Development documents and examples for tornado -Provides: python3-tornado-doc -%description help -Tornado is an open source version of the scalable, non-blocking web server and tools. +%description +Tornado is a Python web framework and asynchronous networking library, originally developed at FriendFeed. By using non-blocking network I/O, Tornado can scale to tens of thousands of open connections, making it ideal for long polling, WebSockets, and other applications that require a long-lived connection to each user. %prep -%autosetup -n tornado-%{version} -p1 +%setup -q %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-tornado -f filelist.lst -%dir %{python3_sitearch}/* - -%files help -f doclist.lst -%{_docdir}/* +%files +%doc %gem_docdir +%dir %gem_instdir +%{python3_sitelib}/tornado/ +%{python3_sitelib}/tornado-%{version}-py%{python3_version}.egg-info/ %changelog -* Tue Nov 26 2024 liyajie - 6.4.1-2 -- Fix CVE-2024-52804 - -* Wed Jun 19 2024 yaoxin - 6.4.1-1 -- Update to 6.4.1 - * Parsing of the ``Transfer-Encoding`` header is now stricter. - * Handling of whitespace in headers now matches the RFC more closely. - * ``tornado.curl_httpclient`` now prohibits carriage return and linefeed headers in HTTP headers - (matching the behavior of ``simple_httpclient``). - -* Fri Oct 13 2023 wen-minjuan - 6.3.3-1 -- Upgrade version to 6.3.3-1 - -* Thu Jul 13 2023 liuyongshuai - 6.3.2-1 -- Upgrade version to 6.3.2-1 - -* Fri Jun 16 2023 yaoxin - 6.1-2 -- Fix CVE-2023-28370 - -* Thu Jul 08 2021 yaozc701 - 6.1-1 -- Upgrade version to 6.1 - -* Mon May 31 2021 huanghaitao - 5.0.2-7 -- Completing build dependencies - -* Fri Sep 11 2020 zhangjiapeng - 5.0.2-6 -- Remove python2-tornado subpackage - -* Tue Dec 10 2019 openEuler Buildteam - 5.0.2-5 -- Package init +* Mon Nov 04 2025 Your Name - 6.4.1-1 +- Initial package \ No newline at end of file diff --git a/tornado-6.4.1.tar.gz b/tornado-6.4.1.tar.gz deleted file mode 100644 index a2052abdf26f3ba3f48aef7112ec8520f121b757..0000000000000000000000000000000000000000 Binary files a/tornado-6.4.1.tar.gz and /dev/null differ diff --git a/tornado-6.5.tar.gz b/tornado-6.5.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..8b0636bf2c52b441ae8092a4ca0bf28ced85dd9e Binary files /dev/null and b/tornado-6.5.tar.gz differ