相关开发RPM的包要安装
Summary: the Firt RPM of SkyName: hellowVersion: 0.1Release:Vendor: PA soft(aguncn@.com)License: GPLGroup: Application/TextSource0: hellow-.tar.gz#Patch0:hellow-.patch%descriptionMy test hellow%prep.tar.gz#%path -p0%buildcd $RPM_BUILD_DIR/hellow#./configuremake%installcd $RPM_BUILD_DIR/hellowmake install%cleanrm -rf $RPM_BUILD_DIR/hellow%files%defattr(-,root,root)/usr/bin/hellow%doc $PRM_BULD_DIR/hellow/readme%changelog
rpmbuild -ba hellow-0.1-1.spec输出:
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.iA1hvb+ umask+ cd /root/rpmbuild/BUILD+ .tar.gzhellow/hellow/Makefilehellow/hellow.chellow/readme+ exitExecuting(%build): /bin/sh -e /var/tmp/rpm-tmp.hosypk+ umask+ cd /root/rpmbuild/BUILD+ cd /root/rpmbuild/BUILD/hellow+ makemake: Nothing to be done for `all'.+ exitExecuting(%install): /bin/sh -e /var/tmp/rpm-tmp.N7lkmt+ umask+ cd /root/rpmbuild/BUILD+ cd /root/rpmbuild/BUILD/hellow+ make installcp hellow /usr/bin+ /usr/lib/rpm/check-rpaths /usr/lib/rpm/check-buildroot+ /usr/lib/rpm/brp-compress+ /usr/lib/rpm/brp-strip+ /usr/lib/rpm/brp-strip-static-archive+ /usr/lib/rpm/brp-strip-comment-noteProcessing files: hellow-.x86_64error: File not found: /root/rpmbuild/BUILDROOT/hellow-.x86_64/usr/bin/hellowExecuting(%doc): /bin/sh -e /var/tmp/rpm-tmp.GVUVqC+ umask+ cd /root/rpmbuild/BUILD+ DOCDIR=/root/rpmbuild/BUILDROOT/hellow-.x86_64/usr/share/doc/hellow-0.1+ export DOCDIR+ .x86_64/usr/share/doc/hellow-0.1+ /bin/.x86_64/usr/share/doc/hellow-0.1+ .x86_64/usr/share/doc/hellow-0.1cp: cannot stat `/hellow/readme': No such file or directoryerror: Bad exit status from /var/tmp/rpm-tmp.GVUVqC (%doc)RPM build errors: File not found: /root/rpmbuild/BUILDROOT/hellow-.x86_64/usr/bin/hellow Bad exit status from /var/tmp/rpm-tmp.GVUVqC (%doc)
未完善,以后再测试