From 225493da6e191313a957722836b5c0dcdace66a8de975e871063c847b4295f3c Mon Sep 17 00:00:00 2001 From: Todd R Date: Wed, 30 Aug 2017 22:12:51 +0000 Subject: [PATCH 1/2] 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 --- python-http-parser.changes | 6 ++++++ python-http-parser.spec | 23 ++++++++++++----------- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/python-http-parser.changes b/python-http-parser.changes index 5e493ad..a052801 100644 --- a/python-http-parser.changes +++ b/python-http-parser.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Aug 24 13:40:51 UTC 2017 - jmatejek@suse.com + +- singlespec auto-conversion + ------------------------------------------------------------------- Sun Dec 8 21:56:00 UTC 2013 - p.drouand@gmail.com @@ -96,3 +101,4 @@ Mon Jun 20 18:30:34 UTC 2011 - jfunk@funktronics.ca - Initital release + diff --git a/python-http-parser.spec b/python-http-parser.spec index 726ef9b..9a12db2 100644 --- a/python-http-parser.spec +++ b/python-http-parser.spec @@ -1,7 +1,7 @@ # # spec file for package python-http-parser # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,20 +16,20 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-http-parser Version: 0.8.3 Release: 0 -Url: https://github.com/benoitc/http-parser/ Summary: HTTP Request/Response Parser for Python in C License: MIT Group: Development/Languages/Python -Source: http://pypi.python.org/packages/source/h/http-parser/http-parser-%{version}.tar.gz +Url: https://github.com/benoitc/http-parser/ +Source: https://files.pythonhosted.org/packages/source/h/http-parser/http-parser-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: python-rpm-macros BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: python-devel -BuildRequires: python-setuptools -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} -%endif +%python_subpackages %description HTTP request/response parser for Python in C under MIT License, based on @@ -39,14 +39,15 @@ http-parser from Ryan Dahl. %setup -q -n http-parser-%{version} %build -CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build +export CFLAGS="%{optflags} -fno-strict-aliasing" +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install # Remove exec bits from example scripts chmod a-x examples/* -%files +%files %{python_files} %defattr(-,root,root) %doc LICENSE NOTICE README.rst examples %{python_sitearch}/* From d5238fce91cd703d8f89878d4156796d616048ecdd371b256be584d27d5aed07 Mon Sep 17 00:00:00 2001 From: Thomas Bechtold Date: Mon, 4 Sep 2017 05:25:07 +0000 Subject: [PATCH 2/2] Accepting request 520241 from home:jengelh:branches:devel:languages:python - Remove duplicated license metadata. OBS-URL: https://build.opensuse.org/request/show/520241 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-http-parser?expand=0&rev=29 --- python-http-parser.changes | 5 +++++ python-http-parser.spec | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/python-http-parser.changes b/python-http-parser.changes index a052801..45603bf 100644 --- a/python-http-parser.changes +++ b/python-http-parser.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Sep 1 18:01:25 UTC 2017 - jengelh@inai.de + +- Remove duplicated license metadata. + ------------------------------------------------------------------- Thu Aug 24 13:40:51 UTC 2017 - jmatejek@suse.com diff --git a/python-http-parser.spec b/python-http-parser.spec index 9a12db2..554b321 100644 --- a/python-http-parser.spec +++ b/python-http-parser.spec @@ -32,7 +32,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-build %python_subpackages %description -HTTP request/response parser for Python in C under MIT License, based on +HTTP request/response parser for Python in C, based on http-parser from Ryan Dahl. %prep