diff --git a/http-parser-0.7.12.tar.gz b/http-parser-0.7.12.tar.gz deleted file mode 100644 index a9a40b8..0000000 --- a/http-parser-0.7.12.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fc590df48e5a11dda20b9dd682ce3f4cbd7ae7a6f2eada0564fc0562e3f83b53 -size 139542 diff --git a/http-parser-0.8.1.tar.gz b/http-parser-0.8.1.tar.gz new file mode 100644 index 0000000..0f5e68d --- /dev/null +++ b/http-parser-0.8.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b0584869b735f7a39a3d3a1699d1307f43143a032a8f21b48d2c2e815da0afde +size 150213 diff --git a/pre_checkin.sh b/pre_checkin.sh new file mode 100644 index 0000000..709a3cc --- /dev/null +++ b/pre_checkin.sh @@ -0,0 +1,4 @@ +#!/bin/sh + +sed 's,^\(Name: *\)python-,\1python3-,;s,^\(Requires: *\)python-,\1python3-,;s,^\(BuildRequires: *\)python-,\1python3-,;s,python setup.py,python3 setup.py,;s,python_sitelib,python3_sitelib,;s,python_sitearch,python3_sitearch,' python-http-parser.spec > python3-http-parser.spec +cp python-http-parser.changes python3-http-parser.changes diff --git a/python-http-parser.changes b/python-http-parser.changes index 4a6ba82..56baa66 100644 --- a/python-http-parser.changes +++ b/python-http-parser.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Tue Feb 26 14:05:37 UTC 2013 - p.drouand@gmail.com + +- Initial python3 support + +------------------------------------------------------------------- +Sat Feb 9 16:35:29 UTC 2013 - p.drouand@gmail.com + +- Update to 0.8.1: + * No changelog available + ------------------------------------------------------------------- Sat Oct 6 22:05:50 UTC 2012 - os-dev@jacraig.com diff --git a/python-http-parser.spec b/python-http-parser.spec index 30539c0..adf445f 100644 --- a/python-http-parser.spec +++ b/python-http-parser.spec @@ -1,7 +1,7 @@ # # spec file for package python-http-parser # -# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: python-http-parser -Version: 0.7.12 +Version: 0.8.1 Release: 0 Url: https://github.com/benoitc/http-parser/ Summary: HTTP Request/Response Parser for Python in C diff --git a/python3-http-parser.changes b/python3-http-parser.changes new file mode 100644 index 0000000..56baa66 --- /dev/null +++ b/python3-http-parser.changes @@ -0,0 +1,86 @@ +------------------------------------------------------------------- +Tue Feb 26 14:05:37 UTC 2013 - p.drouand@gmail.com + +- Initial python3 support + +------------------------------------------------------------------- +Sat Feb 9 16:35:29 UTC 2013 - p.drouand@gmail.com + +- Update to 0.8.1: + * No changelog available + +------------------------------------------------------------------- +Sat Oct 6 22:05:50 UTC 2012 - os-dev@jacraig.com + +- 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. + +------------------------------------------------------------------- +Sun Sep 9 16:10:02 UTC 2012 - os-dev@jacraig.com + +- 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). + +------------------------------------------------------------------- +Tue Feb 28 18:09:50 UTC 2012 - jfunk@funktronics.ca + +- Update to version 0.7.5: + * fix whitespaces + * multiple headers values should be separated by a ", " not "," + * regenerate the C code + +------------------------------------------------------------------- +Tue Jan 31 13:40:40 UTC 2012 - saschpe@suse.de + +- Update to version 0.7.4 + +------------------------------------------------------------------- +Wed Jan 25 19:24:07 UTC 2012 - jfunk@funktronics.ca + +- Update to version 0.7.2 + +------------------------------------------------------------------- +Sun Nov 27 05:59:08 UTC 2011 - jfunk@funktronics.ca + +- Update to version 0.7.1 + +------------------------------------------------------------------- +Fri Sep 23 12:00:22 UTC 2011 - saschpe@suse.de + +- Update to version 0.7.0 + +------------------------------------------------------------------- +Mon Jun 20 18:30:34 UTC 2011 - jfunk@funktronics.ca + +- Initital release + diff --git a/python3-http-parser.spec b/python3-http-parser.spec new file mode 100644 index 0000000..8bd6443 --- /dev/null +++ b/python3-http-parser.spec @@ -0,0 +1,54 @@ +# +# spec file for package python-http-parser +# +# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ +# + + +Name: python3-http-parser +Version: 0.8.1 +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 +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: python3-devel +BuildRequires: python3-distribute +%if 0%{?suse_version} && 0%{?suse_version} <= 1110 +%{!?python3_sitearch: %global python_sitearch %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} +%endif + +%description +HTTP request/response parser for Python in C under MIT License, based on +http-parser from Ryan Dahl. + +%prep +%setup -q -n http-parser-%{version} + +%build +CFLAGS="%{optflags} -fno-strict-aliasing" python3 setup.py build + +%install +python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} +# Remove exec bits from example scripts +chmod a-x examples/* + +%files +%defattr(-,root,root) +%doc LICENSE NOTICE README.rst examples +%{python3_sitearch}/* + +%changelog