2015-08-08 16:58:04 +02:00
|
|
|
#
|
|
|
|
# spec file for package http-parser
|
|
|
|
#
|
2020-08-16 01:05:51 +02:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2015-08-08 16:58:04 +02: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.
|
|
|
|
|
2020-08-16 01:05:51 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-08-08 16:58:04 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2020-08-16 01:05:51 +02:00
|
|
|
%define soname 2_9
|
2017-11-06 10:54:56 +01:00
|
|
|
%define libname libhttp_parser%{soname}
|
2016-03-27 17:05:18 +02:00
|
|
|
Name: http-parser
|
2020-08-16 01:05:51 +02:00
|
|
|
Version: 2.9.4
|
2015-08-08 16:58:04 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: HTTP request/response parser for C
|
|
|
|
License: MIT
|
|
|
|
Group: Development/Libraries/C and C++
|
2020-08-16 01:05:51 +02:00
|
|
|
URL: https://github.com/nodejs/http-parser
|
2017-11-06 10:54:56 +01:00
|
|
|
Source0: https://github.com/nodejs/http-parser/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
2016-01-28 15:16:19 +01:00
|
|
|
Source1: baselibs.conf
|
2015-08-08 16:58:04 +02:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
|
|
|
|
%description
|
|
|
|
This is a parser for HTTP messages written in C. It parses both
|
|
|
|
requests and responses. The parser is designed to be used in
|
|
|
|
performance HTTP applications. It does not make any syscalls nor
|
|
|
|
allocations, it does not buffer data, it can be interrupted at
|
|
|
|
anytime. Depending on your architecture, it only requires about 40
|
|
|
|
bytes of data per message stream (in a web server that is per
|
|
|
|
connection).
|
|
|
|
|
|
|
|
%package -n %{libname}
|
|
|
|
Summary: HTTP request/response parser for C
|
|
|
|
Group: System/Libraries
|
2017-11-06 10:54:56 +01:00
|
|
|
Provides: libhttp-parser-suse0 = %{version}
|
|
|
|
Obsoletes: libhttp-parser-suse0 <= %{version}
|
2015-08-08 16:58:04 +02:00
|
|
|
|
|
|
|
%description -n %{libname}
|
|
|
|
This is a parser for HTTP messages written in C. It parses both
|
|
|
|
requests and responses. The parser is designed to be used in
|
|
|
|
performance HTTP applications. It does not make any syscalls nor
|
|
|
|
allocations, it does not buffer data, it can be interrupted at
|
|
|
|
anytime. Depending on your architecture, it only requires about 40
|
|
|
|
bytes of data per message stream (in a web server that is per
|
|
|
|
connection).
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development headers and libraries for http-parser
|
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %{libname} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This is a parser for HTTP messages written in C. It parses both
|
|
|
|
requests and responses. The parser is designed to be used in
|
|
|
|
performance HTTP applications. It does not make any syscalls nor
|
|
|
|
allocations, it does not buffer data, it can be interrupted at
|
|
|
|
anytime. Depending on your architecture, it only requires about 40
|
|
|
|
bytes of data per message stream (in a web server that is per
|
|
|
|
connection).
|
|
|
|
|
|
|
|
Development headers and libraries for http-parser.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
2020-08-16 01:05:51 +02:00
|
|
|
%make_build PREFIX=%{_prefix} CFLAGS_FAST_EXTRA="%{optflags}" library
|
2015-08-08 16:58:04 +02:00
|
|
|
|
|
|
|
%install
|
2020-08-16 01:05:51 +02:00
|
|
|
%make_install PREFIX=%{_prefix} DESTDIR=%{buildroot} LIBDIR=%{_libdir}
|
2017-11-06 10:54:56 +01:00
|
|
|
chmod a-x %{buildroot}/%{_includedir}/*.h
|
2015-08-08 16:58:04 +02:00
|
|
|
|
|
|
|
%check
|
2020-08-16 01:05:51 +02:00
|
|
|
%make_build test
|
2015-08-08 16:58:04 +02:00
|
|
|
|
|
|
|
%post -n %{libname} -p /sbin/ldconfig
|
|
|
|
%postun -n %{libname} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %{libname}
|
2020-08-16 01:05:51 +02:00
|
|
|
%license LICENSE-MIT
|
|
|
|
%doc README.md
|
2015-08-08 16:58:04 +02:00
|
|
|
%{_libdir}/libhttp_parser.so.*
|
|
|
|
|
|
|
|
%files devel
|
2020-08-16 01:07:37 +02:00
|
|
|
%{_includedir}/http_parser.h
|
2015-08-08 16:58:04 +02:00
|
|
|
%{_libdir}/libhttp_parser.so
|
|
|
|
|
|
|
|
%changelog
|