当前位置: 首页 > 工具软件 > Gearmand > 使用案例 >

centos7 gearmand-1.1.15打包rpm

马华茂
2023-12-01
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
posted on 2017-04-05 15:03 北京涛子 阅读( ...) 评论( ...) 编辑 收藏

转载于:https://www.cnblogs.com/liujitao79/p/6668787.html

 类似资料: