SHA256
8
0
forked from pool/librdkafka
Files
librdkafka/librdkafka.spec
Dirk Mueller e598c6726d - update to 1.4.0:
* Buffered file output is now periodically flushed by a background
    thread
  * The MultiprocessRollingFileAppender did not work
  * Properly prevent undefined behaviour when an appender is deleted
    without being closed
  * Prevent abnormal termination on exit when using a static NDC/MDC
    variable
  * Support for std::experimental::optional (in the standard library
    used by gcc 5.4)
  * Overhead reduction of upto 60% sending logging events to an appender
  * Statistics on the AsyncAppender's queue length
  * [Fuzz tests](@ref fuzzing) along with Google OSS-Fuzz
  * MSYS2/MINGW build errors
  * `thread_local` problems in MSYS2/MINGW
  * A potential 'use after free' fault when using AsyncAppender

OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/librdkafka?expand=0&rev=42
2025-03-30 10:57:03 +00:00

114 lines
3.3 KiB
RPMSpec

#
# spec file for package librdkafka
#
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define libname %{name}1
# lto breaks crc32 detection in configure script
# See https://github.com/edenhill/librdkafka/issues/2426
%ifnarch x86_64
%global _lto_cflags %{nil}
%endif
Name: librdkafka
Version: 2.8.0
Release: 0
Summary: The Apache Kafka C/C++ library
License: BSD-2-Clause
Group: Development/Libraries/C and C++
URL: https://github.com/edenhill/librdkafka
Source0: https://github.com/edenhill/librdkafka/archive/v%{version}.tar.gz
BuildRequires: cyrus-sasl-devel
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: openssl-devel
BuildRequires: pkgconfig
BuildRequires: pkgconfig(RapidJSON)
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(liblz4)
BuildRequires: pkgconfig(libzstd)
BuildRequires: pkgconfig(zlib)
%description
librdkafka is a C library implementation of the Apache Kafka protocol,
containing both Producer and Consumer support.
%package -n %{libname}
Summary: A library for changing configuration files
Group: System/Libraries
%description -n %{libname}
librdkafka is a C library implementation of the Apache Kafka protocol,
containing both Producer and Consumer support.
%package devel
Summary: Development files for the Kafka C/C++ library
Group: Development/Libraries/C and C++
Requires: %{libname} = %{version}
%description devel
librdkafka is a C library implementation of the Apache Kafka protocol,
containing both Producer and Consumer support.
This package contains development headers and examples.
%prep
%setup -q
%build
%configure \
--enable-curl \
--enable-gssapi \
--enable-lz4-ext \
--enable-regex-ext \
--enable-sasl \
--enable-ssl \
--enable-zlib \
--enable-zstd
%make_build
%check
%make_build check
%install
%make_install
find %{buildroot} -name '*.a' -delete -print
%post -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%files -n %{libname}
%{_docdir}/../%{name}
%doc %attr(0644,root,root) %{_docdir}/../%{name}/README.md
%doc %attr(0644,root,root) %{_docdir}/../%{name}/CONFIGURATION.md
%doc %attr(0644,root,root) %{_docdir}/../%{name}/INTRODUCTION.md
%doc %attr(0644,root,root) %{_docdir}/../%{name}/STATISTICS.md
%license %attr(0644,root,root) %{_docdir}/../%{name}/LICENSE
%license %attr(0644,root,root) %{_docdir}/../%{name}/LICENSES.txt
%{_libdir}/librdkafka.so.*
%{_libdir}/librdkafka++.so.*
%files devel
%dir %{_includedir}/%{name}
%attr(0644,root,root) %{_includedir}/%{name}/*
%{_libdir}/librdkafka.so
%{_libdir}/librdkafka++.so
%{_libdir}/pkgconfig/rdkafka.pc
%{_libdir}/pkgconfig/rdkafka++.pc
%{_libdir}/pkgconfig/rdkafka-static.pc
%{_libdir}/pkgconfig/rdkafka++-static.pc
%changelog