Name: hiredis Version: 0.13.3 Release: 11 Summary: A minimalistic C client library for the Redis database License: BSD URL: https://github.com/redis/hiredis Source0: https://github.com/redis/hiredis/archive/v0.13.3.tar.gz#/hiredis-0.13.3.tar.gz BuildRequires: gcc redis Patch0001: 0001-build-do-not-assume-that-INSTALL-is-cp.patch Patch0002: CVE-2020-7105.patch %description Hiredis is a minimalistic C client library for the Redis database. It is minimalistic because it just adds minimal support for the protocol, but at the same time it uses a high level printf-alike API in order to make it much higher level than otherwise suggested by its minimal code base and the lack of explicit bindings for every Redis command. Apart from supporting sending commands and receiving replies, it comes with a reply parser that is decoupled from the I/O layer.It is a stream parser designed for easy reusability, which can for instance be used in higher level language bindings for efficient reply parsing. %package devel Summary: Development files for hiredis Requires: hiredis = %{version}-%{release} %description devel The hiredis-devel package contains development files to build applications for hiredis. %prep %autosetup -p1 %build %make_build PREFIX="%{_prefix}" LIBRARY_PATH="%{_lib}" DEBUG="%{optflags}" LDFLAGS="%{?__global_ldflags}" %install %make_install PREFIX="%{_prefix}" LIBRARY_PATH="%{_lib}" find $RPM_BUILD_ROOT -type f -name "*.a" -delete cd $RPM_BUILD_ROOT%{_libdir} ln -sf libhiredis.so.0.13 libhiredis.so.0 %check make check || true %post /sbin/ldconfig %postun /sbin/ldconfig %files %doc COPYING %{_libdir}/libhiredis.so.* %files devel %doc CHANGELOG.md README.md %{_includedir}/hiredis/ %{_libdir}/libhiredis.so %{_libdir}/pkgconfig/hiredis.pc %changelog * Thu Mar 17 2020 likexin - 0.13.3-11 - fix up cve-2020-7105 * Tue Dec 31 2019 liujing - 0.13.3-10 - Package init