epel9
Christopher Meng 11 years ago
parent 6aa6d59bf9
commit 4d3267f6b9

@ -1,26 +1,21 @@
Name: hiredis
Version: 0.11.0
Release: 3%{?dist}
Summary: A minimalistic C client library for Redis
Group: System Environment/Libraries
Summary: Minimalistic C client library for Redis
License: BSD
URL: https://github.com/antirez/hiredis
URL: https://github.com/redis/hiredis
Source0: antirez-%{name}-v%{version}-0-g0fff0f1.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
Hiredis is a minimalistic C client library for the Redis database.
%package devel
Summary: Header files and libraries for hiredis C development
Group: Development/Libraries
Requires: %{name} = %{version}-%{release}
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
The %{name}-devel package contains the header files and
libraries to develop applications using a Redis database.
%description devel
This package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q -n antirez-%{name}-0fff0f1
@ -29,25 +24,19 @@ libraries to develop applications using a Redis database.
make %{?_smp_mflags} OPTIMIZATION="%{optflags}"
%install
rm -rf %{buildroot}
make install PREFIX=%{buildroot}/%{_prefix} INSTALL_LIBRARY_PATH=%{buildroot}%{_libdir}
make install PREFIX=%{buildroot}%{_prefix} INSTALL_LIBRARY_PATH=%{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_bindir}
cp hiredis-example %{buildroot}%{_bindir}
cp hiredis-test %{buildroot}%{_bindir}
rm -f `find %{buildroot} -name *.a`
%clean
rm -rf %{buildroot}
find %{buildroot} -name '*.a' -delete -print
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc COPYING
%{_bindir}/hiredis-example
%{_bindir}/hiredis-test
@ -55,7 +44,6 @@ rm -rf %{buildroot}
%{_libdir}/libhiredis.so.0
%files devel
%defattr(-,root,root,-)
%doc README.md
%{_includedir}/%{name}/
%{_libdir}/libhiredis.so

Loading…
Cancel
Save