diff --git a/anda/lib/libfiber/add-missing-header.patch b/anda/lib/libfiber/add-missing-header.patch new file mode 100644 index 0000000000..dc81dc6e2c --- /dev/null +++ b/anda/lib/libfiber/add-missing-header.patch @@ -0,0 +1,12 @@ +diff --git a/cpp/include/fiber/go_fiber.hpp b/cpp/include/fiber/go_fiber.hpp +index 5e1df06..8d6ad2a 100644 +--- a/cpp/include/fiber/go_fiber.hpp ++++ b/cpp/include/fiber/go_fiber.hpp +@@ -15,6 +15,7 @@ + #include + #include "fiber.hpp" + #include "fiber_tbox.hpp" ++#include + + struct ACL_FIBER; + diff --git a/anda/lib/libfiber/anda.hcl b/anda/lib/libfiber/anda.hcl new file mode 100644 index 0000000000..d714a0a0fd --- /dev/null +++ b/anda/lib/libfiber/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "libfiber.spec" + } +} diff --git a/anda/lib/libfiber/libfiber.spec b/anda/lib/libfiber/libfiber.spec new file mode 100644 index 0000000000..7a7095e49c --- /dev/null +++ b/anda/lib/libfiber/libfiber.spec @@ -0,0 +1,42 @@ +%define debug_package %{nil} + +%global _description %{expand: +libfiber is a high-performance coroutine library designed for building efficient network applications across multiple platforms. +Originating from the coroutine module in the acl project, libfiber supports Linux, FreeBSD, macOS, and Windows operating systems. +The library enables developers to write highly concurrent applications using synchronous programming paradigms while achieving performance comparable to or better than asynchronous frameworks.} + +Name: libfiber-devel +Version: 1.1.0 +Release: 1%?dist +URL: https://deepwiki.com/iqiyi/libfiber +Source0: https://github.com/iqiyi/libfiber/archive/refs/tags/v%version.tar.gz +Patch0: add-missing-header.patch +Summary: The high performance c/c++ coroutine/fiber library for Linux/FreeBSD/MacOS/Windows, supporting select/poll/epoll/kqueue/iouring/iocp/windows GUI +License: LGPL-3.0 +ExclusiveArch: x86_64 + +Packager: Owen Zimmerman + +BuildRequires: gcc-c++ make + +%description %_description + +%prep +%autosetup -n libfiber-%{version} -p1 + +%build +%make_build + +%install +mkdir -p %{buildroot}%{_includedir}/fiber/ +install -Dm644 c/include/fiber/*.h %{buildroot}%{_includedir}/fiber/ +install -Dm644 cpp/include/fiber/*.hpp %{buildroot}%{_includedir}/fiber/ + +%files +%license LICENSE.txt +%doc README.md README_cn.md changes.txt +%{_includedir}/fiber/ + +%changelog +* Wed Dec 31 2025 Owen Zimmerman +- Initial commit diff --git a/anda/lib/libfiber/update.rhai b/anda/lib/libfiber/update.rhai new file mode 100644 index 0000000000..43cf72991d --- /dev/null +++ b/anda/lib/libfiber/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("iqiyi/libfiber"));