下面是icecast.spec文件
创建二进制包文件
- # cd /root/rpmbuild/SPECS# rpmbuild -ba icecast.specExecuting(%prep): /bin/sh -e /var/tmp/rpm-tmp.Kohe4t
- + umask 022
- + cd /root/rpmbuild/BUILD
- + cd /root/rpmbuild/BUILD
- + rm -rf icecast-2.3.3
- + /usr/bin/gzip -dc /root/rpmbuild/SOURCES/icecast-2.3.3.tar.gz
- + /bin/tar -xf -
- + STATUS=0
- + '[' 0 -ne 0 ']'+ cd icecast-2.3.3
- + /bin/chmod -Rf a+rX,u+w,g-w,o-w .
- + exit 0
- Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.ynm7H7
- + umask 022
- + cd /root/rpmbuild/BUILD
- + cd icecast-2.3.3
- + CFLAGS='-O2 -g'+ ./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc
- checking for a BSD-compatible install... /usr/bin/install -c
- checking whether build environment is sane... yes
- checking for a thread-safe mkdir -p... /bin/mkdir -p
- checking for gawk... gawk
- checking whether make sets $(MAKE)... yes
- checking whether to enable maintainer-specific portions of Makefiles... no
- checking for gcc... gcc
- ..
- ..
- ..
- Wrote: /root/rpmbuild/SRPMS/icecast-2.3.3-0.src.rpm
- Wrote: /root/rpmbuild/RPMS/x86_64/icecast-2.3.3-0.x86_64.rpm
- Executing(%clean): /bin/sh -e /var/tmp/rpm-tmp.dzahrv
- + umask 022
- + cd /root/rpmbuild/BUILD
- + cd icecast-2.3.3
- + '[' /root/rpmbuild/BUILDROOT/icecast-2.3.3-0.x86_64 '!=' / ']'+ rm -rf /root/rpmbuild/BUILDROOT/icecast-2.3.3-0.x86_64
- + exit 0
- # cat /root/rpmbuild/SPECS/icecast.specName: icecast
- Version: 2.3.3Release: 0Summary: Xiph Streaming media server that supports multiple formats.
- Group: Applications/Multimedia
- License: GPL
- URL: http://www.icecast.org/
推荐阅读
Tech Neo技巧沙龙 | 11月25号,九州云/ZStack与您一路商量云时代收集界线治理实践20、func,为解决集群治理,监控问题需设计开辟的体系治理基本框架。 1、psutil是一个跨平台库(https://g>>>详细阅读
本文标题:如何在CentOS/RedHat下,实现根据源码包创建rpm包
地址:http://www.17bianji.com/lsqh/39073.html
1/2 1