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