summaryrefslogtreecommitdiffstats
path: root/librdkafka.spec
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2020-06-10 12:16:01 +0200
committerRemi Collet <remi@remirepo.net>2020-06-10 12:16:24 +0200
commit3dc367a65c0868228b0b93db61c85b0d3fa0d967 (patch)
tree6b7e3f0e52ea7f9801e80211c2848a4ebb866ea7 /librdkafka.spec
parentd7f04b6c8966a43a2e248fb8a894b2e0d5bc6dec (diff)
rename to librdkafka1php
Diffstat (limited to 'librdkafka.spec')
-rw-r--r--librdkafka.spec21
1 files changed, 15 insertions, 6 deletions
diff --git a/librdkafka.spec b/librdkafka.spec
index 1b0b413..ea7b109 100644
--- a/librdkafka.spec
+++ b/librdkafka.spec
@@ -11,11 +11,13 @@
%global gh_short %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner edenhill
%global gh_project %{libname}
+%global oldsoname 1
+%global newsoname 101
%global upstream_version 1.4.2
#global upstream_prever RC1
-Name: %{libname}
+Name: %{libname}%{oldsoname}php
Version: %{upstream_version}%{?upstream_prever:~%{upstream_prever}}
Release: 1%{?dist}
Group: System Environment/Libraries
@@ -26,6 +28,9 @@ License: BSD and MIT
URL: https://github.com/%{gh_owner}/%{gh_project}
Source0: https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{upstream_version}%{?upstream_prever}-%{gh_short}.tar.gz
+# Bump soname from 1 to 101 to allow parallel installation
+Patch0: %{libname}-soname.patch
+
BuildRequires: libstdc++-devel
BuildRequires: openssl-devel
%if 0%{?rhel} == 6
@@ -52,6 +57,9 @@ It was designed with message delivery reliability and high performance
in mind, current figures exceed 800000 msgs/second for the producer
and 3 million msgs/second for the consumer.
+%{name} is designed to be installed beside %{libname}
+and only used by PHP binaries (rdkafka extension).
+
%package devel
Group: Development/Libraries
@@ -65,7 +73,7 @@ developing applications that use %{name}.
%prep
%setup -qn %{gh_project}-%{gh_commit}
-# no backup to avoid old version inclusion
+%patch0 -p1 -b .bump
mkdir rpmdocs
cp -pr examples rpmdocs/examples
@@ -100,8 +108,8 @@ rm -r %{buildroot}%{_datadir}/doc/%{libname}
%files
%{!?_licensedir:%global license %%doc}
%license LICENSE*
-%{_libdir}/%{libname}.so.1
-%{_libdir}/%{libname}++.so.1
+%{_libdir}/%{libname}.so.%{newsoname}
+%{_libdir}/%{libname}++.so.%{newsoname}
%files devel
%doc *md
@@ -113,9 +121,10 @@ rm -r %{buildroot}%{_datadir}/doc/%{libname}
%{_libdir}/pkgconfig/rdkafka++.pc
-### NOTICE: available in RHEL-7 and RHEL-8 so not in remi
-
%changelog
+* Wed Jun 10 2020 Remi Collet <remi@remirepo.net> - 1.4.2-2
+- rename to librdkafka1php
+
* Wed May 6 2020 Remi Collet <remi@remirepo.net> - 1.4.2-1
- update to 1.4.2