-
Notifications
You must be signed in to change notification settings - Fork 696
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change-Id: I4338cee15af4248cb0f6debaae071360dba34e6e Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/15577 Tested-by: gerrit-photon <[email protected]> Reviewed-by: Tapas Kundu <[email protected]> (cherry picked from commit d72ea6c) Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/16000 Reviewed-by: <[email protected]>
- Loading branch information
1 parent
3ee26dc
commit 03b4c73
Showing
1 changed file
with
56 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <[email protected]> 1.0.2-1 | ||
- hiredis initial build |