Name: fluent-bit Version: 5.0.6 Release: %autorelease Summary: Fluent Bit is a super fast, lightweight, and highly scalable logging and metrics processor and forwarder. License: Apache-2.0 URL: https://github.com/fluent/fluent-bit Source0: https://github.com/fluent/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz BuildRequires: gcc-c++ BuildRequires: cmake BuildRequires: ninja-build BuildRequires: flex BuildRequires: bison BuildRequires: pkgconf BuildRequires: systemd-rpm-macros BuildRequires: systemd-devel BuildRequires: libpq-devel BuildRequires: zlib-devel BuildRequires: gnutls-devel BuildRequires: openssl-devel BuildRequires: cyrus-sasl-devel BuildRequires: libyaml-devel BuildRequires: libzstd-devel BuildRequires: doxygen BuildRequires: graphviz # Exclude armv7hl temporarily because of failing runtime tests # https://github.com/fluent/fluent-bit/issues/4395 ExclusiveArch: x86_64 aarch64 %description Fluent Bit is a high performance and multi-platform log forwarder. %prep %autosetup -p1 %build %cmake \ -DCMAKE_C_STANDARD=17\ -DCMAKE_INSTALL_SYSCONFDIR=%{_sysconfdir}\ -DFLB_DEBUG=Off \ -DFLB_EXAMPLES=Off \ -DFLB_HTTP_SERVER=On \ -DFLB_IN_PODMAN_METRICS=On \ -DFLB_IN_SYSTEMD=On \ -DFLB_OUT_ES=On \ -DFLB_OUT_PGSQL=On \ -DFLB_OUT_SLACK=Off \ -DFLB_OUT_TD=Off \ -DFLB_KAFKA=On \ -DFLB_PREFER_SYSTEM_LIB_ZSTD=On \ -DFLB_RELEASE=Off \ -DFLB_SHARED_LIB=Off \ -DFLB_TESTS_INTERNAL=Off \ -DFLB_TESTS_RUNTIME=Off \ -DFLB_TLS=On \ -DSYSTEMD_UNITDIR=%{_unitdir} %cmake_build %install %cmake_install # We don't ship headers and shared library for plugins (yet) rm -rvf %{buildroot}%{_includedir} %check %ctest %post %systemd_post %{name}.service %preun %systemd_preun %{name}.service %postun %systemd_postun_with_restart %{name}.service %files %license LICENSE %doc README.md MAINTAINERS.md CODE_OF_CONDUCT.md CONTRIBUTING.md GOLANG_OUTPUT_PLUGIN.md GOVERNANCE.md %dir %{_sysconfdir}/%{name} %config(noreplace) %{_sysconfdir}/%{name}/* %{_bindir}/%{name} %{_unitdir}/%{name}.service %exclude %{_bindir}/luajit %exclude %{_libdir}/libluajit.a %changelog %autochangelog