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

未完善,以后再测试

RPM包制作最简单样例的更多相关文章

  1. RPM包制作方法

    一.RPM介绍 RPM 前是Red Hat Package Manager 的缩写,本意是Red Hat 软件包管理,顾名思义是Red Hat 贡献出来的软件包管理:现在应为RPM Package M ...

  2. velocity简单样例

    velocity简单样例整体实现须要三个步骤,详细例如以下: 1.创建一个Javaproject 2.导入须要的jar包 3.创建须要的文件 ============================= ...

  3. php-7.1.0 rpm包制作

    nginx-1.8.0 rpm包制作见上篇文章:http://www.cnblogs.com/xiaoming279/p/6251149.html spec文件 Name: php Version: ...

  4. RPM包制作教程

    一.RPM介绍 RPM 前是Red Hat Package Manager 的缩写,本意是Red Hat 软件包管理,顾名思义是Red Hat 贡献出来的软件包管理:现在应为RPM Package M ...

  5. rpm包制作(待实验)

    作者:firefoxbug 时间:July 18, 2014 rpm包命名规范 对于rpm包的命名符合如下规范. %{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}.rpm N ...

  6. extern外部方法使用C#简单样例

    外部方法使用C#简单样例 1.添加引用using System.Runtime.InteropServices; 2.声明和实现的连接[DllImport("kernel32", ...

  7. spring事务详解(二)简单样例

    系列目录 spring事务详解(一)初探事务 spring事务详解(二)简单样例 spring事务详解(三)源码详解 spring事务详解(四)测试验证 spring事务详解(五)总结提高 一.引子 ...

  8. 自己定义隐式转换和显式转换c#简单样例

    自己定义隐式转换和显式转换c#简单样例 (出自朱朱家园http://blog.csdn.net/zhgl7688) 样例:对用户user中,usernamefirst name和last name进行 ...

  9. rpm包制作介绍

    RPM(Rpm Package Management)在ReadHat等发行版下被用作软件包管理程序,其将某个软件相关的文件置入一个.rpm包中,用rpm命令,我们可以方便地完成Linux下软件安装. ...

随机推荐

  1. [MSDN]使用 REST 处理文件夹和文件

    msdn: http://msdn.microsoft.com/zh-cn/library/dn292553.aspx 了解如何使用 SharePoint 2013 REST 界面对文件夹和文件执行基 ...

  2. Python(2.7.6) 特殊方法

    在 Python 中有种特殊方法,也称为魔法方法.特殊方法的方法名的前后各有两个下划线,如__init__,这种拼写表示名字有特殊的意义.如果类实现了这些方法中的某一个,那么这个方法会在特殊的情况下被 ...

  3. asp下实现多条件模糊查询SQL语句

    常写一个简单的模糊查询的SQL语句格式可以如下例: sql="select * from 表名 where 字段名 like ’%" & request.form(&quo ...

  4. Ext.Net学习笔记16:Ext.Net GridPanel 折叠/展开行

    Ext.Net学习笔记16:Ext.Net GridPanel 折叠/展开行 Ext.Net GridPanel的行支持折叠/展开功能,这个功能个人觉得还说很有用处的,尤其是数据中包含图片等内容的时候 ...

  5. OpenJudge/Poj 1251 丛林中的路/Jungle Roads

    1.链接地址: http://bailian.openjudge.cn/practice/1251/ http://poj.org/problem?id=1251 2.题目: 总时间限制: 1000m ...

  6. linux中 ECShop的文件不能写

    解决办法: 1.开放权限 使用命令:chmod -R 777 文件路径 2.关闭SELinux 使用命令:setenforce 0

  7. SQLite学习第03天:环境搭建

    相比于其他数据库而言,SQLite的环境搭建十分简单,简单几步就可以完成: (1) 首先,从http://www.sqlite.org/download.html的网站上下载预编译的shell二进制文 ...

  8. 解决 IE 不支持 document.getElementsByClassName() 的方法

    //create method getElementsByClassName for document if(!document.getElementsByClassName){ document.g ...

  9. HTML5的离线储存

    在用户没有与因特网连接时,可以正常访问站点或应用,在用户与因特网连接时,更新用户机器上的缓存文件.        原理:HTML5的离线存储是基于一个新建的.appcache文件的缓存机制(不是存储技 ...

  10. 微信video标签全屏无法退出bug

    安卓(android)微信里面video播放视频,会被强制全屏,播放完毕后还有腾讯推荐的视频,非常讨厌..强制被全屏无法解决,但是视频播放完毕后退出播放器可以解决.方法就是视频播放完毕后,用音频aud ...