From 38c76147ed19e81727329b2a0eea20668030c8f8 Mon Sep 17 00:00:00 2001 From: Shakthi Kannan Date: Thu, 19 May 2011 09:43:53 +0530 Subject: [PATCH] First release. --- .gitignore | 1 + hiredis.spec | 81 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 83 insertions(+) create mode 100644 hiredis.spec diff --git a/.gitignore b/.gitignore index e69de29..9d48346 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/antirez-hiredis-v0.10.0-3-gdf203bc.tar.gz diff --git a/hiredis.spec b/hiredis.spec new file mode 100644 index 0000000..01d14ce --- /dev/null +++ b/hiredis.spec @@ -0,0 +1,81 @@ +Name: hiredis +Version: 0.10.0 +Release: 3%{?dist} +Summary: A minimalistic C client library for Redis + +Group: System Environment/Libraries +License: BSD +URL: https://github.com/antirez/hiredis +Source0: antirez-%{name}-v%{version}-3-gdf203bc.tar.gz + +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) +Requires: redis + +%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} + +%description devel +The %{name}-devel package contains the header files and +libraries to develop applications using a Redis database. + +%prep +%setup -q -n antirez-%{name}-df203bc + +%build +make %{?_smp_mflags} OPTIMIZATION="%{optflags}" + +%install +rm -rf %{buildroot} + +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} + +%post -p /sbin/ldconfig + +%postun -p /sbin/ldconfig + +%files +%defattr(-,root,root,-) +%doc COPYING TODO +%{_bindir}/hiredis-example +%{_bindir}/hiredis-test +%{_libdir}/libhiredis.so.0.10 +%{_libdir}/libhiredis.so.0 + +%files devel +%defattr(-,root,root,-) +%doc README.md +%{_includedir}/%{name}/ +%{_libdir}/libhiredis.so + +%changelog +* Mon May 16 2011 Shakthi Kannan 0.10.0-3 +- Removed INSTALL_LIB from install target as we use INSTALL_LIBRARY_PATH. +- Use 'client library' in Summary. + +* Wed May 11 2011 Shakthi Kannan 0.10.0-2 +- Updated devel sub-package description. +- Added optimization flags. +- Remove manual installation of shared objects. +- Use upstream .tar.gz sources. + +* Tue May 10 2011 Shakthi Kannan 0.10.0-1.gitdf203bc328 +- Updated to upstream gitdf203bc328. +- Added TODO to the files. +- Updated to use libhiredis.so.0, libhiredis.so.0.10. + +* Tue Apr 29 2011 Shakthi Kannan 0.9.2-1 +- First release. diff --git a/sources b/sources index e69de29..f3e570b 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +b32b930e5e1ee007594c1056c3ff1c0e antirez-hiredis-v0.10.0-3-gdf203bc.tar.gz