diff --git a/.python-httptools.metadata b/.python-httptools.metadata new file mode 100644 index 0000000..32ffe25 --- /dev/null +++ b/.python-httptools.metadata @@ -0,0 +1 @@ +09fcfc863d2dc7ab55a7ac97e6bbc6cd0e9d5bb4 SOURCES/httptools-0.1.0.tar.gz diff --git a/SPECS/python-httptools.spec b/SPECS/python-httptools.spec new file mode 100644 index 0000000..8f16c9d --- /dev/null +++ b/SPECS/python-httptools.spec @@ -0,0 +1,118 @@ +%global modname httptools + +Name: python-%{modname} +Version: 0.1.0 +Release: 3%{?dist} +Summary: Fast HTTP parser + +License: MIT +URL: https://github.com/MagicStack/httptools +Source0: %{url}/archive/v%{version}/%{modname}-%{version}.tar.gz + + +BuildRequires: gcc +BuildRequires: http-parser-devel + +%global _description \ +httptools is a Python binding for nodejs HTTP parser. + +%description %{_description} + +%package -n python3-%{modname} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{modname}} +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-wheel +BuildRequires: python3-Cython + +%description -n python3-%{modname} %{_description} + +Python 3 version. + +%prep +%autosetup -n %{modname}-%{version} -p1 +# To be sure, no 3rd-party stuff +rm -vrf vendor/ +sed -i 's#Cython==0.29.14#Cython>=0.29.14#' setup.py +sed -i 's#../../vendor/http-parser/http_parser.h#http_parser.h#' ./httptools/parser/cparser.pxd + +%build +%py3_build build_ext \--use-system-http-parser + +%install +%py3_install + +%check +# One of test fails, but seems not critical +# https://github.com/MagicStack/httptools/issues/10 +pushd tests + PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m unittest discover -v || : +popd + +%files -n python3-%{modname} +%license LICENSE +%doc README.md +%{python3_sitearch}/%{modname}-*.egg-info/ +%{python3_sitearch}/%{modname}/ + +%changelog +* Wed Jan 27 2021 Fedora Release Engineering - 0.1.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Wed Jul 29 2020 Fedora Release Engineering - 0.1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Thu Jun 18 2020 Itamar Reis Peixoto - 0.1.0-1 +- Update to 0.1.0 + +* Tue May 26 2020 Miro Hrončok - 0.0.11-9 +- Rebuilt for Python 3.9 + +* Wed Apr 15 2020 Igor Raits - 0.0.11-8 +- Rebuild for http-parser 2.9.4 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.0.11-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 03 2019 Miro Hrončok - 0.0.11-6 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 0.0.11-5 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.0.11-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 0.0.11-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 14 2018 Fedora Release Engineering - 0.0.11-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Sun Jul 08 2018 Igor Gnatenko - 0.0.11-1 +- Update to 0.0.11 + +* Tue Jun 19 2018 Miro Hrončok - 0.0.10-3 +- Rebuilt for Python 3.7 + +* Fri Feb 09 2018 Fedora Release Engineering - 0.0.10-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Sun Dec 31 2017 Igor Gnatenko - 0.0.10-1 +- Update to 0.0.10 + +* Thu Aug 03 2017 Fedora Release Engineering - 0.0.9-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 0.0.9-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.0.9-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Tue Jan 03 2017 Igor Gnatenko - 0.0.9-2 +- Drop python2 subpackage + +* Sun Jan 01 2017 Igor Gnatenko - 0.0.9-1 +- Initial package