%global debug_package %{nil} %global gem_name rdkafka Summary: Modern Kafka client library for Ruby based on librdkafka Name: rubygem-%{gem_name} Version: 0.12.0.beta.4 Release: 2%{?dist} License: MIT Vendor: Microsoft Corporation Distribution: Mariner Group: Development/Languages URL: https://github.com/appsignal/rdkafka-ruby Source0: https://github.com/appsignal/rdkafka-ruby/archive/refs/tags/v%{version}.tar.gz#/%{gem_name}-ruby-%{version}.tar.gz Patch0: librdkafka.patch Patch1: fix-file_list.patch BuildRequires: git BuildRequires: librdkafka-devel BuildRequires: librdkafka1 BuildRequires: ruby BuildRequires: rubygem-mini_portile2 BuildRequires: rubygem-rake Requires: rubygem-mini_portile2 Requires: rubygem-rake Provides: rubygem(%{gem_name}) = %{version}-%{release} %description The rdkafka gem is a modern Kafka client library for Ruby based on librdkafka. It wraps the production-ready C client using the ffi gem and targets Kafka 1.0+ and Ruby 2.4+. %prep %setup -q -n rdkafka-ruby-%{version} patch -p1 < %{PATCH0} patch -p1 < %{PATCH1} %build gem build %{gem_name} %install gem install -V --local --force --install-dir %{buildroot}/%{gemdir} %{gem_name}-%{version}.gem %files %defattr(-,root,root,-) %license %{gemdir}/gems/%{gem_name}-%{version}/LICENSE %{gemdir} %changelog * Wed Sep 20 2023 Jon Slobodzian - 0.12.0.beta.4-2 - Recompile with stack-protection fixed gcc version (CVE-2023-4039) * Wed Jun 22 2022 Neha Agarwal - 0.12.0.beta.4-1 - Update to v0.12.0.beta.4. - Build from .tar.gz source. * Tue Jan 05 2021 Henry Li - 0.7.0-1 - License verified - Original version for CBL-Mariner