python-http-parser/python-http-parser.spec

58 lines
1.8 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-http-parser
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Accepting request 519794 from devel:languages:python:singlespec-staging - singlespec auto-conversion - Update to version 0.8.3 + No changelog availalbe - Remove pre_checkin.sh; python3 packages moved to d:l:p3 - Require python-setuptools instead of distribute (upstreams merged) - Initial python3 support - Update to 0.8.1: * No changelog available - Update to 0.7.12: * fix __eq__ * fix environ update - Changes from 0.7.11: * api should be consistent - Changes from 0.7.10: * Fixed pyparser.py to work on Python 3 * Bugfix: match against upper-cased header names * Bugfix: looking for popped HTTP_SCRIPT_NAME - Changes from 0.7.9: * Regenerated parser.c from Cython 0.17 * Updated HTTP parser C code * use SocketIO object on python3 * fix data type, fix iteration - Remove unnecessary rm from %install, those files no longer exist. - Update to 0.7.8: * fix python 3 compatibility * fix categories * fix requirements in the readme, add TODO - Changes from 0.7.7: * fix setup * add an example: parse a response text file on windows * fix issue 14 - Changes from 0.7.6: * fix setup.py and rebuild the extension * remove support of py25 * use setuptools to install http_parser * chech if self.environ exists before update it * add an example for parse windows response file * add PURGE method * rebuild code * sync http-parser C code from joyent * only create WSGI environ on demand - Remove executable bits from example scripts (RPMLINT warning). - Update to version 0.7.5: * fix whitespaces * multiple headers values should be separated by a ", " not "," * regenerate the C code - Update to version 0.7.4 - Update to version 0.7.2 - Update to version 0.7.1 - Update to version 0.7.0 - Initital release OBS-URL: https://build.opensuse.org/request/show/519794 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-http-parser?expand=0&rev=28
2017-08-30 22:12:51 +00:00
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-http-parser
Version: 0.9.0
Release: 0
Summary: HTTP Request/Response Parser for Python in C
License: MIT
Group: Development/Languages/Python
URL: https://github.com/benoitc/http-parser/
Accepting request 519794 from devel:languages:python:singlespec-staging - singlespec auto-conversion - Update to version 0.8.3 + No changelog availalbe - Remove pre_checkin.sh; python3 packages moved to d:l:p3 - Require python-setuptools instead of distribute (upstreams merged) - Initial python3 support - Update to 0.8.1: * No changelog available - Update to 0.7.12: * fix __eq__ * fix environ update - Changes from 0.7.11: * api should be consistent - Changes from 0.7.10: * Fixed pyparser.py to work on Python 3 * Bugfix: match against upper-cased header names * Bugfix: looking for popped HTTP_SCRIPT_NAME - Changes from 0.7.9: * Regenerated parser.c from Cython 0.17 * Updated HTTP parser C code * use SocketIO object on python3 * fix data type, fix iteration - Remove unnecessary rm from %install, those files no longer exist. - Update to 0.7.8: * fix python 3 compatibility * fix categories * fix requirements in the readme, add TODO - Changes from 0.7.7: * fix setup * add an example: parse a response text file on windows * fix issue 14 - Changes from 0.7.6: * fix setup.py and rebuild the extension * remove support of py25 * use setuptools to install http_parser * chech if self.environ exists before update it * add an example for parse windows response file * add PURGE method * rebuild code * sync http-parser C code from joyent * only create WSGI environ on demand - Remove executable bits from example scripts (RPMLINT warning). - Update to version 0.7.5: * fix whitespaces * multiple headers values should be separated by a ", " not "," * regenerate the C code - Update to version 0.7.4 - Update to version 0.7.2 - Update to version 0.7.1 - Update to version 0.7.0 - Initital release OBS-URL: https://build.opensuse.org/request/show/519794 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-http-parser?expand=0&rev=28
2017-08-30 22:12:51 +00:00
Source: https://files.pythonhosted.org/packages/source/h/http-parser/http-parser-%{version}.tar.gz
BuildRequires: %{python_module Cython}
Accepting request 519794 from devel:languages:python:singlespec-staging - singlespec auto-conversion - Update to version 0.8.3 + No changelog availalbe - Remove pre_checkin.sh; python3 packages moved to d:l:p3 - Require python-setuptools instead of distribute (upstreams merged) - Initial python3 support - Update to 0.8.1: * No changelog available - Update to 0.7.12: * fix __eq__ * fix environ update - Changes from 0.7.11: * api should be consistent - Changes from 0.7.10: * Fixed pyparser.py to work on Python 3 * Bugfix: match against upper-cased header names * Bugfix: looking for popped HTTP_SCRIPT_NAME - Changes from 0.7.9: * Regenerated parser.c from Cython 0.17 * Updated HTTP parser C code * use SocketIO object on python3 * fix data type, fix iteration - Remove unnecessary rm from %install, those files no longer exist. - Update to 0.7.8: * fix python 3 compatibility * fix categories * fix requirements in the readme, add TODO - Changes from 0.7.7: * fix setup * add an example: parse a response text file on windows * fix issue 14 - Changes from 0.7.6: * fix setup.py and rebuild the extension * remove support of py25 * use setuptools to install http_parser * chech if self.environ exists before update it * add an example for parse windows response file * add PURGE method * rebuild code * sync http-parser C code from joyent * only create WSGI environ on demand - Remove executable bits from example scripts (RPMLINT warning). - Update to version 0.7.5: * fix whitespaces * multiple headers values should be separated by a ", " not "," * regenerate the C code - Update to version 0.7.4 - Update to version 0.7.2 - Update to version 0.7.1 - Update to version 0.7.0 - Initital release OBS-URL: https://build.opensuse.org/request/show/519794 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-http-parser?expand=0&rev=28
2017-08-30 22:12:51 +00:00
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: python-rpm-macros
%python_subpackages
%description
HTTP request/response parser for Python in C, based on
http-parser from Ryan Dahl.
%prep
%setup -q -n http-parser-%{version}
%build
# fix wrongly generated cyx files
find . -name '*.pyx' -exec cython {} \;
Accepting request 519794 from devel:languages:python:singlespec-staging - singlespec auto-conversion - Update to version 0.8.3 + No changelog availalbe - Remove pre_checkin.sh; python3 packages moved to d:l:p3 - Require python-setuptools instead of distribute (upstreams merged) - Initial python3 support - Update to 0.8.1: * No changelog available - Update to 0.7.12: * fix __eq__ * fix environ update - Changes from 0.7.11: * api should be consistent - Changes from 0.7.10: * Fixed pyparser.py to work on Python 3 * Bugfix: match against upper-cased header names * Bugfix: looking for popped HTTP_SCRIPT_NAME - Changes from 0.7.9: * Regenerated parser.c from Cython 0.17 * Updated HTTP parser C code * use SocketIO object on python3 * fix data type, fix iteration - Remove unnecessary rm from %install, those files no longer exist. - Update to 0.7.8: * fix python 3 compatibility * fix categories * fix requirements in the readme, add TODO - Changes from 0.7.7: * fix setup * add an example: parse a response text file on windows * fix issue 14 - Changes from 0.7.6: * fix setup.py and rebuild the extension * remove support of py25 * use setuptools to install http_parser * chech if self.environ exists before update it * add an example for parse windows response file * add PURGE method * rebuild code * sync http-parser C code from joyent * only create WSGI environ on demand - Remove executable bits from example scripts (RPMLINT warning). - Update to version 0.7.5: * fix whitespaces * multiple headers values should be separated by a ", " not "," * regenerate the C code - Update to version 0.7.4 - Update to version 0.7.2 - Update to version 0.7.1 - Update to version 0.7.0 - Initital release OBS-URL: https://build.opensuse.org/request/show/519794 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-http-parser?expand=0&rev=28
2017-08-30 22:12:51 +00:00
export CFLAGS="%{optflags} -fno-strict-aliasing"
%python_build
%install
Accepting request 519794 from devel:languages:python:singlespec-staging - singlespec auto-conversion - Update to version 0.8.3 + No changelog availalbe - Remove pre_checkin.sh; python3 packages moved to d:l:p3 - Require python-setuptools instead of distribute (upstreams merged) - Initial python3 support - Update to 0.8.1: * No changelog available - Update to 0.7.12: * fix __eq__ * fix environ update - Changes from 0.7.11: * api should be consistent - Changes from 0.7.10: * Fixed pyparser.py to work on Python 3 * Bugfix: match against upper-cased header names * Bugfix: looking for popped HTTP_SCRIPT_NAME - Changes from 0.7.9: * Regenerated parser.c from Cython 0.17 * Updated HTTP parser C code * use SocketIO object on python3 * fix data type, fix iteration - Remove unnecessary rm from %install, those files no longer exist. - Update to 0.7.8: * fix python 3 compatibility * fix categories * fix requirements in the readme, add TODO - Changes from 0.7.7: * fix setup * add an example: parse a response text file on windows * fix issue 14 - Changes from 0.7.6: * fix setup.py and rebuild the extension * remove support of py25 * use setuptools to install http_parser * chech if self.environ exists before update it * add an example for parse windows response file * add PURGE method * rebuild code * sync http-parser C code from joyent * only create WSGI environ on demand - Remove executable bits from example scripts (RPMLINT warning). - Update to version 0.7.5: * fix whitespaces * multiple headers values should be separated by a ", " not "," * regenerate the C code - Update to version 0.7.4 - Update to version 0.7.2 - Update to version 0.7.1 - Update to version 0.7.0 - Initital release OBS-URL: https://build.opensuse.org/request/show/519794 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-http-parser?expand=0&rev=28
2017-08-30 22:12:51 +00:00
%python_install
# Remove exec bits from example scripts
chmod a-x examples/*
Accepting request 519794 from devel:languages:python:singlespec-staging - singlespec auto-conversion - Update to version 0.8.3 + No changelog availalbe - Remove pre_checkin.sh; python3 packages moved to d:l:p3 - Require python-setuptools instead of distribute (upstreams merged) - Initial python3 support - Update to 0.8.1: * No changelog available - Update to 0.7.12: * fix __eq__ * fix environ update - Changes from 0.7.11: * api should be consistent - Changes from 0.7.10: * Fixed pyparser.py to work on Python 3 * Bugfix: match against upper-cased header names * Bugfix: looking for popped HTTP_SCRIPT_NAME - Changes from 0.7.9: * Regenerated parser.c from Cython 0.17 * Updated HTTP parser C code * use SocketIO object on python3 * fix data type, fix iteration - Remove unnecessary rm from %install, those files no longer exist. - Update to 0.7.8: * fix python 3 compatibility * fix categories * fix requirements in the readme, add TODO - Changes from 0.7.7: * fix setup * add an example: parse a response text file on windows * fix issue 14 - Changes from 0.7.6: * fix setup.py and rebuild the extension * remove support of py25 * use setuptools to install http_parser * chech if self.environ exists before update it * add an example for parse windows response file * add PURGE method * rebuild code * sync http-parser C code from joyent * only create WSGI environ on demand - Remove executable bits from example scripts (RPMLINT warning). - Update to version 0.7.5: * fix whitespaces * multiple headers values should be separated by a ", " not "," * regenerate the C code - Update to version 0.7.4 - Update to version 0.7.2 - Update to version 0.7.1 - Update to version 0.7.0 - Initital release OBS-URL: https://build.opensuse.org/request/show/519794 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-http-parser?expand=0&rev=28
2017-08-30 22:12:51 +00:00
%files %{python_files}
%license LICENSE
%doc NOTICE README.rst examples
%{python_sitearch}/*
%changelog