update patch to fix requirement replacing pkgconfig(curl) with pkgconfig(libcurl) [release 2.0.2-2mamba;Sat Feb 11 2023]

This commit is contained in:
Silvan Calarco 2024-01-06 05:33:51 +01:00
parent d64bb7743e
commit dc7b7a8a75
2 changed files with 28 additions and 6 deletions

View File

@ -0,0 +1,11 @@
--- librdkafka-2.0.2/src/CMakeLists.txt.orig 2023-02-11 14:43:40.983064404 +0100
+++ librdkafka-2.0.2/src/CMakeLists.txt 2023-02-11 14:44:05.011918841 +0100
@@ -296,7 +296,7 @@
set(PKG_CONFIG_DESCRIPTION "The Apache Kafka C/C++ library")
if(WITH_CURL)
- string(APPEND PKG_CONFIG_REQUIRES "curl ")
+ string(APPEND PKG_CONFIG_REQUIRES "libcurl ")
endif()
if(WITH_ZLIB)

View File

@ -1,14 +1,15 @@
Name: librdkafka
Version: 1.9.2
Release: 1mamba
Version: 2.0.2
Release: 2mamba
Summary: A C library implementation of the Apache Kafka protocol
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://github.com/edenhill/librdkafka
URL: https://github.com/confluentinc/librdkafka
Source: https://github.com/edenhill/librdkafka.git/v%{version}/librdkafka-%{version}.tar.bz2
Patch0: librdkafka-1.9.2-curl-7.85.0.patch
Patch1: librdkafka-2.0.2-libcurl-pkgconfig.patch
License: BSD
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
@ -39,7 +40,8 @@ This package contains libraries and header files for developing applications tha
%prep
%setup -q
%patch0 -p1 -b .curl-7.85.0
#%patch0 -p1 -b .curl-7.85.0
%patch1 -p1
%build
%cmake -d build
@ -65,15 +67,24 @@ This package contains libraries and header files for developing applications tha
%defattr(-,root,root)
%dir %{_includedir}/librdkafka
%{_includedir}/librdkafka/*.h
%dir %{_libdir}/cmake/RdKafka
%{_libdir}/cmake/RdKafka/*.cmake
%{_libdir}/librdkafka++.so
%{_libdir}/librdkafka.so
%{_libdir}/pkgconfig/rdkafka++.pc
%{_libdir}/pkgconfig/rdkafka.pc
%dir %{_libdir}/cmake/RdKafka
%{_libdir}/cmake/RdKafka/*.cmake
%{_datadir}/licenses/librdkafka/LICENSES.txt
%doc README.md README.win32
%changelog
* Sat Feb 11 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.2-2mamba
- update patch to fix requirement replacing pkgconfig(curl) with pkgconfig(libcurl)
* Sat Jan 21 2023 Automatic Build System <autodist@mambasoft.it> 2.0.2-1mamba
- automatic version update by autodist
* Thu Jan 19 2023 Automatic Build System <autodist@mambasoft.it> 2.0.0-1mamba
- automatic version update by autodist
* Sat Sep 24 2022 Silvan Calarco <silvan.calarco@mambasoft.it> 1.9.2-1mamba
- package created using the webbuild interface