679051b
%global with_python3 1
679051b
8650555
Name:           python-http-parser
358799b
Version:        0.8.3
a8b5413
Release:        14%{?dist}
8650555
Summary:        HTTP request/response parser for Python
8650555
8650555
License:        MIT
8650555
URL:            https://github.com/benoitc/http-parser/
27f5bf4
Source0:        http://pypi.python.org/packages/source/h/http-parser/http-parser-%{version}.tar.gz
8650555
a8b5413
BuildRequires:  python2-devel
a8b5413
BuildRequires:  python2-setuptools
8650555
8650555
%filter_provides_in %{python_sitearch}/http_parser/parser.so
8650555
%filter_setup
8650555
bd7545c
%global _description\
bd7545c
HTTP request/response parser for Python compatible with Python 2.x\
bd7545c
(>=2.5.4), Python 3 and Pypy. If possible a C parser based on\
8650555
http-parser_ from Ryan Dahl will be used.
8650555
bd7545c
%description %_description
bd7545c
bd7545c
%package -n python2-http-parser
bd7545c
Summary: %summary
bd7545c
%{?python_provide:%python_provide python2-http-parser}
bd7545c
bd7545c
%description -n python2-http-parser %_description
bd7545c
679051b
%if 0%{?with_python3}
679051b
%package -n python3-http-parser
679051b
Summary:        HTTP request/response parser for Python 3
679051b
679051b
BuildRequires:  python3-devel
679051b
BuildRequires:  python3-setuptools
679051b
679051b
%description -n python3-http-parser
679051b
HTTP request/response parser for Python compatible with Python 2.x
679051b
(>=2.5.4), Python 3 and Pypy. If possible a C parser based on
679051b
http-parser_ from Ryan Dahl will be used.
679051b
This package contains Python 3 build of http-parser.
679051b
%endif
679051b
8650555
%prep
8650555
%setup -q -n http-parser-%{version}
8650555
8650555
8650555
%build
679051b
%py2_build
679051b
%py3_build
8650555
8650555
8650555
%install
679051b
%py2_install
679051b
%py3_install
8650555
8650555
bd7545c
%files -n python2-http-parser
8650555
%doc LICENSE README.rst
8650555
%{python_sitearch}/http_parser*
8650555
8650555
679051b
%if 0%{?with_python3}
679051b
%files -n python3-http-parser
679051b
%doc LICENSE README.rst
679051b
%{python3_sitearch}/http_parser*
679051b
%endif
679051b
679051b
8650555
%changelog
a8b5413
* Thu Jan 25 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.8.3-14
a8b5413
- Update Python 2 dependency declarations to new packaging standards
a8b5413
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
a8b5413
bd7545c
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.8.3-13
bd7545c
- Python 2 binary package renamed to python2-http-parser
bd7545c
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
bd7545c
1f194cf
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3-12
1f194cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
1f194cf
a1ccaa2
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3-11
a1ccaa2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a1ccaa2
Igor Gnatenko ecba00a
* Fri Jul 07 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.8.3-10
Igor Gnatenko ecba00a
- Rebuild due to bug in RPM (RHBZ #1468476)
Igor Gnatenko ecba00a
06012c3
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3-9
06012c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
06012c3
58835f6
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.8.3-8
58835f6
- Rebuild for Python 3.6
58835f6
2a5b04c
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-7
2a5b04c
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
2a5b04c
66b8342
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.3-6
66b8342
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
66b8342
679051b
* Sun Nov 15 2015 Slavek Kabrda <bkabrda@redhat.com> - 0.8.3-5
679051b
- Introduced python3 subpackage
679051b
1dd8605
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-4
1dd8605
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
1dd8605
94891f6
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-3
94891f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
94891f6
4b5f1df
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.3-2
4b5f1df
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4b5f1df
358799b
* Thu Sep 26 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 0.8.3-1
358799b
- Update to 0.8.3.
358799b
e88e9ed
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.12-3
e88e9ed
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
e88e9ed
8a2ddf3
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.12-2
8a2ddf3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
8a2ddf3
27f5bf4
* Mon Nov 05 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.7.12-1
27f5bf4
- Update to 0.7.12.
27f5bf4
058bde3
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.5-3
058bde3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
058bde3
8650555
* Thu Mar 15 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.7.5-2
8650555
- Removed unneeded rm -rf %%{buildroot}.
8650555
- Placed all files under the %%{python_sitearch}.
8650555
- Filtered provide of the .so file.
8650555
8650555
* Thu Mar 15 2012 Bohuslav Kabrda <bkabrda@redhat.com> - 0.7.5-1
8650555
- Initial package.
8650555