Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:ALP:Workbench:1.0
http-parser
http-parser.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File http-parser.spec of Package http-parser
# # spec file for package 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/ # %define soname 2_9 %define libname libhttp_parser%{soname} Name: http-parser Version: 2.9.4 Release: 0 Summary: HTTP request/response parser for C License: MIT Group: Development/Libraries/C and C++ URL: https://github.com/nodejs/http-parser Source0: https://github.com/nodejs/http-parser/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source1: baselibs.conf 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 Provides: libhttp-parser-suse0 = %{version} Obsoletes: libhttp-parser-suse0 <= %{version} %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 %make_build PREFIX=%{_prefix} CFLAGS_FAST_EXTRA="%{optflags}" library %install %make_install PREFIX=%{_prefix} DESTDIR=%{buildroot} LIBDIR=%{_libdir} chmod a-x %{buildroot}/%{_includedir}/*.h %check %make_build test %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %files -n %{libname} %license LICENSE-MIT %doc README.md %{_libdir}/libhttp_parser.so.* %files devel %{_includedir}/http_parser.h %{_libdir}/libhttp_parser.so %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor