From a6c88806b99ddefbde46d55a1ed8feeb942f46b7 Mon Sep 17 00:00:00 2001 From: tuibuilder_pel7x64builder0 Date: Sun, 7 Feb 2021 12:19:27 +0100 Subject: [PATCH] python-yarl/python-aiohttp/python-attr package creation Signed-off-by: tuibuilder_pel7x64builder0 --- SOURCES/chardet4.patch | 30 +++ SOURCES/unbundle-http-parser.patch | 23 ++ SPECS/python-aiohttp.spec | 365 +++++++++++++++++++++++++++++ SPECS/python-attr.spec | 67 ++++++ SPECS/python-yarl.spec | 49 ++++ 5 files changed, 534 insertions(+) create mode 100644 SOURCES/chardet4.patch create mode 100644 SOURCES/unbundle-http-parser.patch create mode 100644 SPECS/python-aiohttp.spec create mode 100644 SPECS/python-attr.spec create mode 100644 SPECS/python-yarl.spec diff --git a/SOURCES/chardet4.patch b/SOURCES/chardet4.patch new file mode 100644 index 0000000..62d5c11 --- /dev/null +++ b/SOURCES/chardet4.patch @@ -0,0 +1,30 @@ +From b0ed732d0a637e43c72bb1a777d02776cde37376 Mon Sep 17 00:00:00 2001 +From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> +Date: Fri, 11 Dec 2020 10:24:17 +0200 +Subject: [PATCH] Bump chardet from 3.0.4 to 4.0.0 (#5333) + +Bumps [chardet](https://github.com/chardet/chardet) from 3.0.4 to 4.0.0. +- [Release notes](https://github.com/chardet/chardet/releases) +- [Commits](https://github.com/chardet/chardet/compare/3.0.4...4.0.0) + +Signed-off-by: dependabot[bot] + +Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> +--- + requirements/base.txt | 2 +- + setup.py | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/setup.py b/setup.py +index a79e473..3208bcd 100644 +--- a/setup.py ++++ b/setup.py +@@ -65,7 +65,7 @@ except IndexError: + + install_requires = [ + "attrs>=17.3.0", +- "chardet>=2.0,<4.0", ++ "chardet>=2.0,<5.0", + "multidict>=4.5,<7.0", + "async_timeout>=3.0,<4.0", + "yarl>=1.0,<2.0", diff --git a/SOURCES/unbundle-http-parser.patch b/SOURCES/unbundle-http-parser.patch new file mode 100644 index 0000000..d2b5f87 --- /dev/null +++ b/SOURCES/unbundle-http-parser.patch @@ -0,0 +1,23 @@ +diff -Nur aiohttp-3.7.1/aiohttp/_cparser.pxd aiohttp-3.7.1-new/aiohttp/_cparser.pxd +--- aiohttp-3.7.1/aiohttp/_cparser.pxd 2020-10-25 08:26:45.000000000 +0100 ++++ aiohttp-3.7.1-new/aiohttp/_cparser.pxd 2020-10-26 09:07:05.024487885 +0100 +@@ -1,7 +1,7 @@ + from libc.stdint cimport uint16_t, uint32_t, uint64_t + + +-cdef extern from "../vendor/http-parser/http_parser.h": ++cdef extern from "http_parser.h": + ctypedef int (*http_data_cb) (http_parser*, + const char *at, + size_t length) except -1 +diff -Nur aiohttp-3.7.1/setup.py aiohttp-3.7.1-new/setup.py +--- aiohttp-3.7.1/setup.py 2020-10-25 08:26:45.000000000 +0100 ++++ aiohttp-3.7.1-new/setup.py 2020-10-26 09:07:05.024487885 +0100 +@@ -27,7 +27,6 @@ + "aiohttp._http_parser", + [ + "aiohttp/_http_parser.c", +- "vendor/http-parser/http_parser.c", + "aiohttp/_find_header.c", + ], + define_macros=[("HTTP_PARSER_STRICT", 0)], diff --git a/SPECS/python-aiohttp.spec b/SPECS/python-aiohttp.spec new file mode 100644 index 0000000..307059f --- /dev/null +++ b/SPECS/python-aiohttp.spec @@ -0,0 +1,365 @@ +%global srcname aiohttp +%global debug_package %{nil} + +Name: python-%{srcname} +Version: 3.7.3 +Release: 3%{?dist} +Summary: Python HTTP client/server for asyncio +License: ASL 2.0 +URL: https://github.com/aio-libs/aiohttp +Source0: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz +Patch0: unbundle-http-parser.patch +Patch1: chardet4.patch +BuildRequires: gcc +BuildRequires: http-parser-devel + + +%description +Python HTTP client/server for asyncio which supports both the client and the +server side of the HTTP protocol, client and server websocket, and webservers +with middlewares and pluggable routing. + + +%package -n python3-%{srcname} +Summary: %{summary} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-Cython +#Recommends: python%{python3_version}dist(aiodns) +%{?python_provide:%python_provide python3-%{srcname}} +%description -n python3-%{srcname} +Python HTTP client/server for asyncio which supports both the client and the +server side of the HTTP protocol, client and server websocket, and webservers +with middlewares and pluggable routing. + + +%prep +%autosetup -p 1 -n %{srcname}-%{version} + + +%build +%{__python3} setup.py build + + +%install +%{__python3} setup.py install --optimize 2 --root %{buildroot} + + +%files -n python3-%{srcname} +%doc CHANGES.rst CONTRIBUTING.rst CONTRIBUTORS.txt HISTORY.rst README.rst +%license LICENSE.txt +%{python3_sitelib}/%{srcname}-*.egg-info/ +%{python3_sitelib}/%{srcname}/ + + +%changelog +* Thu Feb 04 2021 Miro Hrončok - 3.7.3-3 +- Allow installation with chardet 4 + +* Wed Jan 27 2021 Fedora Release Engineering - 3.7.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Fri Dec 11 2020 Fabian Affolter - 3.7.3-1 +- Update to latest upstream release 3.7.3 + +* Wed Dec 09 2020 Fabian Affolter - 3.7.2-1 +- Update to latest upstream release 3.7.2 + +* Mon Oct 26 2020 Fabian Affolter - 3.7.1-1 +- Update to new upstream version 3.7.1 + +* Wed Oct 14 2020 Fabian Affolter - 3.6.3-1 +- Update to new upstream version 3.6.3 + +* Tue Jul 28 2020 Fedora Release Engineering - 3.6.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Sun May 24 2020 Miro Hrončok - 3.6.2-4 +- Rebuilt for Python 3.9 + +* Wed Apr 08 2020 Carl George - 3.6.2-3 +- Don't build for s390x on EL8 + +* Thu Jan 30 2020 Fedora Release Engineering - 3.6.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Oct 25 2019 Fabian Affolter - 3.6.2-1 +- Update to new upstream version 3.6.2 + +* Sat Sep 21 2019 Fabian Affolter - 3.6.1-1 +- Update to new upstream version 3.6.1 + +* Wed Sep 18 2019 Fabian Affolter - 3.6.0-1 +- Update to new upstream version 3.6.0 + +* Mon Aug 19 2019 Miro Hrončok - 3.5.4-5 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 3.5.4-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Jun 01 2019 Fabian Affolter - 3.5.4-3 +- Remove dep generator + +* Sat Feb 02 2019 Fedora Release Engineering - 3.5.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jan 12 2019 Fabian Affolter - 3.5.4-1 +- Update to new upstream version 3.5.4 + +* Fri Jan 11 2019 Fabian Affolter - 3.5.3-1 +- Update to new upstream version 3.5.3 + +* Thu Jan 10 2019 Fabian Affolter - 3.5.2-1 +- Update to new upstream version 3.5.2 + +* Wed Dec 26 2018 Fabian Affolter - 3.5.1-1 +- Update to new upstream version 3.5.1 + +* Thu Sep 06 2018 Fabian Affolter - 3.4.4-1 +- Update to new upstream version 3.4.4 (rhbz#1625634) + +* Wed Sep 05 2018 Igor Gnatenko - 3.4.3-1 +- Update to 3.4.3 + +* Sun Sep 02 2018 Igor Gnatenko - 3.4.2-1 +- Update to 3.4.2 + +* Mon Aug 27 2018 Igor Gnatenko - 3.4.0-4 +- Unbundle http-parser (rhbz#1622508) + +* Mon Aug 27 2018 Fabian Affolter - 3.4.0-3 +- Fix rhbz#1622310 + +* Sat Aug 25 2018 Igor Gnatenko - 3.4.0-2 +- Recommend aiodns + +* Sat Aug 25 2018 Fabian Affolter - 3.4.0-1 +- Update to new upstream version 3.4.0 (rhbz#1622288) + +* Fri Jul 13 2018 Fedora Release Engineering - 3.3.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 3.3.2-2 +- Rebuilt for Python 3.7 + +* Tue Jun 12 2018 Fabian Affolter - 3.3.2-1 +- Update to new upstream version 3.3.2 + +* Wed Jun 06 2018 Fabian Affolter - 3.3.1-1 +- Update to new upstream version 3.3.1 + +* Fri Jun 01 2018 Fabian Affolter - 3.3.0-1 +- Update to new upstream version 3.3.0 (rhbz#1585170) + +* Thu May 10 2018 Fabian Affolter - 3.2.1-1 +- Update to new upstream version 3.2.1 (rhbz#1576796) + +* Mon May 07 2018 Fabian Affolter - 3.2.0-1 +- Update to new upstream version 3.2.0 (rhbz#1575435) + +* Sat Apr 14 2018 Fabian Affolter - 3.1.3-1 +- Update to new upstream version 3.1.3 (rhbz#1567093) + +* Fri Apr 06 2018 Fabian Affolter - 3.1.2-1 +- Update to new upstream version 3.1.2 + +* Tue Mar 27 2018 Fabian Affolter - 3.1.1-1 +- Update to new upstream version 3.1.1 + +* Fri Mar 23 2018 Fabian Affolter - 3.1.0-1 +- Update to new upstream version 3.1.0 + +* Thu Mar 15 2018 Fabian Affolter - 3.0.9-1 +- Update to new upstream version 3.0.9 (rhbz#1556612) + +* Tue Mar 13 2018 Fabian Affolter - 3.0.8-1 +- Update to new upstream version 3.0.8 + +* Fri Mar 09 2018 Fabian Affolter - 3.0.7-1 +- Update to new upstream version 3.0.7 (rhbz#1548601) + +* Tue Mar 06 2018 Fabian Affolter - 3.0.6-1 +- Update to new upstream version 3.0.6 (rhbz#1548601) + +* Wed Feb 28 2018 Fabian Affolter - 3.0.5-1 +- Update to new upstream version 3.0.5 (rhbz#1548601) + +* Mon Feb 12 2018 Fabian Affolter - 3.0.1-1 +- Update to new upstream version 3.0.1 + +* Mon Feb 12 2018 Fabian Affolter - 3.0.0-1 +- Update to new upstream version 3.0.0 (rhbz#1544413) + +* Fri Feb 09 2018 Fedora Release Engineering - 2.3.10-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Fri Feb 02 2018 Fabian Affolter - 2.3.10-1 +- Update to new upstream version 2.3.10 (rhbz#1541369) + +* Fri Jan 19 2018 Igor Gnatenko - 2.3.9-2 +- Enable usage of dependency generator + +* Wed Jan 17 2018 Igor Gnatenko - 2.3.9-1 +- Update to 2.3.9 + +* Mon Jan 15 2018 Fabian Affolter - 2.3.8-1 +- Update to new upstream version 2.3.8 + +* Wed Dec 27 2017 Fabian Affolter - 2.3.7-1 +- Update to new upstream version 2.3.7 (rhbz#1529275) + +* Mon Dec 04 2017 Fabian Affolter - 2.3.6-1 +- Update to new upstream version 2.3.6 + +* Fri Dec 01 2017 Fabian Affolter - 2.3.5-1 +- Update to new upstream version 2.3.5 + +* Fri Nov 17 2017 Fabian Affolter - 2.3.3-1 +- Update to new upstream version 2.3.3 (rhbz#1514434) + +* Thu Nov 02 2017 Igor Gnatenko - 2.3.2-1 +- Update to 2.3.2 + +* Fri Oct 20 2017 Fabian Affolter - 2.3.1-1 +- Update to new upstream version 2.3.1 (rhbz#1504339) + +* Wed Oct 18 2017 Fabian Affolter - 2.3.0-1 +- Update to new upstream version 2.3.0 + +* Fri Aug 04 2017 Fabian Affolter - 2.2.5-1 +- Update to new upstream version 2.2.5 + +* Thu Aug 03 2017 Fabian Affolter - 2.2.4-1 +- Update to new upstream version 2.2.4 + +* Thu Aug 03 2017 Fedora Release Engineering - 2.2.3-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 2.2.3-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Thu Jul 06 2017 Fabian Affolter - 2.2.3-1 +- Update to new upstream version 2.2.3 (rhbz#1467742) + +* Mon Jul 03 2017 Fabian Affolter - 2.2.2-1 +- Update to new upstream version 2.2.2 + +* Mon Jul 03 2017 Fabian Affolter - 2.2.1-1 +- Update to new upstream version 2.2.1 (rhbz#1467114) + +* Tue Jun 20 2017 Fabian Affolter - 2.2.0-1 +- Update to new upstream version 2.2.0 (rhbz#1463234) + +* Sat May 27 2017 Fabian Affolter - 2.1.0-1 +- Update URL +- Update to new upstream version 2.1.0 (rhbz#1456063) + +* Fri Apr 14 2017 Igor Gnatenko - 2.0.7-1 +- Update to 2.0.7 + +* Fri Apr 07 2017 Igor Gnatenko - 2.0.6-1 +- Update to 2.0.6 + +* Thu Mar 30 2017 Igor Gnatenko - 2.0.5-1 +- Update to 2.0.5 + +* Tue Mar 28 2017 Igor Gnatenko - 2.0.4-1 +- Update to 2.0.4 + +* Sat Mar 25 2017 Fabian Affolter - 2.0.3-1 +- Update to new upstream version 2.0.3 (rhbz#1435844) + +* Thu Mar 23 2017 Igor Gnatenko - 2.0.2-3 +- Specify proper yarl version + +* Thu Mar 23 2017 Igor Gnatenko - 2.0.2-2 +- Fix requires + +* Thu Mar 23 2017 Fabian Affolter - 2.0.2-1 +- Update to new upstream version 2.0.2 (rhbz#1432690) + +* Wed Mar 15 2017 Igor Gnatenko - 1.3.4-1 +- Update to 1.3.4 + +* Mon Feb 20 2017 Fabian Affolter - 1.3.3-1 +- Update to new upstream version 1.3.3 (rhbz#1423053) + +* Thu Feb 09 2017 Igor Gnatenko - 1.3-1 +- Update to 1.3 + +* Sun Jan 22 2017 Fabian Affolter - 1.2-1 +- Update to new upstream version 1.2 +- Add new requirement +- Add real description + +* Sun Jan 01 2017 Igor Gnatenko - 1.0.5-3 +- Add missing dependency on async-timeout (RHBZ #1391287) + +* Mon Dec 19 2016 Miro Hrončok - 1.0.5-2 +- Rebuild for Python 3.6 + +* Mon Oct 31 2016 Fabian Affolter - 1.0.5-1 +- Update to new upstream version 1.0.5 + +* Tue Aug 30 2016 Fabian Affolter - 0.22.5-1 +- Update to new upstream version 0.22.5 + +* Wed Aug 10 2016 Igor Gnatenko - 0.21.6-4 +- Move requires under real subpackage + +* Tue Jul 19 2016 Fedora Release Engineering - 0.21.6-3 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Thu Jun 23 2016 Igor Gnatenko - 0.21.6-2 +- Add missing Requires: python3-multidict (RHBZ #1349576) + +* Thu May 12 2016 Igor Gnatenko - 0.21.6-1 +- Update to 0.21.6 + +* Tue Mar 22 2016 Fabian Affolter - 0.21.5-1 +- Update to new upstream version 0.21.5 + +* Sat Mar 05 2016 Fabian Affolter - 0.21.2-1 +- Update to new upstream version 0.21.2 + +* Sun Feb 14 2016 Fabian Affolter - 0.21.1-1 +- Add requirements (rhbz#1300186) +- Update to new upstream version 0.21.1 + +* Thu Feb 04 2016 Fabian Affolter - 0.21.0-1 +- Update to new upstream version 0.21.0 + +* Thu Feb 04 2016 Fedora Release Engineering - 0.19.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Fri Nov 27 2015 Fabian Affolter - 0.19.0-1 +- Update py3 +- Update to new upstream version 0.19.0 + +* Tue Nov 10 2015 Fedora Release Engineering - 0.17.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 + +* Fri Oct 16 2015 Fabian Affolter - 0.17.4-1 +- Update to new upstream version 0.17.4 + +* Sat Aug 01 2015 Fabian Affolter - 0.16.6-2 +- Fix license + +* Sat Aug 01 2015 Fabian Affolter - 0.16.6-1 +- Update to lastest upstream release 0.16.6 (rhbz#1231670) + +* Thu Jun 18 2015 Fedora Release Engineering - 0.16.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Mon Jun 15 2015 Fabian Affolter - 0.16.5-1 +- Update to lastest upstream release 0.16.5 (rhbz#1231670) + +* Wed Nov 26 2014 Fabian Affolter - 0.10.2-1 +- Update to lastest upstream release 0.10.2 + +* Wed Oct 08 2014 Fabian Affolter - 0.9.1-2 +- Build only a py3 package + +* Wed Feb 26 2014 Fabian Affolter - 0.9.1-1 +- Initial package for Fedora diff --git a/SPECS/python-attr.spec b/SPECS/python-attr.spec new file mode 100644 index 0000000..11fc887 --- /dev/null +++ b/SPECS/python-attr.spec @@ -0,0 +1,67 @@ +%global modname attr +Name: python-%{modname} +Version: 0.3.1 +Release: 1%{?dist} +Summary: MultiDict implementation +License: MIT +URL: https://github.com/denis-ryzhkov/attr +Source0: https://files.pythonhosted.org/packages/de/be/ddc7f84d4e087144472a38a373d3e319f51a6faf6e5fc1ae897173675f21/attr-0.3.1.tar.gz +BuildRequires: gcc +BuildRequires: python-devel +BuildRequires: python3-devel + + +%global _description \ +Multidicts are useful for working with HTTP headers, URL query args etc. +%description %{_description} + + +%package -n python2-%{modname} +Summary: %{summary} +BuildRequires: python-devel +BuildRequires: python-setuptools +BuildRequires: Cython +%{?python_provide:%python_provide python-%{modname}} +%description -n python2-%{modname} %{_description} + + +%package -n python3-%{modname} +Summary: %{summary} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-Cython +%{?python_provide:%python_provide python3-%{modname}} +%description -n python3-%{modname} %{_description} + + +%prep +%autosetup -n %{modname}-%{version} + + +%build +%{__python3} setup.py build + +%{__python} setup.py build + + + +%install +%{__python3} setup.py install --optimize 2 --root %{buildroot} +%{__python} setup.py install --optimize 2 --root %{buildroot} + + +%files -n python2-%{modname} +%{python_sitelib}/%{modname}-*.egg-info/ +%{python_sitelib}/%{modname}.* +%{python_sitelib}/dry_%{modname}.* + + +%files -n python3-%{modname} +%{python3_sitelib}/%{modname}-*.egg-info/ +%{python3_sitelib}/%{modname}.* +%{python3_sitelib}/dry_%{modname}.* +%{python3_sitelib}/__pycache__/%{modname}.* +%{python3_sitelib}/__pycache__/dry_%{modname}.* + + +%changelog diff --git a/SPECS/python-yarl.spec b/SPECS/python-yarl.spec new file mode 100644 index 0000000..960a763 --- /dev/null +++ b/SPECS/python-yarl.spec @@ -0,0 +1,49 @@ +%global debug_package %{nil} +%global pypi_name yarl + +Name: python-%{pypi_name} +Version: 1.6.3 +Release: 1%{?dist} +Summary: Python module to handle URLs +License: ASL 2.0 +URL: https://yarl.readthedocs.io +Source0: %{pypi_name}-%{version}.tar.gz +BuildRequires: gcc + + +%description +The module provides handy URL class for URL parsing and changing. + + +%package -n python3-%{pypi_name} +Summary: %{summary} +BuildRequires: python3-devel +BuildRequires: python3-Cython +BuildRequires: python3-multidict +BuildRequires: python3-idna +%{?python_provide:%python_provide python3-%{pypi_name}} +%description -n python3-%{pypi_name} +The module provides handy URL class for URL parsing and changing. + + +%prep +%autosetup -n %{pypi_name}-%{version} + + +%build +%{__python3} -m cython -3 -o yarl/_quoting_c.c yarl/_quoting_c.pyx -I yarl +%{__python3} setup.py build + + +%install +%{__python3} setup.py install --optimize 2 --root %{buildroot} + + +%files -n python3-%{pypi_name} +%doc CHANGES.rst README.rst +%license LICENSE +%{python3_sitearch}/%{pypi_name}/ +%{python3_sitearch}/%{pypi_name}-*.egg-info/ + + +%changelog