RPM包制作最简单样例
2024-08-27 00:54:02
相关开发RPM的包要安装
Summary: the Firt RPM of Sky Name: hellow Version: 0.1 Release: Vendor: PA soft(aguncn@.com) License: GPL Group: Application/Text Source0: hellow-.tar.gz #Patch0:hellow-.patch %description My test hellow %prep .tar.gz #%path -p0 %build cd $RPM_BUILD_DIR/hellow #./configure make %install cd $RPM_BUILD_DIR/hellow make install %clean rm -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.gz hellow/ hellow/Makefile hellow/hellow.c hellow/readme + exit Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.hosypk + umask + cd /root/rpmbuild/BUILD + cd /root/rpmbuild/BUILD/hellow + make make: Nothing to be done for `all'. + exit Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.N7lkmt + umask + cd /root/rpmbuild/BUILD + cd /root/rpmbuild/BUILD/hellow + make install cp 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-note Processing files: hellow-.x86_64 error: File not found: /root/rpmbuild/BUILDROOT/hellow-.x86_64/usr/bin/hellow Executing(%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.1 cp: cannot stat `/hellow/readme': No such file or directory error: 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)
未完善,以后再测试
最新文章
- fatal error LNK1169: 找到一个或多个多重定义的符号
- 【JAVA】Spring 数据源配置整理
- 【系统移植】JNI
- win10 + VS2015 + EF6 + MySQL
- javascript学习-原生javascript的小特效(多物体运动效果)
- 用友二次开发之U810.1销售预订单导入
- HDU-4689 Derangement
- js连续赋值、指针
- Centos常用命令之:ls和cd
- 用CSS解决一个让人头疼的问题
- js获取浏览器对象的信息
- Java -verbose[:class|gc|jni] 转 ----JAVA源码分析
- 九度OJ小结2
- 2018.10.05 NOIP模拟 上升序列(状压dp)
- hdu 5066 小球碰撞(物理题)
- bzoj3223: Tyvj 1729 文艺平衡树 splay裸题
- Python并发编程-生产消费模型
- grep、egrep命令用法
- Linux添加路由
- python查询mysql数据