[packages/librdkafka] - new

qboosh qboosh at pld-linux.org
Sun May 3 21:52:24 CEST 2020


commit 742cf07e854a13f3ad9c7505d9a615230be2831a
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun May 3 21:52:38 2020 +0200

    - new

 librdkafka-pc.patch |  11 +++++
 librdkafka.spec     | 135 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 146 insertions(+)
---
diff --git a/librdkafka.spec b/librdkafka.spec
new file mode 100644
index 0000000..ee037c6
--- /dev/null
+++ b/librdkafka.spec
@@ -0,0 +1,135 @@
+Summary:	Apache Kafka C library
+Summary(pl.UTF-8):	Biblioteka C do protokołu Apache Kafka
+Name:		librdkafka
+Version:	1.4.0
+Release:	1
+License:	BSD
+Group:		Libraries
+#Source0Download: https://github.com/edenhill/librdkafka/releases
+Source0:	https://github.com/edenhill/librdkafka/archive/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5:	8b3c09e50a21beafecd25c26ad48c2e7
+Patch0:		%{name}-pc.patch
+URL:		https://github.com/edenhill/librdkafka
+BuildRequires:	cmake >= 3.2
+BuildRequires:	cyrus-sasl-devel >= 2.1.26
+BuildRequires:	libstdc++-devel
+BuildRequires:	lz4-devel
+BuildRequires:	openssl-devel
+BuildRequires:	pkgconfig
+BuildRequires:	zlib-devel
+BuildRequires:	zstd-devel
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+librdkafka is the C/C++ client library implementation of the Apache
+Kafka protocol, containing both Producer and Consumer support.
+
+This package contains C library.
+
+%description -l pl.UTF-8
+librdkafka to biblioteka kliencka C/C++ implementująca protokół Apache
+Kafka, zawierająca obsługę zarówno producenta, jak i konsumenta.
+
+Ten pakiet zawiera bibliotekę C.
+
+%package devel
+Summary:	Header files for rdkafka library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki rdkafka
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+Requires:	cyrus-sasl-devel >= 2.1.26
+Requires:	openssl-devel
+Requires:	lz4-devel
+Requires:	zlib-devel
+Requires:	zstd-devel
+
+%description devel
+Header files for rdkafka library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki rdkafka.
+
+%package c++
+Summary:	Apache Kafka C++ library
+Summary(pl.UTF-8):	Biblioteka C++ do protokołu Apache Kafka
+Group:		Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description c++
+librdkafka is the C/C++ client library implementation of the Apache
+Kafka protocol, containing both Producer and Consumer support.
+
+This package contains C++ library.
+
+%description c++ -l pl.UTF-8
+librdkafka to biblioteka kliencka C/C++ implementująca protokół Apache
+Kafka, zawierająca obsługę zarówno producenta, jak i konsumenta.
+
+Ten pakiet zawiera bibliotekę C++.
+
+%package c++-devel
+Summary:	Header files for rdkafka library
+Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki rdkafka
+Group:		Development/Libraries
+Requires:	%{name}-c++ = %{version}-%{release}
+Requires:	%{name}-devel = %{version}-%{release}
+Requires:	libstdc++-devel
+
+%description c++-devel
+Header files for rdkafka library.
+
+%description c++-devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki rdkafka.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%build
+install -d build
+cd build
+%cmake ..
+
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} -C build install \
+	DESTDIR=$RPM_BUILD_ROOT
+
+# packaged as %doc
+%{__rm} $RPM_BUILD_ROOT%{_datadir}/licenses/librdkafka/LICENSES.txt
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%post	c++ -p /sbin/ldconfig
+%postun	c++ -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc INTRODUCTION.md LICENSES.txt README.md
+%attr(755,root,root) %{_libdir}/librdkafka.so.1
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/librdkafka.so
+%dir %{_includedir}/librdkafka
+%{_includedir}/librdkafka/rdkafka.h
+%{_includedir}/librdkafka/rdkafka_mock.h
+%{_pkgconfigdir}/rdkafka.pc
+%{_libdir}/cmake/RdKafka
+
+%files c++
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/librdkafka++.so.1
+
+%files c++-devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/librdkafka++.so
+%{_includedir}/librdkafka/rdkafkacpp.h
+%{_pkgconfigdir}/rdkafka++.pc
diff --git a/librdkafka-pc.patch b/librdkafka-pc.patch
new file mode 100644
index 0000000..819a652
--- /dev/null
+++ b/librdkafka-pc.patch
@@ -0,0 +1,11 @@
+--- librdkafka-1.4.0/packaging/cmake/rdkafka.pc.in.orig	2020-04-02 17:46:23.000000000 +0200
++++ librdkafka-1.4.0/packaging/cmake/rdkafka.pc.in	2020-05-03 20:57:46.087699370 +0200
+@@ -1,7 +1,7 @@
+ prefix=@CMAKE_INSTALL_PREFIX@
+ exec_prefix=${prefix}
+ includedir=${prefix}/include
+-libdir=${prefix}/lib
++libdir=${prefix}/lib at LIB_SUFFIX@
+ 
+ Name: @PKG_CONFIG_NAME@
+ Description: @PKG_CONFIG_DESCRIPTION@
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/librdkafka.git/commitdiff/742cf07e854a13f3ad9c7505d9a615230be2831a



More information about the pld-cvs-commit mailing list