Skip to content

Commit

Permalink
hiredis: Initial Build
Browse files Browse the repository at this point in the history
Change-Id: I4338cee15af4248cb0f6debaae071360dba34e6e
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/15577
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Tapas Kundu <tkundu@vmware.com>
(cherry picked from commit d72ea6c)
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/16000
Reviewed-by: <psinghchauha@vmware.com>
  • Loading branch information
prashant1221 committed May 11, 2022
1 parent 3ee26dc commit 03b4c73
Showing 1 changed file with 56 additions and 0 deletions.
56 changes: 56 additions & 0 deletions SPECS/hiredis/hiredis.spec
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 <psinghchauha@vmware.com> 1.0.2-1
- hiredis initial build

0 comments on commit 03b4c73

Please sign in to comment.