From 4d3267f6b99982451c973a10cf024a1f05acc42d Mon Sep 17 00:00:00 2001 From: Christopher Meng Date: Fri, 21 Feb 2014 18:19:01 +0800 Subject: [PATCH] Cleanup --- hiredis.spec | 32 ++++++++++---------------------- 1 file changed, 10 insertions(+), 22 deletions(-) diff --git a/hiredis.spec b/hiredis.spec index 1c55a13..8b4d15a 100644 --- a/hiredis.spec +++ b/hiredis.spec @@ -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