Projects
Factory:RISC-V:electron
llhttp
_service:tar_scm:llhttp.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:llhttp.spec of Package llhttp
%global so_version 6.0 Name: llhttp Version: 6.0.10 Release: 1 Summary: Port of http_parser to llparse License: MIT URL: https://github.com/nodejs/llhttp Source0: https://github.com/nodejs/llhttp/archive/v%{version}/llhttp-%{version}.tar.gz Source1: llhttp-packaging-bundler Source2: llhttp-%{version}-nm-dev.tgz Source3: check-null-licenses Source4: audited-null-licenses.toml BuildRequires: nodejs-devel BuildRequires: make BuildRequires: cmake BuildRequires: gcc BuildRequires: gcc-c++ BuildRequires: python3-devel BuildRequires: python3-tomli %description This project is a port of http_parser to TypeScript. llparse is used to generate the output C source file, which could be compiled and linked with the embedder's program (like Node.js). This copy of the library is compiled with LLHTTP_STRICT_MODE set to 0 (disabled), which is the default. %package devel Summary: Development files for llhttp Requires: llhttp%{?_isa} = %{?epoch:%{epoch}:}%{version}-%{release} %description devel The llhttp-devel package contains libraries and header files for developing applications that use llhttp. %prep %autosetup sed -r -i 's@([[:blank:]]*)(.*-m(sse4))@\1// \2@' test/fixtures/index.ts sed -r -i 's@ -[Og].\b@@g' Makefile tar -xzf '%{SOURCE2}' mkdir -p node_modules pushd node_modules ln -s ../node_modules_dev/* . ln -s ../node_modules_dev/.bin . popd sed -r -i 's@\bnpx[[:blank:]](ts-node)\b@node_modules/.bin/\1@' Makefile %build %make_build release TAG='%{version}' rm -rvf node_modules cd release %cmake %make_build %install cd release make install/fast DESTDIR=%{buildroot} %check mkdir -p node_modules pushd node_modules ln -s ../node_modules_dev/* . ln -s ../node_modules_dev/.bin . popd python3 '%{SOURCE3}' --exceptions '%{SOURCE4}' --with dev node_modules_dev NODE_ENV=test CLANG=gcc ./node_modules/.bin/mocha \ -r ts-node/register/type-check \ test/*-test.ts %files %license release/LICENSE-MIT %{_libdir}/libllhttp.so.%{so_version}{,.*} %files devel %doc release/README.md %{_includedir}/llhttp.h %{_libdir}/libllhttp.so %{_libdir}/pkgconfig/libllhttp.pc %{_libdir}/cmake/llhttp %changelog * Wed Oct 12 2022 misaka00251 <misaka00251@misakanet.cn> - 6.0.10-1 - Init package (Derived from federa project, thanks to fedora team)
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2