2011-06-20 18:31:04 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-http-parser
|
|
|
|
|
#
|
2017-08-30 22:12:51 +00:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-06-20 18:31:04 +00:00
|
|
|
#
|
|
|
|
|
# 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.
|
2012-02-28 18:10:55 +00:00
|
|
|
|
2011-06-20 18:31:04 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
2017-08-30 22:12:51 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2011-06-20 18:31:04 +00:00
|
|
|
Name: python-http-parser
|
2013-12-08 22:06:07 +00:00
|
|
|
Version: 0.8.3
|
2011-06-20 18:31:04 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: HTTP Request/Response Parser for Python in C
|
|
|
|
|
License: MIT
|
|
|
|
|
Group: Development/Languages/Python
|
2017-08-30 22:12:51 +00:00
|
|
|
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
|
2011-06-20 18:31:04 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2017-08-30 22:12:51 +00:00
|
|
|
%python_subpackages
|
2011-06-20 18:31:04 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
HTTP request/response parser for Python in C under MIT License, based on
|
|
|
|
|
http-parser from Ryan Dahl.
|
|
|
|
|
|
|
|
|
|
%prep
|
2011-09-23 12:01:57 +00:00
|
|
|
%setup -q -n http-parser-%{version}
|
2011-06-20 18:31:04 +00:00
|
|
|
|
|
|
|
|
%build
|
2017-08-30 22:12:51 +00:00
|
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
|
|
|
|
%python_build
|
2011-06-20 18:31:04 +00:00
|
|
|
|
|
|
|
|
%install
|
2017-08-30 22:12:51 +00:00
|
|
|
%python_install
|
2012-09-09 18:34:04 +00:00
|
|
|
# Remove exec bits from example scripts
|
|
|
|
|
chmod a-x examples/*
|
2011-06-20 18:31:04 +00:00
|
|
|
|
2017-08-30 22:12:51 +00:00
|
|
|
%files %{python_files}
|
2011-06-20 18:31:04 +00:00
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc LICENSE NOTICE README.rst examples
|
2011-06-20 18:47:33 +00:00
|
|
|
%{python_sitearch}/*
|
2011-06-20 18:31:04 +00:00
|
|
|
|
|
|
|
|
%changelog
|