Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37044310
en ru br
Репозитории ALT

Группа :: Система/Библиотеки
Пакет: http-parser

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Name: http-parser
Version: 2.9.4
Release: alt2

Summary: HTTP request/response parser for C
License: MIT
Group: System/Libraries

Url: http://github.com/joyent/http-parser
Source: %name-%version.tar

%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 lib%name
Summary: HTTP request/response parser for C
Group: System/Libraries

%description -n lib%name
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 lib%name-devel
Summary: HTTP request/response parser for C
Group: Development/C
Requires: lib%name = %version-%release

%description -n lib%name-devel
Development headers and libraries for http-parser.

%prep
%setup

%build
%ifarch %e2k
# lcc 1.25: workaround ftbfs induced by d9275da4 commit (reported upstream)
sed -i 's,-Werror,& -Wno-error=sign-compare,' Makefile
%endif
%make library

%install
%makeinstall_std PREFIX=%_prefix LIBDIR=%_libdir
mkdir -p %buildroot/%_pkgconfigdir/
cat <<EOF >%buildroot/%_pkgconfigdir/http_parser.pc
Name: http_parser
Description: %summary
Version: %version
Requires:
Libs: -lhttp_parser
Cflags:
EOF

%files -n lib%name
%_libdir/*.so.*
%doc AUTHORS README.md LICENSE-MIT

%files -n lib%name-devel
%_includedir/http_parser.h
%_pkgconfigdir/http_parser.pc
%_libdir/libhttp_parser.so

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin