Skip to content

Commit 03b4c73

Browse files
committed
hiredis: Initial Build
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]>
1 parent 3ee26dc commit 03b4c73

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

SPECS/hiredis/hiredis.spec

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
Summary: Minimalistic C client library for Redis
2+
Name: hiredis
3+
Version: 1.0.2
4+
Release: 1%{?dist}
5+
License: BSD-3-Clause
6+
Group: Productivity/Databases/Clients
7+
Vendor: VMware, Inc.
8+
Distribution: Photon
9+
Url: https://github.com/redis/hiredis
10+
Source0: https://github.com/redis/hiredis/archive/v%{version}/%{name}-%{version}.tar.gz
11+
%define sha512 hiredis=86497a1c21869bbe535378885eee6dbd594ef96325966511a3513f81e501af0f5ac7fed864f3230372f3ac7a23c05bad477fa5aa90b9747c9fb1408028174f9b
12+
BuildRequires: make
13+
BuildRequires: redis
14+
15+
%description
16+
Hiredis is a minimalistic C client library for the Redis database.
17+
18+
%package devel
19+
Summary: Development files for %{name}
20+
Group: Development/Libraries/C++
21+
Requires: %{name} = %{version}-%{release}
22+
23+
%description devel
24+
The %{name}-devel package contains the header files and
25+
libraries for Redis database.
26+
27+
%prep
28+
%autosetup
29+
30+
%build
31+
%make_build PREFIX="%{_prefix}"
32+
33+
%install
34+
%make_install PREFIX="%{_prefix}"
35+
36+
find %{buildroot} -name '*.a' -delete
37+
38+
%check
39+
make check %{?_smp_mflags}
40+
41+
%post -p /sbin/ldconfig
42+
%postun -p /sbin/ldconfig
43+
44+
%files
45+
%doc COPYING
46+
%{_libdir}/libhiredis.so.1.0.0
47+
48+
%files devel
49+
%doc CHANGELOG.md README.md
50+
%{_includedir}/%{name}/
51+
%{_libdir}/libhiredis.so
52+
%{_libdir}/pkgconfig/hiredis.pc
53+
54+
%changelog
55+
* Mon Apr 04 2022 Prashant S Chauhan <[email protected]> 1.0.2-1
56+
- hiredis initial build

0 commit comments

Comments
 (0)