[packages/llhttp] - updated to 9.3.0 (new soname) + cmake fix for duplicate llhttp::llhttp target when shared+static l
qboosh
qboosh at pld-linux.org
Tue Dec 16 19:11:02 CET 2025
commit 9429c0e2b395b781e3f506b16eb0b3f419cc496d
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Tue Dec 16 19:10:51 2025 +0100
- updated to 9.3.0 (new soname) + cmake fix for duplicate llhttp::llhttp target when shared+static libs are built
llhttp-cmake.patch | 13 +++++++++++++
llhttp.spec | 20 ++++++++++----------
2 files changed, 23 insertions(+), 10 deletions(-)
---
diff --git a/llhttp.spec b/llhttp.spec
index 6ec1837..ed762aa 100644
--- a/llhttp.spec
+++ b/llhttp.spec
@@ -5,7 +5,7 @@
Summary: Node.js llhttp Library
Summary(pl.UTF-8): Biblioteka llhttp z Node.js
Name: llhttp
-Version: 9.2.1
+Version: 9.3.0
Release: 1
License: MIT
Group: Libraries
@@ -17,9 +17,10 @@ Group: Libraries
#Source0: https://github.com/nodejs/llhttp/archive/v%{version}/%{name}-%{version}.tar.gz
# already prepared release tarballs, with pregenerated C sources:
Source0: https://github.com/nodejs/llhttp/archive/release/v%{version}/%{name}-release-v%{version}.tar.gz
-# Source0-md5: 355ecc90e622035e3e1693a96a0c233b
+# Source0-md5: 7e0386dd9c888344e80f39124043d406
+Patch0: %{name}-cmake.patch
URL: https://llhttp.org/
-BuildRequires: cmake >= 3.5.1
+BuildRequires: cmake >= 3.25.0
BuildRequires: gcc >= 5:3.2
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -55,17 +56,16 @@ Statyczna biblioteka llhttp.
%prep
%setup -q -n %{name}-release-v%{version}
+%patch -P0 -p1
%build
-install -d build
-cd build
-%cmake .. \
+%cmake -B build \
%{?with_static_libs:-DBUILD_STATIC_LIBS=ON} \
-DCMAKE_CONFIGURATION_TYPES=fake_to_allow_PLD_build_type \
-DCMAKE_INSTALL_INCLUDEDIR=include \
-DCMAKE_INSTALL_LIBDIR=%{_lib}
-%{__make}
+%{__make} -C build
%install
rm -rf $RPM_BUILD_ROOT
@@ -82,12 +82,12 @@ rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%doc LICENSE-MIT README.md
-%attr(755,root,root) %{_libdir}/libllhttp.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libllhttp.so.9.2
+%{_libdir}/libllhttp.so.*.*.*
+%ghost %{_libdir}/libllhttp.so.9.3
%files devel
%defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libllhttp.so
+%{_libdir}/libllhttp.so
%{_includedir}/llhttp.h
%{_libdir}/cmake/llhttp
%{_pkgconfigdir}/libllhttp.pc
diff --git a/llhttp-cmake.patch b/llhttp-cmake.patch
new file mode 100644
index 0000000..4fdb718
--- /dev/null
+++ b/llhttp-cmake.patch
@@ -0,0 +1,13 @@
+--- llhttp-release-v9.3.0/CMakeLists.txt.orig 2025-05-03 19:04:09.000000000 +0200
++++ llhttp-release-v9.3.0/CMakeLists.txt 2025-12-16 06:23:35.518712636 +0100
+@@ -92,9 +92,7 @@ if(BUILD_STATIC_LIBS)
+ add_library(llhttp_static STATIC
+ ${llhttp_src}
+ )
+- if(BUILD_SHARED_LIBS)
+- add_library(llhttp::llhttp ALIAS llhttp_shared)
+- else()
++ if(NOT BUILD_SHARED_LIBS)
+ add_library(llhttp::llhttp ALIAS llhttp_static)
+ endif()
+ config_library(llhttp_static)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/llhttp.git/commitdiff/9429c0e2b395b781e3f506b16eb0b3f419cc496d
More information about the pld-cvs-commit
mailing list