wget https://github.com/gearman/gearmand/releases/download/1.1.15/gearmand-1.1.15.tar.gz -O /root/rpmbuild/SOURCES/1.1.15.tar.gz
tar xvfz /root/rpmbuild/SOURCES/1.1.15.tar.gz -C /tmp
cp /tmp/gearmand-1.1.15/support/gearmand.spec rpmbuild/SPECS
vim rpmbuild/SPECS/gearmand.spec
-%configure --disable-libpq --disable-libtokyocabinet --disable-libdrizzle --disable-libmemcached --enable-jobserver=no
+%configure --disable-libpq --disable-libtokyocabinet --disable-libdrizzle --disable-libmemcached --enable-hiredis --enable-jobserver
-install -m 755 %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/gearmand
+install -m 755 %{_builddir}/%{name}-%{version}/support/gearmand.init $RPM_BUILD_ROOT/etc/rc.d/init.d/gearmand
-%doc AUTHORS COPYING NEWS README.md HACKING THANKS
+%doc AUTHORS COPYING NEWS HACKING THANKS
yum -y install hiredis
rpmbuild -bb /root/rpmbuild/SPECS/gearmand.spec
/root/rpmbuild/RPMS/x86_64
gearmand-1.1.15-1.x86_64.rpm gearmand-debuginfo-1.1.15-1.x86_64.rpm gearmand-devel-1.1.15-1.x86_64.rpm gearmand-server-1.1.15-1.x86_64.rpm