From 03b4c73afa3266db35d9f0e54f9bd93b07763c7b Mon Sep 17 00:00:00 2001 From: Prashant Singh Chauhan Date: Mon, 11 Apr 2022 13:55:45 +0000 Subject: [PATCH] hiredis: Initial Build Change-Id: I4338cee15af4248cb0f6debaae071360dba34e6e Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/15577 Tested-by: gerrit-photon Reviewed-by: Tapas Kundu (cherry picked from commit d72ea6c1520d7e285dc684f5b7aff8b06812fbff) Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/16000 Reviewed-by: --- SPECS/hiredis/hiredis.spec | 56 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 SPECS/hiredis/hiredis.spec diff --git a/SPECS/hiredis/hiredis.spec b/SPECS/hiredis/hiredis.spec new file mode 100644 index 0000000000..b7615a4add --- /dev/null +++ b/SPECS/hiredis/hiredis.spec @@ -0,0 +1,56 @@ +Summary: Minimalistic C client library for Redis +Name: hiredis +Version: 1.0.2 +Release: 1%{?dist} +License: BSD-3-Clause +Group: Productivity/Databases/Clients +Vendor: VMware, Inc. +Distribution: Photon +Url: https://github.com/redis/hiredis +Source0: https://github.com/redis/hiredis/archive/v%{version}/%{name}-%{version}.tar.gz +%define sha512 hiredis=86497a1c21869bbe535378885eee6dbd594ef96325966511a3513f81e501af0f5ac7fed864f3230372f3ac7a23c05bad477fa5aa90b9747c9fb1408028174f9b +BuildRequires: make +BuildRequires: redis + +%description +Hiredis is a minimalistic C client library for the Redis database. + +%package devel +Summary: Development files for %{name} +Group: Development/Libraries/C++ +Requires: %{name} = %{version}-%{release} + +%description devel +The %{name}-devel package contains the header files and +libraries for Redis database. + +%prep +%autosetup + +%build +%make_build PREFIX="%{_prefix}" + +%install +%make_install PREFIX="%{_prefix}" + +find %{buildroot} -name '*.a' -delete + +%check +make check %{?_smp_mflags} + +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + +%files +%doc COPYING +%{_libdir}/libhiredis.so.1.0.0 + +%files devel +%doc CHANGELOG.md README.md +%{_includedir}/%{name}/ +%{_libdir}/libhiredis.so +%{_libdir}/pkgconfig/hiredis.pc + +%changelog +* Mon Apr 04 2022 Prashant S Chauhan 1.0.2-1 +- hiredis initial build