相关开发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)

未完善,以后再测试

最新文章

  1. fatal error LNK1169: 找到一个或多个多重定义的符号
  2. 【JAVA】Spring 数据源配置整理
  3. 【系统移植】JNI
  4. win10 + VS2015 + EF6 + MySQL
  5. javascript学习-原生javascript的小特效(多物体运动效果)
  6. 用友二次开发之U810.1销售预订单导入
  7. HDU-4689 Derangement
  8. js连续赋值、指针
  9. Centos常用命令之:ls和cd
  10. 用CSS解决一个让人头疼的问题
  11. js获取浏览器对象的信息
  12. Java -verbose[:class|gc|jni] 转 ----JAVA源码分析
  13. 九度OJ小结2
  14. 2018.10.05 NOIP模拟 上升序列(状压dp)
  15. hdu 5066 小球碰撞(物理题)
  16. bzoj3223: Tyvj 1729 文艺平衡树 splay裸题
  17. Python并发编程-生产消费模型
  18. grep、egrep命令用法
  19. Linux添加路由
  20. python查询mysql数据

热门文章

  1. 【JavaScript权威指南(第五版)】笔记之第二部分 客户端JavaScript 第13章~第23章
  2. SQL 分组后取最小行号记录
  3. HW--自守数
  4. 浅析foreach原理
  5. 使用html5结构化元素
  6. leetcode之Rectangle Area
  7. JavaScript基础-面向对象编程<1>
  8. java集合_collection子接口 list的特有方法,ArrayList类体现
  9. mysql 常用命令搜集
  10. GDI+ 如何将图片绘制成圆形的图片